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

Commit c911cc9a authored by zhengfuxin's avatar zhengfuxin

秒杀上线

parent c3a25f3c
......@@ -14,6 +14,8 @@ import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.goblin.constant.GoblinRedisConst;
import com.liquidnet.service.goblin.entity.GoblinFrontSeckill;
import com.liquidnet.service.goblin.mapper.GoblinFrontSeckillMapper;
import com.liquidnet.service.goblin.mapper.GoblinSelfMarketingMapper;
import com.liquidnet.service.goblin.mapper.GoblinStoreMarketingMapper;
import com.mongodb.BasicDBObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
......@@ -38,6 +40,10 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
GoblinFrontSeckillMapper goblinFrontSeckillMapper;
@Autowired
private MongoTemplate mongoTemplate;
@Autowired
GoblinStoreMarketingMapper goblinStoreMarketingMapper;
@Autowired
GoblinSelfMarketingMapper goblinSelfMarketingMapper;
@Autowired
private RedisGoblinUtil redisGoblinUtil;
......@@ -119,25 +125,8 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
);
}
}
//redis 根据 秒杀配置, 然后 判断活动是否 有效 然后 拼接 活动
for(GoblinFrontSeckill goblinFrontSeckill:list){
//1、关闭模块2、保留模块
int activityType=goblinFrontSeckill.getActivityType();
//查看是 1、官方营销表2、商铺营销表
int marketType =goblinFrontSeckill.getMarketType();
//找到对应表里的信息
if(marketType==1){
//官方营销表
//找到活动时间
//找到商品
}else if(marketType==2){
//商铺营销表
}
}
//redisGoblinUtil.set(GoblinRedisConst.FRONT_NAVIGATION,list);
//redis 保存秒杀表信息
redisGoblinUtil.set(GoblinRedisConst.FRONT_SECKILL,list);
return true;
}
}
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