|
@@ -163,6 +163,10 @@ public class WeiXinCorpController {
|
|
|
|
|
|
@Resource
|
|
|
private SysDictService sysDictService;
|
|
|
+ @Resource
|
|
|
+ private FastAccessService fastAccessService;
|
|
|
+ @Resource
|
|
|
+ private CommonUseService commonUseService;
|
|
|
|
|
|
public static String SUITE_ACCESS_TOKEN = null;
|
|
|
public static long suiteTokenExpireTime = 0L;
|
|
@@ -1481,6 +1485,14 @@ public class WeiXinCorpController {
|
|
|
List<Stage> stageList=getStageBaseList(company);
|
|
|
stageService.saveBatch(stageList);
|
|
|
|
|
|
+ List<CommonUse> initCommonUseList = getInitCommonUseList();
|
|
|
+ initCommonUseList.forEach(f->f.setCompanyId(finalCompany.getId()));
|
|
|
+ commonUseService.saveBatch(initCommonUseList);
|
|
|
+
|
|
|
+ List<FastAccess> initFastAccessList = getInitFastAccessList();
|
|
|
+ initFastAccessList.forEach(f->f.setCompanyId(finalCompany.getId()));
|
|
|
+ fastAccessService.saveBatch(initFastAccessList);
|
|
|
+
|
|
|
//生成工作时长
|
|
|
TimeType timeType = new TimeType();
|
|
|
timeType.setCompanyId(company.getId());
|
|
@@ -3784,6 +3796,32 @@ public class WeiXinCorpController {
|
|
|
return new HttpRespMsg();
|
|
|
}
|
|
|
|
|
|
+ private List<FastAccess> getInitFastAccessList(){
|
|
|
+ ArrayList<FastAccess> list = new ArrayList<>();
|
|
|
+ FastAccess access1 = new FastAccess().setName("客户").setRouter("/customer");
|
|
|
+ list.add(access1);
|
|
|
+ FastAccess access2 = new FastAccess().setName("商机").setRouter("/business");
|
|
|
+ list.add(access2);
|
|
|
+ FastAccess access3 = new FastAccess().setName("任务").setRouter("/tasks");
|
|
|
+ list.add(access3);
|
|
|
+ FastAccess access4 = new FastAccess().setName("联系人").setRouter("/contacts");
|
|
|
+ list.add(access4);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<CommonUse> getInitCommonUseList(){
|
|
|
+ ArrayList<CommonUse> list = new ArrayList<>();
|
|
|
+ CommonUse use1 = new CommonUse().setName("客户").setRouter("/customer");
|
|
|
+ list.add(use1);
|
|
|
+ CommonUse use2 = new CommonUse().setName("商机").setRouter("/business");
|
|
|
+ list.add(use2);
|
|
|
+ CommonUse use3 = new CommonUse().setName("任务").setRouter("/tasks");
|
|
|
+ list.add(use3);
|
|
|
+ CommonUse use4 = new CommonUse().setName("联系人").setRouter("/contacts");
|
|
|
+ list.add(use4);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
private List<SysForm> getBaseList(){
|
|
|
ArrayList<SysForm> list = new ArrayList<>();
|
|
|
SysForm sysForm1 = new SysForm();
|