|
|
@ -8,6 +8,7 @@ import cn.estsh.i3plus.icloud.andon.sdk.IAndonScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.mes.pcn.sdk.IMesPcnScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.mes.pcn.sdk.IMesPcnScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.mes.sdk.IMesScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.mes.sdk.IMesScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.ptl.sdk.IPtlScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.ptl.sdk.IPtlScheduleJobCloud;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.icloud.screen.sdk.IScreenScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.softswitch.sdk.IBsScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.softswitch.sdk.IBsScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.wms.sdk.IWmsScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.icloud.wms.sdk.IWmsScheduleJobCloud;
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
|
import cn.estsh.i3plus.platform.common.convert.ConvertBean;
|
|
|
@ -40,13 +41,25 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.persistence.EntityManager;
|
|
|
|
import javax.persistence.EntityManager;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.io.*;
|
|
|
|
import java.io.BufferedInputStream;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import java.io.OutputStream;
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -107,6 +120,9 @@ public class SysTaskPlanController extends CoreBaseController {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IPtlScheduleJobCloud ptlScheduleJobCloud;
|
|
|
|
private IPtlScheduleJobCloud ptlScheduleJobCloud;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IScreenScheduleJobCloud screenScheduleJobCloud;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 根据来源切换定时任务服务
|
|
|
|
* 根据来源切换定时任务服务
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -137,6 +153,8 @@ public class SysTaskPlanController extends CoreBaseController {
|
|
|
|
// Ptl
|
|
|
|
// Ptl
|
|
|
|
} else if (source == CommonEnumUtil.SOFT_TYPE.PTL.getValue()) {
|
|
|
|
} else if (source == CommonEnumUtil.SOFT_TYPE.PTL.getValue()) {
|
|
|
|
quartzJobService = ptlScheduleJobCloud;
|
|
|
|
quartzJobService = ptlScheduleJobCloud;
|
|
|
|
|
|
|
|
} else if (source == CommonEnumUtil.SOFT_TYPE.SCREEN.getValue()) {
|
|
|
|
|
|
|
|
quartzJobService = screenScheduleJobCloud;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return quartzJobService;
|
|
|
|
return quartzJobService;
|
|
|
|
}
|
|
|
|
}
|
|
|
|