|
@@ -4,6 +4,7 @@ import com.ruoyi.ams.business.IBusinessService;
|
|
|
import com.ruoyi.ams.config.domain.dto.AgvCallDTO;
|
|
|
import com.ruoyi.ams.config.domain.dto.AgvCallItemDTO;
|
|
|
import com.ruoyi.ams.inv.domain.vo.InvLotLocIdLotattVO;
|
|
|
+import com.ruoyi.ams.inv.service.IInvLotAttService;
|
|
|
import com.ruoyi.ams.inv.service.IInvLotLocIdService;
|
|
|
import com.ruoyi.base.constant.Constant;
|
|
|
import com.ruoyi.base.service.IBaseLocationInfoService;
|
|
@@ -32,6 +33,8 @@ public class AgvCallProxyService {
|
|
|
private IInvLotLocIdService invLotLocIdService;
|
|
|
@Autowired
|
|
|
private IBaseLocationInfoService baseLocationInfoService;
|
|
|
+ @Autowired
|
|
|
+ private IInvLotAttService iInvLotAttService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -53,6 +56,12 @@ public class AgvCallProxyService {
|
|
|
agvCallItemDTO.setSku(Constant.EMPTY_TRAY); // 空托盘
|
|
|
agvCallItemDTOList.add(agvCallItemDTO);
|
|
|
agvCallDTO.setAgvCallItemDTOList(agvCallItemDTOList);
|
|
|
+ // 初始化库存
|
|
|
+ if (agvCallDTO.getAgvCallItemDTOList().size() > 0) {
|
|
|
+ iInvLotAttService.deleteInvLotAttBylocationId(Long.valueOf(locationFrom));
|
|
|
+ invLotLocIdService.deleteInvLotLocIdById(Long.valueOf(locationFrom));
|
|
|
+ invLotLocIdService.initInv(locationFrom, agvCallDTO);
|
|
|
+ }
|
|
|
return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.ONE.getValue(), agvCallDTO);
|
|
|
}
|
|
|
|
|
@@ -191,7 +200,7 @@ public class AgvCallProxyService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 成品下线(硫酸镍)->裹膜
|
|
|
+ * 成品下线(硫酸镍)->裹膜|成品暂存区
|
|
|
*
|
|
|
* @param locationFrom
|
|
|
* @param locationTo
|
|
@@ -372,7 +381,24 @@ public class AgvCallProxyService {
|
|
|
}else {
|
|
|
// 氯化镍
|
|
|
return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.THIRTEEN.getValue(), agvCallDTO);
|
|
|
- } }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成品中转(硫酸镍|氯化镍)->裹膜
|
|
|
+ *
|
|
|
+ * @param locationFrom
|
|
|
+ * @param locationTo
|
|
|
+ * @param createUser
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult productsDownLineToCache(String locationFrom, String locationTo, String createUser) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+ agvCallDTO.setLocationFrom(locationFrom);
|
|
|
+ agvCallDTO.setLocationTo(locationTo);
|
|
|
+ agvCallDTO.setCreateUser(createUser);
|
|
|
+ return iBusinessService.agvCall(Constant.FLOW_CONFIG_ID.SIXTEEN.getValue(), agvCallDTO);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 成品出库(硫酸镍)
|