Browse Source

修改明细矩阵接口

xieshengjie 1 year ago
parent
commit
645d869a75

+ 5 - 5
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/monitor/MatrixService.java

@@ -211,11 +211,11 @@ public class MatrixService {
                     volist.add(vo);
                 }
                 powerVo.setWtlist(volist);
-                qf0.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(0)).mapToDouble(MatrixVo::getQfdl).sum())));
-                qf1.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(1)).mapToDouble(MatrixVo::getQfdl).sum())));
-                qf2.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(2)).mapToDouble(MatrixVo::getQfdl).sum())));
-                qf3.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(3)).mapToDouble(MatrixVo::getQfdl).sum())));
-                qf4.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt().equals(4)).mapToDouble(MatrixVo::getQfdl).sum())));
+                qf0.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt()==0).mapToDouble(MatrixVo::getQfdl).sum())));
+                qf1.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt()==1).mapToDouble(MatrixVo::getQfdl).sum())));
+                qf2.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt()==2).mapToDouble(MatrixVo::getQfdl).sum())));
+                qf3.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt()==3).mapToDouble(MatrixVo::getQfdl).sum())));
+                qf4.updateAndGet(v -> new Double((double) (v + volist.stream().filter(i -> i.getSsqfzt()==4).mapToDouble(MatrixVo::getQfdl).sum())));
                 powerVos.add(powerVo);
             } catch (Exception e) {
                 e.printStackTrace();