| | |
| | | <!--导出数据--> |
| | | <select id="export" resultType="org.springblade.modules.house.excel.HouseHoldExcel"> |
| | | select |
| | | jh.house_code houseCode, |
| | | jh.name,jh.phone_number phoneNumber,jh.role_type roleType,jh.relationship relationship, |
| | | jh.is_primary_contact isPrimaryContact,jh.residential_status residentialStatus,jh.gender, |
| | | jh.birthday,jh.id_card idCard,jh.hkmt_pass hkmtPass,jh.passport,jh.ethnicity,jh.education, |
| | |
| | | |
| | | |
| | | <select id="statistics" resultType="java.lang.Integer"> |
| | | |
| | | SELECT |
| | | count(1) |
| | | FROM |
| | | jczz_grid_range jgr |
| | | LEFT JOIN jczz_grid jg ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_gridman jgm on jg.id = jgm.grid_id |
| | | LEFT JOIN jczz_household jh on jh.house_code=jgr.house_code |
| | | WHERE |
| | | jg.is_deleted = 0 |
| | | and jh.confirm_flag = 0 |
| | | AND jg.user_id = #{userId} |
| | | |
| | | AND jgm.user_id = #{userId} |
| | | </select> |
| | | |
| | | <!--查询物业--> |