| | |
| | | ums_admin_role_relation t1 |
| | | left JOIN ums_dispose_record t2 ON t1.role_id = t2.handler_role_id |
| | | left JOIN ums_base_case t3 ON t2.base_case_id=t3.id |
| | | inner join ums_sccg_region t5 on t5.id = t3.community_id |
| | | left join ums_sccg_region t5 on t5.id = t3.community_id |
| | | <where> |
| | | t1.admin_id = #{id} and t3.`code` is not null |
| | | AND t2.state = 0 |
| | |
| | | order by create_time desc |
| | | LIMIT #{pageIndex},#{pageSize}) nt |
| | | left JOIN ums_image_resources t4 ON nt.caseId=t4.belong_to_id |
| | | order by create_time desc |
| | | </select> |
| | | <select id="selectMyBackListTotal" resultType="java.lang.Long"> |
| | | select count( distinct id) from ( |
| | |
| | | ums_admin_role_relation t1 |
| | | left JOIN ums_dispose_record t2 ON t1.role_id = t2.handler_role_id |
| | | left JOIN ums_base_case t3 ON t2.base_case_id=t3.id |
| | | inner join ums_sccg_region t5 on t5.id = t3.community_id |
| | | left join ums_sccg_region t5 on t5.id = t3.community_id |
| | | <where> |
| | | t1.admin_id = #{id} and t3.`code` is not null |
| | | AND t2.state = 0 |
| | |
| | | FROM |
| | | ums_dispose_record t2 |
| | | LEFT JOIN ums_base_case t3 ON t2.base_case_id = t3.id |
| | | inner join ums_sccg_region t5 on t5.id = t3.community_id |
| | | left join ums_sccg_region t5 on t5.id = t3.community_id |
| | | <where> |
| | | t2.handler_id = #{id} |
| | | AND t2.state = 0 |