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

Commit c4cb3e63 authored by zhengfuxin's avatar zhengfuxin

修改上线问题

parent fceb2f10
...@@ -131,12 +131,14 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -131,12 +131,14 @@ public class GoblinFrontBannerController extends BaseController {
logger.info("上线操作"); logger.info("上线操作");
boolean bannerResult=goblinFrontBannerService.online(); boolean bannerResult=goblinFrontBannerService.online();
logger.info("bannerResult,{}",bannerResult); logger.info("bannerResult,{}",bannerResult);
boolean bannerMiddle=goblinFrontBannerService.middle();
logger.info("banner中部{}",bannerMiddle);
boolean hotWordResult=goblinFrontHotWordService.online(); boolean hotWordResult=goblinFrontHotWordService.online();
logger.info("热词,{}",hotWordResult); logger.info("热词,{}",hotWordResult);
boolean navigationResult=goblinFrontNavigationService.online(); boolean navigationResult=goblinFrontNavigationService.online();
logger.info("导航栏,{}",navigationResult); logger.info("导航栏,{}",navigationResult);
boolean secillResult=goblinFrontSeckillService.online(); /* boolean secillResult=goblinFrontSeckillService.online();
logger.info("限时秒杀,{}",secillResult); logger.info("限时秒杀,{}",secillResult);*/
boolean selectGoods=goblinFrontSelectGoodsService.online(); boolean selectGoods=goblinFrontSelectGoodsService.online();
logger.info("精选商品{}",selectGoods); logger.info("精选商品{}",selectGoods);
boolean moudleIndexResult=goblinFrontMoudleIndexService.online(); boolean moudleIndexResult=goblinFrontMoudleIndexService.online();
...@@ -146,7 +148,7 @@ public class GoblinFrontBannerController extends BaseController { ...@@ -146,7 +148,7 @@ public class GoblinFrontBannerController extends BaseController {
logger.info("魔方{}",cubeResult); logger.info("魔方{}",cubeResult);
/* boolean hejiReult=goblinFrontCompilationsService.online(); /* boolean hejiReult=goblinFrontCompilationsService.online();
logger.info("合集{}",hejiReult);*/ logger.info("合集{}",hejiReult);*/
if (bannerResult&&hotWordResult&&navigationResult ) { if (bannerResult&&hotWordResult&&navigationResult&bannerMiddle&&selectGoods&&moudleIndexResult&&cubeResult ) {
return success("操作成功"); return success("操作成功");
} else { } else {
return error("操作失败"); return error("操作失败");
......
...@@ -154,6 +154,7 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM ...@@ -154,6 +154,7 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
queryWrapper.eq(GoblinFrontBanner::getBannerType,1); queryWrapper.eq(GoblinFrontBanner::getBannerType,1);
queryWrapper.orderByAsc(GoblinFrontBanner::getIndexs); queryWrapper.orderByAsc(GoblinFrontBanner::getIndexs);
List<GoblinFrontBanner> list=goblinFrontBannerMapper.selectList(queryWrapper); List<GoblinFrontBanner> list=goblinFrontBannerMapper.selectList(queryWrapper);
if(list.size()>0){
//mongodb //mongodb
for(GoblinFrontBanner goblinFrontBanner: list){ for(GoblinFrontBanner goblinFrontBanner: list){
GoblinFrontBanner goblinFrontBanner1=mongoTemplate.findOne(Query.query(Criteria.where("bannerId").is(goblinFrontBanner.getBannerId())), GoblinFrontBanner.class, GoblinFrontBanner.class.getSimpleName()); GoblinFrontBanner goblinFrontBanner1=mongoTemplate.findOne(Query.query(Criteria.where("bannerId").is(goblinFrontBanner.getBannerId())), GoblinFrontBanner.class, GoblinFrontBanner.class.getSimpleName());
...@@ -171,15 +172,18 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM ...@@ -171,15 +172,18 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_TOP_BANNER,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_TOP_BANNER,list);
//中部 //中部
}
return true; return true;
} }
public void middle(){ public boolean middle(){
LambdaQueryWrapper<GoblinFrontBanner> queryWrapper = Wrappers.lambdaQuery(GoblinFrontBanner.class); LambdaQueryWrapper<GoblinFrontBanner> queryWrapper = Wrappers.lambdaQuery(GoblinFrontBanner.class);
queryWrapper.ne(GoblinFrontBanner::getDelTag,1); queryWrapper.ne(GoblinFrontBanner::getDelTag,1);
//bannerType //bannerType
queryWrapper.eq(GoblinFrontBanner::getBannerType,2); queryWrapper.eq(GoblinFrontBanner::getBannerType,2);
queryWrapper.orderByDesc(GoblinFrontBanner::getIndexs); queryWrapper.orderByDesc(GoblinFrontBanner::getIndexs);
List<GoblinFrontBanner> list=goblinFrontBannerMapper.selectList(queryWrapper); List<GoblinFrontBanner> list=goblinFrontBannerMapper.selectList(queryWrapper);
if(list.size()>0){
//mongodb //mongodb
for(GoblinFrontBanner goblinFrontBanner: list){ for(GoblinFrontBanner goblinFrontBanner: list){
GoblinFrontBanner goblinFrontBanner1=mongoTemplate.findOne(Query.query(Criteria.where("bannerId").is(goblinFrontBanner.getBannerId())), GoblinFrontBanner.class, GoblinFrontBanner.class.getSimpleName()); GoblinFrontBanner goblinFrontBanner1=mongoTemplate.findOne(Query.query(Criteria.where("bannerId").is(goblinFrontBanner.getBannerId())), GoblinFrontBanner.class, GoblinFrontBanner.class.getSimpleName());
...@@ -195,6 +199,8 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM ...@@ -195,6 +199,8 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
} }
//redis //redis
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_MIDDLE_BANNER,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_MIDDLE_BANNER,list);
}
return true;
} }
......
...@@ -99,6 +99,7 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe ...@@ -99,6 +99,7 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
LambdaQueryWrapper<GoblinFrontCube> queryWrapper = Wrappers.lambdaQuery(GoblinFrontCube.class); LambdaQueryWrapper<GoblinFrontCube> queryWrapper = Wrappers.lambdaQuery(GoblinFrontCube.class);
queryWrapper.ne(GoblinFrontCube::getDelTag,1); queryWrapper.ne(GoblinFrontCube::getDelTag,1);
List<GoblinFrontCube> list=goblinFrontCubeMapper.selectList(queryWrapper); List<GoblinFrontCube> list=goblinFrontCubeMapper.selectList(queryWrapper);
if(list.size()>0){
//mongodb //mongodb
for(GoblinFrontCube goblinFrontCube: list){ for(GoblinFrontCube goblinFrontCube: list){
GoblinFrontCube goblinFrontCube1=mongoTemplate.findOne(Query.query(Criteria.where("cubeId").is(goblinFrontCube.getCubeId())), GoblinFrontCube.class, GoblinFrontCube.class.getSimpleName()); GoblinFrontCube goblinFrontCube1=mongoTemplate.findOne(Query.query(Criteria.where("cubeId").is(goblinFrontCube.getCubeId())), GoblinFrontCube.class, GoblinFrontCube.class.getSimpleName());
...@@ -114,6 +115,8 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe ...@@ -114,6 +115,8 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
} }
//redis //redis
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_GOBLINFRONTCUBE,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_GOBLINFRONTCUBE,list);
}
return true; return true;
} }
......
...@@ -146,6 +146,7 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor ...@@ -146,6 +146,7 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor
queryWrapper.ne(GoblinFrontHotWord::getDelTag,1); queryWrapper.ne(GoblinFrontHotWord::getDelTag,1);
queryWrapper.orderByDesc(GoblinFrontHotWord::getIndexs); queryWrapper.orderByDesc(GoblinFrontHotWord::getIndexs);
List<GoblinFrontHotWord> list=goblinFrontHotWordMapper.selectList(queryWrapper); List<GoblinFrontHotWord> list=goblinFrontHotWordMapper.selectList(queryWrapper);
if(list.size()>0){
for(GoblinFrontHotWord goblinFrontHotWord: list){ for(GoblinFrontHotWord goblinFrontHotWord: list){
//查看 mongodb 有没有 //查看 mongodb 有没有
GoblinFrontHotWord goblinFrontHotWord1=mongoTemplate.findOne(Query.query(Criteria.where("hotWordId").is(goblinFrontHotWord.getHotWordId())), GoblinFrontHotWord.class, GoblinFrontHotWord.class.getSimpleName()); GoblinFrontHotWord goblinFrontHotWord1=mongoTemplate.findOne(Query.query(Criteria.where("hotWordId").is(goblinFrontHotWord.getHotWordId())), GoblinFrontHotWord.class, GoblinFrontHotWord.class.getSimpleName());
...@@ -161,6 +162,7 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor ...@@ -161,6 +162,7 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor
} }
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_HOTWORD,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_HOTWORD,list);
}
return true; return true;
} }
......
...@@ -67,9 +67,7 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo ...@@ -67,9 +67,7 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo
queryWrapper.ne(GoblinFrontMoudleIndex::getDelTag,1); queryWrapper.ne(GoblinFrontMoudleIndex::getDelTag,1);
queryWrapper.orderByAsc(GoblinFrontMoudleIndex::getIndexs); queryWrapper.orderByAsc(GoblinFrontMoudleIndex::getIndexs);
List<GoblinFrontMoudleIndex> list=goblinFrontMoudleIndexMapper.selectList(queryWrapper); List<GoblinFrontMoudleIndex> list=goblinFrontMoudleIndexMapper.selectList(queryWrapper);
if(list.size()>0){
// List<GoblinFrontMoudleIndexParam> list=this.listGoblinFrontMoudleIndex();
// mongodb 放入
for(GoblinFrontMoudleIndex goblinFrontMoudleIndex:list){ for(GoblinFrontMoudleIndex goblinFrontMoudleIndex:list){
GoblinFrontMoudleIndex goblinFrontMoudleIndex1=mongoTemplate.findOne(Query.query(Criteria.where("moudleIndexId").is(goblinFrontMoudleIndex.getMoudleIndexId())), GoblinFrontMoudleIndex.class, GoblinFrontMoudleIndex.class.getSimpleName()); GoblinFrontMoudleIndex goblinFrontMoudleIndex1=mongoTemplate.findOne(Query.query(Criteria.where("moudleIndexId").is(goblinFrontMoudleIndex.getMoudleIndexId())), GoblinFrontMoudleIndex.class, GoblinFrontMoudleIndex.class.getSimpleName());
if(null==goblinFrontMoudleIndex1){ if(null==goblinFrontMoudleIndex1){
...@@ -84,6 +82,10 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo ...@@ -84,6 +82,10 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo
} }
// reids 存入 // reids 存入
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.MOUDLE_INDEX,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.MOUDLE_INDEX,list);
}
// List<GoblinFrontMoudleIndexParam> list=this.listGoblinFrontMoudleIndex();
// mongodb 放入
return true; return true;
} }
......
...@@ -139,6 +139,7 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav ...@@ -139,6 +139,7 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav
queryWrapper.ne(GoblinFrontNavigation::getDelTag,1); queryWrapper.ne(GoblinFrontNavigation::getDelTag,1);
queryWrapper.orderByDesc(GoblinFrontNavigation::getIndexs); queryWrapper.orderByDesc(GoblinFrontNavigation::getIndexs);
List<GoblinFrontNavigation> list=goblinFrontNavigationMapper.selectList(queryWrapper); List<GoblinFrontNavigation> list=goblinFrontNavigationMapper.selectList(queryWrapper);
if(list.size()>0){
//mongodb //mongodb
for(GoblinFrontNavigation goblinFrontNavigation: list){ for(GoblinFrontNavigation goblinFrontNavigation: list){
GoblinFrontNavigation goblinFrontNavigation1=mongoTemplate.findOne(Query.query(Criteria.where("navigationId").is(goblinFrontNavigation.getNavigationId())), GoblinFrontNavigation.class, GoblinFrontNavigation.class.getSimpleName()); GoblinFrontNavigation goblinFrontNavigation1=mongoTemplate.findOne(Query.query(Criteria.where("navigationId").is(goblinFrontNavigation.getNavigationId())), GoblinFrontNavigation.class, GoblinFrontNavigation.class.getSimpleName());
...@@ -154,6 +155,8 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav ...@@ -154,6 +155,8 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav
} }
//redis //redis
redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_NAVIGATION,list); redisDataSourceUtil.getRedisGoblinUtil().set(GoblinRedisConst.FRONT_NAVIGATION,list);
}
return true; return true;
} }
......
...@@ -157,6 +157,7 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil ...@@ -157,6 +157,7 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
queryWrapper.ne(GoblinFrontSeckill::getDelTag,1); queryWrapper.ne(GoblinFrontSeckill::getDelTag,1);
queryWrapper.orderByAsc(GoblinFrontSeckill::getIndexs); queryWrapper.orderByAsc(GoblinFrontSeckill::getIndexs);
List<GoblinFrontSeckill> list=goblinFrontSeckillMapper.selectList(queryWrapper); List<GoblinFrontSeckill> list=goblinFrontSeckillMapper.selectList(queryWrapper);
if(list.size()>0){
//mongodb //mongodb
for(GoblinFrontSeckill goblinFrontSeckill: list){ for(GoblinFrontSeckill goblinFrontSeckill: list){
GoblinFrontSeckill goblinFrontNavigation1=mongoTemplate.findOne(Query.query(Criteria.where("seckilId").is(goblinFrontSeckill.getSeckilId())), GoblinFrontSeckill.class, GoblinFrontSeckill.class.getSimpleName()); GoblinFrontSeckill goblinFrontNavigation1=mongoTemplate.findOne(Query.query(Criteria.where("seckilId").is(goblinFrontSeckill.getSeckilId())), GoblinFrontSeckill.class, GoblinFrontSeckill.class.getSimpleName());
...@@ -172,6 +173,7 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil ...@@ -172,6 +173,7 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
} }
//redis 保存秒杀表信息 //redis 保存秒杀表信息
redisGoblinUtil.set(GoblinRedisConst.FRONT_SECKILL,list); redisGoblinUtil.set(GoblinRedisConst.FRONT_SECKILL,list);
}
return true; return true;
} }
} }
...@@ -120,6 +120,7 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe ...@@ -120,6 +120,7 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
LambdaQueryWrapper<GoblinFrontSelectGoods> queryWrapper = Wrappers.lambdaQuery(GoblinFrontSelectGoods.class); LambdaQueryWrapper<GoblinFrontSelectGoods> queryWrapper = Wrappers.lambdaQuery(GoblinFrontSelectGoods.class);
queryWrapper.eq(GoblinFrontSelectGoods::getDelTag,0); queryWrapper.eq(GoblinFrontSelectGoods::getDelTag,0);
List<GoblinFrontSelectGoods> list=goblinFrontSelectGoodsMapper.selectList(queryWrapper); List<GoblinFrontSelectGoods> list=goblinFrontSelectGoodsMapper.selectList(queryWrapper);
if(list.size()>0){
//放入mongodb //放入mongodb
GoblinFrontSelectGoods goblinFrontSelectGoods= list.get(0); GoblinFrontSelectGoods goblinFrontSelectGoods= list.get(0);
GoblinFrontSelectGoods goblinFrontSelectGoods1= mongoTemplate.findOne(Query.query(Criteria.where("selectGoodsId").is(goblinFrontSelectGoods.getSelectGoodsId())), GoblinFrontSelectGoods.class, GoblinFrontSelectGoods.class.getSimpleName()); GoblinFrontSelectGoods goblinFrontSelectGoods1= mongoTemplate.findOne(Query.query(Criteria.where("selectGoodsId").is(goblinFrontSelectGoods.getSelectGoodsId())), GoblinFrontSelectGoods.class, GoblinFrontSelectGoods.class.getSimpleName());
...@@ -133,6 +134,8 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe ...@@ -133,6 +134,8 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
); );
} }
redisGoblinUtil.set(GoblinRedisConst.SELECT_GOODS,list); redisGoblinUtil.set(GoblinRedisConst.SELECT_GOODS,list);
}
return true; 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