Browse Source

feature1.0.0-img:fix bug

feature-1.0-img-prototype
chengkun 4 years ago
parent
commit
f9bbe9855f
  1. 15
      bnyer-services/bnyer-img/src/main/java/com/bnyer/img/controller/CreatorMiniController.java
  2. 2
      bnyer-services/bnyer-img/src/main/java/com/bnyer/img/dto/ProfitStatusDto.java

15
bnyer-services/bnyer-img/src/main/java/com/bnyer/img/controller/CreatorMiniController.java

@ -252,8 +252,9 @@ public class CreatorMiniController extends BaseController {
//@TokenCheck //@TokenCheck
@ApiOperation(value="查询指定艺术家即将入账收益列表") @ApiOperation(value="查询指定艺术家即将入账收益列表")
@PostMapping(value = "/queryFrontPreProfit") @PostMapping(value = "/queryFrontPreProfit")
public AjaxResult queryFrontPreProfit(@Validated @RequestBody @ApiParam("即将入账对象") ProfitStatusDto params){ public TableDataInfo queryFrontPreProfit(@Validated @RequestBody @ApiParam("即将入账对象") ProfitStatusDto params){
return AjaxResult.success(creatorProfitService.queryFrontPreProfit(params.getCreatorId(),params.getType())); PageHelper.startPage(params.getPageNum(), params.getPageSize());
return getDataTable(creatorProfitService.queryFrontPreProfit(params.getCreatorId(),params.getType()));
} }
//@TokenCheck //@TokenCheck
@ -266,8 +267,9 @@ public class CreatorMiniController extends BaseController {
//@TokenCheck //@TokenCheck
@ApiOperation(value="查询指定艺术家已入账收益列表") @ApiOperation(value="查询指定艺术家已入账收益列表")
@PostMapping(value = "/queryFrontInProfitAmt") @PostMapping(value = "/queryFrontInProfitAmt")
public AjaxResult queryFrontInProfitAmt(@Validated @RequestBody @ApiParam("已入账对象") ProfitStatusDto params){ public TableDataInfo queryFrontInProfitAmt(@Validated @RequestBody @ApiParam("已入账对象") ProfitStatusDto params){
return AjaxResult.success(creatorProfitService.queryFrontInProfitAmt(params.getCreatorId(),params.getType())); PageHelper.startPage(params.getPageNum(), params.getPageSize());
return getDataTable(creatorProfitService.queryFrontInProfitAmt(params.getCreatorId(),params.getType()));
} }
//@TokenCheck //@TokenCheck
@ -280,8 +282,9 @@ public class CreatorMiniController extends BaseController {
//@TokenCheck //@TokenCheck
@ApiOperation(value="查询指定艺术家转入钱包收益列表") @ApiOperation(value="查询指定艺术家转入钱包收益列表")
@PostMapping(value = "/queryFrontEndProfitAmt") @PostMapping(value = "/queryFrontEndProfitAmt")
public AjaxResult queryFrontEndProfitAmt(@Validated @RequestBody @ApiParam("转入钱包对象") ProfitStatusDto params){ public TableDataInfo queryFrontEndProfitAmt(@Validated @RequestBody @ApiParam("转入钱包对象") ProfitStatusDto params){
return AjaxResult.success(creatorProfitService.queryFrontEndProfitAmt(params.getCreatorId(),params.getType())); PageHelper.startPage(params.getPageNum(), params.getPageSize());
return getDataTable(creatorProfitService.queryFrontEndProfitAmt(params.getCreatorId(),params.getType()));
} }
//@TokenCheck //@TokenCheck

2
bnyer-services/bnyer-img/src/main/java/com/bnyer/img/dto/ProfitStatusDto.java

@ -13,7 +13,7 @@ import java.io.Serializable;
@Getter @Getter
@Setter @Setter
@ApiModel("入账类型接收类") @ApiModel("入账类型接收类")
public class ProfitStatusDto implements Serializable { public class ProfitStatusDto extends BasePageDto {
@NotNull(message = "艺术家id不能为空!") @NotNull(message = "艺术家id不能为空!")
@ApiModelProperty(value="艺术家id") @ApiModelProperty(value="艺术家id")

Loading…
Cancel
Save