|
|
@ -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>
|
|
|
|