| | |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | |
| | | @Autowired |
| | | IAreaCodeService iAreaCodeService; |
| | | |
| | | |
| | | @ApiOperation("首页统计不同状态工单数") |
| | | @GetMapping("/getWorkOrder") |
| | | public ResultData getWorkOrder() |
| | |
| | | |
| | | |
| | | |
| | | @ApiOperation("导办工单按区域统计") |
| | | @GetMapping("/getRangeStatistics") |
| | | public TableDataInfo getRangeStatistics() |
| | | { |
| | | List<AreaCode2022> code2022s=iAreaCodeService.getListByPCode("510400000000"); |
| | | |
| | | List<RangeStatistics> rangeStatistics=new ArrayList<>(); |
| | | |
| | | for (AreaCode2022 bean:code2022s) |
| | | { |
| | | RangeStatistics range=new RangeStatistics(); |
| | | range.setName(bean.getName()); |
| | | |
| | | List<String> ids; |
| | | |
| | | if(bean.getCode()==510401000000L) |
| | | { |
| | | ids=homeStatisticsService.countId(""); |
| | | } |
| | | else |
| | | { |
| | | ids=homeStatisticsService.countId(bean.getCode()+""); |
| | | } |
| | | int num=0; |
| | | if(ids!=null&&ids.size()>0) |
| | | { |
| | | num=iGuideRepairOrderService.countStatisticsNum(null,ids,null,null,null,null); |
| | | } |
| | | range.setNum(num+""); |
| | | rangeStatistics.add(range); |
| | | } |
| | | |
| | | |
| | | return getDataTable(rangeStatistics); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |