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

Commit 07522451 authored by 胡佳晨's avatar 胡佳晨

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents ae84d25b d0c90955
......@@ -44,6 +44,7 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
public boolean create(GoblinFrontBanner goblinFrontBanner){
goblinFrontBanner.setCreateTime(LocalDateTime.now());
goblinFrontBanner.setUpdateTime(LocalDateTime.now());
//设置bannerid
goblinFrontBanner.setBannerId(IDGenerator.nextSnowId());
//增加 banner
......
......@@ -47,6 +47,7 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
public boolean create(GoblinFrontCube goblinFrontCube){
goblinFrontCube.setCreateTime(LocalDateTime.now());
goblinFrontCube.setUpdateTime(LocalDateTime.now());
//设置bannerid
goblinFrontCube.setCubeId(IDGenerator.nextSnowId());
//增加 banner
......
......@@ -46,6 +46,7 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor
public boolean create(GoblinFrontHotWord goblinFrontHotWord){
goblinFrontHotWord.setCreateTime(LocalDateTime.now());
goblinFrontHotWord.setUpdateTime(LocalDateTime.now());
//设置bannerid
goblinFrontHotWord.setHotWordId(IDGenerator.nextSnowId());
//增加 banner
......
......@@ -50,6 +50,7 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav
public boolean create(GoblinFrontNavigation goblinFrontNavigation){
goblinFrontNavigation.setCreateTime(LocalDateTime.now());
goblinFrontNavigation.setUpdateTime(LocalDateTime.now());
//设置金刚位id
goblinFrontNavigation.setNavigationId(IDGenerator.nextSnowId());
//mysql插入
......
......@@ -56,6 +56,7 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
}
//
goblinFrontSelectGoods.setCreateTime(LocalDateTime.now());
goblinFrontSelectGoods.setUpdateTime(LocalDateTime.now());
//设置bannerid
goblinFrontSelectGoods.setSelectGoodsId(IDGenerator.nextSnowId());
//增加 banner
......
......@@ -115,6 +115,11 @@ public class GoblinFrontController {
public ResponseDto<List<GoblinGoodsInfoVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId,@RequestParam(name = "categoryId", required = true)String categoryId) throws ParseException {
return ResponseDto.success( goblinFrontService.getStoreGoodes(storeId,categoryId));
}
@GetMapping("getStoreGoodes")
@ApiOperation("搜索商品名字")
public ResponseDto<List<GoblinGoodsInfoVo>> searchGoodesName(@RequestParam(name = "name", required = true)String name) throws ParseException {
return ResponseDto.success( goblinFrontService.searchGoodesName(name));
}
......
......@@ -350,6 +350,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
return goblinCategoryzfVo;
}
public List<GoblinGoodsInfoVo> searchGoodesName(String name){
return null;
}
public List<GoblinGoodsInfoVo> getStoreGoodes(String storeId,String categoryId){
//
Query query = new Query();
......
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