|
|
@ -127,14 +127,14 @@ public class GroupPointController { |
|
|
|
* @date 2021.09.07 13:35:45 |
|
|
|
*/ |
|
|
|
@PostMapping("grouppointranking/gridscope") |
|
|
|
public Result<PageData<GroupPointRankingResultDTO>> listGroupPointRandingInGridScope(@RequestBody GroupPointFormDTO formDTO) { |
|
|
|
public Result<List<GroupPointRankingResultDTO>> listGroupPointRandingInGridScope(@RequestBody GroupPointFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, GroupPointFormDTO.GridScopeRank.class); |
|
|
|
String gridId = formDTO.getGridId(); |
|
|
|
Integer pageNo = formDTO.getPageNo(); |
|
|
|
Integer pageSize = formDTO.getPageSize(); |
|
|
|
|
|
|
|
PageData<GroupPointRankingResultDTO> page = bizPointTotalDetailService.listGroupPointRandingInPercificScope(SearchScopeTypeEnum.GRID, gridId,pageNo, pageSize); |
|
|
|
return new Result<PageData<GroupPointRankingResultDTO>>().ok(page); |
|
|
|
List<GroupPointRankingResultDTO> page = bizPointTotalDetailService.listGroupPointRandingInPercificScope(SearchScopeTypeEnum.GRID, gridId,pageNo, pageSize); |
|
|
|
return new Result<List<GroupPointRankingResultDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -146,14 +146,14 @@ public class GroupPointController { |
|
|
|
* @date 2021.09.08 09:18:37 |
|
|
|
*/ |
|
|
|
@PostMapping("grouppointranking/customerscope") |
|
|
|
public Result<PageData<GroupPointRankingResultDTO>> listGroupPointRandingInCustomerScope(@RequestBody GroupPointFormDTO formDTO) { |
|
|
|
public Result<List<GroupPointRankingResultDTO>> listGroupPointRandingInCustomerScope(@RequestBody GroupPointFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, GroupPointFormDTO.CustomerScopeRank.class); |
|
|
|
String customerId = formDTO.getCustomerId(); |
|
|
|
Integer pageNo = formDTO.getPageNo(); |
|
|
|
Integer pageSize = formDTO.getPageSize(); |
|
|
|
|
|
|
|
PageData<GroupPointRankingResultDTO> page = bizPointTotalDetailService.listGroupPointRandingInPercificScope(SearchScopeTypeEnum.CUSTOMER, customerId, pageNo, pageSize); |
|
|
|
return new Result<PageData<GroupPointRankingResultDTO>>().ok(page); |
|
|
|
List<GroupPointRankingResultDTO> page = bizPointTotalDetailService.listGroupPointRandingInPercificScope(SearchScopeTypeEnum.CUSTOMER, customerId, pageNo, pageSize); |
|
|
|
return new Result<List<GroupPointRankingResultDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|