mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 18:26:38 +08:00
debugger
This commit is contained in:
parent
a57cbe705a
commit
3005334e56
@ -8,6 +8,9 @@
|
||||
<select id="findAllByCondition" resultMap="ProductSearchTagEntity">
|
||||
select tag_code,brand_name,tag_name from t_royalcanin_productsearchtag WHERE
|
||||
is_delete = 0
|
||||
<if test="petType != null and petType != ''">
|
||||
AND pet_type = #{petType}
|
||||
</if>
|
||||
<if test="brandNameList != null and brandNameList.size > 0">
|
||||
AND brand_name in
|
||||
<foreach collection="brandNameList" open="(" close=")" separator="," item="brandName">
|
||||
@ -21,15 +24,18 @@
|
||||
#{tagName}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="tagStatus != null and tagStatus == 1">
|
||||
<if test="tagStatus != null and tagStatus == 1 and tagNameList != null and tagNameList.size > 0">
|
||||
OR brand_name in ( '专区' ) and tag_name not like '%湿粮%' AND pet_type = #{petType}
|
||||
</if>
|
||||
<if test="tagStatus != null and tagStatus == 2 and tagNameList != null and tagNameList.size > 0">
|
||||
OR brand_name in ( '专区' ) and tag_name like '%湿粮%' AND pet_type = #{petType}
|
||||
</if>
|
||||
<if test="tagStatus != null and tagStatus == 1 and tagNameList.size == 0">
|
||||
AND brand_name in ( '专区' ) and tag_name not like '%湿粮%'
|
||||
</if>
|
||||
<if test="tagStatus != null and tagStatus == 2">
|
||||
<if test="tagStatus != null and tagStatus == 2 and tagNameList.size == 0">
|
||||
AND brand_name in ( '专区' ) and tag_name like '%湿粮%'
|
||||
</if>
|
||||
<if test="petType != null and petType != ''">
|
||||
AND pet_type = #{petType}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteAllProductSearchTag">
|
||||
|
Loading…
Reference in New Issue
Block a user