入参调整
This commit is contained in:
parent
99adc88b72
commit
26cc6ec0d7
|
@ -85,10 +85,10 @@
|
||||||
and a.title like concat('%',#{params.title},'%')
|
and a.title like concat('%',#{params.title},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.classifyId!=null">
|
<if test="params.classifyId!=null">
|
||||||
and a.classifyId = #{classifyId}
|
and a.classifyId = #{params.classifyId}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.type!=null">
|
<if test="params.type!=null">
|
||||||
and a.type = #{params.title}
|
and a.type = #{params.type}
|
||||||
</if>
|
</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,
|
||||||
|
@ -103,12 +103,12 @@
|
||||||
and a.title like concat('%',#{params.title},'%')
|
and a.title like concat('%',#{params.title},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.classifyId!=null">
|
<if test="params.classifyId!=null">
|
||||||
and a.classifyId = #{classifyId}
|
and a.classifyId = #{params.classifyId}
|
||||||
</if>
|
</if>
|
||||||
<if test="params.type!=null and type ==1">
|
<if test="params.type!=null and params.type ==1">
|
||||||
and 1=1
|
and 1=1
|
||||||
</if>
|
</if>
|
||||||
<if test="params.type!=null and type !=1">
|
<if test="params.type!=null and params.type !=1">
|
||||||
and 1=2
|
and 1=2
|
||||||
</if>
|
</if>
|
||||||
order by sales desc,id asc
|
order by sales desc,id asc
|
||||||
|
|
Loading…
Reference in New Issue