|
@@ -43,11 +43,296 @@ public class AgvCallProxyService {
|
|
|
agvCallDTO.setCreateUser(createUser);
|
|
|
List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
- agvCallItemDTO.setSku(Constant.EMPTY_TRAY); //物料号
|
|
|
+ agvCallItemDTO.setSku(Constant.EMPTY_TRAY); // 空托盘
|
|
|
agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.ONE.getValue(), agvCallDTO);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 空托上料(硫酸镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult emptyFeedingLSN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.EMPTY_TRAY); // 空托盘
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.TWO.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 空托上料(氯化镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult emptyFeedingLHN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.EMPTY_TRAY); // 空托盘
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.THREE.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 废料搬运(硫酸镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult accessoriesHandlingLSN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.WASTE); // 废料
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.FOUR.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 废料退空(硫酸镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult accessoriesReturnEmptyLSN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.WASTE_BAS); // 废料空篓
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.FIVE.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 废料搬运(氯化镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult accessoriesHandlingLHN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.WASTE); // 废料
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.SIX.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 废料退空(氯化镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult accessoriesReturnEmptyLHN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ List<AgvCallItemDTO> agvCallItemDTOList = new ArrayList<>();
|
|
|
+ AgvCallItemDTO agvCallItemDTO = new AgvCallItemDTO();
|
|
|
+ agvCallItemDTO.setSku(Constant.WASTE_BAS); // 废料空篓
|
|
|
+ agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.SEVEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(硫酸镍)->裹膜
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @param theWeighing
|
|
|
+ * @param agvCallItemDTOList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineLSN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing
|
|
|
+ , List<AgvCallItemDTO> agvCallItemDTOList) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.EIGHT.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(硫酸镍)->仓储区
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @param theWeighing
|
|
|
+ * @param agvCallItemDTOList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineInvLSN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing
|
|
|
+ , List<AgvCallItemDTO> agvCallItemDTOList) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.NINE.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(硫酸镍)-裹膜->仓储区
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @param theWeighing
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineWrappingFilmLSN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.TEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(氯化镍)->裹膜
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @param theWeighing
|
|
|
+ * @param agvCallItemDTOList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineLHN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing
|
|
|
+ , List<AgvCallItemDTO> agvCallItemDTOList) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.ELEVEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(氯化镍)->仓储区
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @param theWeighing
|
|
|
+ * @param agvCallItemDTOList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineInvLHN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing
|
|
|
+ , List<AgvCallItemDTO> agvCallItemDTOList) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.TWELVE.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品下线(氯化镍)-裹膜->仓储区
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineWrappingFilmLHN(String locationFrom, String locationTo, String createUser
|
|
|
+ , Boolean theWeighing) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ agvCallDTO.setTheWeighing(theWeighing);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.THIRTEEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品出库(硫酸镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsOutboundLSN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ // todo 判断起始库位库存需要位合格
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.FOURTEEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品出库(氯化镍)
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsOutboundLHN(String locationFrom, String locationTo, String createUser) {
|
|
|
+ // todo 判断起始库位库存需要位合格
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.FIFTEEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|