| | |
| | | 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> |
| | | |
| | | |
| | | |
| | | |