forked from rongchao/epmet-cloud-rizhao
18 changed files with 981 additions and 40 deletions
@ -0,0 +1,67 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/10 11:04 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerDataManageFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 6462094914874831738L; |
||||
|
|
||||
|
public interface CustomerDataManageForm{} |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
@NotBlank(message = "客户ID不能为空",groups = CustomerDataManageForm.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = CustomerDataManageForm.class) |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 区间:Interval 截止:end |
||||
|
*/ |
||||
|
@NotBlank(message = "type不能为空",groups = CustomerDataManageForm.class) |
||||
|
private String type; |
||||
|
|
||||
|
/** |
||||
|
* 开始时间【yyyymmdd】 |
||||
|
*/ |
||||
|
private String startTime; |
||||
|
|
||||
|
/** |
||||
|
* 结束时间【yyyymmdd】 |
||||
|
*/ |
||||
|
@NotBlank(message = "结束时间不能为空",groups = CustomerDataManageForm.class) |
||||
|
private String endTime; |
||||
|
|
||||
|
private Integer pageNo = 1; |
||||
|
|
||||
|
private Integer pageSize = 20; |
||||
|
|
||||
|
/** |
||||
|
* 是否分页【true分 false不分】 |
||||
|
*/ |
||||
|
@NotNull(message = "是否分页不能为空",groups = CustomerDataManageForm.class) |
||||
|
private Boolean isPage; |
||||
|
|
||||
|
//组织或网格Id集合
|
||||
|
private List<String> idList; |
||||
|
//按起始时间还是结束时间查数据【start end】
|
||||
|
private String sourceType; |
||||
|
//数据类型【组织agency 网格grid】
|
||||
|
private String dataType; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 运营情况数据导出-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerDataManageResultDTO { |
||||
|
|
||||
|
List<CustomerDataManage> list = new ArrayList<>(); |
||||
|
private Integer total; |
||||
|
|
||||
|
@Data |
||||
|
public static class CustomerDataManage { |
||||
|
//组织、网格Id
|
||||
|
private String orgId; |
||||
|
//组织、网格名称
|
||||
|
private String orgName; |
||||
|
//用户数
|
||||
|
private Integer userCount = 0; |
||||
|
//居民数
|
||||
|
private Integer residentCount = 0; |
||||
|
//党员数
|
||||
|
private Integer partyMemberCount = 0; |
||||
|
//小组数
|
||||
|
private Integer groupCount = 0; |
||||
|
//话题数
|
||||
|
private Integer topicCount = 0; |
||||
|
//议题数
|
||||
|
private Integer issueCount = 0; |
||||
|
//项目数
|
||||
|
private Integer projectCount = 0; |
||||
|
//结案项目数
|
||||
|
private Integer closedProjectCount = 0; |
||||
|
//巡查人数
|
||||
|
private Integer patrolPeopleCount = 0; |
||||
|
//巡查次数
|
||||
|
private Integer patrolCount = 0; |
||||
|
//巡查时长
|
||||
|
private String patrolDuration; |
||||
|
//未转换前的巡查时长
|
||||
|
private Integer patrolDurationInteger = 0; |
||||
|
//数据对应dateId
|
||||
|
@JsonIgnore |
||||
|
private String dateId; |
||||
|
@JsonIgnore |
||||
|
private String staffId; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dataaggre.dto.evaluationindex; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author sun |
||||
|
* @Description 根据组织Id判断查询直属下级组织/网格列表,组织存在子客户的查询包含子客户组织数据 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ScreenAgencyOrGridListDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 6328123559936824470L; |
||||
|
//组织级别(社区级:community,乡(镇、街道)级:street,区县级: district,市级: city,省级:province)
|
||||
|
private String level; |
||||
|
//直属下级组织或网格集合
|
||||
|
private List<AgencyGrid> agencyGridList; |
||||
|
|
||||
|
@Data |
||||
|
public static class AgencyGrid { |
||||
|
//组织id
|
||||
|
private String orgId; |
||||
|
//组织名称
|
||||
|
private String orgName; |
||||
|
} |
||||
|
} |
@ -0,0 +1,55 @@ |
|||||
|
package com.epmet.dataaggre.excel; |
||||
|
|
||||
|
import cn.afterturn.easypoi.excel.annotation.Excel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/10 10:15 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerDataManageExcel { |
||||
|
|
||||
|
@Excel(name = "组织") |
||||
|
private String orgName; |
||||
|
|
||||
|
@Excel(name = "用户数") |
||||
|
private Integer userCount; |
||||
|
|
||||
|
@Excel(name = "居民数") |
||||
|
private Integer residentCount; |
||||
|
|
||||
|
@Excel(name = "党员数") |
||||
|
private Integer partyMemberCount; |
||||
|
|
||||
|
@Excel(name = "小组数") |
||||
|
private Integer groupCount; |
||||
|
|
||||
|
@Excel(name = "话题数") |
||||
|
private Integer topicCount; |
||||
|
|
||||
|
@Excel(name = "议题数") |
||||
|
private Integer issueCount; |
||||
|
|
||||
|
@Excel(name = "项目数") |
||||
|
private Integer projectCount; |
||||
|
|
||||
|
@Excel(name = "结案项目数") |
||||
|
private Integer closedProjectCount; |
||||
|
|
||||
|
@Excel(name = "巡查人数") |
||||
|
private Integer patrolPeopleCount; |
||||
|
|
||||
|
@Excel(name = "巡查次数") |
||||
|
private Integer patrolCount; |
||||
|
|
||||
|
@Excel(name = "巡查时长") |
||||
|
private String patrolDuration; |
||||
|
|
||||
|
/** |
||||
|
* 未转换前的巡查时长 |
||||
|
*/ |
||||
|
private Integer patrolDurationInteger; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue