|
@@ -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();
|