|
|
|
@ -1152,18 +1152,19 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
|
|
|
|
|
WmsProductPut wmsProductPut2= wmsProductPutLists.get(0);
|
|
|
|
|
BigDecimal planQuantity= wmsProductPut2.getPlanQuantity();
|
|
|
|
|
BigDecimal putQuantity= wmsProductPut2.getPutQuantity();
|
|
|
|
|
if (planQuantity.equals(putQuantity.add(new BigDecimal(wmsProductPut1.getNumber())))){
|
|
|
|
|
wmsProductPutk.setStatus("1");
|
|
|
|
|
}else {
|
|
|
|
|
wmsProductPutk.setStatus("2");
|
|
|
|
|
}
|
|
|
|
|
// if (planQuantity.equals(putQuantity.add(new BigDecimal(wmsProductPut1.getNumber())))){
|
|
|
|
|
// wmsProductPutk.setStatus("1");
|
|
|
|
|
// }else {
|
|
|
|
|
// wmsProductPutk.setStatus("2");
|
|
|
|
|
// }
|
|
|
|
|
BigDecimal putQuantityT=putQuantity.add(new BigDecimal(wmsProductPut1.getNumber()));//入库数量
|
|
|
|
|
wmsProductPut2.setPutQuantity(putQuantityT);
|
|
|
|
|
wmsProductPut2.setUpdateTime(new Date());
|
|
|
|
|
wmsProductPut2.setUpdateBy(wmsProductPut.getCreateBy());
|
|
|
|
|
wmsProductPutMapper.updateWmsProductPut(wmsProductPut2);
|
|
|
|
|
wmsProductPutMapper.updateWmsProductStatus(wmsProductPut2);//修改订单
|
|
|
|
|
}else {
|
|
|
|
|
wmsProductPutk.setStatus("2");
|
|
|
|
|
wmsProductPutk.setStatus("2");//
|
|
|
|
|
wmsProductPutk.setSapStatus("0");
|
|
|
|
|
wmsProductPutk.setAttr3(formattedDate);//
|
|
|
|
|
if (wmsProductPutk.getBatchNumber().length()==24){
|
|
|
|
|