| | |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="houseTenantResultMap" type="org.springblade.modules.house.entity.HouseTenantEntity"> |
| | | <result column="id" property="id"/> |
| | | <result column="housing_rental_id" property="housingRentalId"/> |
| | | <result column="name" property="name"/> |
| | | <result column="phone" property="phone"/> |
| | | <result column="id_card" property="idCard"/> |
| | | <result column="domicile" property="domicile"/> |
| | | <result column="work_unit" property="workUnit"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | <result property="id" column="id" /> |
| | | <result property="housingRentalId" column="housing_rental_id" /> |
| | | <result property="name" column="name" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="idCard" column="id_card" /> |
| | | <result property="domicile" column="domicile" /> |
| | | <result property="workUnit" column="work_unit" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="isDeleted" column="is_deleted" /> |
| | | <result property="gender" column="gender" /> |
| | | <result property="ethnicity" column="ethnicity" /> |
| | | <result property="createTime" column="create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHouseTenant"> |
| | |
| | | domicile, |
| | | work_unit, |
| | | remark, |
| | | is_deleted |
| | | is_deleted, |
| | | gender, |
| | | ethnicity, |
| | | create_time |
| | | from |
| | | jczz_house_tenant |
| | | </sql> |
| | |
| | | <if test="houseTenant.workUnit != null and workUnit != ''"> and work_unit = #{houseTenant.workUnit}</if> |
| | | <if test="houseTenant.remark != null and remark != ''"> and remark = #{houseTenant.remark}</if> |
| | | <if test="houseTenant.isDeleted != null "> and is_deleted = #{houseTenant.isDeleted}</if> |
| | | <if test="houseTenant.gender != null "> and gender = #{houseTenant.gender}</if> |
| | | <if test="houseTenant.ethnicity != null "> and ethnicity = #{houseTenant.ethnicity}</if> |
| | | <if test="houseTenant.createTime != null "> and create_time = #{houseTenant.createTime}</if> |
| | | </where> |
| | | </select> |
| | | |