|
@@ -6,6 +6,9 @@ import com.rongwei.rwapsserver.aps.domain.EquipmentRunTime;
|
|
|
import com.rongwei.rwapsserver.aps.domain.ProduceOrder;
|
|
|
import com.rongwei.rwapsserver.aps.domain.ProductionProcesses;
|
|
|
import com.rongwei.rwapsserver.aps.service.ProductionScheduleService;
|
|
|
+import com.rongwei.rwapsserver.aps.taskassigning.service.ProductionScheduleTaService;
|
|
|
+import com.rongwei.rwapsserver.aps.taskassigning.vo.ProductionScheduleRetTaVo;
|
|
|
+import com.rongwei.rwapsserver.aps.taskassigning.vo.ProductionScheduleTaVo;
|
|
|
import com.rongwei.rwapsserver.aps.util.ApsException;
|
|
|
import com.rongwei.rwapsserver.aps.vo.ProductionScheduleRetVo;
|
|
|
import com.rongwei.rwapsserver.aps.vo.ProductionScheduleVo;
|
|
@@ -30,6 +33,8 @@ public class ApsSchedulingController {
|
|
|
|
|
|
@Autowired
|
|
|
private ProductionScheduleService productionScheduleService;
|
|
|
+ @Autowired
|
|
|
+ private ProductionScheduleTaService productionScheduleTaService;
|
|
|
|
|
|
/**
|
|
|
* 流程任务运行API
|
|
@@ -56,6 +61,31 @@ public class ApsSchedulingController {
|
|
|
return productionScheduleRetVo;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 流程任务运行API
|
|
|
+ * @param productionScheduleVo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/productionLzDdSchedule")
|
|
|
+ public ProductionScheduleRetTaVo productionLzDdSchedule(@RequestBody ProductionScheduleTaVo productionScheduleVo) throws Exception{
|
|
|
+ ProductionScheduleRetTaVo productionScheduleRetVo = null;
|
|
|
+ try{
|
|
|
+ productionScheduleRetVo = productionScheduleTaService.productionSchedule(productionScheduleVo);
|
|
|
+ productionScheduleRetVo.setCode("200");
|
|
|
+ }catch(ApsException ae){
|
|
|
+ productionScheduleRetVo = new ProductionScheduleRetTaVo();
|
|
|
+ productionScheduleRetVo.setCode("500");
|
|
|
+ productionScheduleRetVo.setMsg(ae.getMessage());
|
|
|
+ }catch(Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ log.error("排程平台异常:",e);
|
|
|
+ productionScheduleRetVo = new ProductionScheduleRetTaVo();
|
|
|
+ productionScheduleRetVo.setCode("500");
|
|
|
+ productionScheduleRetVo.setMsg("排程异常,请联系管理员");
|
|
|
+ }
|
|
|
+ return productionScheduleRetVo;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 退火任务运行API
|
|
|
* @param productionScheduleVo
|