Browse Source

客户搜索支持模糊

mssql
Yen 3 years ago
parent
commit
0f87f11db9
  1. 4
      src/main/resources/mapper/bms/BmsSupplierMapper.xml

4
src/main/resources/mapper/bms/BmsSupplierMapper.xml

@ -81,8 +81,8 @@
<if test="query.regionSecond != null"> and `bms_supplier`.`region_second` = #{query.regionSecond}</if>
<if test="query.regionThird != null"> and `bms_supplier`.`region_third` = #{query.regionThird}</if>
<if test="query.address != null and query.address != ''"> and `bms_supplier`.`address` = #{query.address}</if>
<if test="query.name != null and query.name != ''"> and `bms_supplier`.`name` = #{query.name}</if>
<if test="query.code != null and query.code != ''"> and `bms_supplier`.`code` = #{query.code}</if>
<if test="query.name != null and query.name != ''"> and `bms_supplier`.`name` like concat('%',#{query.name},'%') </if>
<if test="query.code != null and query.code != ''"> and `bms_supplier`.`code` like concat('%',#{query.code},'%') </if>
<if test="query.pid != null"> and `bms_supplier`.`pid` = #{query.pid}</if>
<if test="query.parentCode != null and query.parentCode != ''"> and `bms_supplier`.`parent_code` = #{query.parentCode}</if>
<if test="query.stopFlag != null"> and `bms_supplier`.`stop_flag` = #{query.stopFlag}</if>

Loading…
Cancel
Save