|
|
@ -91,9 +91,9 @@ |
|
|
|
left join (select count(1) as count_addr,supplier_id from bms_supplier_address where del_flag = 0 group by supplier_id) supplier_addr |
|
|
|
on supplier_addr.supplier_id = bms_supplier.id |
|
|
|
<where> |
|
|
|
<!-- <if test="query.countAddr != null"> and `supplier_addr`.`count_addr` = #{query.countAddr} </if>--> |
|
|
|
<!-- <if test="query.countAddrFlag != null and query.countAddrFlag=0 "> and `supplier_addr`.`count_addr` is null </if>--> |
|
|
|
<!-- <if test="query.countAddrFlag != null and query.countAddrFlag=1 "> and `supplier_addr`.`count_addr` is not null </if>--> |
|
|
|
<if test="query.countAddr != null"> and `supplier_addr`.`count_addr` = #{query.countAddr} </if> |
|
|
|
<if test="query.countAddrFlag != null and query.countAddrFlag==0 "> and `supplier_addr`.`count_addr` is null </if> |
|
|
|
<if test="query.countAddrFlag != null and query.countAddrFlag==1 "> and `supplier_addr`.`count_addr` =#{query.countAddrFlag} </if> |
|
|
|
<if test="query.id != null"> and `bms_supplier`.`id` = #{query.id}</if> |
|
|
|
<if test="query.regionFirst != null"> and `bms_supplier`.`region_first` = #{query.regionFirst}</if> |
|
|
|
<if test="query.regionSecond != null"> and `bms_supplier`.`region_second` = #{query.regionSecond}</if> |
|
|
|