376 changed files with 21873 additions and 272 deletions
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 单客户-工作端微信小程序登录-发送验证码 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ThirdSendSmsCodeFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -1852541457359282018L; |
||||
|
/** |
||||
|
* 小程序appId |
||||
|
*/ |
||||
|
@NotBlank(message = "appId不能为空", groups = {AddUserShowGroup.class}) |
||||
|
private String appId; |
||||
|
/** |
||||
|
* 手机号 |
||||
|
*/ |
||||
|
@NotBlank(message = "手机号不能为空", groups = {AddUserShowGroup.class}) |
||||
|
private String mobile; |
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup {} |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.commons.tools.enums; |
||||
|
|
||||
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
||||
|
import com.epmet.commons.tools.exception.RenException; |
||||
|
|
||||
|
/** |
||||
|
* 组织级别枚举类 |
||||
|
* dev|test|prod |
||||
|
* |
||||
|
* @author jianjun liu |
||||
|
* @date 2020-07-03 11:14 |
||||
|
**/ |
||||
|
public enum OrgLevelEnum { |
||||
|
/** |
||||
|
* 组织等级枚举 |
||||
|
*/ |
||||
|
GRID("grid"), |
||||
|
COMMUNITY("community"), |
||||
|
STREET("street"), |
||||
|
DISTRICT("district"), |
||||
|
CITY("city"), |
||||
|
PROVINCE("province"), |
||||
|
; |
||||
|
|
||||
|
private String code; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
OrgLevelEnum(String code) { |
||||
|
this.code = code; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public static OrgLevelEnum getEnum(String code) { |
||||
|
OrgLevelEnum[] values = OrgLevelEnum.values(); |
||||
|
for (OrgLevelEnum value : values) { |
||||
|
if (value.getCode().equals(code)) { |
||||
|
return value; |
||||
|
} |
||||
|
} |
||||
|
throw new RenException(EpmetErrorCode.INTERNAL_VALIDATE_ERROR.getCode()); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.dto.datastats; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 组织活动(参加人数、组织次数、平均参加人数)按天累计值分析 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class FactGroupActDailyDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 4411632223804355342L; |
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 数据更新至日期Id:yyyyMMdd |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
|
||||
|
/** |
||||
|
* 网格id |
||||
|
*/ |
||||
|
private String orgId; |
||||
|
|
||||
|
/** |
||||
|
* 网格:grid;组织:agency |
||||
|
*/ |
||||
|
private String orgType; |
||||
|
|
||||
|
/** |
||||
|
* 1)orgType=grid: pid=网格所属组织id; |
||||
|
2)orgType=agency: pid=当前组织的上级组织 |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 1)orgType=grid: pids=网格所有上级组织,包括pid; |
||||
|
2)orgType=agency: pids=当前组织的所有上级组织,包括pid. |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 活动分类编码 |
||||
|
*/ |
||||
|
private String categoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 上级分类编码 |
||||
|
*/ |
||||
|
private String parentCode; |
||||
|
|
||||
|
/** |
||||
|
* 分类等级 |
||||
|
*/ |
||||
|
private Integer level; |
||||
|
|
||||
|
/** |
||||
|
* 截止到dateId: 组织次数;包含dateId这一天的数据 |
||||
|
*/ |
||||
|
private Integer organizeTotal; |
||||
|
|
||||
|
/** |
||||
|
* 截止到dateId: 参加人数;包含dateId这一天的数据 |
||||
|
*/ |
||||
|
private Integer participateUserTotal; |
||||
|
|
||||
|
/** |
||||
|
* 截止到dateId: 平均参加人数;包含dateId这一天的数据 |
||||
|
*/ |
||||
|
private Integer avgParticipateUserTotal; |
||||
|
|
||||
|
} |
@ -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 dateId; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-当前组织治理指数-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AgencyGovrnFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = AgencyGovrnFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
/** |
||||
|
* 排序类型字段 |
||||
|
* 问题解决总数:problem |
||||
|
* 党群自治占比:party |
||||
|
* 网格自治占比:grid |
||||
|
* 社区解决占比:community |
||||
|
* 区直部门解决占比:department |
||||
|
* 街道解决占比:street |
||||
|
*/ |
||||
|
private String type; |
||||
|
public interface Agency extends CustomerClientShowGroup {} |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-组织/网格下响应解决满意自治率-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovrnRatioFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织或网格Id不能为空", groups = GovrnRatioFormDTO.AgencyGrid.class) |
||||
|
private String orgId; |
||||
|
/** |
||||
|
* 组织:agency 网格:grid |
||||
|
*/ |
||||
|
@NotBlank(message = "网格Id不能为空", groups = GovrnRatioFormDTO.AgencyGrid.class) |
||||
|
private String orgType; |
||||
|
/** |
||||
|
* 日维度Id[日期,不传值默认查前一天的【格式:20210101】] |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
public interface AgencyGrid extends CustomerClientShowGroup {} |
||||
|
|
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-网格各种数据汇总-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GridBasicDataFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 网格Id |
||||
|
*/ |
||||
|
@NotBlank(message = "网格ID不能为空",groups = GridBasicDataFormDTO.Grid.class) |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
public interface Grid extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-当前网格治理指数-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GridGovrnFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "机关Id不能为空",groups = GridGovrnFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 网格Id |
||||
|
*/ |
||||
|
@NotBlank(message = "网格Id不能为空",groups = GridGovrnFormDTO.Grid.class) |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
/** |
||||
|
* 排序类型字段 |
||||
|
* 问题解决总数:problem |
||||
|
* 党群自治占比:party |
||||
|
* 网格自治占比:grid |
||||
|
* 社区解决占比:community |
||||
|
* 区直部门解决占比:department |
||||
|
* 街道解决占比:street |
||||
|
*/ |
||||
|
private String type; |
||||
|
public interface Agency extends CustomerClientShowGroup {} |
||||
|
public interface Grid extends CustomerClientShowGroup {} |
||||
|
|
||||
|
} |
@ -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,51 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-组织直属下级数据汇总-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = SubAgencyFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
/** |
||||
|
* 排序类型字段 |
||||
|
* 用户【用户:user 党员:party 居民:resi】 |
||||
|
* 党群【党群:group 楼院小组:ordinary 支部小组:branch】 |
||||
|
* 话题【话题:topic 热议中:discussing 已处理:closed 已转议题:shiftIssue】 |
||||
|
* 议题【议题:issue 表决中:voting 已转项目:shiftProject 已处理:closed】 |
||||
|
* 项目【项目:project 处理中:pending 已结案:closed】 |
||||
|
*/ |
||||
|
private String type; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
@Data |
||||
|
public static class Topic implements Serializable { |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//话题总量
|
||||
|
private Integer topicTotal; |
||||
|
//话题数量
|
||||
|
private Integer topicCount; |
||||
|
//话题状态 已关闭:closed、已屏蔽:hidden、 讨论中:discussing
|
||||
|
private String topicStatus; |
||||
|
//话题已转议题数量
|
||||
|
private Integer shiftedIssueTotal; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-组织直属网格数据汇总-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = SubGridFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
/** |
||||
|
* 排序类型字段 |
||||
|
* 用户【用户:user 党员:party 居民:resi】 |
||||
|
* 党群【党群:group 楼院小组:ordinary 支部小组:branch】 |
||||
|
* 话题【话题:topic 热议中:discussing 已处理:closed 已转议题:shiftIssue】 |
||||
|
* 议题【议题:issue 表决中:voting 已转项目:shiftProject 已处理:closed】 |
||||
|
* 项目【项目:project 处理中:pending 已结案:closed】 |
||||
|
*/ |
||||
|
private String type; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
@Data |
||||
|
public static class Topic implements Serializable { |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//话题总量
|
||||
|
private Integer topicTotal; |
||||
|
//话题数量
|
||||
|
private Integer topicCount; |
||||
|
//话题状态 已关闭:closed、已屏蔽:hidden、 讨论中:discussing
|
||||
|
private String topicStatus; |
||||
|
//话题已转议题数量
|
||||
|
private Integer shiftedIssueTotal; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
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; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
/** |
||||
|
* 组织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 topicTotal; |
||||
|
//话题数量
|
||||
|
private Integer topicCount; |
||||
|
//话题状态 已关闭:closed、已屏蔽:hidden、 讨论中:discussing
|
||||
|
private String topicStatus; |
||||
|
//话题已转议题数量
|
||||
|
private Integer shiftedIssueTotal; |
||||
|
//数据更新至 时间
|
||||
|
private String deadline; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-当前组织治理指数-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AgencyGovrnResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName = ""; |
||||
|
//agency_id所属的机关级别(社区级:community,乡(镇、街道)级:street, 区县级: district, 市级: city, 省级:province)
|
||||
|
private String level = ""; |
||||
|
//问题解决总数
|
||||
|
private Integer problemResolvedCount = 0; |
||||
|
//党群自治占比
|
||||
|
private String groupSelfGovernRatio = "0%"; |
||||
|
//网格自治占比
|
||||
|
private String gridSelfGovernRatio = "0%"; |
||||
|
//社区解决占比
|
||||
|
private String communityResolvedRatio = "0%"; |
||||
|
//区直部门解决占比
|
||||
|
private String districtDeptResolvedRatio = "0%"; |
||||
|
//街道解决占比
|
||||
|
private String streetResolvedRatio = "0%"; |
||||
|
|
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-组织/网格下响应解决满意自治率-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GovrnRatioResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
//组织或网格Id
|
||||
|
private String orgId; |
||||
|
//组织:agency 网格:grid
|
||||
|
private String orgType; |
||||
|
//响应率
|
||||
|
private String responseRatio = "0%"; |
||||
|
//解决率
|
||||
|
private String resolvedRatio = "0%"; |
||||
|
//自治率
|
||||
|
private String governRatio = "0%"; |
||||
|
//满意率
|
||||
|
private String satisfactionRatio = "0%"; |
||||
|
|
||||
|
} |
@ -0,0 +1,96 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-网格各种数据汇总-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GridBasicDataResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
/** |
||||
|
* 网格Id |
||||
|
*/ |
||||
|
private String gridId; |
||||
|
//用户总数
|
||||
|
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 topicTotal; |
||||
|
//话题数量
|
||||
|
private Integer topicCount; |
||||
|
//话题状态 已关闭:closed、已屏蔽:hidden、 讨论中:discussing
|
||||
|
private String topicStatus; |
||||
|
//话题已转议题数量
|
||||
|
private Integer shiftedIssueTotal; |
||||
|
//数据更新至 时间
|
||||
|
private String deadline; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 治理实况-当前网格治理指数-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GridGovrnResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName = ""; |
||||
|
//问题解决总数
|
||||
|
private Integer problemResolvedCount = 0; |
||||
|
//党群自治占比
|
||||
|
private String groupSelfGovernRatio = "0%"; |
||||
|
//网格自治占比
|
||||
|
private String gridSelfGovernRatio = "0%"; |
||||
|
//社区解决占比
|
||||
|
private String communityResolvedRatio = "0%"; |
||||
|
//区直部门解决占比
|
||||
|
private String districtDeptResolvedRatio = "0%"; |
||||
|
//街道解决占比
|
||||
|
private String streetResolvedRatio = "0%"; |
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
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; |
||||
|
/** |
||||
|
* 组织类型 机关 agency 网格 grid |
||||
|
*/ |
||||
|
private String orgType; |
||||
|
/** |
||||
|
* 党员建组数 |
||||
|
*/ |
||||
|
private Integer groupCount = 0; |
||||
|
/** |
||||
|
* 党员建组数占比 |
||||
|
*/ |
||||
|
private BigDecimal groupRatio; |
||||
|
/** |
||||
|
* 组内党员人数 |
||||
|
*/ |
||||
|
private Integer groupMemberCount = 0; |
||||
|
/** |
||||
|
* 组内党员人数占比 |
||||
|
*/ |
||||
|
private BigDecimal groupMemberRatio; |
||||
|
/** |
||||
|
* 党员发布话题数 |
||||
|
*/ |
||||
|
private Integer topicCount = 0; |
||||
|
/** |
||||
|
* 党员发布话题数占比 |
||||
|
*/ |
||||
|
private BigDecimal topicRatio; |
||||
|
/** |
||||
|
* 党员发布话题转议题数 |
||||
|
*/ |
||||
|
private Integer issueCount = 0; |
||||
|
/** |
||||
|
* 党员发布话题转议题数占比 |
||||
|
*/ |
||||
|
private BigDecimal issueRatio; |
||||
|
/** |
||||
|
* 党员发布话题转项目数 |
||||
|
*/ |
||||
|
private Integer projectCount = 0; |
||||
|
/** |
||||
|
* 党员发布话题转项目数占比 |
||||
|
*/ |
||||
|
private BigDecimal projectRatio; |
||||
|
/** |
||||
|
* 党员发布话题转项目结案数 |
||||
|
*/ |
||||
|
private Integer projectClosedCount = 0; |
||||
|
/** |
||||
|
* 党员发布话题转项目结案数占比 |
||||
|
*/ |
||||
|
private BigDecimal projectClosedRatio; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
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; |
||||
|
/** |
||||
|
* |
||||
|
* 组织级别 社区级:community,乡(镇、街道)级:street,区县级: district,市级: city,省级:province |
||||
|
*/ |
||||
|
private String agencyLevel; |
||||
|
private List<PartyMemberVanguardDetailResultDTO> agencyRank; |
||||
|
private List<PartyMemberVanguardDetailResultDTO> gridRank; |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织的直属下级组织群组数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyGroupResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName; |
||||
|
//党群小组总数
|
||||
|
private Integer groupTotal = 0; |
||||
|
//楼院小组总数
|
||||
|
private Integer ordinaryTotal = 0; |
||||
|
//楼院小组总数占比
|
||||
|
private BigDecimal ordinaryRatio = bi; |
||||
|
//支部小组总数
|
||||
|
private Integer branchTotal = 0; |
||||
|
//支部小组总数占比
|
||||
|
private BigDecimal branchRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织的直属下级组织议题数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyIssueResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName; |
||||
|
//议题总数
|
||||
|
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; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织的直属下级组织项目数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyProjectResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName; |
||||
|
//项目总数
|
||||
|
private Integer projectTotal = 0; |
||||
|
//处理中总数
|
||||
|
private Integer pendingTotal = 0; |
||||
|
//处理中总数占比
|
||||
|
private BigDecimal pendingRatio = bi; |
||||
|
//已结案总数
|
||||
|
private Integer closedProjectTotal = 0; |
||||
|
//已结案总数占比
|
||||
|
private BigDecimal closedProjectRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织的直属下级组织话题数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyTopicResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName; |
||||
|
//话题总数
|
||||
|
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; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织的直属下级组织用户数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAgencyUserResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//组织Id
|
||||
|
private String agencyId; |
||||
|
//组织名称
|
||||
|
private String agencyName; |
||||
|
//用户总数
|
||||
|
private Integer userTotal = 0; |
||||
|
//党员总数
|
||||
|
private Integer partyMemberTotal = 0; |
||||
|
//党员总数占比
|
||||
|
private BigDecimal partyMemberRatio = bi; |
||||
|
//居民总数
|
||||
|
private Integer resiTotal = 0; |
||||
|
//居民总数占比
|
||||
|
private BigDecimal resiRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织下直属网格列表群组数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridGroupResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//党群小组总数
|
||||
|
private Integer groupTotal = 0; |
||||
|
//楼院小组总数
|
||||
|
private Integer ordinaryTotal = 0; |
||||
|
//楼院小组总数占比
|
||||
|
private BigDecimal ordinaryRatio = bi; |
||||
|
//支部小组总数
|
||||
|
private Integer branchTotal = 0; |
||||
|
//支部小组总数占比
|
||||
|
private BigDecimal branchRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织下直属网格列表议题数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridIssueResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//议题总数
|
||||
|
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; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织下直属网格列表项目数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridProjectResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//项目总数
|
||||
|
private Integer projectTotal = 0; |
||||
|
//处理中总数
|
||||
|
private Integer pendingTotal = 0; |
||||
|
//处理中总数占比
|
||||
|
private BigDecimal pendingRatio = bi; |
||||
|
//已结案总数
|
||||
|
private Integer closedProjectTotal = 0; |
||||
|
//已结案总数占比
|
||||
|
private BigDecimal closedProjectRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织下直属网格列表话题数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridTopicResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//话题总数
|
||||
|
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; |
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-查询当前组织下直属网格列表用户数据-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubGridUserResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
@JsonIgnore |
||||
|
BigDecimal bi = new BigDecimal(0); |
||||
|
//网格Id
|
||||
|
private String gridId; |
||||
|
//网格名称
|
||||
|
private String gridName; |
||||
|
//用户总数
|
||||
|
private Integer userTotal = 0; |
||||
|
//党员总数
|
||||
|
private Integer partyMemberTotal = 0; |
||||
|
//党员总数占比
|
||||
|
private BigDecimal partyMemberRatio = bi; |
||||
|
//居民总数
|
||||
|
private Integer resiTotal = 0; |
||||
|
//居民总数占比
|
||||
|
private BigDecimal resiRatio = bi; |
||||
|
|
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.dto.resigroup; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 活动类别字典 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-16 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ActCategoryDictDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 类别编码 |
||||
|
*/ |
||||
|
private String categoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 活动类别名称;eg:支部建设、联建共建 |
||||
|
*/ |
||||
|
private String categoryName; |
||||
|
|
||||
|
/** |
||||
|
* 等级1,2...... |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private Integer level; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 上级类别编码 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String parentCode; |
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 001、【支建+联建】统计分析 入参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 9:16 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BranchConAnalysisFormDTO implements Serializable { |
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 支部建设:100;联建共建:101 |
||||
|
*/ |
||||
|
@NotBlank(message = "firstCategoryCode必传,支部建设:100;联建共建:101", groups = AddUserInternalGroup.class) |
||||
|
private String firstCategoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 当前客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户id不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 当前组织或者网格id |
||||
|
*/ |
||||
|
@NotBlank(message = "orgId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String orgId; |
||||
|
|
||||
|
/** |
||||
|
* 默认传组织:agency; 网格:grid |
||||
|
*/ |
||||
|
@NotBlank(message = "orgType不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String orgType; |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 002、【支建+联建】二级分类字典查询 入参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 13:42 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GroupActCategoryQueryFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 8373780230315448396L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 支部建设:100;联建共建:101 |
||||
|
*/ |
||||
|
@NotBlank(message = "firstCategoryCode必传,支部建设:100;联建共建:101", groups = AddUserInternalGroup.class) |
||||
|
private String firstCategoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 当前客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户id不能为空", groups = BranchConAnalysisFormDTO.AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 005、【支建+联建】下级组织排行列表 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 17:30 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GroupActRankFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 2293552582281839132L; |
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 支部建设:100;联建共建:101 |
||||
|
*/ |
||||
|
@NotBlank(message = "firstCategoryCode必传,支部建设:100;联建共建:101", groups = BranchConAnalysisFormDTO.AddUserInternalGroup.class) |
||||
|
private String firstCategoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 当前客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户id不能为空", groups = BranchConAnalysisFormDTO.AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 当前组织或者网格id |
||||
|
*/ |
||||
|
@NotBlank(message = "orgId不能为空", groups = BranchConAnalysisFormDTO.AddUserInternalGroup.class) |
||||
|
private String orgId; |
||||
|
|
||||
|
/** |
||||
|
* 默认传组织:agency; 网格:grid |
||||
|
*/ |
||||
|
@NotBlank(message = "orgType不能为空", groups = BranchConAnalysisFormDTO.AddUserInternalGroup.class) |
||||
|
private String orgType; |
||||
|
|
||||
|
/** |
||||
|
* 排序编码;可以不传,前端自己处理。 |
||||
|
*/ |
||||
|
private String rankCode; |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 003、【支建+联建】下级组织折线图 入参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 13:52 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAnalysisByCodeFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -4132250208377993452L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 分类编码;002接口返回的 |
||||
|
*/ |
||||
|
@NotBlank(message = "categoryCode不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String categoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 当前客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户id不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 当前组织或者网格id |
||||
|
*/ |
||||
|
@NotBlank(message = "orgId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String orgId; |
||||
|
|
||||
|
/** |
||||
|
* 默认传组织:agency; 网格:grid |
||||
|
*/ |
||||
|
@NotBlank(message = "orgType不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String orgType; |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 001、【支建+联建】统计分析 返参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 15:12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BranchConAnalysisDetailDTO implements Serializable { |
||||
|
private String name; |
||||
|
private String type; |
||||
|
private Integer value; |
||||
|
private Integer avg; |
||||
|
private String categoryCode; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 001、【支建+联建】统计分析 返参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 10:01 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BranchConAnalysisResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -4998343002705222898L; |
||||
|
|
||||
|
/** |
||||
|
* 组织活动次数 |
||||
|
*/ |
||||
|
private Integer organizeTotal; |
||||
|
|
||||
|
/** |
||||
|
* 参加活动人数 |
||||
|
*/ |
||||
|
private Integer participateUserTotal; |
||||
|
|
||||
|
private List<BranchConAnalysisDetailDTO> dataList; |
||||
|
|
||||
|
public BranchConAnalysisResultDTO() { |
||||
|
this.organizeTotal = NumConstant.ZERO; |
||||
|
this.participateUserTotal = NumConstant.ZERO; |
||||
|
this.dataList=new ArrayList<>(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 005、【支建+联建】下级组织排行列表 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/19 9:31 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GroupActRankDetailDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 7738751412518098478L; |
||||
|
|
||||
|
private String categoryCode; |
||||
|
private String categoryName; |
||||
|
private Integer organizeTotal; |
||||
|
private Integer participateUserTotal; |
||||
|
private String organizeName; |
||||
|
private String participateUserName; |
||||
|
} |
@ -0,0 +1,42 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 005、【支建+联建】下级组织排行列表 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 17:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GroupActRankResultDTO implements Serializable { |
||||
|
private String orgId; |
||||
|
private String orgType; |
||||
|
private String orgName; |
||||
|
private Integer organizeTotal; |
||||
|
private String organizeName; |
||||
|
private Integer participateUserTotal; |
||||
|
private String participateUserName; |
||||
|
private List<GroupActRankDetailDTO> categoryList; |
||||
|
|
||||
|
// @JsonIgnore
|
||||
|
private Integer sortValue; |
||||
|
|
||||
|
public GroupActRankResultDTO() { |
||||
|
this.orgId = ""; |
||||
|
this.orgType = ""; |
||||
|
this.orgName = ""; |
||||
|
this.organizeTotal = NumConstant.ZERO; |
||||
|
this.organizeName = "组织总次数"; |
||||
|
this.participateUserTotal = NumConstant.ZERO; |
||||
|
this.participateUserName = "参加总人数"; |
||||
|
this.categoryList = new ArrayList<>(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 组织或者网格基本信息 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 14:36 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrgInfoCommonDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2191521364070476999L; |
||||
|
|
||||
|
private String orgId; |
||||
|
private String orgName; |
||||
|
private String orgType; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 004、【支建+联建】排序方式下拉框 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 17:01 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RankCodeResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 7991057885312015889L; |
||||
|
private String rankCode; |
||||
|
private String rankName; |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.epmet.dataaggre.dto.resigroup.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 003、【支建+联建】下级组织折线图 返参 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 14:09 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubAnalysisByCodeResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -6025482721295705372L; |
||||
|
|
||||
|
/** |
||||
|
* 横坐标名称:组织名或者网格名 |
||||
|
*/ |
||||
|
private String name; |
||||
|
|
||||
|
/** |
||||
|
* 参加人数、组织次数、平均参加人数 |
||||
|
*/ |
||||
|
private String type; |
||||
|
|
||||
|
private Integer value; |
||||
|
|
||||
|
private String orgId; |
||||
|
} |
@ -0,0 +1,218 @@ |
|||||
|
package com.epmet.dataaggre.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.exception.RenException; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.*; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.*; |
||||
|
import com.epmet.dataaggre.service.datastats.DataStatsService; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 数据统计服务 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("datastats") |
||||
|
public class DataStatsController { |
||||
|
|
||||
|
@Autowired |
||||
|
private DataStatsService dataStatsService; |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 组织下五项基础数据汇总 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("agencybasicdata") |
||||
|
public Result<AgencyBasicDataResultDTO> agencyBasicData(@RequestBody AgenctBasicDataFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, AgenctBasicDataFormDTO.Agency.class); |
||||
|
return new Result<AgencyBasicDataResultDTO>().ok(dataStatsService.agencyBasicData(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 网格下五项基础数据汇总 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("gridbasicdata") |
||||
|
public Result<GridBasicDataResultDTO> gridBasicData(@RequestBody GridBasicDataFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, GridBasicDataFormDTO.Grid.class); |
||||
|
return new Result<GridBasicDataResultDTO>().ok(dataStatsService.gridBasicData(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织用户数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencyuser") |
||||
|
public Result<List<SubAgencyUserResultDTO>> subAgencyUser(@RequestBody SubAgencyFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubAgencyFormDTO.Agency.class); |
||||
|
return new Result<List<SubAgencyUserResultDTO>>().ok(dataStatsService.subAgencyUser(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表用户数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgriduser") |
||||
|
public Result<List<SubGridUserResultDTO>> subGridUser(@RequestBody SubGridFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubGridFormDTO.Agency.class); |
||||
|
return new Result<List<SubGridUserResultDTO>>().ok(dataStatsService.subGridUser(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织群组数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencygroup") |
||||
|
public Result<List<SubAgencyGroupResultDTO>> subAgencyGroup(@RequestBody SubAgencyFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubAgencyFormDTO.Agency.class); |
||||
|
return new Result<List<SubAgencyGroupResultDTO>>().ok(dataStatsService.subAgencyGroup(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表群组数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgridgroup") |
||||
|
public Result<List<SubGridGroupResultDTO>> subGridGroup(@RequestBody SubGridFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubGridFormDTO.Agency.class); |
||||
|
return new Result<List<SubGridGroupResultDTO>>().ok(dataStatsService.subGridGroup(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织话题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencytopic") |
||||
|
public Result<List<SubAgencyTopicResultDTO>> subAgencyTopic(@RequestBody SubAgencyFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubAgencyFormDTO.Agency.class); |
||||
|
return new Result<List<SubAgencyTopicResultDTO>>().ok(dataStatsService.subAgencyTopic(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表话题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgridtopic") |
||||
|
public Result<List<SubGridTopicResultDTO>> subGridTopic(@RequestBody SubGridFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubGridFormDTO.Agency.class); |
||||
|
return new Result<List<SubGridTopicResultDTO>>().ok(dataStatsService.subGridTopic(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织议题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencyissue") |
||||
|
public Result<List<SubAgencyIssueResultDTO>> subAgencyIssue(@RequestBody SubAgencyFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubAgencyFormDTO.Agency.class); |
||||
|
return new Result<List<SubAgencyIssueResultDTO>>().ok(dataStatsService.subAgencyIssue(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表议题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgridissue") |
||||
|
public Result<List<SubGridIssueResultDTO>> subGridIssue(@RequestBody SubGridFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubGridFormDTO.Agency.class); |
||||
|
return new Result<List<SubGridIssueResultDTO>>().ok(dataStatsService.subGridIssue(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织项目数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencyproject") |
||||
|
public Result<List<SubAgencyProjectResultDTO>> subAgencyProject(@RequestBody SubAgencyFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubAgencyFormDTO.Agency.class); |
||||
|
return new Result<List<SubAgencyProjectResultDTO>>().ok(dataStatsService.subAgencyProject(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表项目数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgridproject") |
||||
|
public Result<List<SubGridProjectResultDTO>> subGridProject(@RequestBody SubGridFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, SubGridFormDTO.Agency.class); |
||||
|
return new Result<List<SubGridProjectResultDTO>>().ok(dataStatsService.subGridProject(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-当前组织治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("agencygovrn") |
||||
|
public Result<AgencyGovrnResultDTO> agencyGovrn(@RequestBody AgencyGovrnFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, AgencyGovrnFormDTO.Agency.class); |
||||
|
return new Result<AgencyGovrnResultDTO>().ok(dataStatsService.agencyGovrn(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织直属下级治理指数列表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subagencygovrnlist") |
||||
|
public Result<List<AgencyGovrnResultDTO>> subAgencyGovrnList(@RequestBody AgencyGovrnFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, AgencyGovrnFormDTO.Agency.class); |
||||
|
return new Result<List<AgencyGovrnResultDTO>>().ok(dataStatsService.subAgencyGovrnList(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-当前网格治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("gridgovrn") |
||||
|
public Result<GridGovrnResultDTO> gridGovrn(@RequestBody GridGovrnFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, GridGovrnFormDTO.Grid.class); |
||||
|
return new Result<GridGovrnResultDTO>().ok(dataStatsService.gridGovrn(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织直属网格治理指数列表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subgridgovrnlist") |
||||
|
public Result<List<GridGovrnResultDTO>> subGridGovrnList(@RequestBody GridGovrnFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, GridGovrnFormDTO.Agency.class); |
||||
|
return new Result<List<GridGovrnResultDTO>>().ok(dataStatsService.subGridGovrnList(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织/网格下响应解决满意自治率 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("governratio") |
||||
|
public Result<GovrnRatioResultDTO> governRatio(@RequestBody GovrnRatioFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, GovrnRatioFormDTO.AgencyGrid.class); |
||||
|
if (!"agency".equals(formDTO.getOrgType()) && !"grid".equals(formDTO.getOrgType())) { |
||||
|
throw new RenException(String.format("入参格式错误,错误的组织或网格类型:%s", formDTO.getOrgType())); |
||||
|
} |
||||
|
return new Result<GovrnRatioResultDTO>().ok(dataStatsService.governRatio(formDTO)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
package com.epmet.dataaggre.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dataaggre.dto.resigroup.ActCategoryDictDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.form.BranchConAnalysisFormDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.form.GroupActCategoryQueryFormDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.form.GroupActRankFormDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.form.SubAnalysisByCodeFormDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.BranchConAnalysisResultDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.GroupActRankResultDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.RankCodeResultDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.SubAnalysisByCodeResultDTO; |
||||
|
import com.epmet.dataaggre.service.resigroup.ResiGroupService; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* 专项组-组织活动相关API放这 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/5/18 9:08 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("groupact") |
||||
|
public class GroupActController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ResiGroupService resiGroupService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dataaggre.dto.resigroup.result.BranchConAnalysisResultDTO> |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 001、【支建+联建】统计分析 |
||||
|
* @Date 2021/5/18 10:17 |
||||
|
**/ |
||||
|
@PostMapping("branchconanalysis") |
||||
|
public Result<BranchConAnalysisResultDTO> branchConAnalysis(@RequestBody BranchConAnalysisFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,BranchConAnalysisFormDTO.AddUserInternalGroup.class); |
||||
|
return new Result<BranchConAnalysisResultDTO>().ok(resiGroupService.branchConAnalysis(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dataaggre.dto.resigroup.ActCategoryDictDTO>> |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 002、【支建+联建】二级分类字典查询 |
||||
|
* @Date 2021/5/18 13:49 |
||||
|
**/ |
||||
|
@PostMapping("categorydictlist") |
||||
|
public Result<List<ActCategoryDictDTO>> queryCategoryDictList(@RequestBody GroupActCategoryQueryFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,GroupActCategoryQueryFormDTO.AddUserInternalGroup.class); |
||||
|
return new Result<List<ActCategoryDictDTO>>().ok(resiGroupService.queryActCategoryDictList(formDTO.getCustomerId(),formDTO.getFirstCategoryCode())); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dataaggre.dto.resigroup.result.SubAnalysisByCodeResultDTO> |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 003、【支建+联建】下级组织折线图 |
||||
|
* @Date 2021/5/18 14:31 |
||||
|
**/ |
||||
|
@PostMapping("subanalysisbycode") |
||||
|
public Result<List<SubAnalysisByCodeResultDTO>> querySubAnalysisByCode(@RequestBody SubAnalysisByCodeFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,GroupActCategoryQueryFormDTO.AddUserInternalGroup.class); |
||||
|
return new Result<List<SubAnalysisByCodeResultDTO>>().ok(resiGroupService.querySubAnalysisByCode(formDTO)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dataaggre.dto.resigroup.result.RankCodeResultDTO>> |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 004、【支建+联建】排序方式下拉框 |
||||
|
* @Date 2021/5/18 17:14 |
||||
|
**/ |
||||
|
@PostMapping("rankcodelist") |
||||
|
public Result<List<RankCodeResultDTO>> queryRankCodeList(@RequestBody GroupActCategoryQueryFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,GroupActCategoryQueryFormDTO.AddUserInternalGroup.class); |
||||
|
return new Result<List<RankCodeResultDTO>>().ok(resiGroupService.queryRankCodeList(formDTO)); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dataaggre.dto.resigroup.result.GroupActRankResultDTO>> |
||||
|
* @param formDTO |
||||
|
* @author yinzuomei |
||||
|
* @description 005、【支建+联建】下级组织排行列表 |
||||
|
* @Date 2021/5/18 17:46 |
||||
|
**/ |
||||
|
@PostMapping("subranklist") |
||||
|
public Result<List<GroupActRankResultDTO>> querySubRankList(@RequestBody GroupActRankFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,GroupActRankFormDTO.AddUserInternalGroup.class); |
||||
|
return new Result<List<GroupActRankResultDTO>>().ok(resiGroupService.querySubRankList(formDTO)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -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); |
||||
|
} |
||||
|
} |
@ -0,0 +1,245 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.dao.datastats; |
||||
|
|
||||
|
import com.epmet.dataaggre.dto.datastats.FactGroupActDailyDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.SubAgencyFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.SubGridFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.*; |
||||
|
import com.epmet.dataaggre.dto.resigroup.ActCategoryDictDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.GroupActRankDetailDTO; |
||||
|
import com.epmet.dataaggre.entity.datastats.DimAgencyEntity; |
||||
|
import com.epmet.dataaggre.entity.datastats.DimGridEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 数据统计服务 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface DataStatsDao { |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下注册用户最新日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO getAgnecyRegUser(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下最新群组日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO getAgnecyGroup(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下最新状态话题-机关日统计数据表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<AgencyBasicDataResultDTO.Topic> getAgencyTopic(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下最新转议题话题-机关日统计数据表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO.Topic getAgencyTopicShiftIssue(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 热议中话题-机关日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO.Topic getAgencyTopicHotDiscuss(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下最新议题日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO getAgencyIssue(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下最新项目日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO getAgencyProject(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询当前组织的直属下级组织信息 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<DimAgencyEntity> getSubAgencyList(@Param("pid") String pid); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织注册用户日统计数据,默认按用户总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyUserResultDTO> getSubAgencyUser(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询组织下网格列表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<DimGridEntity> getSubGridList(@Param("agencyId") String agencyId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级注册用户日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridUserResultDTO> getSubGridUser(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织小组日统计数据,默认按群组总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyGroupResultDTO> getSubAgencyGroup(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级小组日统计数据,默认按群组总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridGroupResultDTO> getSubGridGroup(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织状态话题-日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyFormDTO.Topic> getSubAgencyTopic(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织转议题话题-日统计数据表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyFormDTO.Topic> getSubAgencyTopicShiftIssue(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织热议中话题-机关日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyFormDTO.Topic> getSubAgencyTopicHotDiscuss(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级状态话题-日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridFormDTO.Topic> getSubGridTopic(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级转议题话题-日统计数据表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridFormDTO.Topic> getSubGridTopicShiftIssue(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级热议中话题-日统计数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridFormDTO.Topic> getSubGridTopicHotDiscuss(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织议题日统计数据,默认按议题总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyIssueResultDTO> getSubAgencyIssue(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级议题日统计数据,默认按议题总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridIssueResultDTO> getSubGridIssue(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询直属下级组织项目日统计数据,默认按项目总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyProjectResultDTO> getSubAgencyProject(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Description 查询网格层级项目日统计数据,默认按项目总数降序 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridProjectResultDTO> getSubGridProject(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* 查询组织党员先锋详情 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 14:40 |
||||
|
* @param agencyId |
||||
|
* @return com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO |
||||
|
*/ |
||||
|
PartyMemberVanguardDetailResultDTO selectAgencyVanguardDetail(@Param("agencyId") String agencyId); |
||||
|
|
||||
|
/** |
||||
|
* 查询网格党员先锋详情 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 14:40 |
||||
|
* @param grid |
||||
|
* @return com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO |
||||
|
*/ |
||||
|
PartyMemberVanguardDetailResultDTO selectGridVanguardDetail(@Param("grid") String grid); |
||||
|
|
||||
|
/** |
||||
|
* 查询组织党员先锋排行 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 15:02 |
||||
|
* @param agencyId |
||||
|
* @return java.util.List<com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO> |
||||
|
*/ |
||||
|
List<PartyMemberVanguardDetailResultDTO> selectAgencyVanguardRank(@Param("agencyId") String agencyId); |
||||
|
|
||||
|
/** |
||||
|
* 查询网格党员先锋排行 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 15:03 |
||||
|
* @param agencyId |
||||
|
* @return java.util.List<com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO> |
||||
|
*/ |
||||
|
List<PartyMemberVanguardDetailResultDTO> selectGridVanguardRank(@Param("agencyId") String agencyId); |
||||
|
|
||||
|
List<FactGroupActDailyDTO> branchConAnalysis(@Param("customerId")String customerId, |
||||
|
@Param("orgId")String orgId, |
||||
|
@Param("orgType")String orgType, |
||||
|
@Param("dateId")String dateId, |
||||
|
@Param("parentCode")String parentCode); |
||||
|
|
||||
|
List<FactGroupActDailyDTO> querySubAnalysisByCode(@Param("customerId")String customerId, |
||||
|
@Param("pid")String pid, |
||||
|
@Param("dateId")String dateId, |
||||
|
@Param("categoryCode")String categoryCode); |
||||
|
|
||||
|
List<GroupActRankDetailDTO> selectGroupActRankDetail(@Param("customerId") String customerId, |
||||
|
@Param("dateId") String dateId, |
||||
|
@Param("orgId") String orgId, |
||||
|
@Param("actCategoryDictDTOList") List<ActCategoryDictDTO> actCategoryDictDTOList); |
||||
|
|
||||
|
DimAgencyEntity getAgencyInfo(@Param("agencyId") String agencyId); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 根据组织Id查询事件治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<AgencyGovrnResultDTO> getAgencyGovern(@Param("agencyIds") List<String> agencyIds, @Param("dateId") String dateId); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 根据网格Id查询事件治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<GridGovrnResultDTO> getGridGovern(@Param("gridIds") List<String> gridIds, @Param("dateId") String dateId); |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.dao.evaluationindex; |
||||
|
|
||||
|
import com.epmet.dataaggre.dto.datastats.result.GovrnRatioResultDTO; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 指标统计服务 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface EvaluationIndexDao { |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 按类型、日期查询治理指数下响应解决满意自治四个统计率 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
GovrnRatioResultDTO getAgnecyOrGridGoverRatio(@Param("orgId") String orgId, @Param("orgType") String orgType, @Param("dateId") String dateId); |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.entity.datastats; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 机关维度 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-06-16 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("dim_agency") |
||||
|
public class DimAgencyEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 组织名称 |
||||
|
*/ |
||||
|
private String agencyName; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 上级组织机构ID,根组织为0 |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 所有上级组织机构ID(以英文:隔开) |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 机关维度类型。self:机关本身自己,all:机关自己+下级+网格+部门等 |
||||
|
*/ |
||||
|
private String agencyDimType; |
||||
|
|
||||
|
/** |
||||
|
* 所有上级名称,以-连接 |
||||
|
*/ |
||||
|
private String allParentName; |
||||
|
|
||||
|
/** |
||||
|
* 机关级别(社区级:community, |
||||
|
* 乡(镇、街道)级:street, |
||||
|
* 区县级: district, |
||||
|
* 市级: city |
||||
|
* 省级:province) |
||||
|
*/ |
||||
|
private String level; |
||||
|
|
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.entity.datastats; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户维度 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-06-16 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("dim_customer") |
||||
|
public class DimCustomerEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
|
||||
|
/** |
||||
|
* 客户所属行政地区编码,取值来自客户根组织的area_code(01.14 add) |
||||
|
*/ |
||||
|
private String areaCode; |
||||
|
|
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dataaggre.entity.datastats; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户网格维度 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-06-16 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("dim_grid") |
||||
|
public class DimGridEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 网格名称 |
||||
|
*/ |
||||
|
private String gridName; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 所属组织机构ID(customer_agency.id) |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 所属地区码(所属组织地区码) |
||||
|
*/ |
||||
|
private String areaCode; |
||||
|
|
||||
|
} |
@ -0,0 +1,162 @@ |
|||||
|
package com.epmet.dataaggre.service.datastats; |
||||
|
|
||||
|
import com.epmet.dataaggre.dto.datastats.FactGroupActDailyDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.*; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.*; |
||||
|
import com.epmet.dataaggre.dto.resigroup.ActCategoryDictDTO; |
||||
|
import com.epmet.dataaggre.dto.resigroup.result.GroupActRankDetailDTO; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 数据统计服务 |
||||
|
*/ |
||||
|
public interface DataStatsService { |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 组织下五项基础数据汇总 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyBasicDataResultDTO agencyBasicData(AgenctBasicDataFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 网格下五项基础数据汇总 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
GridBasicDataResultDTO gridBasicData(GridBasicDataFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织用户数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyUserResultDTO> subAgencyUser(SubAgencyFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表用户数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridUserResultDTO> subGridUser(SubGridFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织群组数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyGroupResultDTO> subAgencyGroup(SubAgencyFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表群组数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridGroupResultDTO> subGridGroup(SubGridFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织话题数据 |
||||
|
* @author sun |
||||
|
* @return |
||||
|
*/ |
||||
|
List<SubAgencyTopicResultDTO> subAgencyTopic(SubAgencyFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表话题数据 |
||||
|
* @author sun |
||||
|
* @return |
||||
|
*/ |
||||
|
List<SubGridTopicResultDTO> subGridTopic(SubGridFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织议题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyIssueResultDTO> subAgencyIssue(SubAgencyFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表议题数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridIssueResultDTO> subGridIssue(SubGridFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织的直属下级组织项目数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubAgencyProjectResultDTO> subAgencyProject(SubAgencyFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 查询当前组织下直属网格列表项目数据 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<SubGridProjectResultDTO> subGridProject(SubGridFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 党员先锋--组织/网格详情 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 14:35 |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO |
||||
|
*/ |
||||
|
PartyMemberVanguardDetailResultDTO vanguardDetail(PartyMemberVanguardFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* 党员先锋--下级组织排行 |
||||
|
* @author zhaoqifeng |
||||
|
* @date 2021/5/18 14:36 |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO |
||||
|
*/ |
||||
|
PartyMemberVanguardRankResultDTO vanguardRank(PartyMemberVanguardFormDTO formDTO); |
||||
|
|
||||
|
|
||||
|
List<FactGroupActDailyDTO> branchConAnalysis(String customerId, String orgId, String orgType, String dateId, String parentCode); |
||||
|
|
||||
|
List<FactGroupActDailyDTO> querySubAnalysisByCode(String customerId, String pid, String dateId, String categoryCode); |
||||
|
|
||||
|
List<GroupActRankDetailDTO> selectGroupActRankDetail(String customerId, String dateId, String orgId, List<ActCategoryDictDTO> actCategoryDictDTOList); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-当前组织治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
AgencyGovrnResultDTO agencyGovrn(AgencyGovrnFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织直属下级治理指数列表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<AgencyGovrnResultDTO> subAgencyGovrnList(AgencyGovrnFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-当前网格治理指数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
GridGovrnResultDTO gridGovrn(GridGovrnFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织直属网格治理指数列表 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
List<GridGovrnResultDTO> subGridGovrnList(GridGovrnFormDTO formDTO); |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织/网格下响应解决满意自治率 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
GovrnRatioResultDTO governRatio(GovrnRatioFormDTO formDTO); |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,18 @@ |
|||||
|
package com.epmet.dataaggre.service.evaluationindex; |
||||
|
|
||||
|
import com.epmet.dataaggre.dto.datastats.form.GovrnRatioFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.GovrnRatioResultDTO; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 指标统计服务 |
||||
|
*/ |
||||
|
public interface EvaluationIndexService { |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 治理实况-组织/网格下响应解决满意自治率 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
GovrnRatioResultDTO governRatio(GovrnRatioFormDTO formDTO); |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.epmet.dataaggre.service.evaluationindex.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.tools.utils.DateUtils; |
||||
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
||||
|
import com.epmet.dataaggre.dao.datastats.DataStatsDao; |
||||
|
import com.epmet.dataaggre.dao.evaluationindex.EvaluationIndexDao; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.GovrnRatioFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.GovrnRatioResultDTO; |
||||
|
import com.epmet.dataaggre.service.evaluationindex.EvaluationIndexService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.text.SimpleDateFormat; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 指标统计服务 |
||||
|
*/ |
||||
|
@Service |
||||
|
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
||||
|
@Slf4j |
||||
|
public class EvaluationIndexServiceImpl implements EvaluationIndexService { |
||||
|
@Autowired |
||||
|
private EvaluationIndexDao evaluationIndexDao; |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 按类型、日期查询治理指数下响应解决满意自治四个统计率 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@Override |
||||
|
public GovrnRatioResultDTO governRatio(GovrnRatioFormDTO formDTO) { |
||||
|
return evaluationIndexDao.getAgnecyOrGridGoverRatio(formDTO.getOrgId(),formDTO.getOrgType(),formDTO.getDateId()); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,657 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dataaggre.dao.datastats.DataStatsDao"> |
||||
|
|
||||
|
<select id="getAgnecyRegUser" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO"> |
||||
|
SELECT |
||||
|
reg_total AS userTotal, |
||||
|
partymember_total AS partyMemberTotal, |
||||
|
(reg_total - partymember_total) AS resiTotal |
||||
|
FROM |
||||
|
fact_reg_user_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgnecyGroup" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO"> |
||||
|
SELECT |
||||
|
group_total AS groupTotal, |
||||
|
ordinary_total AS ordinaryTotal, |
||||
|
branch_total AS branchTotal |
||||
|
FROM |
||||
|
fact_group_total_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyTopic" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO$Topic"> |
||||
|
SELECT |
||||
|
topic_count AS topicCount, |
||||
|
topic_status_id AS topicStatus |
||||
|
FROM |
||||
|
fact_topic_status_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND topic_status_id in('discussing','closed','hidden')<!-- 讨论中(热议中!=讨论中)、已处理、已屏蔽 --> |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 3 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyTopicShiftIssue" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO$Topic"> |
||||
|
SELECT |
||||
|
issue_total AS shiftedIssueTotal, |
||||
|
DATE_FORMAT(date_id, '%Y-%m-%d') AS deadline |
||||
|
FROM |
||||
|
fact_topic_issue_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyTopicHotDiscuss" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO$Topic"> |
||||
|
SELECT |
||||
|
IFNULL(topic_total, 0) AS topicTotal, |
||||
|
IFNULL(topic_count, 0) AS topicCount |
||||
|
FROM |
||||
|
fact_topic_hotdiscuss_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyIssue" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO"> |
||||
|
SELECT |
||||
|
issue_total AS issueTotal, |
||||
|
voting_total AS votingTotal, |
||||
|
closed_total AS closedIssueTotal, |
||||
|
shift_project_total AS shiftProjectTotal |
||||
|
FROM |
||||
|
fact_issue_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyProject" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyBasicDataResultDTO"> |
||||
|
SELECT |
||||
|
IFNULL(project_total, 0) AS "projectTotal", |
||||
|
IFNULL(pending_total, 0) AS "pendingTotal", |
||||
|
IFNULL(closed_total, 0) AS "closedProjectTotal" |
||||
|
FROM |
||||
|
fact_agency_project_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
AND date_id = #{dateId} |
||||
|
LIMIT 1 |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyList" resultType="com.epmet.dataaggre.entity.datastats.DimAgencyEntity"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
dim_agency |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_dim_type = 'all' |
||||
|
AND pid = #{pid} |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyUser" resultType="com.epmet.dataaggre.dto.datastats.result.SubAgencyUserResultDTO"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
reg_total AS userTotal, |
||||
|
partymember_total AS partyMemberTotal, |
||||
|
(reg_total - partymember_total) AS resiTotal |
||||
|
FROM |
||||
|
fact_reg_user_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
reg_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridList" resultType="com.epmet.dataaggre.entity.datastats.DimGridEntity"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
dim_grid |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND agency_id = #{agencyId} |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridUser" resultType="com.epmet.dataaggre.dto.datastats.result.SubGridUserResultDTO"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
reg_total AS userTotal, |
||||
|
partymember_total AS partyMemberTotal, |
||||
|
(reg_total - partymember_total) AS resiTotal |
||||
|
FROM |
||||
|
fact_reg_user_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
reg_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyGroup" resultType="com.epmet.dataaggre.dto.datastats.result.SubAgencyGroupResultDTO"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
group_total AS groupTotal, |
||||
|
ordinary_total AS ordinaryTotal, |
||||
|
branch_total AS branchTotal |
||||
|
FROM |
||||
|
fact_group_total_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
group_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridGroup" resultType="com.epmet.dataaggre.dto.datastats.result.SubGridGroupResultDTO"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
group_total AS groupTotal, |
||||
|
ordinary_total AS ordinaryTotal, |
||||
|
branch_total AS branchTotal |
||||
|
FROM |
||||
|
fact_group_total_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
group_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyTopic" resultType="com.epmet.dataaggre.dto.datastats.form.SubAgencyFormDTO$Topic"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
topic_count AS topicCount, |
||||
|
topic_status_id AS topicStatus |
||||
|
FROM |
||||
|
fact_topic_status_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND topic_status_id in('discussing','closed','hidden')<!-- 讨论中(热议中!=讨论中)、已处理、已屏蔽 --> |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyTopicShiftIssue" resultType="com.epmet.dataaggre.dto.datastats.form.SubAgencyFormDTO$Topic"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
issue_total AS shiftedIssueTotal |
||||
|
FROM |
||||
|
fact_topic_issue_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyTopicHotDiscuss" resultType="com.epmet.dataaggre.dto.datastats.form.SubAgencyFormDTO$Topic"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
topic_total AS topicTotal, |
||||
|
topic_count AS topicCount |
||||
|
FROM |
||||
|
fact_topic_hotdiscuss_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridTopic" resultType="com.epmet.dataaggre.dto.datastats.form.SubGridFormDTO$Topic"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
topic_count AS topicCount, |
||||
|
topic_status_id AS topicStatus |
||||
|
FROM |
||||
|
fact_topic_status_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND topic_status_id in('discussing','closed','hidden')<!-- 讨论中(热议中!=讨论中)、已处理、已屏蔽 --> |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridTopicShiftIssue" resultType="com.epmet.dataaggre.dto.datastats.form.SubGridFormDTO$Topic"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
issue_total AS shiftedIssueTotal |
||||
|
FROM |
||||
|
fact_topic_issue_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridTopicHotDiscuss" resultType="com.epmet.dataaggre.dto.datastats.form.SubGridFormDTO$Topic"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
topic_total AS topicTotal, |
||||
|
topic_count AS topicCount |
||||
|
FROM |
||||
|
fact_topic_hotdiscuss_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyIssue" resultType="com.epmet.dataaggre.dto.datastats.result.SubAgencyIssueResultDTO"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
issue_total AS issueTotal, |
||||
|
voting_total AS votingTotal, |
||||
|
closed_total AS closedIssueTotal, |
||||
|
shift_project_total AS shiftProjectTotal |
||||
|
FROM |
||||
|
fact_issue_agency_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
issue_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridIssue" resultType="com.epmet.dataaggre.dto.datastats.result.SubGridIssueResultDTO"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
issue_total AS issueTotal, |
||||
|
voting_total AS votingTotal, |
||||
|
closed_total AS closedIssueTotal, |
||||
|
shift_project_total AS shiftProjectTotal |
||||
|
FROM |
||||
|
fact_issue_grid_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
issue_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubAgencyProject" resultType="com.epmet.dataaggre.dto.datastats.result.SubAgencyProjectResultDTO"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
IFNULL(project_total, 0) AS "projectTotal", |
||||
|
IFNULL(pending_total, 0) AS "pendingTotal", |
||||
|
IFNULL(closed_total, 0) AS "closedProjectTotal" |
||||
|
FROM |
||||
|
fact_agency_project_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
project_total DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getSubGridProject" resultType="com.epmet.dataaggre.dto.datastats.result.SubGridProjectResultDTO"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
IFNULL(project_total, 0) AS "projectTotal", |
||||
|
IFNULL(pending_total, 0) AS "pendingTotal", |
||||
|
IFNULL(closed_total, 0) AS "closedProjectTotal" |
||||
|
FROM |
||||
|
fact_grid_project_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
ORDER BY |
||||
|
project_total DESC |
||||
|
</select> |
||||
|
<select id="selectAgencyVanguardDetail" resultType="com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO"> |
||||
|
SELECT |
||||
|
orgId, |
||||
|
orgName, |
||||
|
ifnull(GROUP_COUNT,0) AS GROUP_COUNT, |
||||
|
ifnull(GROUP_RATIO,0) AS GROUP_RATIO, |
||||
|
ifnull(GROUP_MEMBER_COUNT,0) AS GROUP_MEMBER_COUNT, |
||||
|
ifnull(GROUP_MEMBER_RATIO,0) AS GROUP_MEMBER_RATIO, |
||||
|
ifnull(TOPIC_COUNT,0) AS TOPIC_COUNT, |
||||
|
ifnull(TOPIC_RATIO,0) AS TOPIC_RATIO, |
||||
|
ifnull(ISSUE_COUNT,0) AS ISSUE_COUNT, |
||||
|
ifnull(ISSUE_RATIO,0) AS ISSUE_RATIO, |
||||
|
ifnull(PROJECT_COUNT,0) AS PROJECT_COUNT, |
||||
|
ifnull(PROJECT_RATIO,0) AS PROJECT_RATIO, |
||||
|
ifnull(PROJECT_CLOSED_COUNT,0) AS PROJECT_CLOSED_COUNT, |
||||
|
ifnull(PROJECT_CLOSED_RATIO,0) PROJECT_CLOSED_RATIO |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
AGENCY_ID AS "orgId", |
||||
|
AGENCY_NAME AS "orgName", |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO, |
||||
|
MAX( DATE_ID ) |
||||
|
FROM |
||||
|
fact_party_member_vanguard_agency_daily a |
||||
|
INNER JOIN dim_agency b ON a.AGENCY_ID = b.ID |
||||
|
WHERE |
||||
|
a.AGENCY_ID = #{agencyId} |
||||
|
GROUP BY |
||||
|
AGENCY_ID |
||||
|
) a |
||||
|
</select> |
||||
|
<select id="selectGridVanguardDetail" resultType="com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO"> |
||||
|
SELECT |
||||
|
orgId, |
||||
|
orgName, |
||||
|
ifnull(GROUP_COUNT,0) AS GROUP_COUNT, |
||||
|
ifnull(GROUP_RATIO,0) AS GROUP_RATIO, |
||||
|
ifnull(GROUP_MEMBER_COUNT,0) AS GROUP_MEMBER_COUNT, |
||||
|
ifnull(GROUP_MEMBER_RATIO,0) AS GROUP_MEMBER_RATIO, |
||||
|
ifnull(TOPIC_COUNT,0) AS TOPIC_COUNT, |
||||
|
ifnull(TOPIC_RATIO,0) AS TOPIC_RATIO, |
||||
|
ifnull(ISSUE_COUNT,0) AS ISSUE_COUNT, |
||||
|
ifnull(ISSUE_RATIO,0) AS ISSUE_RATIO, |
||||
|
ifnull(PROJECT_COUNT,0) AS PROJECT_COUNT, |
||||
|
ifnull(PROJECT_RATIO,0) AS PROJECT_RATIO, |
||||
|
ifnull(PROJECT_CLOSED_COUNT,0) AS PROJECT_CLOSED_COUNT, |
||||
|
ifnull(PROJECT_CLOSED_RATIO,0) AS PROJECT_CLOSED_RATIO |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
GRID_ID AS "orgId", |
||||
|
GRID_NAME AS "orgName", |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO, |
||||
|
MAX( DATE_ID ) |
||||
|
FROM |
||||
|
fact_party_member_vanguard_grid_daily a |
||||
|
INNER JOIN dim_grid b ON a.GRID_ID = b.ID |
||||
|
WHERE |
||||
|
a.GRID_ID = #{grid} |
||||
|
GROUP BY |
||||
|
GRID_ID |
||||
|
) a |
||||
|
</select> |
||||
|
<select id="selectAgencyVanguardRank" resultType="com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO"> |
||||
|
SELECT |
||||
|
orgId, |
||||
|
orgName, |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
AGENCY_ID AS "orgId", |
||||
|
AGENCY_NAME AS "orgName", |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO, |
||||
|
MAX( DATE_ID ) |
||||
|
FROM |
||||
|
fact_party_member_vanguard_agency_daily a |
||||
|
INNER JOIN dim_agency b ON a.AGENCY_ID = b.ID |
||||
|
WHERE |
||||
|
a.PID = #{agencyId} |
||||
|
GROUP BY |
||||
|
AGENCY_ID |
||||
|
) a |
||||
|
ORDER BY GROUP_COUNT DESC |
||||
|
</select> |
||||
|
<select id="selectGridVanguardRank" resultType="com.epmet.dataaggre.dto.datastats.result.PartyMemberVanguardDetailResultDTO"> |
||||
|
SELECT |
||||
|
orgId, |
||||
|
orgName, |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
GRID_ID AS "orgId", |
||||
|
GRID_NAME AS "orgName", |
||||
|
GROUP_COUNT, |
||||
|
GROUP_RATIO, |
||||
|
GROUP_MEMBER_COUNT, |
||||
|
GROUP_MEMBER_RATIO, |
||||
|
TOPIC_COUNT, |
||||
|
TOPIC_RATIO, |
||||
|
ISSUE_COUNT, |
||||
|
ISSUE_RATIO, |
||||
|
PROJECT_COUNT, |
||||
|
PROJECT_RATIO, |
||||
|
PROJECT_CLOSED_COUNT, |
||||
|
PROJECT_CLOSED_RATIO, |
||||
|
MAX( DATE_ID ) |
||||
|
FROM |
||||
|
fact_party_member_vanguard_grid_daily a |
||||
|
INNER JOIN dim_grid b ON a.GRID_ID = b.ID |
||||
|
WHERE |
||||
|
a.AGENCY_ID = #{agencyId} |
||||
|
GROUP BY |
||||
|
GRID_ID |
||||
|
) a |
||||
|
ORDER BY GROUP_COUNT DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="branchConAnalysis" parameterType="map" resultType="com.epmet.dataaggre.dto.datastats.FactGroupActDailyDTO"> |
||||
|
SELECT |
||||
|
m.CUSTOMER_ID as customerId, |
||||
|
m.DATE_ID as dateId, |
||||
|
m.ORG_ID as orgId, |
||||
|
m.ORG_TYPE as orgType, |
||||
|
m.PID as pid, |
||||
|
m.CATEGORY_CODE as categoryCode, |
||||
|
m.PARENT_CODE as parentCode, |
||||
|
m.`LEVEL` as level, |
||||
|
m.ORGANIZE_TOTAL as organizeTotal, |
||||
|
m.PARTICIPATE_USER_TOTAL as participateUserTotal, |
||||
|
m.AVG_PARTICIPATE_USER_TOTAL as avgParticipateUserTotal |
||||
|
FROM |
||||
|
fact_group_act_daily m |
||||
|
WHERE |
||||
|
m.DEL_FLAG = '0' |
||||
|
AND m.CUSTOMER_ID = #{customerId} |
||||
|
AND m.PARENT_CODE = #{parentCode} |
||||
|
AND m.DATE_ID = #{dateId} |
||||
|
AND m.ORG_ID = #{orgId} |
||||
|
AND m.ORG_TYPE = #{orgType} |
||||
|
order by m.CATEGORY_CODE asc |
||||
|
</select> |
||||
|
|
||||
|
<select id="querySubAnalysisByCode" parameterType="map" resultType="com.epmet.dataaggre.dto.datastats.FactGroupActDailyDTO"> |
||||
|
SELECT |
||||
|
m.CUSTOMER_ID as customerId, |
||||
|
m.DATE_ID as dateId, |
||||
|
m.ORG_ID as orgId, |
||||
|
m.ORG_TYPE as orgType, |
||||
|
m.PID as pid, |
||||
|
m.CATEGORY_CODE as categoryCode, |
||||
|
m.PARENT_CODE as parentCode, |
||||
|
m.`LEVEL` as level, |
||||
|
m.ORGANIZE_TOTAL as organizeTotal, |
||||
|
m.PARTICIPATE_USER_TOTAL as participateUserTotal, |
||||
|
m.AVG_PARTICIPATE_USER_TOTAL as avgParticipateUserTotal |
||||
|
FROM |
||||
|
fact_group_act_daily m |
||||
|
WHERE |
||||
|
m.DEL_FLAG = '0' |
||||
|
AND m.CUSTOMER_ID = #{customerId} |
||||
|
AND m.CATEGORY_CODE = #{categoryCode} |
||||
|
AND m.DATE_ID = #{dateId} |
||||
|
AND m.PID = #{pid} |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectGroupActRankDetail" parameterType="map" resultType="com.epmet.dataaggre.dto.resigroup.result.GroupActRankDetailDTO"> |
||||
|
<foreach collection="actCategoryDictDTOList" item="category" separator=" UNION "> |
||||
|
select |
||||
|
#{category.categoryCode} as categoryCode, |
||||
|
#{category.categoryName} as categoryName, |
||||
|
IFNULL(m.ORGANIZE_TOTAL,0) as organizeTotal, |
||||
|
IFNULL(m.PARTICIPATE_USER_TOTAL,0) as participateUserTotal, |
||||
|
'组织总次数' as organizeName, |
||||
|
'参加总人数'as participateUserName |
||||
|
FROM |
||||
|
fact_group_act_daily m |
||||
|
WHERE |
||||
|
m.DEL_FLAG = '0' |
||||
|
AND m.CUSTOMER_ID = #{customerId} |
||||
|
AND m.CATEGORY_CODE = #{category.categoryCode} |
||||
|
AND m.DATE_ID = #{dateId} |
||||
|
AND m.ORG_ID = #{orgId} |
||||
|
</foreach> |
||||
|
</select> |
||||
|
<select id="getAgencyInfo" resultType="com.epmet.dataaggre.entity.datastats.DimAgencyEntity"> |
||||
|
SELECT |
||||
|
ID, |
||||
|
AGENCY_NAME, |
||||
|
CUSTOMER_ID, |
||||
|
PID, |
||||
|
PIDS, |
||||
|
ALL_PARENT_NAME, |
||||
|
`LEVEL` |
||||
|
FROM |
||||
|
dim_agency |
||||
|
WHERE |
||||
|
ID = #{agencyId} |
||||
|
</select> |
||||
|
|
||||
|
<select id="getAgencyGovern" resultType="com.epmet.dataaggre.dto.datastats.result.AgencyGovrnResultDTO"> |
||||
|
SELECT |
||||
|
agency_id AS agencyId, |
||||
|
`level` AS level, |
||||
|
problem_resolved_count AS problemResolvedCount, |
||||
|
concat(ROUND(group_self_govern_ratio*100, 1),'%') AS groupSelfGovernRatio, |
||||
|
concat(ROUND(grid_self_govern_ratio*100, 1),'%') AS gridSelfGovernRatio, |
||||
|
concat(ROUND(community_closed_ratio*100, 1),'%') AS communityResolvedRatio, |
||||
|
concat(ROUND(street_closed_ratio*100, 1),'%') AS streetResolvedRatio, |
||||
|
concat(ROUND(district_dept_closed_ratio*100, 1),'%') AS districtDeptResolvedRatio |
||||
|
FROM |
||||
|
fact_agency_govern_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="agencyId" collection="agencyIds" open="AND (" separator="or" close=")" index=""> |
||||
|
agency_id = #{agencyId} |
||||
|
</foreach> |
||||
|
ORDER BY problem_resolved_count DESC |
||||
|
</select> |
||||
|
|
||||
|
<select id="getGridGovern" resultType="com.epmet.dataaggre.dto.datastats.result.GridGovrnResultDTO"> |
||||
|
SELECT |
||||
|
grid_id AS gridId, |
||||
|
problem_resolved_count AS problemResolvedCount, |
||||
|
concat(ROUND(group_self_govern_ratio*100, 1),'%') AS groupSelfGovernRatio, |
||||
|
concat(ROUND(grid_self_govern_ratio*100, 1),'%') AS gridSelfGovernRatio, |
||||
|
concat(ROUND(community_closed_ratio*100, 1),'%') AS communityResolvedRatio, |
||||
|
concat(ROUND(street_closed_ratio*100, 1),'%') AS streetResolvedRatio, |
||||
|
concat(ROUND(district_dept_closed_ratio*100, 1),'%') AS districtDeptResolvedRatio |
||||
|
FROM |
||||
|
fact_grid_govern_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND date_id = #{dateId} |
||||
|
<foreach item="gridId" collection="gridIds" open="AND (" separator="or" close=")" index=""> |
||||
|
grid_id = #{gridId} |
||||
|
</foreach> |
||||
|
ORDER BY problem_resolved_count DESC |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,23 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dataaggre.dao.evaluationindex.EvaluationIndexDao"> |
||||
|
|
||||
|
<select id="getAgnecyOrGridGoverRatio" resultType="com.epmet.dataaggre.dto.datastats.result.GovrnRatioResultDTO"> |
||||
|
SELECT |
||||
|
org_id AS orgId, |
||||
|
org_type AS orgType, |
||||
|
CONCAT(ROUND(response_ratio, 1), '%') AS responseRatio, |
||||
|
CONCAT(ROUND(resolved_ratio, 1) , '%')AS resolvedRatio, |
||||
|
CONCAT(ROUND(govern_ratio, 1), '%') AS governRatio, |
||||
|
CONCAT(ROUND(satisfaction_ratio, 1), '%') AS satisfactionRatio |
||||
|
FROM |
||||
|
screen_govern_rank_data_daily |
||||
|
WHERE |
||||
|
del_flag = '0' |
||||
|
AND org_id = #{orgId} |
||||
|
AND org_type = #{orgType} |
||||
|
AND date_id = #{dateId} |
||||
|
</select> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,117 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.evaluationindex.index.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指标说明文案 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexExplainDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
/** |
||||
|
* 指标code |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
|
||||
|
/** |
||||
|
* 含义 |
||||
|
*/ |
||||
|
private String meaning; |
||||
|
|
||||
|
/** |
||||
|
* 组织级别(网格级:grid;社区级:community;乡(镇、街道)级:street;区县级: district;市级: city;省级:province) |
||||
|
*/ |
||||
|
private String orgLevel; |
||||
|
|
||||
|
/** |
||||
|
* 父ID |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 是否需要查询;1有;0:无; |
||||
|
*/ |
||||
|
private Integer isSearch; |
||||
|
|
||||
|
/** |
||||
|
* 数据类型:none;本级:self;下级:sub |
||||
|
*/ |
||||
|
private String type; |
||||
|
|
||||
|
/** |
||||
|
* 删除标记 0:未删除,1:已删除 |
||||
|
*/ |
||||
|
private String delFlag; |
||||
|
|
||||
|
/** |
||||
|
* 乐观锁 |
||||
|
*/ |
||||
|
private Integer revision; |
||||
|
|
||||
|
/** |
||||
|
* 创建人 |
||||
|
*/ |
||||
|
private String createdBy; |
||||
|
|
||||
|
/** |
||||
|
* 创建时间 |
||||
|
*/ |
||||
|
private Date createdTime; |
||||
|
|
||||
|
/** |
||||
|
* 更新人 |
||||
|
*/ |
||||
|
private String updatedBy; |
||||
|
|
||||
|
/** |
||||
|
* 更新时间 |
||||
|
*/ |
||||
|
private Date updatedTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.evaluationindex.index.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指标说明文案 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexExplainTreeDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
/** |
||||
|
* 含义 |
||||
|
*/ |
||||
|
private String meaning; |
||||
|
|
||||
|
/** |
||||
|
* 指标code |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
|
||||
|
/** |
||||
|
* 组织级别(网格级:grid;社区级:community;乡(镇、街道)级:street;区县级: district;市级: city;省级:province) |
||||
|
*/ |
||||
|
private String orgLevel; |
||||
|
|
||||
|
/** |
||||
|
* 父ID |
||||
|
*/ |
||||
|
private String pid; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer sort; |
||||
|
|
||||
|
/** |
||||
|
* 是否需要查询;1有;0:无; |
||||
|
*/ |
||||
|
private Integer isSearch; |
||||
|
|
||||
|
/** |
||||
|
* 数据类型:none;本级:self;下级:sub |
||||
|
*/ |
||||
|
private String type; |
||||
|
|
||||
|
/** |
||||
|
* 子节点 |
||||
|
*/ |
||||
|
List<IndexExplainTreeDTO> children; |
||||
|
|
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.evaluationindex.index.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指标说明文案查询参数 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexExplainFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织级别(网格级:grid;社区级:community;乡(镇、街道)级:street;区县级: district;市级: city;省级:province) |
||||
|
*/ |
||||
|
private String orgLevel; |
||||
|
|
||||
|
/** |
||||
|
* 组织id |
||||
|
*/ |
||||
|
private String orgId; |
||||
|
/** |
||||
|
* 月份Id |
||||
|
*/ |
||||
|
private String monthId; |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
package com.epmet.evaluationindex.index.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 指标分数 返回结果 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexScoreFormDTO implements Serializable { |
||||
|
|
||||
|
|
||||
|
private static final long serialVersionUID = 6225580299239889980L; |
||||
|
|
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 组织或网格Id |
||||
|
*/ |
||||
|
private String orgId; |
||||
|
/** |
||||
|
* 组织或网格类型 |
||||
|
*/ |
||||
|
private String orgType; |
||||
|
|
||||
|
/** |
||||
|
* 月份Id(格式:202009) |
||||
|
*/ |
||||
|
private String monthId; |
||||
|
/** |
||||
|
* 类型(党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;) |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
/** |
||||
|
* 所有有权重的指标code拼接的字符串 冒号隔开 |
||||
|
*/ |
||||
|
private String allParentIndexCode; |
||||
|
/** |
||||
|
* pid |
||||
|
*/ |
||||
|
private String pid; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.evaluationindex.index.result; |
||||
|
|
||||
|
import com.epmet.evaluationindex.index.dto.IndexExplainDTO; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* desc:得分明细说明结果类 |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/5/12 4:19 下午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexExplainChildResult extends IndexExplainDTO { |
||||
|
|
||||
|
private static final long serialVersionUID = -3997821113617472317L; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package com.epmet.evaluationindex.index.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* desc:得分明细说明结果类 |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/5/12 4:19 下午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexExplainResult { |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
/** |
||||
|
* 含义 |
||||
|
*/ |
||||
|
private String meaning; |
||||
|
|
||||
|
/** |
||||
|
* 子节点 list |
||||
|
*/ |
||||
|
private List<IndexExplainResult> children = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 子节点data list |
||||
|
*/ |
||||
|
private List<IndexScoreDetailResult> tableDataList = new ArrayList<>(); |
||||
|
/** |
||||
|
* 子节点标题 list |
||||
|
*/ |
||||
|
private List<String> tableTileList = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 阈值说明列表 |
||||
|
*/ |
||||
|
private List<String> thresholdList = new ArrayList<>(); |
||||
|
|
||||
|
/** |
||||
|
* 表格说明 |
||||
|
*/ |
||||
|
private String tableDesc; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.evaluationindex.index.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* 客户指标详情 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Data |
||||
|
|
||||
|
public class IndexGroupDetailResult implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* index_group.id |
||||
|
*/ |
||||
|
private String indexGroupId; |
||||
|
|
||||
|
/** |
||||
|
* 指标id |
||||
|
*/ |
||||
|
private String indexId; |
||||
|
|
||||
|
/** |
||||
|
* 指标code |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
|
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
private String indexName; |
||||
|
|
||||
|
/** |
||||
|
* 所有有权重的指标code拼接的字符串 冒号隔开 |
||||
|
*/ |
||||
|
private String allParentIndexCode; |
||||
|
|
||||
|
/** |
||||
|
* 所有指标code拼接的字符串 冒号隔开 |
||||
|
*/ |
||||
|
private String allIndexCodePath; |
||||
|
|
||||
|
/** |
||||
|
* 权重(同一组权重总和=1) |
||||
|
*/ |
||||
|
private BigDecimal weight; |
||||
|
|
||||
|
/** |
||||
|
* 计算阈值,-1:没有阈值;如果是百分数则 为0.00几;如果为数据则直接填数值 |
||||
|
*/ |
||||
|
private BigDecimal threshold; |
||||
|
|
||||
|
/** |
||||
|
* 是否启用:启用:enable 禁用:disabled |
||||
|
*/ |
||||
|
private String status; |
||||
|
|
||||
|
/** |
||||
|
* 正相关:positive;负相关:negative |
||||
|
*/ |
||||
|
private String correlation; |
||||
|
|
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.evaluationindex.index.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* desc:得分明细说明结果类 |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/5/12 4:19 下午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexScoreDetailResult implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3997821113617472317L; |
||||
|
/** |
||||
|
* 指标code |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
/** |
||||
|
* 指标名称 |
||||
|
*/ |
||||
|
private String indexName; |
||||
|
|
||||
|
/** |
||||
|
* 原始值(如果是平均分的话 则为 参与平均的个数) |
||||
|
*/ |
||||
|
private String originValue; |
||||
|
|
||||
|
/** |
||||
|
* 分值 |
||||
|
*/ |
||||
|
private String score; |
||||
|
|
||||
|
/** |
||||
|
* 分值 |
||||
|
*/ |
||||
|
private String weight; |
||||
|
|
||||
|
/** |
||||
|
* 类型 取原始值 还是数量 |
||||
|
*/ |
||||
|
@JsonIgnore |
||||
|
private String type; |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
package com.epmet.evaluationindex.index.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* 指标分数 返回结果 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IndexScoreResult implements Serializable { |
||||
|
|
||||
|
|
||||
|
private static final long serialVersionUID = -8458272574625683349L; |
||||
|
/** |
||||
|
* 指标code |
||||
|
*/ |
||||
|
private String indexCode; |
||||
|
/** |
||||
|
* 指标对应值(数值或百分比)原始值 |
||||
|
*/ |
||||
|
private BigDecimal score; |
||||
|
|
||||
|
/** |
||||
|
* 指标对应的权重 |
||||
|
*/ |
||||
|
private BigDecimal weight; |
||||
|
|
||||
|
/** |
||||
|
* 原始值 |
||||
|
*/ |
||||
|
private String originValue; |
||||
|
|
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private String sampleCount; |
||||
|
|
||||
|
/** |
||||
|
* 值类型 |
||||
|
*/ |
||||
|
private String valueType; |
||||
|
|
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.epmet.evaluationindex.screen.dto.form; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 党员(积分)排行--接口入参 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PartyPointRankFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2880432640584616651L; |
||||
|
/** |
||||
|
* 组织或网格Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织或网格ID不能为空",groups = {PartyPointRankFormDTO.AddUserInternalGroup.class}) |
||||
|
private String orgId; |
||||
|
/** |
||||
|
* 类型(组织:agency 网格:grid) |
||||
|
*/ |
||||
|
@NotBlank(message = "数据类型不能为空",groups = {PartyPointRankFormDTO.AddUserInternalGroup.class}) |
||||
|
private String orgType; |
||||
|
/** |
||||
|
* 默认显示前5名 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "查询条数必须大于0", groups = {PartyPointRankFormDTO.AddUserInternalGroup.class }) |
||||
|
private Integer topNum; |
||||
|
public interface AddUserInternalGroup {} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.epmet.evaluationindex.screen.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class PartyPointRankResultDTO { |
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 组织名称 |
||||
|
*/ |
||||
|
private String agencyName; |
||||
|
/** |
||||
|
* 用户Id |
||||
|
*/ |
||||
|
private String userId; |
||||
|
/** |
||||
|
* 用户名称 |
||||
|
*/ |
||||
|
private String userName; |
||||
|
/** |
||||
|
* 网格Id |
||||
|
*/ |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 网格名称 |
||||
|
*/ |
||||
|
private String gridName; |
||||
|
/** |
||||
|
* 党员积分 |
||||
|
*/ |
||||
|
private Double pointTotal; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
package com.epmet.datareport.constant; |
||||
|
|
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Arrays; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author sun |
||||
|
* @dscription 数据 |
||||
|
*/ |
||||
|
public class IndexConstant { |
||||
|
|
||||
|
/** |
||||
|
* 评价指标类型-百分比 |
||||
|
*/ |
||||
|
public static final List<String> ScoreLastHeader = Arrays.asList("指标值", "得分", "权重"); |
||||
|
public static final List<String> QuantityLastHeader = Arrays.asList("数量", "平均值", "权重"); |
||||
|
|
||||
|
public static final String DJZS_CN = "党建指数"; |
||||
|
public static final String FWZS_CN = "服务指数"; |
||||
|
public static final String ZLZS_CN = "治理指数"; |
||||
|
public static final String ZB_CN = "指标"; |
||||
|
public static final String BEN_JI_CN = "本级"; |
||||
|
public static final String XIA_JI_CN = "下级"; |
||||
|
|
||||
|
public static final String ZI_SHEN = "zishen"; |
||||
|
public static final String XIA_JI = "xiaji"; |
||||
|
public static final String THRESHOLD_TEXT = "给定阈值%d%%,超过阈值不加分"; |
||||
|
public static final String TABLE_DESC = "详见下表:"; |
||||
|
public static final String INDEX_SCORE_TITLE = "当月指数"; |
||||
|
public static final String INDEX_SCORE_DESC = "含义:自然月周期内,当月指数得分=党建指数得分*相关权重+治理指数得分*相关权重+服务指数得分*相关权重"; |
||||
|
public static final String INDEX_DISTRINCT_TABLE1_INDEX_CODE = "suoyoujiedaozlnlpjz"; |
||||
|
public static final String ZHI_LI_NENG_LI = "zhilinengli"; |
||||
|
public static final String PATTERN_D = "d"; |
||||
|
public static final String QUAN_QU_ZHI_LI_INDEX_CODE = "quanquxiangguan:zhilinengli"; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* desc: 根据indexCode 获取表格表头 |
||||
|
* |
||||
|
* @param allIndexCode |
||||
|
* @return java.util.List<java.lang.String> |
||||
|
* @author LiuJanJun |
||||
|
* @date 2021/5/13 11:06 上午 |
||||
|
*/ |
||||
|
public static List<String> getStandardSelfHeaders(String allIndexCode) { |
||||
|
List<String> result = new ArrayList<>(8); |
||||
|
if (StringUtils.isBlank(allIndexCode)) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
if (allIndexCode.contains(FactConstant.DJNL)) { |
||||
|
result.add(BEN_JI_CN + DJZS_CN + ZB_CN); |
||||
|
} else if (allIndexCode.contains(FactConstant.FWNL)) { |
||||
|
result.add(BEN_JI_CN + FWZS_CN + ZB_CN); |
||||
|
} else if (allIndexCode.contains(FactConstant.ZLNL)) { |
||||
|
result.add(BEN_JI_CN + ZLZS_CN + ZB_CN); |
||||
|
} |
||||
|
result.addAll(ScoreLastHeader); |
||||
|
return result; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* desc: 根据indexCode 获取表格表头 |
||||
|
* |
||||
|
* @param allIndexCode |
||||
|
* @return java.util.List<java.lang.String> |
||||
|
* @author LiuJanJun |
||||
|
* @date 2021/5/13 11:06 上午 |
||||
|
*/ |
||||
|
public static List<String> getStandardSubHeaders(String allIndexCode) { |
||||
|
List<String> result = new ArrayList<>(8); |
||||
|
if (allIndexCode.contains(FactConstant.DJNL)) { |
||||
|
result.add(XIA_JI_CN + DJZS_CN + ZB_CN); |
||||
|
} else if (allIndexCode.contains(FactConstant.FWNL)) { |
||||
|
result.add(XIA_JI_CN + FWZS_CN + ZB_CN); |
||||
|
} else if (allIndexCode.contains(FactConstant.ZLNL)) { |
||||
|
result.add(XIA_JI_CN + ZLZS_CN + ZB_CN); |
||||
|
} |
||||
|
result.addAll(QuantityLastHeader); |
||||
|
return result; |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.datareport.controller.index; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.datareport.service.evaluationindex.index.IndexExplainService; |
||||
|
import com.epmet.evaluationindex.index.form.IndexExplainFormDTO; |
||||
|
import com.epmet.evaluationindex.index.form.IndexScoreFormDTO; |
||||
|
import com.epmet.evaluationindex.index.result.IndexExplainResult; |
||||
|
import com.epmet.evaluationindex.screen.dto.result.IndexDictResultDTO; |
||||
|
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; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 指标说明文案 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("indexexplain") |
||||
|
public class IndexExplainController { |
||||
|
|
||||
|
@Autowired |
||||
|
private IndexExplainService indexExplainService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* desc: 获取得分说明明细 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.group.dto.result.GroupSummaryInfoResultDTO> |
||||
|
* @author LiuJanJun |
||||
|
* @date 2021/5/12 4:12 下午 |
||||
|
*/ |
||||
|
@PostMapping("detail") |
||||
|
public Result<List<IndexExplainResult>> getScoreDetail(@RequestBody IndexExplainFormDTO formDTO){ |
||||
|
Result<List<IndexExplainResult>> ok = new Result<List<IndexExplainResult>>().ok(indexExplainService.getScoreDetail(formDTO)); |
||||
|
return ok; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* desc: 指标字典项 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @author LiuJanJun |
||||
|
* @date 2021/5/12 4:12 下午 |
||||
|
*/ |
||||
|
@PostMapping("indexdict") |
||||
|
public Result<IndexDictResultDTO> getIndexMeaning(@RequestBody IndexScoreFormDTO formDTO){ |
||||
|
IndexDictResultDTO result = indexExplainService.getIndexMeaning(formDTO); |
||||
|
return new Result<IndexDictResultDTO>().ok(result); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.datareport.dao.evaluationindex.index; |
||||
|
|
||||
|
import com.epmet.evaluationindex.index.dto.IndexExplainTreeDTO; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 指标说明文案 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IndexExplainDao { |
||||
|
|
||||
|
List<IndexExplainTreeDTO> getIndexExplainTreeByOrgType(@Param("orgLevel") String orgLevel); |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.datareport.dao.evaluationindex.index; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.datareport.entity.evaluationindex.IndexGroupEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 客户指标分组 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IndexGroupDao extends BaseDao<IndexGroupEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.datareport.dao.evaluationindex.index; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.datareport.entity.evaluationindex.IndexGroupDetailEntity; |
||||
|
import com.epmet.evaluationindex.index.result.IndexGroupDetailResult; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 客户指标详情 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-05-12 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface IndexGroupDetailDao extends BaseDao<IndexGroupDetailEntity> { |
||||
|
|
||||
|
/** |
||||
|
* desc: 根据客户Id获取客户所有指标数据 |
||||
|
* |
||||
|
* @param customerId |
||||
|
* @return java.util.List<com.epmet.evaluationindex.index.result.IndexGroupDetailResult> |
||||
|
* @author LiuJanJun |
||||
|
* @date 2021/5/13 2:41 下午 |
||||
|
*/ |
||||
|
List<IndexGroupDetailResult> getAllIndexByCId(String customerId); |
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue