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/fee/FeeAttrServiceDaoImplMapper.xml |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index a14628d..5f092f1
--- a/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml
@@ -79,7 +79,7 @@
         statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId,t.value,
         td.name specCdName
         from pay_fee_attrs t
-        left join t_dict td on t.spec_cd = td.table_columns and td.table_name = 'pay_fee_attrs'
+        left join t_dict td on t.spec_cd = td.status_cd and td.table_name = 'pay_fee_attrs' and td.table_columns = 'spec_cd'
         where 1 =1
         <if test="attrId !=null and attrId != ''">
             and t.attr_id= #{attrId}
@@ -121,15 +121,6 @@
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
         </if>
-        <if test="specCd !=null and specCd != ''">
-            , t.spec_cd= #{specCd}
-        </if>
-        <if test="communityId !=null and communityId != ''">
-            , t.community_id= #{communityId}
-        </if>
-        <if test="feeId !=null and feeId != ''">
-            , t.fee_id= #{feeId}
-        </if>
         <if test="value !=null and value != ''">
             , t.value= #{value}
         </if>
@@ -140,6 +131,15 @@
         <if test="bId !=null and bId != ''">
             and t.b_id= #{bId}
         </if>
+        <if test="specCd !=null and specCd != ''">
+            and t.spec_cd= #{specCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="feeId !=null and feeId != ''">
+            and t.fee_id= #{feeId}
+        </if>
 
     </update>
 

--
Gitblit v1.8.0