wms成品部分代码修改25

master
mengjiao 1 year ago
parent 2e38a77da3
commit 1af3940012

@ -811,12 +811,12 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
WmsRuturnPutEmbryo wmsRuturnPutEmbryo2= wmsRuturnPutEmbryoMapper.selectWmsRuturnPutEmbryoByid(wmsRuturnPutEmbryo1); WmsRuturnPutEmbryo wmsRuturnPutEmbryo2= wmsRuturnPutEmbryoMapper.selectWmsRuturnPutEmbryoByid(wmsRuturnPutEmbryo1);
BigDecimal allTem= wmsRuturnPutEmbryo2.getPlanQuantity(); BigDecimal allTem= wmsRuturnPutEmbryo2.getPlanQuantity();
BigDecimal putTem= wmsRuturnPutEmbryo2.getPutQuantity(); BigDecimal putTem= wmsRuturnPutEmbryo2.getPutQuantity();
BigDecimal putQuantity= putTem.add(new BigDecimal(wmsProductPutList.size())); //BigDecimal putQuantity= putTem.add(new BigDecimal(wmsRuturnPutEmbryo.get()));
int result = putQuantity.compareTo(allTem); int result = wmsRuturnPutEmbryo.getPutQuantity().compareTo(allTem);
if (result == 0) { if (result == 0) {
wmsRuturnPutEmbryo2.setStatus("1");//0是未完成1是完成 wmsRuturnPutEmbryo2.setStatus("1");//0是未完成1是完成
} }
wmsRuturnPutEmbryo2.setPutQuantity(putQuantity); wmsRuturnPutEmbryo2.setPutQuantity(wmsRuturnPutEmbryo.getPutQuantity());
wmsRuturnPutEmbryo2.setUpdateBy(wmsRuturnPutEmbryo.getCreateBy()); wmsRuturnPutEmbryo2.setUpdateBy(wmsRuturnPutEmbryo.getCreateBy());
wmsRuturnPutEmbryo2.setUpdateTime(new Date()); wmsRuturnPutEmbryo2.setUpdateTime(new Date());
wmsRuturnPutEmbryoMapper.updateWmsRuturnPutEmbryo(wmsRuturnPutEmbryo2); wmsRuturnPutEmbryoMapper.updateWmsRuturnPutEmbryo(wmsRuturnPutEmbryo2);

Loading…
Cancel
Save