fix(移动端): 分类商品

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

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

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

Loading…
Cancel
Save