|
@ -19,6 +19,8 @@ import com.yxt.wms.biz.inventory.wmsinventory.WmsInventoryService; |
|
|
import com.yxt.wms.biz.inventory.wmsinventory.WmsUpdateCountQuery; |
|
|
import com.yxt.wms.biz.inventory.wmsinventory.WmsUpdateCountQuery; |
|
|
import com.yxt.wms.biz.inventory.wmsinventoryrecord.WmsInventoryRecord; |
|
|
import com.yxt.wms.biz.inventory.wmsinventoryrecord.WmsInventoryRecord; |
|
|
import com.yxt.wms.biz.inventory.wmsinventoryrecord.WmsInventoryRecordService; |
|
|
import com.yxt.wms.biz.inventory.wmsinventoryrecord.WmsInventoryRecordService; |
|
|
|
|
|
import com.yxt.wms.feign.as.AsBusrepairInventorybillFeign; |
|
|
|
|
|
import com.yxt.wms.feign.as.BusrepairInfo; |
|
|
import com.yxt.wms.feign.as.asbusrepairbill.AsBusrepairBill; |
|
|
import com.yxt.wms.feign.as.asbusrepairbill.AsBusrepairBill; |
|
|
import com.yxt.wms.feign.as.asbusrepairbill.AsBusrepairBillFeign; |
|
|
import com.yxt.wms.feign.as.asbusrepairbill.AsBusrepairBillFeign; |
|
|
import com.yxt.wms.feign.as.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetail; |
|
|
import com.yxt.wms.feign.as.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetail; |
|
@ -46,6 +48,8 @@ import java.util.List; |
|
|
@Service |
|
|
@Service |
|
|
public class WmsOldInventoryService extends MybatisBaseService<WmsOldInventoryMapper, WmsOldInventory> { |
|
|
public class WmsOldInventoryService extends MybatisBaseService<WmsOldInventoryMapper, WmsOldInventory> { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private AsBusrepairInventorybillFeign asBusrepairInventorybillFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private WmsInventoryService wmsInventoryService; |
|
|
private WmsInventoryService wmsInventoryService; |
|
|
@Autowired |
|
|
@Autowired |
|
@ -157,6 +161,7 @@ public class WmsOldInventoryService extends MybatisBaseService<WmsOldInventoryMa |
|
|
dto.setUseOrgSid(useOrgSid); |
|
|
dto.setUseOrgSid(useOrgSid); |
|
|
kcSid = wmsInventoryService.saveWmsInventory(dto).getData(); |
|
|
kcSid = wmsInventoryService.saveWmsInventory(dto).getData(); |
|
|
} |
|
|
} |
|
|
|
|
|
String sid = wmsBusrepairInventorybillDetailOld.getSid(); |
|
|
//生成出入库记录
|
|
|
//生成出入库记录
|
|
|
WmsInventoryRecord wmsInventoryRecord = new WmsInventoryRecord(); |
|
|
WmsInventoryRecord wmsInventoryRecord = new WmsInventoryRecord(); |
|
|
wmsInventoryRecord.setCreateBySid(wmsOldGroundConfirm.getCreateBySid()); |
|
|
wmsInventoryRecord.setCreateBySid(wmsOldGroundConfirm.getCreateBySid()); |
|
@ -165,6 +170,13 @@ public class WmsOldInventoryService extends MybatisBaseService<WmsOldInventoryMa |
|
|
wmsInventoryRecord.setBillType("1"); |
|
|
wmsInventoryRecord.setBillType("1"); |
|
|
wmsInventoryRecord.setBusTypeKey("09"); |
|
|
wmsInventoryRecord.setBusTypeKey("09"); |
|
|
wmsInventoryRecord.setBusTypeValue("其他入库"); |
|
|
wmsInventoryRecord.setBusTypeValue("其他入库"); |
|
|
|
|
|
BusrepairInfo busrepairInfo = asBusrepairInventorybillFeign.getInventoryInfo(sid).getData(); |
|
|
|
|
|
if (null != busrepairInfo) { |
|
|
|
|
|
wmsInventoryRecord.setSourceBillSid(busrepairInfo.getSourceBillSid()); |
|
|
|
|
|
wmsInventoryRecord.setBillNo(busrepairInfo.getBillNo()); |
|
|
|
|
|
wmsInventoryRecord.setPreBillNo(busrepairInfo.getPreBillNo()); |
|
|
|
|
|
wmsInventoryRecord.setPreBillSid(busrepairInfo.getPreBillSid()); |
|
|
|
|
|
} |
|
|
wmsInventoryRecord.setManufacturerName(wmsBusrepairInventorybillDetailOld.getManufacturerName()); |
|
|
wmsInventoryRecord.setManufacturerName(wmsBusrepairInventorybillDetailOld.getManufacturerName()); |
|
|
wmsInventoryRecord.setGoodsSpuSid(wmsBusrepairInventorybillDetailOld.getGoodsSpuSid()); |
|
|
wmsInventoryRecord.setGoodsSpuSid(wmsBusrepairInventorybillDetailOld.getGoodsSpuSid()); |
|
|
wmsInventoryRecord.setGoodsSpuName(wmsBusrepairInventorybillDetailOld.getGoodsSpuName()); |
|
|
wmsInventoryRecord.setGoodsSpuName(wmsBusrepairInventorybillDetailOld.getGoodsSpuName()); |
|
@ -613,6 +625,13 @@ public class WmsOldInventoryService extends MybatisBaseService<WmsOldInventoryMa |
|
|
} |
|
|
} |
|
|
//生成出入库记录
|
|
|
//生成出入库记录
|
|
|
WmsInventoryRecord wmsInventoryRecord = new WmsInventoryRecord(); |
|
|
WmsInventoryRecord wmsInventoryRecord = new WmsInventoryRecord(); |
|
|
|
|
|
BusrepairInfo busrepairInfo = asBusrepairInventorybillFeign.getInventoryInfo(asBusrepairInventorybillDetail.getSid()).getData(); |
|
|
|
|
|
if (null != busrepairInfo) { |
|
|
|
|
|
wmsInventoryRecord.setSourceBillSid(busrepairInfo.getSourceBillSid()); |
|
|
|
|
|
wmsInventoryRecord.setBillNo(busrepairInfo.getBillNo()); |
|
|
|
|
|
wmsInventoryRecord.setPreBillNo(busrepairInfo.getPreBillNo()); |
|
|
|
|
|
wmsInventoryRecord.setPreBillSid(busrepairInfo.getPreBillSid()); |
|
|
|
|
|
} |
|
|
wmsInventoryRecord.setCreateBySid(wmsOldGroundConfirm.getCreateBySid()); |
|
|
wmsInventoryRecord.setCreateBySid(wmsOldGroundConfirm.getCreateBySid()); |
|
|
wmsInventoryRecord.setInventorySid(kcSid); |
|
|
wmsInventoryRecord.setInventorySid(kcSid); |
|
|
wmsInventoryRecord.setSourceBillSid(asBusrepairBill.getSid()); |
|
|
wmsInventoryRecord.setSourceBillSid(asBusrepairBill.getSid()); |
|
|