记得上下班打卡 | git大法好,push需谨慎

Commit 5756440a authored by zhengfuxin's avatar zhengfuxin

修改bug

parent 133c8c63
......@@ -76,6 +76,7 @@ public class GoblinRedisConst {
public static final String FRONT_FRONT_SECKILL = PREFIX.concat("front_front_seckill"); //前端 首页秒杀
public static final String FRONT_SECKILL = PREFIX.concat("front_seckill"); //前端 秒杀列表
public static final String SELECT_GOODS = PREFIX.concat("select_goods"); //精选商品
public static final String SELECT_GOODS_PAGE1 = PREFIX.concat("select_goods_page1"); //精选商品
public static final String MOUDLE_INDEX = PREFIX.concat("moudle_index"); //moudle_index 组件排序
public static final String COMPLIATIONS = PREFIX.concat("goblinFrontCompilations"); // 合集
public static final String FRONT_GOBLINFRONTCUBE = PREFIX.concat("goblinFrontCube"); // 魔方
......
......@@ -112,7 +112,7 @@ public class GoblinFrontController {
}
@GetMapping("getStoreGoodes")
@ApiOperation("获得店铺商品")
public ResponseDto<List<GoblinGoodsInfoVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId,@RequestParam(name = "categoryId", required = true)String categoryId,@RequestParam(name = "name", required = true)String name) throws ParseException {
public ResponseDto<List<GoblinGoodsInfoVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId,@RequestParam(name = "categoryId", required = false)String categoryId,@RequestParam(name = "name", required = false)String name) throws ParseException {
return ResponseDto.success( goblinFrontService.getStoreGoodes(storeId,categoryId,name));
}
@GetMapping("searchGoodesName")
......
......@@ -530,10 +530,23 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
*/
@Override
public GoblinFrontSelectGoodVo getSelectGoods(int page, int pageSize) {
/* String spuIds="";
if(!redisUtil.hasKey(GoblinRedisConst.SELECT_GOODS)){
//查看redis里面第一页的商品
if(redisUtil.hasKey(GoblinRedisConst.SELECT_GOODS_PAGE1)){
spuIds= (String) redisUtil.get(GoblinRedisConst.SELECT_GOODS_PAGE1);
}else{
Query query = new Query();
query.addCriteria(Criteria.where("delFlg").is("0").and("shelvesStatus").is("3"));
//直接从库里查
PageRequest pageable = PageRequest.of(page, pageSize, Sort.by(Sort.Direction.DESC, "count"));
query.with(pageable);
List<GoblinGoodsInfoVo> voList=mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
return null;
}
//redis 取出精选商品列表
}else{
}*/
/*//redis 取出精选商品列表
List<GoblinFrontSelectGoods> list= (List<GoblinFrontSelectGoods>) redisUtil.get(GoblinRedisConst.SELECT_GOODS);
if(null!=list&&list.size()==1){
//获取商品列表
......@@ -557,7 +570,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
}
goblinFrontSelectGoodVo.setGoblinGoodsInfoVoList(goblinGoodsInfoVoArrayList);
return goblinFrontSelectGoodVo;
}
}*/
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment