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

Commit 9485213e authored by zhengfuxin's avatar zhengfuxin

h5 排序接口

parent 43a2c8f8
......@@ -36,6 +36,9 @@ public class GoblinFrontBannerController extends BaseController {
GoblinFrontSeckillServiceImpl goblinFrontSeckillService;
@Autowired
GoblinFrontSelectGoodsServiceImpl goblinFrontSelectGoodsService;
@Autowired
GoblinFrontMoudleIndexServiceImpl goblinFrontMoudleIndexService;
/**
* @author zhangfuxin
* @Description:添加banner
......@@ -119,6 +122,8 @@ public class GoblinFrontBannerController extends BaseController {
logger.info("secillResult,{}",secillResult);
boolean selectGoods=goblinFrontSelectGoodsService.online();
logger.info("精选商品{}",selectGoods);
boolean moudleIndexResult=goblinFrontMoudleIndexService.online();
logger.info("组件排序{}",moudleIndexResult);
if (bannerResult&&hotWordResult&&navigationResult ) {
return success("操作成功");
} else {
......
......@@ -63,6 +63,13 @@ public class GoblinFrontController {
public ResponseDto<GoblinFrontGoodDetailVo> getGoodsDetail(@RequestParam(name = "spuId", required = true) String spuId) throws ParseException {
return ResponseDto.success( goblinFrontService.getGoodsDetail(spuId));
}
@GetMapping("getMoudleIndex")
@ApiOperation("获取组件排序")
public ResponseDto getMoudleIndex() throws ParseException {
return ResponseDto.success( goblinFrontService.getMoudleIndex());
}
......
......@@ -197,6 +197,14 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
return goblinFrontGoodDetailVo;
}
/**
* 获得商品详情
*/
public List getMoudleIndex(){
//GoblinGoodsInfoVo goblinGoodsInfoVo=goblinRedisUtils.get(spuId);
List<GoblinFrontMoudleIndex> list= (List<GoblinFrontMoudleIndex>) redisUtil.get(GoblinRedisConst.MOUDLE_INDEX);
return list;
}
/**
* @author zhangfuxin
......
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