|
@@ -94,6 +94,66 @@ public class PlcCallAgvService {
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 测试合格品右请求上空托
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult readTheEmptyPalletOnThequalifiedRightTest() {
|
|
|
+ if (1 == 1) {
|
|
|
+ String locationFrom = "";
|
|
|
+ String locationTo = "100003";
|
|
|
+ WcsTask wcsTask = new WcsTask();
|
|
|
+ wcsTask.setLocationTo(locationTo);
|
|
|
+ List<WcsTask> wcsTasks = wcsTaskMapper.selectWcsTaskList1(wcsTask);
|
|
|
+ if (wcsTasks.size()>0 && wcsTasks!= null){
|
|
|
+ return AjaxResult.error("已经有正在进行的任务了");
|
|
|
+ }
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallItemDTO.setSku("EMPTY_TRAY"); // 空托
|
|
|
+ agvCallItemDTO.setQty(1.0);
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ AjaxResult ajaxResult = iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.TWO.getValue(), agvCallDTO);
|
|
|
+ System.out.println("合格品右正在上空托");
|
|
|
+ }
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 测试不合格品右请求上空托
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult readTheEmptyPalletOnTheNoqualifiedRightTest() {
|
|
|
+ if (1 == 1) {
|
|
|
+ String locationFrom = "";
|
|
|
+ String locationTo = "100002";
|
|
|
+ WcsTask wcsTask = new WcsTask();
|
|
|
+ wcsTask.setLocationTo(locationTo);
|
|
|
+ List<WcsTask> wcsTasks = wcsTaskMapper.selectWcsTaskList1(wcsTask);
|
|
|
+ if (wcsTasks.size()>0 && wcsTasks!= null){
|
|
|
+ return AjaxResult.error("已经有正在进行的任务了");
|
|
|
+ }
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallItemDTO.setSku("EMPTY_TRAY"); // 空托
|
|
|
+ agvCallItemDTO.setQty(1.0);
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ AjaxResult ajaxResult = iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.FOUR.getValue(), agvCallDTO);
|
|
|
+ System.out.println("合格品右正在上空托");
|
|
|
+ }
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 测试合格品左请求下料
|
|
|
*
|
|
@@ -123,6 +183,35 @@ public class PlcCallAgvService {
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 测试合格品右请求下料
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult readThepassedProductLowerFeeRightTest() {
|
|
|
+ String locationFrom = "100003";
|
|
|
+ String locationTo = "";
|
|
|
+ WcsTask wcsTask = new WcsTask();
|
|
|
+ wcsTask.setLocationFrom(locationFrom);
|
|
|
+ List<WcsTask> wcsTasks = wcsTaskMapper.selectWcsTaskList1(wcsTask);
|
|
|
+ if (wcsTasks.size()>0 && wcsTasks!= null){
|
|
|
+ return AjaxResult.error("已经有正在进行的任务了");
|
|
|
+ }
|
|
|
+ //库存列表
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ LotattDTO lotattDTO = new LotattDTO();
|
|
|
+ agvCallItemDTO.setSku("sku001"); // 合格品
|
|
|
+ agvCallItemDTO.setQty(1.0);
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ AjaxResult ajaxResult = iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.SIX.getValue(), agvCallDTO);
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 合格品右请求上空托
|
|
|
*
|