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

Commit db2cecd5 authored by zhengfuxin's avatar zhengfuxin

商铺开发

parent 3ccbe655
...@@ -57,6 +57,8 @@ public class GoblinStoreInfoVo implements Serializable, Cloneable { ...@@ -57,6 +57,8 @@ public class GoblinStoreInfoVo implements Serializable, Cloneable {
@ApiModelProperty(position = 30, value = "店铺认证信息") @ApiModelProperty(position = 30, value = "店铺认证信息")
private GoblinStoreCertificationVo certificationVo; private GoblinStoreCertificationVo certificationVo;
@ApiModelProperty(position = 31, value = "商铺商品数量")
private int count;
private static final GoblinStoreInfoVo obj = new GoblinStoreInfoVo(); private static final GoblinStoreInfoVo obj = new GoblinStoreInfoVo();
......
...@@ -111,9 +111,9 @@ public class GoblinFrontController { ...@@ -111,9 +111,9 @@ public class GoblinFrontController {
return ResponseDto.success( goblinFrontService.getStoreCategory(storeId)); return ResponseDto.success( goblinFrontService.getStoreCategory(storeId));
} }
@GetMapping("getStoreGoodes") @GetMapping("getStoreGoodes")
@ApiOperation("获得店铺分类") @ApiOperation("获得店铺商品")
public ResponseDto<List<GoblinStoreGoodsCategoryVo>> getStoreGoodes(@RequestParam(name = "storeId", required = true)String storeId) throws ParseException { 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.getStoreCategory(storeId)); return ResponseDto.success( goblinFrontService.getStoreGoodes(storeId,categoryId));
} }
......
...@@ -304,7 +304,12 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -304,7 +304,12 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
return goblinFrontCubeVo; return goblinFrontCubeVo;
} }
public GoblinStoreInfoVo getStore(String storId){ public GoblinStoreInfoVo getStore(String storId){
return goblinRedisUtils.getStoreInfoVo(storId); Query query = new Query();
query.addCriteria(Criteria.where("storeId").is(storId));
long count = mongoTemplate.count(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
GoblinStoreInfoVo goblinStoreInfoVo=goblinRedisUtils.getStoreInfoVo(storId);
goblinStoreInfoVo.setCount((int) count);
return goblinStoreInfoVo;
} }
/*** /***
* @author zhangfuxin * @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