|
|
@ -532,38 +532,7 @@ public class WarehousingStorageController {
|
|
|
|
flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getTaskId, flowTaskEntity.getId());
|
|
|
|
flowTaskNodeEntityQueryWrapper.lambda().eq(FlowTaskNodeEntity::getTaskId, flowTaskEntity.getId());
|
|
|
|
List<FlowTaskNodeEntity> flowTaskNodeEntityList = flowTaskNodeService.list(flowTaskNodeEntityQueryWrapper);
|
|
|
|
List<FlowTaskNodeEntity> flowTaskNodeEntityList = flowTaskNodeService.list(flowTaskNodeEntityQueryWrapper);
|
|
|
|
if (flowTaskNodeEntityList != null && flowTaskNodeEntityList.size() > 0 && "end".equals(flowTaskNodeEntityList.get(0).getNodeNext())) {
|
|
|
|
if (flowTaskNodeEntityList != null && flowTaskNodeEntityList.size() > 0 && "end".equals(flowTaskNodeEntityList.get(0).getNodeNext())) {
|
|
|
|
// if (warehousingNotificationEntity!=null){
|
|
|
|
|
|
|
|
// BigDecimal maxNum = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
// BigDecimal YNum = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
// BigDecimal netWeightNum = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
// for (WarehousingStorageProductModel warehousingStorageProductModel : warehousingStorageForm.getWarehousingStorageProductList()) {
|
|
|
|
|
|
|
|
// maxNum = maxNum.add( new BigDecimal(warehousingStorageProductModel.getStorageNumber())) ;//这次的入库数量
|
|
|
|
|
|
|
|
// if (warehousingStorageProductModel.getReceivedQuantity()!=null){
|
|
|
|
|
|
|
|
// maxNum = maxNum.add( new BigDecimal(warehousingStorageProductModel.getReceivedQuantity())) ;
|
|
|
|
|
|
|
|
// }else {
|
|
|
|
|
|
|
|
// maxNum = maxNum.add( new BigDecimal(0)) ;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// for (WarehousingStoragePoundlistModel warehousingStoragePoundlistModel : warehousingStorageForm.getWarehousingStoragePoundlistList()) {
|
|
|
|
|
|
|
|
// netWeightNum = netWeightNum.add( warehousingStoragePoundlistModel.getNetWeight()) ;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// BigDecimal netWeightNumNot= netWeightNum; //这次的入库数量
|
|
|
|
|
|
|
|
// if (warehousingNotificationEntity.getConfirmWarehousingNum()!=null){
|
|
|
|
|
|
|
|
// YNum.add(new BigDecimal (warehousingNotificationEntity.getConfirmWarehousingNum()));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// BigDecimal maxNums = maxNum; //暂存
|
|
|
|
|
|
|
|
// BigDecimal result = maxNum.subtract(YNum); //
|
|
|
|
|
|
|
|
// result = result.subtract(netWeightNum); //最后结果
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if (result.compareTo(BigDecimal.ZERO)==0){
|
|
|
|
|
|
|
|
// warehousingNotificationEntity.setWarehousingStatus("4");
|
|
|
|
|
|
|
|
// }else {
|
|
|
|
|
|
|
|
// warehousingNotificationEntity.setWarehousingStatus("3");
|
|
|
|
|
|
|
|
//// warehousingNotificationEntity.setNotificationStorageNumber();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//上面注释是多次入库,现在先弄成一次性入库
|
|
|
|
//上面注释是多次入库,现在先弄成一次性入库
|
|
|
|
//审核通过修改入库通知
|
|
|
|
//审核通过修改入库通知
|
|
|
|
WarehousingNotificationEntity warehousingNotificationEntity = warehousingNotificationService.getInfo(warehousingStorageForm.getWarehousingId());
|
|
|
|
WarehousingNotificationEntity warehousingNotificationEntity = warehousingNotificationService.getInfo(warehousingStorageForm.getWarehousingId());
|
|
|
|