商品审核BUG修改
This commit is contained in:
parent
15bd0c2292
commit
c903ca5e35
@ -57,11 +57,16 @@ public class GoodsonlineServiceImpl extends DefaultBaseService implements IGoods
|
||||
params.put("goodsTypes", Arrays.asList(params.get("goodsType").toString().split(",")));
|
||||
params.put("goodsType", "");
|
||||
}
|
||||
if(params.get("goodsFlags") != null) {
|
||||
params.put("goodsFlags", Arrays.asList(params.get("goodsFlags").toString().split(",")));
|
||||
params.put("goodsFlag", "");
|
||||
}
|
||||
List<GoodsSimpleDTO> goodsDTOs = new ArrayList<>();
|
||||
if (params.get("goodsFlag") != null && params.get("goodsFlag").toString().equals("置顶")) {
|
||||
PageHelper.startPage(1, 1);
|
||||
goodsDTOs = goodsonlineDao.listPageAll(page.getParams());
|
||||
if(goodsDTOs.size() < 1) {
|
||||
PageHelper.startPage(1, 1);
|
||||
params.put("goodsFlag", "特价");
|
||||
goodsDTOs = goodsonlineDao.listPageAll(page.getParams());
|
||||
}
|
||||
|
@ -227,8 +227,14 @@
|
||||
<if test="goodsFlag != null and goodsFlag != ''">
|
||||
AND t3.goods_flag LIKE CONCAT('%', #{goodsFlag}, '%')
|
||||
</if>
|
||||
<if test="goodsFlags != null and goodsFlags.size > 0">
|
||||
AND
|
||||
<foreach collection="goodsFlags" index="index" open="(" separator=" AND " close=")">
|
||||
t3.goods_flag LIKE CONCAT('%', #{goodsFlags[${index}]}, '%')
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="goodsFlagIsNull != null and goodsFlagIsNull != '' ">
|
||||
AND t3.goods_flag = ''
|
||||
AND t3.goods_flag NOT LIKE CONCAT('%', '特价', '%')
|
||||
</if>
|
||||
<if test="notUserId != null and notUserId != ''">
|
||||
AND t1.creator != #{notUserId}
|
||||
|
Loading…
Reference in New Issue
Block a user