|
@@ -0,0 +1,33 @@
|
|
|
+package com.ruoyi.ams.xuankuang.service;
|
|
|
+
|
|
|
+import com.ruoyi.ams.config.domain.dto.AgvCallDTO;
|
|
|
+import com.ruoyi.ams.inv.service.IInvLotLocIdService;
|
|
|
+import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author JWK
|
|
|
+ * @version 1.0
|
|
|
+ * @date 2023/4/4 15:57
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class InvLotLocIdSubService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IInvLotLocIdService invLotLocIdService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初始化库存
|
|
|
+ *
|
|
|
+ * @param locationId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult initInv(String locationId,String sku,String trayNo,Double qty) {
|
|
|
+ AgvCallDTO agvCallDTO = new AgvCallDTO();
|
|
|
+
|
|
|
+ invLotLocIdService.initInv(locationId, agvCallDTO);
|
|
|
+ return AjaxResult.success("初始化库存成功!");
|
|
|
+ }
|
|
|
+}
|