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