| | |
| | | <if test="vo.confirmFlag != null"> |
| | | AND jtrfr.confirm_flag = #{vo.confirmFlag} |
| | | </if> |
| | | <if test="vo.status != null"> |
| | | AND jtrfr.status = #{vo.status} |
| | | </if> |
| | | <if test="vo.viewType != null"> |
| | | AND jtrfr.view_type = #{vo.viewType} |
| | | </if> |
| | | <if test="vo.roleName!=null and vo.roleName!=''"> |
| | | <if test="vo.roleName=='网格员'"> |
| | | <choose> |
| | |
| | | SELECT |
| | | count(1) |
| | | FROM |
| | | jczz_grid_range jgr |
| | | LEFT JOIN jczz_grid jg ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_task_report_for_repairs jtr on jtr.address_code=jgr.house_code |
| | | jczz_gridman jgm |
| | | LEFT JOIN jczz_grid jg ON jgm.grid_id = jg.id |
| | | LEFT JOIN jczz_grid_range jgr ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_task_report_for_repairs jtr ON jgr.house_code = jtr.address_code |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jtr.address_code |
| | | WHERE |
| | | jg.is_deleted = 0 |
| | | and jtr.confirm_flag = 1 |
| | | AND jg.user_id = #{userId} |
| | | AND jgm.user_id = #{userId} |
| | | |
| | | </select> |
| | | |
| | | <!--更新状态-临时接口--> |
| | | <update id="updateView"> |
| | | update jczz_task_report_for_repairs set view_type = 1 |
| | | </update> |
| | | |
| | | |
| | | </mapper> |