| | |
| | | @Autowired |
| | | IGuideEvolveService iGuideEvolveService; |
| | | |
| | | //分类 |
| | | @Autowired |
| | | IClassifyAdministrationService iClassifyAdministrationService; |
| | | |
| | | @Autowired |
| | | ITransactionEventService iTransactionEventService; |
| | | |
| | | @Autowired |
| | | HomeStatisticsService homeStatisticsService; |
| | |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | |
| | | @Autowired |
| | | IAreaCodeService iAreaCodeService; |
| | | |
| | | |
| | | @ApiOperation("首页统计不同状态工单数") |
| | |
| | | { |
| | | PieChartAll pieChartAll=new PieChartAll(); |
| | | pieChartAll.setWorkOrderNum(iGuideRepairOrderService.countStatisticsNum("",null,null,null,null,null)+""); |
| | | pieChartAll.setFingerpostNum(iTransactionEventService.countStatisticsNum(null)+""); |
| | | pieChartAll.setFingerpostNum(homeStatisticsService.countStatisticsNum(null)+""); |
| | | List<PieChart> workOrderList=new ArrayList<>(); |
| | | List<PieChart> fingerpostList=new ArrayList<>(); |
| | | List<ClassifyAdministration> oneIds=iClassifyAdministrationService.getClassify(null,"1"); |
| | | List<ClassifyAdministration> oneIds=homeStatisticsService.getClassify(null,"1"); |
| | | for (ClassifyAdministration oneClassify:oneIds) |
| | | { |
| | | PieChart workOrder=new PieChart(); |
| | | PieChart fingerpost=new PieChart(); |
| | | workOrder.setName(oneClassify.getClassifyName()); |
| | | fingerpost.setName(oneClassify.getClassifyName()); |
| | | List<ClassifyAdministration> twoIds = iClassifyAdministrationService.getClassify(oneClassify.getId()+"",null); |
| | | List<ClassifyAdministration> twoIds = homeStatisticsService.getClassify(oneClassify.getId()+"",null); |
| | | |
| | | List clasIds=new ArrayList(); |
| | | |
| | |
| | | if(clasIds.size()>0) |
| | | { |
| | | workOrderNum=iGuideRepairOrderService.countStatisticsNum(null,null,null,null,null,clasIds); |
| | | fingerpostNum=iTransactionEventService.countStatisticsNum(clasIds); |
| | | fingerpostNum=homeStatisticsService.countStatisticsNum(clasIds); |
| | | } |
| | | workOrder.setNum(workOrderNum+""); |
| | | fingerpost.setNum(fingerpostNum+""); |
| | |
| | | |
| | | |
| | | |
| | | @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); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |