|
|
|
@ -170,8 +170,10 @@ public class StGraphiteMoldOutServiceImpl extends BaseServiceImpl<StGraphiteMold |
|
|
|
preOutStock.setOutCode(outCode); |
|
|
|
preOutStock.setOutCode(outCode); |
|
|
|
childNum++; |
|
|
|
childNum++; |
|
|
|
// preOutStock.setOutCode(stStockInoutRecordService.generateCode());
|
|
|
|
// preOutStock.setOutCode(stStockInoutRecordService.generateCode());
|
|
|
|
preOutStock.setNeedQuantity(singleUse * totalNeedSet); |
|
|
|
preOutStock.setProduceQuantity(totalNeedSet); |
|
|
|
preOutStock.setCompleteQuantity(totalNeed); |
|
|
|
preOutStock.setNeedQuantity(singleUse * maxCanMakeSet); |
|
|
|
|
|
|
|
preOutStock.setCompleteQuantity(maxCanMakeSet); |
|
|
|
|
|
|
|
preOutStock.setSingleQuantity(singleUse); |
|
|
|
preOutStock.setGoodsId(maxStock.getGoodsId()); |
|
|
|
preOutStock.setGoodsId(maxStock.getGoodsId()); |
|
|
|
StGoods stGoods = stGoodsService.getById(maxStock.getGoodsId()); |
|
|
|
StGoods stGoods = stGoodsService.getById(maxStock.getGoodsId()); |
|
|
|
preOutStock.setGoodsName(stGoods.getGoodsName()); |
|
|
|
preOutStock.setGoodsName(stGoods.getGoodsName()); |
|
|
|
@ -391,8 +393,8 @@ public class StGraphiteMoldOutServiceImpl extends BaseServiceImpl<StGraphiteMold |
|
|
|
this.updateById(outEntity); |
|
|
|
this.updateById(outEntity); |
|
|
|
resultList.add(outEntity); |
|
|
|
resultList.add(outEntity); |
|
|
|
|
|
|
|
|
|
|
|
if (outEntity.getOutedQuantity() < outEntity.getCompleteQuantity()) { |
|
|
|
if (outEntity.getOutedQuantity() < outEntity.getNeedQuantity()) { |
|
|
|
Double resOccupyQty = outEntity.getCompleteQuantity() - outEntity.getOutedQuantity(); |
|
|
|
Double resOccupyQty = outEntity.getNeedQuantity() - outEntity.getOutedQuantity(); |
|
|
|
realtimeStock.setOccupyQuantity(realtimeStock.getOccupyQuantity() - resOccupyQty); |
|
|
|
realtimeStock.setOccupyQuantity(realtimeStock.getOccupyQuantity() - resOccupyQty); |
|
|
|
stRealtimeStockService.updateById(realtimeStock); |
|
|
|
stRealtimeStockService.updateById(realtimeStock); |
|
|
|
|
|
|
|
|
|
|
|
|