|
|
@ -1,13 +1,20 @@ |
|
|
package com.epmet.datareport.controller.screen; |
|
|
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.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.datareport.dao.screen.ScreenUserTotalDataDao; |
|
|
import com.epmet.datareport.dao.screen.ScreenUserTotalDataDao; |
|
|
import com.epmet.datareport.service.screen.GrassrootsPartyDevService; |
|
|
import com.epmet.datareport.service.screen.GrassrootsPartyDevService; |
|
|
|
|
|
import com.epmet.screen.dto.form.BranchBuildRankFormDTO; |
|
|
|
|
|
import com.epmet.screen.dto.form.BranchBuildTrendFormDTO; |
|
|
import com.epmet.screen.dto.form.ParymemberFormDTO; |
|
|
import com.epmet.screen.dto.form.ParymemberFormDTO; |
|
|
|
|
|
import com.epmet.screen.dto.result.BranchBuildRankResultDTO; |
|
|
|
|
|
import com.epmet.screen.dto.result.BranchBuildTrendResultDTO; |
|
|
|
|
|
import com.epmet.screen.dto.result.PartymemberAgeDistributionResultDTO; |
|
|
import com.epmet.screen.dto.result.PartymemberPercentResultDTO; |
|
|
import com.epmet.screen.dto.result.PartymemberPercentResultDTO; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
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.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
@ -32,10 +39,56 @@ public class GrassrootsPartyDevController { |
|
|
* @author wangc |
|
|
* @author wangc |
|
|
* @date 2020.08.18 16:59 |
|
|
* @date 2020.08.18 16:59 |
|
|
**/ |
|
|
**/ |
|
|
|
|
|
@ExternalAppRequestAuth |
|
|
@PostMapping("basicinfo") |
|
|
@PostMapping("basicinfo") |
|
|
Result<PartymemberPercentResultDTO> partymemberBaseInfo(ParymemberFormDTO param){ |
|
|
public Result<PartymemberPercentResultDTO> baseInfo(@RequestBody ParymemberFormDTO param){ |
|
|
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class); |
|
|
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class); |
|
|
return new Result<PartymemberPercentResultDTO>().ok(grassrootsPartyDevService.partymemberBaseInfo(param)); |
|
|
return new Result<PartymemberPercentResultDTO>().ok(grassrootsPartyDevService.partymemberBaseInfo(param)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 2、党员基本情况-年龄分布 |
|
|
|
|
|
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321980
|
|
|
|
|
|
* @param param |
|
|
|
|
|
* @return |
|
|
|
|
|
* @author wangc |
|
|
|
|
|
* @date 2020.08.18 17:54 |
|
|
|
|
|
**/ |
|
|
|
|
|
@ExternalAppRequestAuth |
|
|
|
|
|
@PostMapping("ageinfo") |
|
|
|
|
|
public Result<PartymemberAgeDistributionResultDTO> ageInfo(@RequestBody ParymemberFormDTO param){ |
|
|
|
|
|
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class); |
|
|
|
|
|
return new Result<PartymemberAgeDistributionResultDTO>().ok(grassrootsPartyDevService.partymemberAgeDistribution(param)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 3、支部建设情况|联建共建情况-折线图 |
|
|
|
|
|
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321981
|
|
|
|
|
|
* @param param |
|
|
|
|
|
* @return BranchBuildTrendResultDTO |
|
|
|
|
|
* @author wangc |
|
|
|
|
|
* @date 2020.08.19 11:02 |
|
|
|
|
|
**/ |
|
|
|
|
|
@ExternalAppRequestAuth |
|
|
|
|
|
@PostMapping("branchbuildtrend") |
|
|
|
|
|
public Result<BranchBuildTrendResultDTO> branchBuildTrend(@RequestBody BranchBuildTrendFormDTO param){ |
|
|
|
|
|
ValidatorUtils.validateEntity(param, BranchBuildTrendFormDTO.branchBuildTrendGroup.class); |
|
|
|
|
|
return new Result<BranchBuildTrendResultDTO>().ok(grassrootsPartyDevService.branchBuildTrend(param)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 4、支部建设情况|联建共建情况-排行 |
|
|
|
|
|
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321982
|
|
|
|
|
|
* @param param |
|
|
|
|
|
* @return |
|
|
|
|
|
* @author wangc |
|
|
|
|
|
* @date 2020.08.19 15:25 |
|
|
|
|
|
**/ |
|
|
|
|
|
@ExternalAppRequestAuth |
|
|
|
|
|
@PostMapping("branchbuildrank") |
|
|
|
|
|
public Result<BranchBuildRankResultDTO> branchBuildRank(@RequestBody BranchBuildRankFormDTO param){ |
|
|
|
|
|
ValidatorUtils.validateEntity(param, BranchBuildRankFormDTO.BranchBuildRankGroup.class); |
|
|
|
|
|
return new Result<BranchBuildRankResultDTO>().ok(grassrootsPartyDevService.branchBuildRank(param)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|