ソースを参照

优化采购sql

mrzcc 6 年 前
親
コミット
814e5f8940
共有1 個のファイルを変更した、3 個の追加 と 0 個の削除を含む
  1. 3 0
      java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml

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

@@ -156,6 +156,9 @@
         <if test="applyOrderId !=null and applyOrderId != ''">
             and t.apply_order_id= #{applyOrderId}
         </if>
+        <if test="userName !=null and userName != ''">
+            and t.user_name like concat('%',#{userName},'%')
+        </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>