|
|
@ -87,7 +87,7 @@ |
|
|
|
<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> |
|
|
|
<if test="query.belong != null"> and `bms_supplier`.`belong` = #{query.belong}</if> |
|
|
|
<if test="query.belong != null and query.belong != ''"> and `bms_supplier`.`belong` = #{query.belong}</if> |
|
|
|
<if test="query.createTime != null"> and `bms_supplier`.`create_time` = #{query.createTime}</if> |
|
|
|
<if test="query.createBy != null and query.createBy != ''"> and `bms_supplier`.`create_by` = #{query.createBy}</if> |
|
|
|
<if test="query.updateTime != null"> and `bms_supplier`.`update_time` = #{query.updateTime}</if> |
|
|
@ -111,10 +111,22 @@ |
|
|
|
#{selectId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test='query.isRegionNull != null and query.isRegionNull == "1"'> |
|
|
|
and (`bms_supplier`.`region_last` is null or TRIM(`bms_supplier`.`region_last`) = '' |
|
|
|
or `bms_supplier`.`region2_last` is null or TRIM(`bms_supplier`.`region2_last`) = '' |
|
|
|
) |
|
|
|
<if test="query.region2Ids!=null and query.region2Ids.size > 0"> |
|
|
|
and bms_supplier.region2_last in |
|
|
|
<foreach collection="query.region2Ids" item ="selectId" index="i" open="(" close=")" separator=","> |
|
|
|
#{selectId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test='query.isRegionNull != null '> |
|
|
|
<if test=' query.isRegionNull == "1"'> |
|
|
|
and (`bms_supplier`.`region_last` is null or TRIM(`bms_supplier`.`region_last`) = '' |
|
|
|
or `bms_supplier`.`region2_last` is null or TRIM(`bms_supplier`.`region2_last`) = '' |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test=' query.isRegionNull != "1"'> |
|
|
|
and `bms_supplier`.`region_last` is not null and `bms_supplier`.`region2_last` is not null |
|
|
|
and TRIM(`bms_supplier`.`region_last`) != '' and TRIM(`bms_supplier`.`region2_last`) != '' |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY `bms_supplier`.`update_time` DESC |
|
|
|