Pārlūkot izejas kodu

关键字搜索子订单

chao 3 gadi atpakaļ
vecāks
revīzija
707c11305a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/main/resources/mapper/ReceiptMapper.xml

+ 1 - 1
src/main/resources/mapper/ReceiptMapper.xml

@@ -683,7 +683,7 @@
             AND s.name LIKE CONCAT('%',#{shopName},'%')
         </if>
         <if test="userName != null and userName != ''">
-            AND u.userName LIKE CONCAT('%',#{userName},'%')
+            AND (u.userName LIKE CONCAT('%',#{userName},'%') OR u.name LIKE CONCAT('%',#{userName},'%') OR s.name LIKE CONCAT('%',#{userName},'%'))
         </if>
         <if test="confirmedType == 2">
             AND cdr.receiptStatus = 2