From 0c1ce2dd5f17e04ff0665847387b6f66de60e854 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sat, 04 Nov 2023 23:04:16 +0800
Subject: [PATCH] 住户标签,房屋人员信息查询,删除接口新增调整
---
src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml b/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
index 792e251..7284881 100644
--- a/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
+++ b/src/main/java/org/springblade/modules/house/mapper/HouseholdMapper.xml
@@ -44,6 +44,7 @@
<collection property="householdLabelList" javaType="java.util.List"
ofType="org.springblade.modules.house.vo.HouseholdLabelVO" autoMapping="true">
<id property="id" column="cid"/>
+ <result property="remark" column="cremark"/>
</collection>
</resultMap>
@@ -64,12 +65,23 @@
<select id="getHouseholdListByCode" resultMap="householdAndLabelMap" >
select
jh.*,
- jhl.id as cid,jhl.*
+ jhl.id as cid,jhl.*,jhl.remark as cremark
from jczz_household jh
left join jczz_household_label jhl on jh.id = jhl.household_id
- where 1=1
+ where 1=1 and is_deleted = 0
and house_code = #{code}
</select>
+ <!--查询房屋集合信息-按id-->
+ <select id="getHouseholdListById" resultMap="householdAndLabelMap" >
+ select
+ jh.*,
+ jhl.id as cid,jhl.*,jhl.remark as cremark
+ from jczz_household jh
+ left join jczz_household_label jhl on jh.id = jhl.household_id
+ where 1=1 and is_deleted = 0
+ and jh.id = #{household.id}
+ </select>
+
</mapper>
--
Gitblit v1.9.3