|
|
|
@ -154,7 +154,6 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
@Override |
|
|
|
public Map<String,Object> getGoodsByMap(Map gmap, int page,int limit) { |
|
|
|
Map retmap =new HashMap(); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
int start = page>1?(page-1)*limit:0; |
|
|
|
int end =page*limit; |
|
|
|
@ -185,9 +184,6 @@ public class GoodsServiceImpl implements GoodsService { |
|
|
|
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()); |
|
|
|
|