Bladeren bron

优化采购sql

mrzcc 6 jaren geleden
bovenliggende
commit
814e5f8940
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  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>