修改查询条件
This commit is contained in:
parent
5f3c0c4f55
commit
c66ba90caa
|
@ -69,6 +69,9 @@
|
||||||
<if test="params.city!=null and params.city!=''">
|
<if test="params.city!=null and params.city!=''">
|
||||||
and (a.city like concat('%',#{params.city},'%') or a.city='不限')
|
and (a.city like concat('%',#{params.city},'%') or a.city='不限')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.title!=null and params.title!=''">
|
||||||
|
and a.title like concat('%',#{params.title},'%')
|
||||||
|
</if>
|
||||||
union all
|
union all
|
||||||
select massage_type_id as id,title,classify_id as type,b.value as type_name,old_price,price,massage_img,jianjie,content_img,add_num,sales,labels,'项目' as flag,1 as is_can_coupon,1 as is_can_vip
|
select massage_type_id as id,title,classify_id as type,b.value as type_name,old_price,price,massage_img,jianjie,content_img,add_num,sales,labels,'项目' as flag,1 as is_can_coupon,1 as is_can_vip
|
||||||
from massage_type a
|
from massage_type a
|
||||||
|
@ -77,6 +80,9 @@
|
||||||
<if test="params.city!=null and params.city!=''">
|
<if test="params.city!=null and params.city!=''">
|
||||||
and (a.city like concat('%',#{params.city},'%') or a.city='不限')
|
and (a.city like concat('%',#{params.city},'%') or a.city='不限')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.title!=null and params.title!=''">
|
||||||
|
and a.title like concat('%',#{params.title},'%')
|
||||||
|
</if>
|
||||||
order by sales desc,id asc
|
order by sales desc,id asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue