| | |
| | | </select> |
| | | |
| | | <!--导出数据--> |
| | | <select id="export" resultType="org.springblade.modules.house.excel.HouseHoldExcel"> |
| | | <select id="export" resultType="org.springblade.modules.house.excel.ImportHouseholdExcel"> |
| | | select |
| | | jh.house_code houseCode, |
| | | jh.name,jh.phone_number phoneNumber,jh.role_type roleType,jh.relationship relationship, |
| | |
| | | WHERE |
| | | jgm.user_id = #{userId} |
| | | AND jg.is_deleted = 0 |
| | | ) |
| | | </if> |
| | | |
| | | <if test="userId != null and roleType == '3'"> |
| | | AND jda.address_code IN (SELECT |
| | | jda.address_code |
| | | FROM |
| | | jczz_doorplate_address jda |
| | | LEFT JOIN jczz_community jc ON jc.CODE = jda.nei_code |
| | | WHERE |
| | | jc.res_police_user_id like concat('%',#{userId},'%')) |
| | | ) |
| | | </if> |
| | | GROUP BY age |