fix(移动端): 分类商品

修复商品下架bug
master
wayn 4 years ago
parent a7a9bfcb21
commit 61a5f9b619

@ -42,7 +42,7 @@
<include refid="selectGoodsVo"/>
<where>
del_flag = 0
and isOnSale = 1
and is_on_sale = 1
<if test="goods.id != null">
AND id like concat('%', #{goods.id}, '%')
</if>
@ -66,7 +66,7 @@
<include refid="selectGoodsVo"/>
<where>
del_flag = 0
and isOnSale = 1
and is_on_sale = 1
<if test="cateList != null and cateList.size() > 0" >
and category_id in
<foreach collection="cateList" item="listItem" open="(" close=")" separator="," >
@ -81,7 +81,7 @@
<include refid="selectGoodsVo"/>
<where>
del_flag = 0
and isOnSale = 1
and is_on_sale = 1
<if test="searchVO.keyword != null and searchVO.keyword != ''">
AND (name like concat('%', #{searchVO.keyword}, '%') OR keywords like concat('%', #{searchVO.keyword}, '%'))
</if>

@ -60,6 +60,7 @@
#{listItem}
</foreach>
</if>
order by create_time desc
</where>
</select>

Loading…
Cancel
Save