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

Commit b0b732ab authored by zhengfuxin's avatar zhengfuxin

秒杀

parent 5c05aca6
...@@ -94,6 +94,7 @@ public class GoblinFrontController { ...@@ -94,6 +94,7 @@ public class GoblinFrontController {
@GetMapping("getSeckilll") @GetMapping("getSeckilll")
@ApiOperation("获得秒杀首页要用的") @ApiOperation("获得秒杀首页要用的")
public ResponseDto getSeckilll() throws ParseException { public ResponseDto getSeckilll() throws ParseException {
//获得秒杀列表绑定
List<GoblinFrontSeckill> list= (List<GoblinFrontSeckill>) redisUtil.get(GoblinRedisConst.FRONT_SECKILL); List<GoblinFrontSeckill> list= (List<GoblinFrontSeckill>) redisUtil.get(GoblinRedisConst.FRONT_SECKILL);
GoblinFrontSeckillVo goblinFrontSeckillVo=GoblinFrontSeckillVo.getNew(); GoblinFrontSeckillVo goblinFrontSeckillVo=GoblinFrontSeckillVo.getNew();
ArrayList<GoblinGoodsInfoVo> goblinGoodsInfoVoArrayList=ObjectUtil.goblinGoodsInfoVoArrayList(); ArrayList<GoblinGoodsInfoVo> goblinGoodsInfoVoArrayList=ObjectUtil.goblinGoodsInfoVoArrayList();
...@@ -130,7 +131,7 @@ public class GoblinFrontController { ...@@ -130,7 +131,7 @@ public class GoblinFrontController {
goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo); goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo);
} }
}else if(type.equals("s")){ }else if(type.equals("s")){
//商铺的vo //商铺活动的vo
GoblinStoreMarketVo goblinStoreMarketVo=goblinRedisUtils.getGoblinStoreMarketVo(idM); GoblinStoreMarketVo goblinStoreMarketVo=goblinRedisUtils.getGoblinStoreMarketVo(idM);
if(goblinStoreMarketVo==null){ if(goblinStoreMarketVo==null){
break; break;
...@@ -146,7 +147,14 @@ public class GoblinFrontController { ...@@ -146,7 +147,14 @@ public class GoblinFrontController {
} }
if(isGet){ if(isGet){
//获取商铺 对应关系 //获取商铺 对应关系
List<GoblinMarketRelationVo> list1=goblinRedisUtils.getMarketRelation(GoblinStatusConst.MarketPreStatus.MARKET_PRE_PURCHASE.getValue(),goblinStoreMarketVo.getStoreMarketId());
//获得商品
//遍历 活动表
for(GoblinMarketRelationVo goblinMarketRelationVo:list1){
//找到对应的spu商品
GoblinGoodsInfoVo goblinGoodsInfoVo=goblinRedisUtils.getGoodsInfoVo(goblinMarketRelationVo.getSpuId());
goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo);
}
} }
} }
...@@ -156,7 +164,7 @@ public class GoblinFrontController { ...@@ -156,7 +164,7 @@ public class GoblinFrontController {
} }
return ResponseDto.success( list ); return ResponseDto.success( goblinFrontSeckillVo);
} }
public boolean belongCalendar( String startString, String endString) throws ParseException { public boolean belongCalendar( String startString, String endString) throws ParseException {
......
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