ソースを参照

部门新增字段显示标识

anderx 3 年 前
コミット
1ad8c227ac
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  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}