Browse Source

面辅料调整

huxy 1 year ago
parent
commit
dec3469cd0

+ 3 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/splfi/service/impl/SyPackingListFabricServiceImpl.java

@@ -700,10 +700,10 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 					message+="第"+num+"条提交失败,物料"+fabricItem.getInventoryCode()+"毛重合计为0;";
 					message+="第"+num+"条提交失败,物料"+fabricItem.getInventoryCode()+"毛重合计为0;";
 					bool=false;
 					bool=false;
 				}
 				}
-				else if(fabricItem.getRolls()!=null){
-					rollsNum.add(fabricItem.getRolls());
+				if(fabricItem.getRolls()!=null){
+					rollsNum=rollsNum.add(fabricItem.getRolls());
 				}
 				}
-				if (bool=false){
+				if (bool==false){
 					break;
 					break;
 				}
 				}
 			}
 			}