|
|
@ -4,9 +4,8 @@ import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|
|
|
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.datareport.dao.evaluationindex.screenkc.ScreenKcNewsSummaryDailyDao; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.KcScreenService; |
|
|
|
import com.epmet.dto.result.issue.IssueGridTotalRankDTO; |
|
|
|
import com.epmet.dto.PageFormDTO; |
|
|
|
import com.epmet.dto.result.project.*; |
|
|
|
import com.epmet.dto.result.user.*; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.GroupTopicShiftIssueRatioRankFormDTO; |
|
|
@ -99,7 +98,7 @@ public class KcScreenController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 按照议题总数排名 |
|
|
|
* 按照议题数量排名 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -312,7 +311,7 @@ public class KcScreenController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 网格用户排名 |
|
|
|
* 网格用户数量排名 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -342,9 +341,10 @@ public class KcScreenController { |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("user/pointsrank") |
|
|
|
public Result<KcUserPointRankResultDTO> getUserPointsRank(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
public Result<KcUserPointRankResultDTO> getUserPointsRank(ExternalAppRequestParam externalAppRequestParam, |
|
|
|
@RequestBody PageFormDTO form) { |
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<KcUserPointRankResultDTO>().ok(kcScreenService.getUserPointsRank(customerId)); |
|
|
|
return new Result<KcUserPointRankResultDTO>().ok(kcScreenService.getUserPointsRank(customerId, form.getPageNo(), form.getPageSize())); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -402,9 +402,10 @@ public class KcScreenController { |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("news/hotrank") |
|
|
|
public Result<List<ScreenKcNewsHotRankResultDTO>> listNewsHotRank(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
public Result<List<ScreenKcNewsHotRankResultDTO>> listNewsHotRank(ExternalAppRequestParam externalAppRequestParam, |
|
|
|
@RequestBody PageFormDTO form){ |
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<List<ScreenKcNewsHotRankResultDTO>>().ok(kcScreenService.getNewsHotRank(customerId)); |
|
|
|
return new Result<List<ScreenKcNewsHotRankResultDTO>>().ok(kcScreenService.getNewsHotRank(customerId, form.getPageNo(), form.getPageSize())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|