|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.epmet.datareport.controller.screen; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenUserService; |
|
|
@ -47,8 +49,10 @@ public class ScreenUserController { |
|
|
|
* @author wxz |
|
|
|
*/ |
|
|
|
@PostMapping("userpointrank/withoutpartymember") |
|
|
|
public Result<List<UserPointRankListResultDTO>> userPointRankWithoutPartyMem(@RequestBody UserPointRankFormDTO formDTO) { |
|
|
|
public Result<List<UserPointRankListResultDTO>> userPointRankWithoutPartyMem(@RequestBody UserPointRankFormDTO formDTO, @LoginUser TokenDto loginUser) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, UserPointRankFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
|
|
formDTO.setCustomerId(loginUser.getCustomerId()); |
|
|
|
return new Result<List<UserPointRankListResultDTO>>().ok(screenUserService.userPointRankWithoutPartyMem(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
@ -70,8 +74,9 @@ public class ScreenUserController { |
|
|
|
* @author wxz |
|
|
|
*/ |
|
|
|
@PostMapping("partypointrank") |
|
|
|
public Result<List<PartyPointRankResultDTO>> partyPointRank(@RequestBody PartyPointRankFormDTO formDTO) { |
|
|
|
public Result<List<PartyPointRankResultDTO>> partyPointRank(@RequestBody PartyPointRankFormDTO formDTO, @LoginUser TokenDto loginUser) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, PartIndexScroeRankFormDTO.AddUserInternalGroup.class); |
|
|
|
formDTO.setCustomerId(loginUser.getCustomerId()); |
|
|
|
return new Result<List<PartyPointRankResultDTO>>().ok(screenUserService.partyPointRank(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|