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

Commit bc7e20f9 authored by zhengfuxin's avatar zhengfuxin

修改bug

parent d93e5d60
......@@ -83,9 +83,9 @@ public class GoblinFrontController {
public ResponseDto<GoblinFrontCubeVo> getCube() throws ParseException {
return ResponseDto.success( goblinFrontService.getCube());
}
@GetMapping("getCategory")
@ApiOperation("获取分类")
public ResponseDto getCategory(@RequestParam(name = "type", required = true) String type,@RequestParam(name = "categoryId", required = true)String categoryId,@RequestParam(name = "page", required = true)int page,@RequestParam(name = "pageSize", required = true)int pageSize) throws ParseException {
@GetMapping("getCategoryList")
@ApiOperation("获取分类列表商品")
public ResponseDto<GoblinFrontCategoryListVo> getCategoryList(@RequestParam(name = "type", required = true) String type,@RequestParam(name = "categoryId", required = true)String categoryId,@RequestParam(name = "page", required = true)int page,@RequestParam(name = "pageSize", required = true)int pageSize) throws ParseException {
return ResponseDto.success( goblinFrontService.getCategoryList(type,categoryId,page,pageSize));
}
......
......@@ -280,7 +280,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
public GoblinFrontCategoryListVo getCategoryList(String type,String categoryId,int page,int pageSize){
//
Query query = new Query();
query.addCriteria(new Criteria().andOperator(
query.addCriteria(new Criteria().orOperator(
Criteria.where("cateSid").is(categoryId),
Criteria.where("cateTid").is(categoryId)
));
......
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