Browse Source

修改查询判断

hill.liu 6 months ago
parent
commit
c51f0dd4d5

+ 1 - 1
src/main/java/com/sy/coinage/workshop/controller/StockController.java

@@ -121,7 +121,7 @@ public class StockController extends BaseController {
             tt2 = tt2 + t2;
             // 字典库占比
             OptVO wareRatio = wareRatioOpt.stream()
-                    .filter(item -> item.getName().equals(optVO.getVal())).findFirst().get();
+                    .filter(item -> item.getName().equals(optVO.getName())).findFirst().get();
             // 库占比
             Integer total = t1 + t2;
             totalRatio = totalRatio + Integer.parseInt(wareRatio.getVal());