Browse Source

面损表销售出库优化bug调整

fenghaifu 11 months ago
parent
commit
1ac747a48b

+ 4 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/report/service/impl/FabricLossServiceImpl.java

@@ -1934,9 +1934,11 @@ public class FabricLossServiceImpl extends ServiceImpl<FabricLossMapper, FabricL
 			saleorderDetailIdList.add(oConvertUtils.getInt(e.get("id"), 0));
 		});
 		outList1 = new ArrayList<>();
-		if (saleorderDetailIdList.size()>0){
-			outList1 = fabricLossMapper.getSaleOutList(code, saleorderDetailIdList);// 销售出库
+		if (saleorderDetailIdList.size() == 0){
+			saleorderDetailIdList.add(0);
 		}
+		outList1 = fabricLossMapper.getSaleOutList(code, saleorderDetailIdList);// 销售出库
+
 
 		if (oConvertUtils.listIsNotEmpty(outList1)){
 			otherOutList.addAll(outList1);