|
|
|
@ -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);
|
|
|
|
|