|
|
|
@ -1,8 +1,21 @@ |
|
|
|
package com.epmet.datareport.controller.screen; |
|
|
|
|
|
|
|
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.datareport.service.screen.GrassRootsGovernService; |
|
|
|
import com.epmet.screen.dto.form.AgencyAndNumFormDTO; |
|
|
|
import com.epmet.screen.dto.form.AgencyFormDTO; |
|
|
|
import com.epmet.screen.dto.form.AgencyNumTypeParamFormDTO; |
|
|
|
import com.epmet.screen.dto.result.*; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* 基层治理相关各指标查询 |
|
|
|
* |
|
|
|
@ -12,4 +25,85 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
@RestController |
|
|
|
@RequestMapping("/screen/grassrootsgovern") |
|
|
|
public class GrassRootsGovernController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private GrassRootsGovernService grassRootsGovernService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 1、热心市民积分排行 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321544
|
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.20 11:16 |
|
|
|
**/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("userpointrank") |
|
|
|
public Result<UserPointRankResultDTO> userPointRank(@RequestBody AgencyAndNumFormDTO param){ |
|
|
|
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|
|
|
return new Result<UserPointRankResultDTO>().ok(grassRootsGovernService.userPointRank(param)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 2、难点赌点-耗时最长|涉及部门最多|处理次数 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321614
|
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.20 13:55 |
|
|
|
**/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("difficultprojects") |
|
|
|
public Result<List<DifficultProjectResultDTO>> difficultProject(@RequestBody AgencyNumTypeParamFormDTO param){ |
|
|
|
ValidatorUtils.validateEntity(param, AgencyNumTypeParamFormDTO.AgencyNumTypeParamGroup.class); |
|
|
|
return new Result<List<DifficultProjectResultDTO>>().ok(grassRootsGovernService.difficultProject(param)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 3、公众参与概况 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321975
|
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.20 14:37 |
|
|
|
**/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("publicpartiprofile") |
|
|
|
public Result<PublicPartiProfileResultDTO> publicPartiProfile(@RequestBody AgencyFormDTO param){ |
|
|
|
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class); |
|
|
|
return new Result<PublicPartiProfileResultDTO>().ok(grassRootsGovernService.publicPartiProfile(param)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 4、公众参与-排行榜 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/?pid=57068&id=321978
|
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.20 15:32 |
|
|
|
**/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("publicpartirank") |
|
|
|
public Result<List<PublicPartiRankResultDTO>> publicPartiRank(@RequestBody AgencyAndNumFormDTO param){ |
|
|
|
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|
|
|
return new Result<List<PublicPartiRankResultDTO>>().ok(grassRootsGovernService.publicPartiRank(param)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 5、治理能力榜单 |
|
|
|
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321627
|
|
|
|
* @param param |
|
|
|
* @return |
|
|
|
* @author wangc |
|
|
|
* @date 2020.08.20 17:46 |
|
|
|
**/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("governcapacityrank") |
|
|
|
public Result<List<GovernCapacityRankResultDTO>> governCapacityRank(@RequestBody AgencyAndNumFormDTO param){ |
|
|
|
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|
|
|
return new Result<List<GovernCapacityRankResultDTO>>().ok(grassRootsGovernService.governCapacityRank(param)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|