forked from luyan/epmet-cloud-lingshan
				
			
				 12 changed files with 490 additions and 26 deletions
			
			
		@ -0,0 +1,18 @@ | 
				
			|||
package com.epmet.dataaggre.dto.datastats.form; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @author zhaoqifeng | 
				
			|||
 * @dscription | 
				
			|||
 * @date 2021/5/18 14:25 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class PartyMemberVanguardFormDTO implements Serializable { | 
				
			|||
	private static final long serialVersionUID = -4331281350678714877L; | 
				
			|||
	private String agencyId; | 
				
			|||
	private String orgId; | 
				
			|||
	private String orgType; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,74 @@ | 
				
			|||
package com.epmet.dataaggre.dto.datastats.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
import lombok.NoArgsConstructor; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.math.BigDecimal; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @author zhaoqifeng | 
				
			|||
 * @dscription | 
				
			|||
 * @date 2021/5/18 14:27 | 
				
			|||
 */ | 
				
			|||
@NoArgsConstructor | 
				
			|||
@Data | 
				
			|||
public class PartyMemberVanguardDetailResultDTO implements Serializable { | 
				
			|||
	private static final long serialVersionUID = 8315392246739995430L; | 
				
			|||
	/** | 
				
			|||
	 * 组织ID | 
				
			|||
	 */ | 
				
			|||
	private String orgId; | 
				
			|||
	/** | 
				
			|||
	 * 组织名 | 
				
			|||
	 */ | 
				
			|||
	private String orgName; | 
				
			|||
	/** | 
				
			|||
	 * 党员建组数 | 
				
			|||
	 */ | 
				
			|||
	private Integer groupCount; | 
				
			|||
	/** | 
				
			|||
	 * 党员建组数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal groupRatio; | 
				
			|||
	/** | 
				
			|||
	 * 组内党员人数 | 
				
			|||
	 */ | 
				
			|||
	private Integer groupMemberCount; | 
				
			|||
	/** | 
				
			|||
	 * 组内党员人数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal groupMemberRatio; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题数 | 
				
			|||
	 */ | 
				
			|||
	private Integer topicCount; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal topicRatio; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转议题数 | 
				
			|||
	 */ | 
				
			|||
	private Integer issueCount; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转议题数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal issueRatio; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转项目数 | 
				
			|||
	 */ | 
				
			|||
	private Integer projectCount; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转项目数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal projectRatio; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转项目结案数 | 
				
			|||
	 */ | 
				
			|||
	private Integer projectClosedCount; | 
				
			|||
	/** | 
				
			|||
	 * 党员发布话题转项目结案数占比 | 
				
			|||
	 */ | 
				
			|||
	private BigDecimal projectClosedRatio; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,18 @@ | 
				
			|||
package com.epmet.dataaggre.dto.datastats.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @author zhaoqifeng | 
				
			|||
 * @dscription | 
				
			|||
 * @date 2021/5/18 14:30 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class PartyMemberVanguardRankResultDTO implements Serializable { | 
				
			|||
	private static final long serialVersionUID = -3103242333633668412L; | 
				
			|||
	private List<PartyMemberVanguardDetailResultDTO> agencyRank; | 
				
			|||
	private List<PartyMemberVanguardDetailResultDTO> gridRank; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,51 @@ | 
				
			|||
package com.epmet.dataaggre.controller; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.utils.Result; | 
				
			|||
import com.epmet.dataaggre.dto.datastats.form.PartyMemberVanguardFormDTO; | 
				
			|||
import com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO; | 
				
			|||
import com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardRankResultDTO; | 
				
			|||
import com.epmet.dataaggre.service.datastats.DataStatsService; | 
				
			|||
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 javax.annotation.Resource; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @author zhaoqifeng | 
				
			|||
 * @dscription | 
				
			|||
 * @date 2021/5/18 14:19 | 
				
			|||
 */ | 
				
			|||
@RestController | 
				
			|||
@RequestMapping("vanguard") | 
				
			|||
public class PartyMemberVanguardController { | 
				
			|||
	@Resource | 
				
			|||
	private DataStatsService dataStatsService; | 
				
			|||
 | 
				
			|||
	/** | 
				
			|||
	 * 党员先锋--组织/网格详情 | 
				
			|||
	 * @author zhaoqifeng | 
				
			|||
	 * @date 2021/5/18 15:16  | 
				
			|||
	 * @param formDTO | 
				
			|||
	 * @return com.epmet.commons.tools.utils.Result<com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO> | 
				
			|||
	 */ | 
				
			|||
	@PostMapping("detail") | 
				
			|||
	public Result<PartyMemberVanguardDetailResultDTO> vanguardDetail(@RequestBody PartyMemberVanguardFormDTO formDTO) { | 
				
			|||
		PartyMemberVanguardDetailResultDTO result = dataStatsService.vanguardDetail(formDTO); | 
				
			|||
		return new Result<PartyMemberVanguardDetailResultDTO>().ok(result); | 
				
			|||
	} | 
				
			|||
 | 
				
			|||
	/** | 
				
			|||
	 * 党员先锋--下级组织排行 | 
				
			|||
	 * @author zhaoqifeng | 
				
			|||
	 * @date 2021/5/18 15:16 | 
				
			|||
	 * @param formDTO | 
				
			|||
	 * @return com.epmet.commons.tools.utils.Result<com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardRankResultDTO> | 
				
			|||
	 */ | 
				
			|||
	@PostMapping("orgrank") | 
				
			|||
	public Result<PartyMemberVanguardRankResultDTO> vanguardRank(@RequestBody PartyMemberVanguardFormDTO formDTO) { | 
				
			|||
		PartyMemberVanguardRankResultDTO result = dataStatsService.vanguardRank(formDTO); | 
				
			|||
		return new Result<PartyMemberVanguardRankResultDTO>().ok(result); | 
				
			|||
	} | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue