Explorar o código

部门新增字段显示标识

anderx %!s(int64=3) %!d(string=hai) anos
pai
achega
1ad8c227ac

+ 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}