Bläddra i källkod

部门新增字段显示标识

anderx 3 år sedan
förälder
incheckning
1ad8c227ac
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

+ 2 - 2
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -1319,7 +1319,7 @@
       and b.contract_no = #{contractNo}
     </if>
     <if test="userName !=null">
-      and e.buyer_name like concat( #{userName},'%')
+      and e.buyer_name like concat('%', #{userName},'%')
     </if>
     <if test="declarationBatch !=null">
       and a.declaration_batch = #{declarationBatch}
@@ -1424,7 +1424,7 @@
       and b.contract_no = #{contractNo}
     </if>
     <if test="userName !=null">
-      and e.buyer_name like concat( #{userName},'%')
+      and e.buyer_name like concat('%', #{userName},'%')
     </if>
     <if test="declarationBatch !=null">
       and a.declaration_batch = #{declarationBatch}