Skip to content

Commit c36e5fe

Browse files
committed
优化按流动查询
1 parent 8fdf21b commit c36e5fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFloorFeeSummaryCmd.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJso
6464
//todo 查询楼栋
6565
FloorDto floorDto = new FloorDto();
6666
floorDto.setCommunityId(reqJson.getString("communityId"));
67+
if(reqJson.containsKey("page")) {
68+
floorDto.setPage(reqJson.getIntValue("page"));
69+
floorDto.setRow(reqJson.getIntValue("row"));
70+
}
6771
List<FloorDto> floorDtos = floorInnerServiceSMOImpl.queryFloors(floorDto);
6872

6973
if (ListUtil.isNull(floorDtos)) {
@@ -77,9 +81,10 @@ public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJso
7781
java110ThreadPoolFactory = Java110ThreadPoolFactory.getInstance().createThreadPool(5);
7882
for (FloorDto floorDto1 : floorDtos) {
7983
queryStatisticsDto.setFloorId(floorDto1.getFloorId());
84+
QueryStatisticsDto tmpQueryStatisticsDto = queryStatisticsDto;
8085
java110ThreadPoolFactory.submit(() -> {
8186
//todo 欠费户数
82-
List<Map> floorDatas = feeStatisticsImpl.getFloorFeeSummary(queryStatisticsDto);
87+
List<Map> floorDatas = feeStatisticsImpl.getFloorFeeSummary(tmpQueryStatisticsDto);
8388
if (!ListUtil.isNull(floorDatas)) {
8489
datas.add(floorDatas.get(0));
8590
}

0 commit comments

Comments
 (0)