浏览代码

验收单 模糊搜索

zhangc 5 月之前
父节点
当前提交
d0c6795904
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/acceptancesheet/AcceptanceBasicInfoMapper.xml

+ 1 - 1
src/main/resources/mapper/acceptancesheet/AcceptanceBasicInfoMapper.xml

@@ -155,7 +155,7 @@
                 AND t2.acceptance_status = #{status}
             </if>
             <if test="searchNumber !=null and searchNumber !='' ">
-                AND t2.business_number like CONCAT('%',#{searchNumber},'%')
+                AND ( t2.business_number like CONCAT('%',#{searchNumber},'%') or t2.acceptance_number like CONCAT('%',#{searchNumber},'%') )
             </if>
         </where>
         GROUP BY t1.busness_key,t2.gmt_create