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/ApplyRoomDiscountServiceDaoImplMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/fee/ApplyRoomDiscountServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/ApplyRoomDiscountServiceDaoImplMapper.xml
index 1004073..06112cc 100755
--- a/java110-db/src/main/resources/mapper/fee/ApplyRoomDiscountServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/ApplyRoomDiscountServiceDaoImplMapper.xml
@@ -4,7 +4,6 @@
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="applyRoomDiscountServiceDaoImpl">
 
-
     <!-- 淇濆瓨鎴垮眿鎶樻墸鐢宠淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveApplyRoomDiscountInfo" parameterType="Map">
         insert into apply_room_discount(
@@ -14,7 +13,6 @@
         #{communityId},#{discountId},#{inUse}
         )
     </insert>
-
 
     <!-- 鏌ヨ鎴垮眿鎶樻墸鐢宠淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getApplyRoomDiscountInfo" parameterType="Map" resultType="Map">
@@ -81,6 +79,9 @@
         </if>
         <if test="inUse !=null and inUse != ''">
             and t.in_use= #{inUse}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
         </if>
         order by t.create_time desc
         <if test="page != -1 and page != null ">
@@ -205,6 +206,9 @@
         <if test="inUse !=null and inUse != ''">
             , t.in_use= #{inUse}
         </if>
+        <if test="bId !=null and bId != ''">
+            , t.b_id= #{bId}
+        </if>
         where 1=1
         <if test="ardId !=null and ardId != ''">
             and t.ard_id= #{ardId}

--
Gitblit v1.8.0