|
|
|
@ -94,6 +94,10 @@ public class StGoodsExtServiceImpl extends BaseServiceImpl<StGoodsExtMapper, StG |
|
|
|
String goodsCode = goodsIdToCodeMap.get(goodsId); |
|
|
|
String goodsCode = goodsIdToCodeMap.get(goodsId); |
|
|
|
|
|
|
|
|
|
|
|
StGoodsExtStatusVO vo = erpDataWmsClient.getGoodsExtStatus(goodsCode).getData(); |
|
|
|
StGoodsExtStatusVO vo = erpDataWmsClient.getGoodsExtStatus(goodsCode).getData(); |
|
|
|
|
|
|
|
if (vo == null) { |
|
|
|
|
|
|
|
log.warn("物料ERP信息不存在,跳过:goodsCode={}", goodsCode); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
StGoodsExt goodsExt = baseMapper.getGoodsExt(vo.getInvqty1j(),vo.getPlanqty(),goodsId); |
|
|
|
StGoodsExt goodsExt = baseMapper.getGoodsExt(vo.getInvqty1j(),vo.getPlanqty(),goodsId); |
|
|
|
ext.setFirstStore(vo.getInvqty1j()); |
|
|
|
ext.setFirstStore(vo.getInvqty1j()); |
|
|
|
ext.setLastStore(goodsExt.getLastStore()); |
|
|
|
ext.setLastStore(goodsExt.getLastStore()); |
|
|
|
|