| | |
| | | and t.community_id = #{communityId} |
| | | group by DATE_FORMAT(t.create_time,'%Y-%m-%d') |
| | | </select> |
| | | <select id="getCommunityInspectionAnalysis" parameterType="Map" resultType="Map"> |
| | | select DATE_FORMAT(t.create_time,'%Y-%m-%d') createTime,count(1) countValue |
| | | from inspection_task t |
| | | where 1=1 |
| | | and t.status_cd = '0' |
| | | and t.state in ('20200406','20200407') |
| | | and t.create_time > #{startTime} |
| | | and t.create_time < #{endTime} |
| | | and t.community_id = #{communityId} |
| | | group by DATE_FORMAT(t.create_time,'%Y-%m-%d') |
| | | </select> |
| | | <select id="getCommunityMaintainanceAnalysis" parameterType="Map" resultType="Map"> |
| | | select DATE_FORMAT(t.create_time,'%Y-%m-%d') createTime,count(1) countValue |
| | | from maintainance_task t |
| | | where 1=1 |
| | | and t.status_cd = '0' |
| | | and t.state in ('20200406','20200407') |
| | | and t.create_time > #{startTime} |
| | | and t.create_time < #{endTime} |
| | | and t.community_id = #{communityId} |
| | | group by DATE_FORMAT(t.create_time,'%Y-%m-%d') |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | @RequestMapping(value = "/getCommunityRepairCountAnalysis", method = RequestMethod.POST) |
| | | List<Map> getCommunityRepairCountAnalysis(@RequestBody Map info); |
| | | |
| | | @RequestMapping(value = "/getCommunityInspectionAnalysis", method = RequestMethod.POST) |
| | | List<Map> getCommunityInspectionAnalysis(@RequestBody Map info); |
| | | |
| | | @RequestMapping(value = "/getCommunityMaintainanceAnalysis", method = RequestMethod.POST) |
| | | List<Map> getCommunityMaintainanceAnalysis(@RequestBody Map info); |
| | | } |
| | |
| | | repairData = fillDate(repairData, startTime, endTime); |
| | | data.put("repairData", repairData); |
| | | |
| | | //todo 查询巡检数据数 |
| | | List<Map> inspectionData = baseDataStatisticsInnerServiceSMOImpl.getCommunityInspectionAnalysis(reqJson); |
| | | inspectionData = fillDate(inspectionData, startTime, endTime); |
| | | data.put("inspectionData", inspectionData); |
| | | |
| | | //todo 查询保养数据数 |
| | | List<Map> maintainanceData = baseDataStatisticsInnerServiceSMOImpl.getCommunityMaintainanceAnalysis(reqJson); |
| | | maintainanceData = fillDate(maintainanceData, startTime, endTime); |
| | | data.put("maintainanceData", maintainanceData); |
| | | |
| | | context.setResponseEntity(ResultVo.createResponseEntity(data)); |
| | | |
| | | } |
| | |
| | | List<Map> getCommunityFeeDetailCountAnalysis(Map info); |
| | | |
| | | List<Map> getCommunityRepairCountAnalysis(Map info); |
| | | |
| | | List<Map> getCommunityInspectionAnalysis(Map info); |
| | | |
| | | List<Map> getCommunityMaintainanceAnalysis(Map info); |
| | | } |
| | |
| | | List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getCommunityRepairCountAnalysis", info); |
| | | return infos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getCommunityInspectionAnalysis(Map info) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getCommunityInspectionAnalysis", info); |
| | | return infos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getCommunityMaintainanceAnalysis(Map info) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getCommunityMaintainanceAnalysis", info); |
| | | return infos; |
| | | } |
| | | } |
| | |
| | | List<Map> infos = baseDataStatisticsServiceDaoImpl.getCommunityRepairCountAnalysis(info); |
| | | return infos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getCommunityInspectionAnalysis(@RequestBody Map info) { |
| | | List<Map> infos = baseDataStatisticsServiceDaoImpl.getCommunityInspectionAnalysis(info); |
| | | return infos; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> getCommunityMaintainanceAnalysis(@RequestBody Map info) { |
| | | List<Map> infos = baseDataStatisticsServiceDaoImpl.getCommunityMaintainanceAnalysis(info); |
| | | return infos; |
| | | } |
| | | } |