diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java index 4dc5f959..d0d5c5bd 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java @@ -811,12 +811,12 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { WmsRuturnPutEmbryo wmsRuturnPutEmbryo2= wmsRuturnPutEmbryoMapper.selectWmsRuturnPutEmbryoByid(wmsRuturnPutEmbryo1); BigDecimal allTem= wmsRuturnPutEmbryo2.getPlanQuantity(); BigDecimal putTem= wmsRuturnPutEmbryo2.getPutQuantity(); - BigDecimal putQuantity= putTem.add(new BigDecimal(wmsProductPutList.size())); - int result = putQuantity.compareTo(allTem); + //BigDecimal putQuantity= putTem.add(new BigDecimal(wmsRuturnPutEmbryo.get())); + int result = wmsRuturnPutEmbryo.getPutQuantity().compareTo(allTem); if (result == 0) { wmsRuturnPutEmbryo2.setStatus("1");//0是未完成,1是完成 } - wmsRuturnPutEmbryo2.setPutQuantity(putQuantity); + wmsRuturnPutEmbryo2.setPutQuantity(wmsRuturnPutEmbryo.getPutQuantity()); wmsRuturnPutEmbryo2.setUpdateBy(wmsRuturnPutEmbryo.getCreateBy()); wmsRuturnPutEmbryo2.setUpdateTime(new Date()); wmsRuturnPutEmbryoMapper.updateWmsRuturnPutEmbryo(wmsRuturnPutEmbryo2);