| | |
| | | <foreach collection="aoiCodeList" item="item" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | or |
| | | or |
| | | jp.aoi_code in |
| | | <foreach collection="aoiCodeList" item="item" separator="," open="(" close=")"> |
| | | #{item} |
| | |
| | | </if> |
| | | </if> |
| | | <!-- 其他 --> |
| | | <if test="vo.roleType ==null"> |
| | | <if test="vo.roleType ==null and vo.roleName !='wgy' "> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and ( |
| | |
| | | </choose> |
| | | </if> |
| | | <!-- 网格员 --> |
| | | <if test="vo.roleName =='wgy'"> |
| | | <if test="vo.roleName =='wgy' "> |
| | | <choose> |
| | | <when test="gridCodeList !=null and gridCodeList.size()>0"> |
| | | and ( |
| | |
| | | jczz_task_report_for_repairs jtr |
| | | LEFT JOIN jczz_house jh ON jh.house_code = jtr.address_code |
| | | LEFT JOIN jczz_place jp ON jtr.address_code = jp.house_code |
| | | LEFT JOIN jczz_grid jg on (jh.grid_code = jg.grid_code or jp.grid_code = jg.grid_code ) |
| | | <where> |
| | | and jtr.is_deleted = 0 |
| | | and jtr.confirm_flag = 1 |
| | | <if test="neiCode !=null and neiCode !=''"> |
| | | and jg.community_code = #{neiCode} |
| | | </if> |
| | | |
| | | <if test="userId != null and roleName == 'wgy'" > |
| | | <if test="userId != null and roleName == 'wgy'"> |
| | | AND ( |
| | | jp.grid_code IN ( |
| | | SELECT |
| | |
| | | |
| | | <!--更新状态-临时接口--> |
| | | <update id="updateView"> |
| | | update jczz_task_report_for_repairs set view_type = 1 |
| | | update jczz_task_report_for_repairs |
| | | set view_type = 1 |
| | | </update> |
| | | |
| | | |