7 changed files with 377 additions and 2 deletions
@ -0,0 +1,29 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import com.epmet.dataaggre.dto.resigroup.form.CandidateListFormDTO; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-组织各种数据汇总-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AgenctBasicDataFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = AgenctBasicDataFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,96 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-组织各种数据汇总-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AgencyBasicDataResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
//用户总数
|
||||
|
private Integer userTotal = 0; |
||||
|
//党员总数
|
||||
|
private Integer partyMemberTotal = 0; |
||||
|
//党员总数占比
|
||||
|
private BigDecimal partyMemberRatio = bi; |
||||
|
//居民总数
|
||||
|
private Integer resiTotal = 0; |
||||
|
//居民总数占比
|
||||
|
private BigDecimal resiRatio = bi; |
||||
|
//党群小组总数
|
||||
|
private Integer groupTotal = 0; |
||||
|
//楼院小组总数
|
||||
|
private Integer ordinaryTotal = 0; |
||||
|
//楼院小组总数占比
|
||||
|
private BigDecimal ordinaryRatio = bi; |
||||
|
//支部小组总数
|
||||
|
private Integer branchTotal = 0; |
||||
|
//支部小组总数占比
|
||||
|
private BigDecimal branchRatio = bi; |
||||
|
//话题总数
|
||||
|
private Integer topicTotal = 0; |
||||
|
//热议中总数
|
||||
|
private Integer discussingTotal = 0; |
||||
|
//热议中总数占比
|
||||
|
private BigDecimal discussingRatio = bi; |
||||
|
//已处理总数
|
||||
|
private Integer closedTopicTotal = 0; |
||||
|
//已处理总数占比
|
||||
|
private BigDecimal closedTopicRatio = bi; |
||||
|
//转议题总数
|
||||
|
private Integer shiftIssueTotal = 0; |
||||
|
//转议题总数占比
|
||||
|
private BigDecimal shiftIssueRatio = bi; |
||||
|
//议题总数
|
||||
|
private Integer issueTotal = 0; |
||||
|
//表决中总数
|
||||
|
private Integer votingTotal = 0; |
||||
|
//表决中总数占比
|
||||
|
private BigDecimal votingRatio = bi; |
||||
|
//已处理总数
|
||||
|
private Integer closedIssueTotal = 0; |
||||
|
//已处理总数占比
|
||||
|
private BigDecimal closedIssueRatio = bi; |
||||
|
//已转项目总数
|
||||
|
private Integer shiftProjectTotal = 0; |
||||
|
//已转项目总数占比
|
||||
|
private BigDecimal shiftProjectRatio = bi; |
||||
|
//项目总数
|
||||
|
private Integer projectTotal = 0; |
||||
|
//处理中总数
|
||||
|
private Integer pendingTotal = 0; |
||||
|
//处理中总数占比
|
||||
|
private BigDecimal pendingRatio = bi; |
||||
|
//已结案总数
|
||||
|
private Integer closedProjectTotal = 0; |
||||
|
//已结案总数占比
|
||||
|
private BigDecimal closedProjectRatio = bi; |
||||
|
|
||||
|
|
||||
|
@Data |
||||
|
public static class Topic implements Serializable { |
||||
|
//话题数量
|
||||
|
private Integer topicCount; |
||||
|
//话题状态 已关闭:closed、已屏蔽:hidden、 讨论中:discussing
|
||||
|
private String topicStatus; |
||||
|
//话题已转议题数量
|
||||
|
private Integer shiftedIssueTotal; |
||||
|
//数据更新至 时间
|
||||
|
private String deadline; |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -1,9 +1,19 @@ |
|||||
package com.epmet.dataaggre.service.datastats; |
package com.epmet.dataaggre.service.datastats; |
||||
|
|
||||
|
import com.epmet.dataaggre.dto.datastats.form.AgenctBasicDataFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO; |
||||
|
|
||||
/** |
/** |
||||
* @Author sun |
* @Author sun |
||||
* @Description 数据统计服务 |
* @Description 数据统计服务 |
||||
*/ |
*/ |
||||
public interface DataStatsService { |
public interface DataStatsService { |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 组织下五项基础数据汇总 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO agencyBasicData(AgenctBasicDataFormDTO formDTO); |
||||
|
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue