From cddcf22a61489ee9c2dfee169d817ccd66f95430 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 03 九月 2021 02:23:43 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 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 d1e66fb..e02e6bc
--- a/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeAttrServiceDaoImplMapper.xml
@@ -76,8 +76,10 @@
     <!-- 鏌ヨ璐圭敤灞炴�т俊鎭� add by wuxw 2018-07-03 -->
     <select id="getFeeAttrInfo" parameterType="Map" resultType="Map">
         select t.attr_id,t.attr_id attrId,t.spec_cd,t.spec_cd specCd,t.status_cd,t.status_cd
-        statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId,t.value
+        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.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}
@@ -97,6 +99,12 @@
         <if test="feeId !=null and feeId != ''">
             and t.fee_id= #{feeId}
         </if>
+        <if test="feeIds !=null">
+            and t.fee_id in
+            <foreach collection="feeIds" item="item" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="value !=null and value != ''">
             and t.value= #{value}
         </if>

--
Gitblit v1.8.0