From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize
---
java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
index edf8a6f..0aca801 100755
--- a/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerAttrServiceDaoImplMapper.xml
@@ -97,8 +97,8 @@
v.value_name valueName,
s.list_show listShow
from building_owner_attr t
- left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name = 'building_owner_attr'
- left join attr_value v on t.`value` = v.`value` and t.spec_cd = v.spec_cd and v.status_cd = '0'
+ left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and t.spec_cd = s.spec_cd and s.table_name = 'building_owner_attr'
+ left join attr_value v on t.`value` = v.`value` and s.spec_id = v.spec_id and v.status_cd = '0'
where 1 =1
<if test="attrId !=null and attrId != ''">
and t.attr_id= #{attrId}
@@ -151,9 +151,7 @@
<if test="communityId !=null and communityId != ''">
, t.community_id= #{communityId}
</if>
- <if test="value !=null and value != ''">
, t.value= #{value}
- </if>
<if test="memberId !=null and memberId != ''">
, t.member_id= #{memberId}
</if>
--
Gitblit v1.8.0