Просмотр исходного кода

部门新增字段显示标识

anderx лет назад: 3
Родитель
Сommit
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}