浏览代码

优化代码

wuxw 2 年之前
父节点
当前提交
b36577655b

+ 1 - 1
java110-db/src/main/resources/mapper/fee/FeeDetailServiceDaoImplMapper.xml

@@ -212,7 +212,7 @@
         <if test="cashierName !=null and cashierName != ''">
             and t.cashier_name= #{cashierName}
         </if>
-        order by pf.payer_obj_id,  t.end_time desc
+        order by pf.payer_obj_id,  t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
         </if>

+ 2 - 8
java110-db/src/main/resources/mapper/store/PurchaseApplyDetailServiceDaoImplMapper.xml

@@ -134,13 +134,10 @@
         <if test="resOrderType !=null and resOrderType != ''">
             and pa.res_order_type= #{resOrderType}
         </if>
-        <if test="userId !=null and userId != ''">
-            and pa.user_id= #{userId}
-        </if>
         <if test="createUserId !=null and createUserId != ''">
             and pa.create_user_id= #{createUserId}
         </if>
-        <if test="userName !=null and userName != ''">
+        <if test="createUserName !=null and createUserName != ''">
             and pa.user_name like '%${userName}%'
         </if>
         <if test="description !=null and description != ''">
@@ -283,13 +280,10 @@
         <if test="resOrderType !=null and resOrderType != ''">
             and pa.res_order_type= #{resOrderType}
         </if>
-        <if test="userId !=null and userId != ''">
-            and pa.user_id= #{userId}
-        </if>
         <if test="createUserId !=null and createUserId != ''">
             and pa.create_user_id= #{createUserId}
         </if>
-        <if test="userName !=null and userName != ''">
+        <if test="createUserName !=null and createUserName != ''">
             and pa.user_name like '%${userName}%'
         </if>
         <if test="description !=null and description != ''">

+ 9 - 0
java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml

@@ -268,6 +268,9 @@
         <if test="userId !=null and userId != ''">
             and t.user_id= #{userId}
         </if>
+        <if test="createUserId !=null and createUserId != ''">
+            and t.create_user_id= #{createUserId}
+        </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>
@@ -325,6 +328,9 @@
         <if test="endUserTel !=null and endUserTel != ''">
             and t.end_user_tel= #{endUserTel}
         </if>
+        <if test="createUserId !=null and createUserId != ''">
+            and t.create_user_id= #{createUserId}
+        </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>
@@ -471,6 +477,9 @@
         <if test="endUserTel !=null and endUserTel != ''">
             and t.end_user_tel= #{endUserTel}
         </if>
+        <if test="createUserId !=null and createUserId != ''">
+            and t.create_user_id= #{createUserId}
+        </if>
         <if test="userId !=null and userId != ''">
             and t.user_id= #{userId}
         </if>