|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package cn.estsh.i3plus.core.apiservice.controller.busi;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.core.api.iservice.busi.ISysTaskService;
|
|
|
|
|
import cn.estsh.i3plus.icloud.mes.pcn.sdk.IMesPcnCommonCloud;
|
|
|
|
|
import cn.estsh.i3plus.icloud.mes.sdk.IMesCommonCloud;
|
|
|
|
|
import cn.estsh.i3plus.icloud.wms.sdk.IWmsCommonCloud;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.tool.StringTool;
|
|
|
|
|
import cn.estsh.i3plus.platform.common.util.PlatformConstWords;
|
|
|
|
@ -16,7 +18,6 @@ import cn.estsh.impp.framework.base.service.ICommonService;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionEnum;
|
|
|
|
|
import cn.estsh.impp.framework.boot.quartz.IQuartzJobService;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -51,14 +52,27 @@ public class SysTaskController extends CoreBaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IWmsCommonCloud wmsCommonCloud;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IMesCommonCloud mesCommonCloud;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private IMesPcnCommonCloud mesPcnCommonCloud;
|
|
|
|
|
|
|
|
|
|
private ICommonService getCommonService(int softType){
|
|
|
|
|
ICommonService commonService = coreCommonService;
|
|
|
|
|
|
|
|
|
|
// 平台
|
|
|
|
|
if(softType == CommonEnumUtil.SOFT_TYPE.CORE.getValue()){
|
|
|
|
|
//平台定时任务
|
|
|
|
|
commonService = coreCommonService;
|
|
|
|
|
// WMS
|
|
|
|
|
} else if(softType == CommonEnumUtil.SOFT_TYPE.WMS.getValue()){
|
|
|
|
|
commonService = wmsCommonCloud;
|
|
|
|
|
// MES
|
|
|
|
|
} else if(softType == CommonEnumUtil.SOFT_TYPE.MES.getValue()){
|
|
|
|
|
commonService = mesCommonCloud;
|
|
|
|
|
// MES_PCN
|
|
|
|
|
} else if(softType == CommonEnumUtil.SOFT_TYPE.MES_PCN.getValue()){
|
|
|
|
|
commonService = mesPcnCommonCloud;
|
|
|
|
|
}
|
|
|
|
|
return commonService;
|
|
|
|
|
}
|
|
|
|
|