From d87fc2aa632ff4dedade3a18fa1a860554189042 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Wed, 20 Mar 2024 16:45:31 +0800
Subject: [PATCH] 租客性别+年龄+时间字段
---
src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml
index 74127e4..ff7e231 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseTenantMapper.xml
@@ -4,15 +4,18 @@
<!-- 通用查询映射结果 -->
<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">
@@ -25,7 +28,10 @@
domicile,
work_unit,
remark,
- is_deleted
+ is_deleted,
+ gender,
+ ethnicity,
+ create_time
from
jczz_house_tenant
</sql>
@@ -43,6 +49,9 @@
<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>
--
Gitblit v1.9.3