diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ReturnCommissionController.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ReturnCommissionController.java index 58b12fc9..f0017f66 100644 --- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ReturnCommissionController.java +++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/ReturnCommissionController.java @@ -69,11 +69,22 @@ public class ReturnCommissionController { } } - @RequestMapping(value = "/list", method = RequestMethod.GET) - @ApiOperation(value = "查询商铺的返佣记录",httpMethod = "GET") - public Result list(@ApiParam(value = "商铺id",required = true) @RequestParam(value = "shopId",required = true) String shopId) { + @RequestMapping(value = "/listWithNoReturn", method = RequestMethod.GET) + @ApiOperation(value = "查询商铺未处理的返佣记录",httpMethod = "GET") + public Result listWithNoReturn(@ApiParam(value = "商铺id",required = true) @RequestParam(value = "shopId",required = true) String shopId) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("shop_id",shopId); + queryWrapper.eq("status","0"); + List list = returnCommissionService.list(queryWrapper); + return new ResultUtil>().setData(list); + } + + @RequestMapping(value = "/listWithReturned", method = RequestMethod.GET) + @ApiOperation(value = "查询商铺已处理完成的返佣记录",httpMethod = "GET") + public Result listWithReturned(@ApiParam(value = "商铺id",required = true) @RequestParam(value = "shopId",required = true) String shopId) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("shop_id",shopId); + queryWrapper.ne("status","0"); List list = returnCommissionService.list(queryWrapper); return new ResultUtil>().setData(list); }