|
|
|
@ -178,10 +178,16 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取是否推荐
|
|
|
|
Integer ishow = (Integer) gmap.get("g.is_recommend"); |
|
|
|
|
|
|
|
List nglist= new ArrayList(); |
|
|
|
List<GoodsListVo> goodsListVoList = goodsMapper.getGoodsVoList(gmap,orderkey,"DESC",limit,start); |
|
|
|
for(GoodsListVo gl:goodsListVoList){ |
|
|
|
Map glmap = new HashMap(); |
|
|
|
if(ishow!=null && gl.getIsRecommend()!=ishow){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
glmap.put("id",gl.getId()); |
|
|
|
glmap.put("createtime",gl.getCreatetime()); |
|
|
|
glmap.put("goods_islicode",gl.getGoods_islicode()); |
|
|
|
@ -191,7 +197,7 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
glmap.put("goods_type",gl.getGoods_type()); |
|
|
|
glmap.put("goods_status",gl.getGoods_status()); |
|
|
|
glmap.put("goods_detail_id",gl.getGoods_detail_id()); |
|
|
|
glmap.put("is_recommend",gl.getIs_recommend()); |
|
|
|
glmap.put("is_recommend",gl.getIsRecommend()); |
|
|
|
glmap.put("entrust_status",gl.getEntrust_status()); |
|
|
|
//处理其他操作
|
|
|
|
glmap.put("key",gl.getGoods_islicode()); |
|
|
|
|