150 changed files with 8219 additions and 355 deletions
@ -0,0 +1,49 @@ |
|||
package com.epmet.dataaggre.dto.evaluationindex; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 组织机构信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-21 |
|||
*/ |
|||
@Data |
|||
public class ScreenCustomerAgencyDTO implements Serializable { |
|||
private static final long serialVersionUID = 6328123559936824470L; |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String agencyName; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 行政地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 当前组织的上级行政地区编码add0204;举例平阴县对应的是济南市3701 |
|||
*/ |
|||
private String parentAreaCode; |
|||
} |
@ -0,0 +1,119 @@ |
|||
/** |
|||
* 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.evaluationindex; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 网格(党支部)信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-26 |
|||
*/ |
|||
@Data |
|||
public class ScreenCustomerGridDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键ID 主键ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 网格所属组织id |
|||
*/ |
|||
private String parentAgencyId; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
private String areaMarks; |
|||
|
|||
/** |
|||
* 中心点位 |
|||
*/ |
|||
private String centerMark; |
|||
|
|||
/** |
|||
* 党支部(=网格)的位置 |
|||
*/ |
|||
private String partyMark; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 数据更新至: yyyy|yyyyMM|yyyyMMdd(08-21新增) |
|||
*/ |
|||
private String dataEndTime; |
|||
|
|||
/** |
|||
* 所有上级ID,用英文逗号分开 |
|||
*/ |
|||
private String allParentIds; |
|||
private String pid; |
|||
private String pids; |
|||
|
|||
} |
@ -0,0 +1,161 @@ |
|||
/** |
|||
* 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.evaluationindex; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 基层治理-治理能力排行数据(按月统计) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-05-24 |
|||
*/ |
|||
@Data |
|||
public class ScreenGovernRankDataDailyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 年Id |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 月份Id |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 数据更新至:yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 组织类别 agency:组织;部门:department;网格:grid |
|||
*/ |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 组织Id 可以为网格,机关id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 上级组织Id |
|||
*/ |
|||
private String parentId; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 响应率 |
|||
*/ |
|||
private BigDecimal responseRatio; |
|||
|
|||
/** |
|||
* 解决率 |
|||
*/ |
|||
private BigDecimal resolvedRatio; |
|||
|
|||
/** |
|||
* 自治率 |
|||
*/ |
|||
private BigDecimal governRatio; |
|||
|
|||
/** |
|||
* 满意率 |
|||
*/ |
|||
private BigDecimal satisfactionRatio; |
|||
|
|||
/** |
|||
* 响应数 |
|||
*/ |
|||
private Integer responseCount; |
|||
/** |
|||
* 项目转入次数 |
|||
*/ |
|||
private Integer transferCount; |
|||
/** |
|||
* 解决项目数 |
|||
*/ |
|||
private Integer resolvedCount; |
|||
/** |
|||
* 已关闭项目数 |
|||
*/ |
|||
private Integer closedCount; |
|||
/** |
|||
* 自治项目数 |
|||
*/ |
|||
private Integer governCount; |
|||
/** |
|||
* 满意项目数 |
|||
*/ |
|||
private Integer satisfactionCount; |
|||
/** |
|||
* 已关闭项目(由议题转的项目)数 |
|||
*/ |
|||
private Integer closedProjectCount; |
|||
|
|||
/** |
|||
* 删除标识 0未删除;1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,174 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 组织的治理指数,按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-05-24 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("fact_agency_govern_daily") |
|||
public class FactAgencyGovernDailyEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 数据更新至:yyyyMMdd; |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* agency_id所属的机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 组织i所属的组织id |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 组织i所有上级id |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 界面展示:问题解决总数=1+2+3+4+5+6+7+8 |
|||
*/ |
|||
private Integer problemResolvedCount; |
|||
|
|||
/** |
|||
* 界面展示:党群自治占比=(9+10)/PROBLEM_RESOLVED_COUNT; 此列存储的是小数 |
|||
*/ |
|||
private BigDecimal groupSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal gridSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:社区解决占比=COMMUNITY_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal communityClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:街道解决占比=STREET_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal streetClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:区直部门解决占比=DISTRICT_DEPT_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal districtDeptClosedRatio; |
|||
|
|||
/** |
|||
* 1、当前组织内,话题关闭已解决数 |
|||
*/ |
|||
private Integer topicResolvedCount; |
|||
|
|||
/** |
|||
* 2、当前组织内,话题关闭无需解决数 |
|||
*/ |
|||
private Integer topicUnResolvedCount; |
|||
|
|||
/** |
|||
* 3、当前组织内,议题关闭已解决数 |
|||
*/ |
|||
private Integer issueResolvedCount; |
|||
|
|||
/** |
|||
* 4、当前组织内,议题关闭无需解决数 |
|||
*/ |
|||
private Integer issueUnResolvedCount; |
|||
|
|||
/** |
|||
* 5、当前组织内:来源于议题的项目:结案已解决数 |
|||
*/ |
|||
private Integer issueProjectResolvedCount; |
|||
|
|||
/** |
|||
* 6、当前组织内:来源于议题的项目:结案无需解决数 |
|||
*/ |
|||
private Integer issueProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 7、当前组织内:项目立项,结案已解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectResolvedCount; |
|||
|
|||
/** |
|||
* 8、当前组织内:项目立项,结案无需解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 9、当前组织内,未出小组即未转议题的:话题关闭已解决数 |
|||
*/ |
|||
private Integer inGroupTopicResolvedCount; |
|||
|
|||
/** |
|||
* 10、当前组织内,未出小组即未转议题的:话题关闭无需解决数 |
|||
*/ |
|||
private Integer inGroupTopicUnResolvedCount; |
|||
|
|||
/** |
|||
* 未出当前网格的,结案项目数 |
|||
*/ |
|||
private Integer gridSelfGovernProjectTotal; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由社区结案的项目总数 |
|||
*/ |
|||
private Integer communityClosedCount; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由街道结案的项目总数 |
|||
*/ |
|||
private Integer streetClosedCount; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由区直部门结案的项目总数 |
|||
*/ |
|||
private Integer districtDeptClosedCount; |
|||
|
|||
} |
@ -0,0 +1,119 @@ |
|||
/** |
|||
* 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.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 网格(党支部)信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-26 |
|||
*/ |
|||
@Data |
|||
public class ScreenCustomerGridDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键ID 主键ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 网格所属组织id |
|||
*/ |
|||
private String parentAgencyId; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
private String areaMarks; |
|||
|
|||
/** |
|||
* 中心点位 |
|||
*/ |
|||
private String centerMark; |
|||
|
|||
/** |
|||
* 党支部(=网格)的位置 |
|||
*/ |
|||
private String partyMark; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 数据更新至: yyyy|yyyyMM|yyyyMMdd(08-21新增) |
|||
*/ |
|||
private String dataEndTime; |
|||
|
|||
/** |
|||
* 所有上级ID,用英文逗号分开 |
|||
*/ |
|||
private String allParentIds; |
|||
private String pid; |
|||
private String pids; |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 工作端小程序-数据上面的 当前组织调用此接口 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/24 15:26 |
|||
*/ |
|||
@Data |
|||
public class AgencyDetailMulticFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 6603177626712295270L; |
|||
/** |
|||
* 内部错误分组 |
|||
* */ |
|||
public interface AddUserInternalGroup{} |
|||
|
|||
/** |
|||
* 机关组织Id |
|||
*/ |
|||
@NotBlank(message = "机关组织ID不能为空" , groups = {AddUserInternalGroup.class}) |
|||
private String agencyId; |
|||
|
|||
|
|||
/** |
|||
* 当前登录用户所属的客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
@ -0,0 +1,57 @@ |
|||
package com.epmet.dto.form.project; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 群众不满列表查询入参DTO,从指标库取值 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/24 10:55 |
|||
*/ |
|||
@Data |
|||
public class MassesDiscontentFormV2DTO implements Serializable { |
|||
public interface MassesDiscontentFormV2 { |
|||
} |
|||
|
|||
/** |
|||
* 时间区间,三个月:threeMonth;半年:sixMonth;一年:twelveMonth |
|||
* 一个月按照30天,三个月90天,半年180天,一年365天 |
|||
*/ |
|||
@NotBlank(message = "timeSection不能为空,取值:三个月:threeMonth;半年:sixMonth;一年:twelveMonth", groups = MassesDiscontentFormV2.class) |
|||
private String timeSection; |
|||
|
|||
/** |
|||
* asc:分数由低到高 |
|||
* desc:分数由高到低 |
|||
*/ |
|||
@NotBlank(message = "sortType不能为空,取值:asc:分数由低到高;desc:分数由高到低", groups = MassesDiscontentFormV2.class) |
|||
private String sortType; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
@NotBlank(message = "agencyId不能为空", groups = MassesDiscontentFormV2.class) |
|||
private String agencyId; |
|||
|
|||
@NotNull(message = "pageNo不能为空", groups = MassesDiscontentFormV2.class) |
|||
private Integer pageNo; |
|||
|
|||
@NotNull(message = "pageSize不能为空", groups = MassesDiscontentFormV2.class) |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 当前agency对应的区域编码,由前端传入,前端从/data/report/screen/agency/agencydetail这取值 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
|
|||
|
|||
|
|||
//以下属性无需前端传入
|
|||
private String startDate; |
|||
private String endDate; |
|||
} |
@ -0,0 +1,104 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/24 15:31 |
|||
*/ |
|||
@Data |
|||
public class AgencyDetailMulticResultDTO implements Serializable { |
|||
/** |
|||
* 机关组织Id |
|||
*/ |
|||
private String agencyId = ""; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String agencyName = ""; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, |
|||
* 乡(镇、街道)级:street, |
|||
* 区县级: district, |
|||
* 市级: city |
|||
* 省级:province) 机关级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
|||
*/ |
|||
private String level = ""; |
|||
|
|||
/** |
|||
* 地区编码 |
|||
*/ |
|||
private String areaCode = ""; |
|||
|
|||
/** |
|||
* 【省份】名称 |
|||
*/ |
|||
private String province = ""; |
|||
|
|||
/** |
|||
* 【城市】名称 |
|||
*/ |
|||
private String city = ""; |
|||
|
|||
/** |
|||
* 【区县】名称 |
|||
*/ |
|||
private String district = ""; |
|||
|
|||
/** |
|||
* 本机关的所有上级机关 |
|||
*/ |
|||
private List<ParentListResultDTO> parentList; |
|||
|
|||
/** |
|||
* 街道 |
|||
*/ |
|||
private String street=""; |
|||
|
|||
/** |
|||
* 社区 |
|||
*/ |
|||
private String community=""; |
|||
|
|||
/** |
|||
* open: 选择地区编码必填;closed: 无需选择地区编码;;0409新增返参 |
|||
*/ |
|||
private String areaCodeSwitch; |
|||
|
|||
/** |
|||
* 组织区划的名称 |
|||
*/ |
|||
private String areaName; |
|||
|
|||
/** |
|||
* 当前组织对应客户根组织级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province) |
|||
*/ |
|||
private String rootlevel; |
|||
|
|||
|
|||
//以下参数是06.24新增
|
|||
private String rootAgencyId; |
|||
private String parentAreaCode; |
|||
/** |
|||
* 是否有字客户 |
|||
*/ |
|||
private Boolean haveSubCustomer; |
|||
|
|||
/** |
|||
* 子客户列表 |
|||
*/ |
|||
private List<String> subCustomerIds; |
|||
|
|||
// @JsonIgnore
|
|||
/** |
|||
* 当前agencyId所属的客户id |
|||
*/ |
|||
private String customerId; |
|||
} |
@ -0,0 +1,46 @@ |
|||
/** |
|||
* 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.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 组织首页-获取组织机构信息接口-本机关的所有上级机关信息 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class ParentListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 机关组织Id |
|||
*/ |
|||
private String id = ""; |
|||
/** |
|||
* 机关组织名称 |
|||
*/ |
|||
private String name = ""; |
|||
|
|||
|
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.epmet.dto.result.project; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 群众不满列表查询返参DTO,从指标库取值 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/24 11:02 |
|||
*/ |
|||
@Data |
|||
public class MassesDiscontentResultV2DTO implements Serializable { |
|||
private static final long serialVersionUID = 403953150174574960L; |
|||
/** |
|||
* 项目ID |
|||
*/ |
|||
private String projectId; |
|||
|
|||
/** |
|||
* 议题ID |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 话题所在网格 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 话题图片 |
|||
*/ |
|||
private List<String> photos; |
|||
|
|||
/** |
|||
* 话题内容 |
|||
*/ |
|||
private String topicContent; |
|||
|
|||
/** |
|||
* 项目分类标签 |
|||
*/ |
|||
private String projectCategory; |
|||
|
|||
/** |
|||
* 项目评价分数 |
|||
* 直接取整数位展示 |
|||
*/ |
|||
private BigDecimal score; |
|||
|
|||
@JsonIgnore |
|||
private String customerId; |
|||
@JsonIgnore |
|||
private String parentAgencyId; |
|||
@JsonIgnore |
|||
private String areaCode; |
|||
|
|||
public MassesDiscontentResultV2DTO() { |
|||
this.gridName = ""; |
|||
this.photos = new ArrayList<>(); |
|||
this.topicContent = ""; |
|||
this.projectCategory = ""; |
|||
} |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.datareport.redis; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.map.MapUtil; |
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import com.epmet.dto.result.AgencyDetailMulticResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/29 15:46 |
|||
*/ |
|||
@Component |
|||
public class DataReportRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
private String agencyDetailKeyPrefix="epmet:screen:"; |
|||
|
|||
public AgencyDetailMulticResultDTO queryAgencyDetailMulticResultDTO(String customerId, String agencyId) { |
|||
String agencyDetailKey=agencyDetailKeyPrefix.concat(customerId).concat(":").concat(agencyId); |
|||
Map<String, Object> map = redisUtils.hGetAll(agencyDetailKey); |
|||
if (MapUtil.isEmpty(map)) { |
|||
return null; |
|||
} |
|||
AgencyDetailMulticResultDTO dto = BeanUtil.mapToBean(map, AgencyDetailMulticResultDTO.class, true); |
|||
return dto; |
|||
} |
|||
|
|||
public void setAgencyDetailMulticResultDTO(String customerId, String agencyId, AgencyDetailMulticResultDTO agencysResultDTO) { |
|||
String agencyDetailKey = agencyDetailKeyPrefix.concat(customerId).concat(":").concat(agencyId); |
|||
Map<String, Object> map = BeanUtil.beanToMap(agencysResultDTO); |
|||
redisUtils.hMSet(agencyDetailKey, map, RedisUtils.DEFAULT_EXPIRE); |
|||
} |
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织群组总数-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyGroupTotalFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {AgencyGroupTotalFormDTO.saveList.class}) |
|||
private List<DataList> dataList; |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机构ID 关联机关dim表 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 父级机关ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 统计日期 关联日期dim表 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* 月份ID |
|||
*/ |
|||
private String monthId = ""; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId = ""; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 当前组织及下级小组总数 |
|||
*/ |
|||
private Integer groupTotal = 0; |
|||
|
|||
/** |
|||
* 当前组织及下级楼院小组总数 |
|||
*/ |
|||
private Integer ordinaryTotal = 0; |
|||
|
|||
/** |
|||
* 当前组织及下级支部小组总数 |
|||
*/ |
|||
private Integer branchTotal = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织热议话题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyHotTopicFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {AgencyHotTopicFormDTO.saveList.class}) |
|||
private List<DataList> dataList; |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机构ID 关联机关dm表 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 父级机关ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 统计日期 关联日期dm表 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId = ""; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId = ""; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 话题总数 |
|||
*/ |
|||
private Integer topicTotal = 0; |
|||
|
|||
/** |
|||
* 话题状态【热议中:hot_discuss】 |
|||
*/ |
|||
private String status = ""; |
|||
|
|||
/** |
|||
* 状态话题数量 |
|||
*/ |
|||
private Integer topicCount = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,200 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织议题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyIssueFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface AgencyIssueForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = AgencyIssueForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 上级组织ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 年度ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 月度ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 当日议题增量 |
|||
*/ |
|||
private Integer issueIncr; |
|||
|
|||
/** |
|||
* 议题总数 |
|||
*/ |
|||
private Integer issueTotal; |
|||
|
|||
/** |
|||
* 当日已转项目的议题数增量 |
|||
*/ |
|||
private Integer shiftProjectIncr; |
|||
|
|||
/** |
|||
* 已转项目的议题总数 |
|||
*/ |
|||
private Integer shiftProjectTotal; |
|||
|
|||
/** |
|||
* 已转项目所占百分比 |
|||
*/ |
|||
private BigDecimal shiftProjectPercent; |
|||
|
|||
/** |
|||
* 当日表决中议题数增量 |
|||
*/ |
|||
private Integer votingIncr; |
|||
|
|||
/** |
|||
* 表决中议题总数 |
|||
*/ |
|||
private Integer votingTotal; |
|||
|
|||
/** |
|||
* 表决中议题所占百分比 |
|||
*/ |
|||
private BigDecimal votingPercent; |
|||
|
|||
/** |
|||
* 当日已关闭议题数增量 |
|||
*/ |
|||
private Integer closedIncr; |
|||
|
|||
/** |
|||
* 当日已关闭议题中已解决数量 |
|||
*/ |
|||
private Integer closedResolvedIncr; |
|||
|
|||
/** |
|||
* 当日已关闭议题中无需解决数量 |
|||
*/ |
|||
private Integer closedUnresolvedIncr; |
|||
|
|||
/** |
|||
* 已关闭议题总数 |
|||
*/ |
|||
private Integer closedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题中已解决总数 |
|||
*/ |
|||
private Integer closedResolvedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题中未解决总数 |
|||
*/ |
|||
private Integer closedUnresolvedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题所占百分比 |
|||
*/ |
|||
private BigDecimal closedPercent; |
|||
|
|||
/** |
|||
* 已关闭议题中已解决百分比 |
|||
*/ |
|||
private BigDecimal closedResolvedPercent; |
|||
|
|||
/** |
|||
* 已关闭议题中未解决百分比 |
|||
*/ |
|||
private BigDecimal closedUnresolvedPercent; |
|||
|
|||
/** |
|||
* 当日已结案议题数 |
|||
*/ |
|||
private Integer closedCaseIncr; |
|||
|
|||
/** |
|||
* 当日已结案议题中已解决数 |
|||
*/ |
|||
private Integer closedCaseResolvedIncr; |
|||
|
|||
/** |
|||
* 当日已结案议题中未解决数 |
|||
*/ |
|||
private Integer closedCaseUnresolvedIncr; |
|||
|
|||
/** |
|||
* 已结案议题总数 |
|||
*/ |
|||
private Integer closedCaseTotal; |
|||
|
|||
/** |
|||
* 已结案议题中已解决总数 |
|||
*/ |
|||
private Integer closedCaseResolvedTotal; |
|||
|
|||
/** |
|||
* 已结案议题中未解决总数 |
|||
*/ |
|||
private Integer closedCaseUnresolvedTotal; |
|||
|
|||
/** |
|||
* 已结案议题中已解决百分比 |
|||
*/ |
|||
private BigDecimal closedCaseResolvedPercent; |
|||
|
|||
/** |
|||
* 已结案议题中未解决百分比 |
|||
*/ |
|||
private BigDecimal closedCaseUnresolvedPercent; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,146 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织项目数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyProjectFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface AgencyProjectForm extends CustomerClientShowGroup {} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = AgencyProjectForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户Id 【dim_customer.id】 |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关Id 【dim_agency.id】 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 上级组织Id【dim_agency.pid】 |
|||
*/ |
|||
private String parentId; |
|||
|
|||
/** |
|||
* 日维度Id 【dim_date.id】 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周维度Id 【dim_week.id】 |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月维度Id 【dim_month.id】 |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年维度Id 【dim_year.id】 |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 截止当日项目总数 【当前组织及下级项目总数】 |
|||
*/ |
|||
private Integer projectTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日处理中项目数 【当前组织及下级所有未结案项目总数】 |
|||
*/ |
|||
private Integer pendingTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 |
|||
*/ |
|||
private BigDecimal pendingRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日已结案项目数 【当前组织及下级已结案项目总数】 |
|||
*/ |
|||
private Integer closedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 |
|||
*/ |
|||
private BigDecimal closedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 |
|||
*/ |
|||
private Integer resolvedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 |
|||
*/ |
|||
private BigDecimal resolvedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 |
|||
*/ |
|||
private Integer unresolvedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 |
|||
*/ |
|||
private BigDecimal unresolvedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 当日项目总数 【当前组织及下级项目总数】 |
|||
*/ |
|||
private Integer projectIncr = 0; |
|||
|
|||
/** |
|||
* 当日处理中项目数 【当前组织及下级前一日新增处理中项目数】 |
|||
*/ |
|||
private Integer pendingIncr = 0; |
|||
|
|||
/** |
|||
* 当日已结案项目数 【当前组织及下级前一日新增结案项目数】 |
|||
*/ |
|||
private Integer closedIncr = 0; |
|||
|
|||
/** |
|||
* 当日已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 |
|||
*/ |
|||
private Integer resolvedIncr = 0; |
|||
|
|||
/** |
|||
* 当日已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 |
|||
*/ |
|||
private Integer unresolvedIncr = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织机关注册用户数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyRegUserFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {AgencyRegUserFormDTO.saveList.class}) |
|||
private List<DataList> dataList; |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
BigDecimal bi = new BigDecimal(0); |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 注册用户总数 |
|||
*/ |
|||
private Integer regTotal = 0; |
|||
|
|||
/** |
|||
* 居民总数 |
|||
*/ |
|||
private Integer resiTotal = 0; |
|||
|
|||
/** |
|||
* 热心居民总数 |
|||
*/ |
|||
private Integer warmHeartedTotal = 0; |
|||
|
|||
/** |
|||
* 党员总数 |
|||
*/ |
|||
private Integer partymemberTotal = 0; |
|||
|
|||
/** |
|||
* 本日注册居民日增量 |
|||
*/ |
|||
private Integer regIncr = 0; |
|||
|
|||
/** |
|||
* 本日热心居民日增量 |
|||
*/ |
|||
private Integer warmIncr = 0; |
|||
|
|||
/** |
|||
* 本日党员认证日增量 |
|||
*/ |
|||
private Integer partymemberIncr = 0; |
|||
|
|||
/** |
|||
* 居民总数占比 |
|||
*/ |
|||
private BigDecimal resiProportion = bi; |
|||
|
|||
/** |
|||
* 党员总数占比 |
|||
*/ |
|||
private BigDecimal partymemberProportion = bi; |
|||
|
|||
/** |
|||
* 热心居民占比 |
|||
*/ |
|||
private BigDecimal warmHeartedProportion = bi; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织话题转议题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyTopicIssueFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface AgencyTopicIssueForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = AgencyTopicIssueForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户Id |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 父级机关ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 已转议题数量 |
|||
*/ |
|||
private Integer issueTotal; |
|||
|
|||
/** |
|||
* 已转议题当日增量 |
|||
*/ |
|||
private Integer issueIncr; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-组织状态话题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class AgencyTopicStatusFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface AgencyTopicStatusForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = AgencyTopicStatusForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
|
|||
/** |
|||
* 客户Id |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机构ID 关联机关dm表 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 父级机关ID |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 统计日期 关联日期dm表 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 话题状态ID 关联dim_topic_status表 |
|||
讨论中 discussing |
|||
已屏蔽 hidden |
|||
已关闭 closed |
|||
已转项目 shift_project |
|||
*/ |
|||
private String topicStatusId; |
|||
|
|||
/** |
|||
* 话题数量 指定状态的话题数量 |
|||
*/ |
|||
private Integer topicCount; |
|||
|
|||
/** |
|||
* 话题状态百分比 指定状态话题数/话题总数 |
|||
总数在topic_total_agency_daily中 |
|||
*/ |
|||
private BigDecimal topicProportion; |
|||
|
|||
/** |
|||
* 话题增量 单位时间内的状态话题的增加数 |
|||
*/ |
|||
private Integer topicIncrement; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格群组总数-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridGroupTotalFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {saveList.class}) |
|||
private List<DataList> dataList; |
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机构ID 关联机关dim表 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 统计日期 关联日期dim表 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* 月份ID |
|||
*/ |
|||
private String monthId = ""; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId = ""; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 网格下小组总数 |
|||
*/ |
|||
private Integer groupTotal = 0; |
|||
|
|||
/** |
|||
* 网格下楼院小组总数 |
|||
*/ |
|||
private Integer ordinaryTotal = 0; |
|||
|
|||
/** |
|||
* 网格下支部小组总数 |
|||
*/ |
|||
private Integer branchTotal = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格热议话题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridHotTopicFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {GridHotTopicFormDTO.saveList.class}) |
|||
private List<DataList> dataList; |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格ID 关联网格dm表 |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId = ""; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId = ""; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 话题总数 |
|||
*/ |
|||
private Integer topicTotal = 0; |
|||
|
|||
/** |
|||
* 话题状态【热议中:hot_discuss】 |
|||
*/ |
|||
private String status = ""; |
|||
|
|||
/** |
|||
* 状态话题数量 |
|||
*/ |
|||
private Integer topicCount = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,200 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格议题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridIssueFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface GridIssueForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = GridIssueForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 年度ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 月度ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 当日议题增量 |
|||
*/ |
|||
private Integer issueIncr; |
|||
|
|||
/** |
|||
* 议题总数 |
|||
*/ |
|||
private Integer issueTotal; |
|||
|
|||
/** |
|||
* 当日已转项目的议题数增量 |
|||
*/ |
|||
private Integer shiftProjectIncr; |
|||
|
|||
/** |
|||
* 已转项目的议题总数 |
|||
*/ |
|||
private Integer shiftProjectTotal; |
|||
|
|||
/** |
|||
* 已转项目所占百分比 |
|||
*/ |
|||
private BigDecimal shiftProjectPercent; |
|||
|
|||
/** |
|||
* 当日表决中议题数增量 |
|||
*/ |
|||
private Integer votingIncr; |
|||
|
|||
/** |
|||
* 表决中议题总数 |
|||
*/ |
|||
private Integer votingTotal; |
|||
|
|||
/** |
|||
* 表决中议题所占百分比 |
|||
*/ |
|||
private BigDecimal votingPercent; |
|||
|
|||
/** |
|||
* 当日已关闭议题数增量 |
|||
*/ |
|||
private Integer closedIncr; |
|||
|
|||
/** |
|||
* 当日已关闭议题中已解决数量 |
|||
*/ |
|||
private Integer closedResolvedIncr; |
|||
|
|||
/** |
|||
* 当日已关闭议题中无需解决数量 |
|||
*/ |
|||
private Integer closedUnresolvedIncr; |
|||
|
|||
/** |
|||
* 已关闭议题总数 |
|||
*/ |
|||
private Integer closedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题中已解决总数 |
|||
*/ |
|||
private Integer closedResolvedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题中未解决总数 |
|||
*/ |
|||
private Integer closedUnresolvedTotal; |
|||
|
|||
/** |
|||
* 已关闭议题所占百分比 |
|||
*/ |
|||
private BigDecimal closedPercent; |
|||
|
|||
/** |
|||
* 已关闭议题中已解决百分比 |
|||
*/ |
|||
private BigDecimal closedResolvedPercent; |
|||
|
|||
/** |
|||
* 已关闭议题中未解决百分比 |
|||
*/ |
|||
private BigDecimal closedUnresolvedPercent; |
|||
|
|||
/** |
|||
* 当日已结案议题数 |
|||
*/ |
|||
private Integer closedCaseIncr; |
|||
|
|||
/** |
|||
* 当日已结案议题中已解决数 |
|||
*/ |
|||
private Integer closedCaseResolvedIncr; |
|||
|
|||
/** |
|||
* 当日已结案议题中未解决数 |
|||
*/ |
|||
private Integer closedCaseUnresolvedIncr; |
|||
|
|||
/** |
|||
* 已结案议题总数 |
|||
*/ |
|||
private Integer closedCaseTotal; |
|||
|
|||
/** |
|||
* 已结案议题中已解决总数 |
|||
*/ |
|||
private Integer closedCaseResolvedTotal; |
|||
|
|||
/** |
|||
* 已结案议题中未解决总数 |
|||
*/ |
|||
private Integer closedCaseUnresolvedTotal; |
|||
|
|||
/** |
|||
* 已结案议题中已解决百分比 |
|||
*/ |
|||
private BigDecimal closedCaseResolvedPercent; |
|||
|
|||
/** |
|||
* 已结案议题中未解决百分比 |
|||
*/ |
|||
private BigDecimal closedCaseUnresolvedPercent; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,145 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格项目数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridProjectFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface GridProjectForm extends CustomerClientShowGroup {} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = GridProjectForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户Id 【dim_customer.id】 |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关Id 【dim_agency.id】 |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格Id 【dim_grid.id】 |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 日维度Id 【dim_date.id】 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周维度Id 【dim_week.id】 |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月维度Id 【dim_month.id】 |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年维度Id 【dim_year.id】 |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 截止当日网格下项目总数 【当前组织及下级项目总数】 |
|||
*/ |
|||
private Integer projectTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日网格下处理中项目数 【当前组织及下级所有未结案项目总数】 |
|||
*/ |
|||
private Integer pendingTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日网格下处理中项目占比 【当前组织及下级未结案项目百分比(存百分比数,小数点后两位)】 |
|||
*/ |
|||
private BigDecimal pendingRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日网格下已结案项目数 【当前组织及下级已结案项目总数】 |
|||
*/ |
|||
private Integer closedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日网格下已结案项目占比 【当前组织及下级已结案项目百分比(存百分比数,小数点后两位)】 |
|||
*/ |
|||
private BigDecimal closedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日已结案中已解决项目数 【当前组织及下级已结案项目中已解决总数】 |
|||
*/ |
|||
private Integer resolvedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日已结案中已解决项目占比 【当前组织及下级已结案项目中已解决占比】 |
|||
*/ |
|||
private BigDecimal resolvedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 截止当日已结案中未解决项目数 【当前组织及下级已结案项目中未解决总数】 |
|||
*/ |
|||
private Integer unresolvedTotal = 0; |
|||
|
|||
/** |
|||
* 截止当日已结案中未解决项目占比 【当前组织及下级已结案项目中未解决占比】 |
|||
*/ |
|||
private BigDecimal unresolvedRatio = new BigDecimal("0"); |
|||
|
|||
/** |
|||
* 当日已结案项目中已解决数 【当前组织及下级前一日新增结案中已解决项目数】 |
|||
*/ |
|||
private Integer resolvedIncr = 0; |
|||
|
|||
/** |
|||
* 当日已结案项目组未解决数 【当前组织及下级前一日新增结案中未解决项目数】 |
|||
*/ |
|||
private Integer unresolvedIncr = 0; |
|||
|
|||
/** |
|||
* 当日网格下项目总数 【该网格下项目总数】 |
|||
*/ |
|||
private Integer projectIncr = 0; |
|||
|
|||
/** |
|||
* 当日网格下处理中项目数 【该网格下未结案项目总数】 |
|||
*/ |
|||
private Integer pendingIncr = 0; |
|||
|
|||
/** |
|||
* 当日网格下已结案项目数 【该网格下已结案项目总数】 |
|||
*/ |
|||
private Integer closedIncr = 0; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格注册用户数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridRegUserFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "至少有一条数据", groups = {GridRegUserFormDTO.saveList.class}) |
|||
private List<DataList> dataList; |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
public interface saveList extends CustomerClientShowGroup {} |
|||
|
|||
@Data |
|||
public static class DataList { |
|||
BigDecimal bi = new BigDecimal(0); |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 日维度Id |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周维度Id |
|||
*/ |
|||
private String weekId = ""; |
|||
|
|||
/** |
|||
* 年维度Id |
|||
*/ |
|||
private String yearId = ""; |
|||
|
|||
/** |
|||
* 注册用户总数 |
|||
*/ |
|||
private Integer regTotal = 0; |
|||
|
|||
/** |
|||
* 居民总数 |
|||
*/ |
|||
private Integer resiTotal = 0; |
|||
|
|||
/** |
|||
* 热心居民总数 |
|||
*/ |
|||
private Integer warmHeartedTotal = 0; |
|||
|
|||
/** |
|||
* 党员总数 |
|||
*/ |
|||
private Integer partymemberTotal = 0; |
|||
|
|||
/** |
|||
* 本日注册居民日增量 |
|||
*/ |
|||
private Integer regIncr = 0; |
|||
|
|||
/** |
|||
* 本日热心居民日增量 |
|||
*/ |
|||
private Integer warmIncr = 0; |
|||
|
|||
/** |
|||
* 本日党员认证日增量 |
|||
*/ |
|||
private Integer partymemberIncr = 0; |
|||
|
|||
/** |
|||
* 居民总数占比 |
|||
*/ |
|||
private BigDecimal resiProportion = bi; |
|||
|
|||
/** |
|||
* 党员总数占比 |
|||
*/ |
|||
private BigDecimal partymemberProportion = bi; |
|||
|
|||
/** |
|||
* 热心居民占比 |
|||
*/ |
|||
private BigDecimal warmHeartedProportion = bi; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格话题转议题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridTopicIssueFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface GridTopicIssueForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = GridTopicIssueForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户Id |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 新增转议题数 |
|||
*/ |
|||
private Integer issueIncr; |
|||
|
|||
/** |
|||
* 转议题总数 |
|||
*/ |
|||
private Integer issueTotal; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
package com.epmet.dto.basereport.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 基础数据上报-网格状态话题数据-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class GridTopicStatusFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface GridTopicStatusForm extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 为true时需要删除历史数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
/** |
|||
* 数据集合对象 |
|||
*/ |
|||
@NotEmpty(message = "数据集合对象不能为空",groups = GridTopicStatusForm.class) |
|||
private List<DataList> dataList; |
|||
|
|||
@Data |
|||
public static class DataList{ |
|||
|
|||
/** |
|||
* 客户Id |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格ID 关联网格dm表 |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 日期ID |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 周ID |
|||
*/ |
|||
private String weekId; |
|||
|
|||
/** |
|||
* 月ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 季度ID |
|||
*/ |
|||
private String quarterId; |
|||
|
|||
/** |
|||
* 年ID |
|||
*/ |
|||
private String yearId; |
|||
|
|||
/** |
|||
* 话题状态ID 讨论中 discussing |
|||
已屏蔽 hidden |
|||
已关闭 closed |
|||
已转项目 shift_project |
|||
*/ |
|||
private String topicStatusId; |
|||
|
|||
/** |
|||
* 话题数量 |
|||
*/ |
|||
private Integer topicCount; |
|||
|
|||
/** |
|||
* 话题状态占比 指定状态话题数/话题总数 |
|||
总数在topic_total_grid_daily中 |
|||
*/ |
|||
private BigDecimal topicProportion; |
|||
|
|||
/** |
|||
* 话题增量 |
|||
*/ |
|||
private Integer topicIncrement; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,181 @@ |
|||
package com.epmet.dto.extract; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/6/24 15:32 |
|||
*/ |
|||
@Data |
|||
public class FactAgencyGovernDailyDTO implements Serializable { |
|||
private static final long serialVersionUID = 4776545209536007717L; |
|||
private String id; |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 数据更新至:yyyyMMdd; |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* agency_id所属的机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 组织i所属的组织id |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 组织i所有上级id |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 界面展示:问题解决总数=1+2+3+4+5+6+7+8 |
|||
*/ |
|||
private Integer problemResolvedCount; |
|||
|
|||
/** |
|||
* 界面展示:党群自治占比=(9+10)/PROBLEM_RESOLVED_COUNT; 此列存储的是小数 |
|||
*/ |
|||
private BigDecimal groupSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal gridSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:社区解决占比=COMMUNITY_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal communityClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:街道解决占比=STREET_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal streetClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:区直部门解决占比=DISTRICT_DEPT_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal districtDeptClosedRatio; |
|||
|
|||
/** |
|||
* 1、当前组织内,话题关闭已解决数 |
|||
*/ |
|||
private Integer topicResolvedCount; |
|||
|
|||
/** |
|||
* 2、当前组织内,话题关闭无需解决数 |
|||
*/ |
|||
private Integer topicUnResolvedCount; |
|||
|
|||
/** |
|||
* 3、当前组织内,议题关闭已解决数 |
|||
*/ |
|||
private Integer issueResolvedCount; |
|||
|
|||
/** |
|||
* 4、当前组织内,议题关闭无需解决数 |
|||
*/ |
|||
private Integer issueUnResolvedCount; |
|||
|
|||
/** |
|||
* 5、当前组织内:来源于议题的项目:结案已解决数 |
|||
*/ |
|||
private Integer issueProjectResolvedCount; |
|||
|
|||
/** |
|||
* 6、当前组织内:来源于议题的项目:结案无需解决数 |
|||
*/ |
|||
private Integer issueProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 7、当前组织内:项目立项,结案已解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectResolvedCount; |
|||
|
|||
/** |
|||
* 8、当前组织内:项目立项,结案无需解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 9、当前组织内,未出小组即未转议题的:话题关闭已解决数 |
|||
*/ |
|||
private Integer inGroupTopicResolvedCount; |
|||
|
|||
/** |
|||
* 10、当前组织内,未出小组即未转议题的:话题关闭无需解决数 |
|||
*/ |
|||
private Integer inGroupTopicUnResolvedCount; |
|||
|
|||
/** |
|||
* 未出当前网格的,结案项目数 |
|||
*/ |
|||
private Integer gridSelfGovernProjectTotal; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由社区结案的项目总数 |
|||
*/ |
|||
private Integer communityClosedCount; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由街道结案的项目总数 |
|||
*/ |
|||
private Integer streetClosedCount; |
|||
|
|||
/** |
|||
* 当前组织内结案的项目中:由区直部门结案的项目总数 |
|||
*/ |
|||
private Integer districtDeptClosedCount; |
|||
|
|||
/** |
|||
* 删除标识 默认为0 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Date updatedTime; |
|||
} |
@ -0,0 +1,193 @@ |
|||
package com.epmet.dto.extract; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/6/24 15:34 |
|||
*/ |
|||
@Data |
|||
public class FactGridGovernDailyDTO implements Serializable { |
|||
private static final long serialVersionUID = -5492115478082510064L; |
|||
private String id; |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 数据更新至:yyyyMMdd; |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 网格所属的组织id |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 网格所有上级id |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 界面展示:问题解决总数=1+2+3+4+5+6+7+8 |
|||
*/ |
|||
private Integer problemResolvedCount; |
|||
|
|||
/** |
|||
* 界面展示:党群自治占比=(9+10)/PROBLEM_RESOLVED_COUNT; 此列存储的是小数 |
|||
*/ |
|||
private BigDecimal groupSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal gridSelfGovernRatio; |
|||
|
|||
/** |
|||
* 界面展示:社区解决占比=COMMUNITY_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal communityClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:街道解决占比=STREET_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal streetClosedRatio; |
|||
|
|||
/** |
|||
* 界面展示:区直部门解决占比=DISTRICT_DEPT_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT;此列存储的是小数 |
|||
*/ |
|||
private BigDecimal districtDeptClosedRatio; |
|||
|
|||
/** |
|||
* 1、当前网格内,话题关闭已解决数 |
|||
*/ |
|||
private Integer topicResolvedCount; |
|||
|
|||
/** |
|||
* 2、当前网格内,话题关闭无需解决数 |
|||
*/ |
|||
private Integer topicUnResolvedCount; |
|||
|
|||
/** |
|||
* 3、当前网格内,议题关闭已解决数 |
|||
*/ |
|||
private Integer issueResolvedCount; |
|||
|
|||
/** |
|||
* 4、当前网格内,议题关闭无需解决数 |
|||
*/ |
|||
private Integer issueUnResolvedCount; |
|||
|
|||
/** |
|||
* 5、当前网格内:来源于议题的项目:结案已解决数 |
|||
*/ |
|||
private Integer issueProjectResolvedCount; |
|||
|
|||
/** |
|||
* 6、当前网格内:来源于议题的项目:结案无需解决数 |
|||
*/ |
|||
private Integer issueProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 7、当前网格内:项目立项,结案已解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectResolvedCount; |
|||
|
|||
/** |
|||
* 8、当前网格内:项目立项,结案无需解决数;默认为0, |
|||
*/ |
|||
private Integer approvalProjectUnResolvedCount; |
|||
|
|||
/** |
|||
* 9、当前网格内,未出小组即未转议题的:话题关闭已解决数 |
|||
*/ |
|||
private Integer inGroupTopicResolvedCount; |
|||
|
|||
/** |
|||
* 10、当前网格内,未出小组即未转议题的:话题关闭无需解决数 |
|||
*/ |
|||
private Integer inGroupTopicUnResolvedCount; |
|||
|
|||
/** |
|||
* 11、来源于议题的项目,未出网格结案并且已解决的项目数 |
|||
*/ |
|||
private Integer fromIssueResolvedInGridCount; |
|||
|
|||
/** |
|||
* 12、来源于议题的项目,未出网格结案并且无需解决的项目数 |
|||
*/ |
|||
private Integer fromIssueUnResolvedInGridCount; |
|||
|
|||
/** |
|||
* 13、来源于项目立项的项目,未出网格结案,并且已解决的项目数;因现在网格不能立项,所以此列默认为0 |
|||
*/ |
|||
private Integer fromAgencyResolvedInGridCount; |
|||
|
|||
/** |
|||
* 14、来源于项目立项的项目,未出网格结案,并且无需解决的项目数;因现在网格不能立项,所以此列默认为0 |
|||
*/ |
|||
private Integer fromAgencyUnResolvedInGridCount; |
|||
|
|||
/** |
|||
* 15、未出当前网格的,结案项目数=11+12+13+14 |
|||
*/ |
|||
private Integer gridSelfGovernProjectTotal; |
|||
|
|||
|
|||
/** |
|||
* 当前网格内出来的项目:由社区结案(已解决+未解决)的项目总数 |
|||
*/ |
|||
private Integer communityClosedCount; |
|||
|
|||
/** |
|||
* 当前网格内出来的项目:由街道结案(已解决+未解决)的项目总数 |
|||
*/ |
|||
private Integer streetClosedCount; |
|||
|
|||
/** |
|||
* 当前网格内出来的项目:由街道结案(已解决+未解决)的项目总数 |
|||
*/ |
|||
private Integer districtDeptClosedCount; |
|||
|
|||
/** |
|||
* 删除标识 默认为0 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Date updatedTime; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.extract.form; |
|||
|
|||
import com.epmet.dto.extract.FactAgencyGovernDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/6/24 15:28 |
|||
*/ |
|||
@Data |
|||
public class AgencyGovernDailyFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 106752296400100448L; |
|||
/** |
|||
* 当为true时后台将删除本月数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
private List<FactAgencyGovernDailyDTO> dataList; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.extract.form; |
|||
|
|||
import com.epmet.dto.extract.FactGridGovernDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/6/24 15:36 |
|||
*/ |
|||
@Data |
|||
public class GridGovernDailyFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1630151176835406040L; |
|||
/** |
|||
* 当为true时后台将删除本月数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
private List<FactGridGovernDailyDTO> dataList; |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.dto.project.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/7/11 14:42 |
|||
*/ |
|||
@Data |
|||
public class UpdateProjectSatisfactionScoreFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 8358341102854725024L; |
|||
private String projectId; |
|||
private String projectCustomerId; |
|||
private List<String> customerIdList; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.dto.screencoll.form; |
|||
|
|||
import com.epmet.dto.screen.ScreenGovernRankDataDailyDTO; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/6/24 10:04 |
|||
*/ |
|||
@Data |
|||
public class GovernRankDataDailyFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3485797660632260565L; |
|||
/** |
|||
* 当为true时后台将删除本月数据 |
|||
*/ |
|||
private Boolean isFirst; |
|||
|
|||
/** |
|||
* yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
private List<ScreenGovernRankDataDailyDTO> dataList; |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/24 5:19 下午 |
|||
* @DESC |
|||
*/ |
|||
public interface BaseReportConstant { |
|||
|
|||
String DATA_IS_NULL = "上传%s数据为空"; |
|||
|
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/7/9 3:24 下午 |
|||
* @DESC |
|||
*/ |
|||
public interface GovernConstant { |
|||
|
|||
/** |
|||
* 增长:incr;下降:decr; 相等 :eq; |
|||
*/ |
|||
String INCR = "incr"; |
|||
String DECR = "decr"; |
|||
String EQ = "eq"; |
|||
} |
@ -0,0 +1,201 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.basereport.form.*; |
|||
import com.epmet.service.BaseReportService; |
|||
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; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 部分基础数据上报 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("basereport") |
|||
public class BaseReportController { |
|||
|
|||
@Autowired |
|||
private BaseReportService baseReportService; |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 网格注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("gridreguser") |
|||
public Result gridRegUser(@RequestBody GridRegUserFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridRegUserFormDTO.saveList.class); |
|||
baseReportService.gridRegUser(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 组织机关注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("agencyreguser") |
|||
public Result agencyRegUser(@RequestBody AgencyRegUserFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyRegUserFormDTO.saveList.class); |
|||
baseReportService.agencyRegUser(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 网格群组总数 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("gridgrouptotal") |
|||
public Result gridGroupTotal(@RequestBody GridGroupTotalFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridGroupTotalFormDTO.saveList.class); |
|||
baseReportService.gridGroupTotal(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 组织群组总数 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("agencygrouptotal") |
|||
public Result agencyGroupTotal(@RequestBody AgencyGroupTotalFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyGroupTotalFormDTO.saveList.class); |
|||
baseReportService.agencyGroupTotal(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 网格热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("gridhottopic") |
|||
public Result gridHotTopic(@RequestBody GridHotTopicFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridHotTopicFormDTO.saveList.class); |
|||
baseReportService.gridHotTopic(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Param formDTO |
|||
* @Description 组织热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("agencyhottopic") |
|||
public Result agencyHotTopic(@RequestBody AgencyHotTopicFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyHotTopicFormDTO.saveList.class); |
|||
baseReportService.agencyHotTopic(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 网格状态话题数据-008 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 3:09 下午 |
|||
*/ |
|||
@PostMapping("gridtopicstatus") |
|||
public Result gridTopicStatus(@RequestBody GridTopicStatusFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridTopicStatusFormDTO.GridTopicStatusForm.class); |
|||
baseReportService.gridTopicStatus(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 组织状态话题数据-007 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 3:09 下午 |
|||
*/ |
|||
@PostMapping("agencytopicstatus") |
|||
public Result agencyTopicStatus(@RequestBody AgencyTopicStatusFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyTopicStatusFormDTO.AgencyTopicStatusForm.class); |
|||
baseReportService.agencyTopicStatus(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 网格话题转议题数据-006 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:51 下午 |
|||
*/ |
|||
@PostMapping("gridtopicissue") |
|||
public Result gridTopicIssue(@RequestBody GridTopicIssueFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridTopicIssueFormDTO.GridTopicIssueForm.class); |
|||
baseReportService.gridTopicIssue(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 组织话题转议题数据-005 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:50 下午 |
|||
*/ |
|||
@PostMapping("agencytopicissue") |
|||
public Result agencyTopicIssue(@RequestBody AgencyTopicIssueFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyTopicIssueFormDTO.AgencyTopicIssueForm.class); |
|||
baseReportService.agencyTopicIssue(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 网格议题数据-004 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:50 下午 |
|||
*/ |
|||
@PostMapping("gridissue") |
|||
public Result gridIssue(@RequestBody GridIssueFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridIssueFormDTO.GridIssueForm.class); |
|||
baseReportService.gridIssue(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 组织议题数据-003 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:50 下午 |
|||
*/ |
|||
@PostMapping("agencyissue") |
|||
public Result agencyIssue(@RequestBody AgencyIssueFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyIssueFormDTO.AgencyIssueForm.class); |
|||
baseReportService.agencyIssue(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 网格项目数据-002 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:50 下午 |
|||
*/ |
|||
@PostMapping("gridproject") |
|||
public Result gridProject(@RequestBody GridProjectFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, GridProjectFormDTO.GridProjectForm.class); |
|||
baseReportService.gridProject(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 组织项目数据-001 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/25 1:50 下午 |
|||
*/ |
|||
@PostMapping("agencyproject") |
|||
public Result agencyProject(@RequestBody AgencyProjectFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO, AgencyProjectFormDTO.AgencyProjectForm.class); |
|||
baseReportService.agencyProject(formDTO); |
|||
return new Result(); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,74 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.extract.form.AgencyGovernDailyFormDTO; |
|||
import com.epmet.dto.extract.form.GridGovernDailyFormDTO; |
|||
import com.epmet.dto.screencoll.form.GovernRankDataDailyFormDTO; |
|||
import com.epmet.service.GovernanceDataReportService; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.sql.ResultSet; |
|||
|
|||
/** |
|||
* 治理能力数据上报 |
|||
* |
|||
* @author zhaoqifeng |
|||
* @date 2021/6/24 15:16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("governance") |
|||
public class GovernanceDataReportController { |
|||
|
|||
@Resource |
|||
private GovernanceDataReportService governanceDataReportService; |
|||
|
|||
|
|||
/** |
|||
* 基层治理-治理能力排行数据(按天统计) |
|||
* |
|||
* @param customerId |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author zhaoqifeng |
|||
* @date 2021/6/24 10:02 |
|||
*/ |
|||
@PostMapping("governrankdatadaily") |
|||
public Result governRankDataDaily(@RequestHeader("CustomerId") String customerId, @RequestBody GovernRankDataDailyFormDTO formDTO) { |
|||
governanceDataReportService.insertGovernRankDataDaily(formDTO, customerId); |
|||
return new Result(); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 组织的治理指数,按天统计 |
|||
* |
|||
* @param customerId |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author zhaoqifeng |
|||
* @date 2021/6/24 15:38 |
|||
*/ |
|||
@PostMapping("agencygoverndaily") |
|||
public Result agencyGovernDaily(@RequestHeader("CustomerId") String customerId, @RequestBody AgencyGovernDailyFormDTO formDTO) { |
|||
governanceDataReportService.insertAgencyGovernDaily(formDTO, customerId); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* 网格的治理指数,按天统计 |
|||
* |
|||
* @param customerId |
|||
* @param formDTO |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author zhaoqifeng |
|||
* @date 2021/6/24 15:38 |
|||
*/ |
|||
@PostMapping("gridgoverndaily") |
|||
public Result gridGovernDaily(@RequestHeader("CustomerId") String customerId, @RequestBody GridGovernDailyFormDTO formDTO) { |
|||
governanceDataReportService.insertGridGovernDaily(formDTO, customerId); |
|||
return new Result(); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,227 @@ |
|||
package com.epmet.dao.stats; |
|||
|
|||
import com.epmet.dto.basereport.form.AgencyProjectFormDTO; |
|||
import com.epmet.dto.basereport.form.AgencyRegUserFormDTO; |
|||
import com.epmet.dto.basereport.form.GridRegUserFormDTO; |
|||
import com.epmet.dto.basereport.form.*; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 部分基础数据上报 |
|||
*/ |
|||
@Mapper |
|||
public interface BaseReportDao { |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户网格注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
int delGridRegUser(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户网格注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchGridRegUser(@Param("list") List<GridRegUserFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户组织注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
int delAgencyRegUser(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户组织注册用户数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchAgencyRegUser(@Param("list") List<AgencyRegUserFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户网格群组总数数据 |
|||
* @author sun |
|||
*/ |
|||
int delGridGroupTotal(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户网格群组总数数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchGridGroupTotal(@Param("list") List<GridGroupTotalFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户组织群组总数数据 |
|||
* @author sun |
|||
*/ |
|||
int delAgencyGroupTotal(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户组织群组总数数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchAgencyGroupTotal(@Param("list") List<AgencyGroupTotalFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户网格热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
int delGridHotTopic(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户网格热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchGridHotTopic(@Param("list") List<GridHotTopicFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户组织热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
int delAgencyHotTopic(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增客户组织热议话题数据 |
|||
* @author sun |
|||
*/ |
|||
void insertBatchAgencyHotTopic(@Param("list") List<AgencyHotTopicFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户组织项目数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/24 5:30 下午 |
|||
*/ |
|||
int delAgencyProject(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增组织项目数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 9:14 上午 |
|||
*/ |
|||
void insertAgencyProject(@Param("list")List<AgencyProjectFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 根据dateId删除客户网格项目数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 10:36 上午 |
|||
*/ |
|||
int delGridProject(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 批量新增网格项目数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 10:37 上午 |
|||
*/ |
|||
void insertGridProject(@Param("list")List<GridProjectFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除组织议题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 10:53 上午 |
|||
*/ |
|||
int delAgencyIssue(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 新增组织议题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 10:54 上午 |
|||
*/ |
|||
void insertAgencyIssue(@Param("list")List<AgencyIssueFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除网格议题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 2:00 下午 |
|||
*/ |
|||
int delGridIssue(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 新增网格议题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 2:00 下午 |
|||
*/ |
|||
void insertGridIssue(@Param("list")List<GridIssueFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除组织话题转议题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 2:13 下午 |
|||
*/ |
|||
int delAgencyTopicIssue(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 新增组织话题转议题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 2:14 下午 |
|||
*/ |
|||
void insertAgencyTopicIssue(@Param("list")List<AgencyTopicIssueFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除网格话题转议题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 2:41 下午 |
|||
*/ |
|||
int delGridTopicIssue(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 新增网格话题转议题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 2:41 下午 |
|||
*/ |
|||
void insertGridTopicIssue(@Param("list")List<GridTopicIssueFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除组织状态话题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 3:17 下午 |
|||
*/ |
|||
int delAgencyTopicStatus(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 增加组织状态话题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 3:18 下午 |
|||
*/ |
|||
void insertAgencyTopicStatus(@Param("list")List<AgencyTopicStatusFormDTO.DataList> dataList); |
|||
|
|||
/** |
|||
* @Description 删除网格状态话题数据 |
|||
* @Param customerId |
|||
* @Param dateId |
|||
* @author zxc |
|||
* @date 2021/6/25 3:30 下午 |
|||
*/ |
|||
int delGridTopicStatus(@Param("customerId") String customerId, @Param("dateId") String dateId); |
|||
|
|||
/** |
|||
* @Description 增加网格状态话题数据 |
|||
* @Param dataList |
|||
* @author zxc |
|||
* @date 2021/6/25 3:30 下午 |
|||
*/ |
|||
void insertGridTopicStatus(@Param("list")List<GridTopicStatusFormDTO.DataList> dataList); |
|||
|
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue