221 changed files with 9983 additions and 351 deletions
@ -0,0 +1,57 @@ |
|||
package com.epmet.commons.tools.enums; |
|||
|
|||
import java.util.Objects; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
*/ |
|||
public enum ChannelEnum { |
|||
//通知渠道 0小程序通知,1短信通知
|
|||
APP("0", "小程序通知"), |
|||
MESSAGE("1", "短信通知"), |
|||
ALL("2", "小程序通知,短信通知"); |
|||
private String code; |
|||
private String name; |
|||
|
|||
|
|||
ChannelEnum(String code, String name) { |
|||
this.code = code; |
|||
this.name = name; |
|||
} |
|||
|
|||
public static String getName(String code) { |
|||
ChannelEnum[] houseTypeEnums = values(); |
|||
for (ChannelEnum houseTypeEnum : houseTypeEnums) { |
|||
if (Objects.equals(houseTypeEnum.getCode(), code)) { |
|||
return houseTypeEnum.getName(); |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public static String getCode(String name) { |
|||
ChannelEnum[] houseTypeEnums = values(); |
|||
for (ChannelEnum houseTypeEnum : houseTypeEnums) { |
|||
if (houseTypeEnum.getName().equals(name)) { |
|||
return houseTypeEnum.getCode(); |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.commons.tools.utils.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.entity.ExportParams; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* desc:easypoi 导出多个sheet |
|||
* |
|||
* @author: LiuJanJun |
|||
* @date: 2022/3/29 1:13 下午 |
|||
* @version: 1.0 |
|||
*/ |
|||
@Data |
|||
@AllArgsConstructor |
|||
public class ExportMultiView { |
|||
/** |
|||
* 导出的参数 比如设置表头 |
|||
*/ |
|||
private ExportParams exportParams; |
|||
/** |
|||
* 要导出的数据列 |
|||
*/ |
|||
private List<?> dataList; |
|||
/** |
|||
* excel对应的类 |
|||
*/ |
|||
private Class<?> cls; |
|||
|
|||
} |
@ -0,0 +1,9 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AreaCodeFormDTO { |
|||
private String parentAreaCode; |
|||
private String parentLevel; |
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AreaCodeResultDTO { |
|||
private String areaCode; |
|||
private String parentCode; |
|||
private String areaName; |
|||
private String level; |
|||
} |
@ -0,0 +1,20 @@ |
|||
#添加 是否自定义字段 |
|||
ALTER TABLE `epmet_common_service`.`area_code_child` |
|||
ADD COLUMN `USER_DEFINED` tinyint(1) NULL DEFAULT 0 COMMENT '是否自定义 1:是0否' AFTER `CATAGORY`; |
|||
#更新 字段值 |
|||
UPDATE area_code_child SET USER_DEFINED = 1 WHERE code like '%_UD%'; |
|||
#清空数据 |
|||
DELETE FROM area_code_child WHERE USER_DEFINED = 0; |
|||
#插入数据 |
|||
INSERT INTO `epmet_common_service`.`area_code_child` (`ID`, `CODE`, `NAME`, `P_CODE`, `LEVEL`, `CATAGORY`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME`) |
|||
SELECT ID, `CODE`, `NAME`, `P_CODE`, `LEVEL`, `CATAGORY`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME` FROM area_code_child_new; |
|||
|
|||
|
|||
SELECT * FROM area_code_new WHERE county_code = '441900'; |
|||
|
|||
#清空数据 |
|||
DELETE FROM area_code where 1=1; |
|||
#插入数据 |
|||
INSERT INTO `epmet_common_service`.`area_code` |
|||
SELECT * FROM area_code_new; |
|||
SELECT COUNT(1) FROM area_code; |
@ -0,0 +1,131 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
|
|||
/** |
|||
* 疫情特别关注 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-28 |
|||
*/ |
|||
@Data |
|||
public class IcEpidemicSpecialAttentionDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public interface IcEpidemicSpecialAttentionUpdate{} |
|||
public interface IcEpidemicSpecialAttentionAdd{} |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 当前工作人员所属组织ID |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织ID上级 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 组织ID所有上级 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 是否关注 1:关注,0:取消关注 |
|||
*/ |
|||
private Integer isAttention; |
|||
|
|||
/** |
|||
* 关注类型,核酸检测:2,疫苗接种:1,行程上报:0 |
|||
*/ |
|||
@NotNull(message = "attentionType不能为空",groups = {IcEpidemicSpecialAttentionAdd.class,IcEpidemicSpecialAttentionUpdate.class}) |
|||
private Integer attentionType; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@NotBlank(message = "name不能为空",groups = IcEpidemicSpecialAttentionAdd.class) |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@NotBlank(message = "mobile不能为空",groups = IcEpidemicSpecialAttentionAdd.class) |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@NotBlank(message = "idCard不能为空",groups = {IcEpidemicSpecialAttentionAdd.class,IcEpidemicSpecialAttentionUpdate.class}) |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 原因 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 通知渠道 0小程序通知,1短信通知 |
|||
*/ |
|||
private List<String> channel; |
|||
|
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
} |
@ -0,0 +1,142 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnore; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|||
import com.alibaba.excel.annotation.write.style.HeadStyle; |
|||
import com.alibaba.excel.enums.poi.FillPatternTypeEnum; |
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 随访记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-25 |
|||
*/ |
|||
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 44) |
|||
@Data |
|||
public class IcFollowUpRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
public interface AddInternalGroup { |
|||
} |
|||
public interface AddUserRequired extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@ExcelIgnore |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
@ExcelIgnore |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@ColumnWidth(20) |
|||
@ExcelProperty("姓名") |
|||
@NotBlank(message = "姓名不能为空", groups = {AddUserRequired.class}) |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@ColumnWidth(20) |
|||
@ExcelProperty("手机号") |
|||
@NotBlank(message = "手机号不能为空", groups = {AddUserRequired.class}) |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("身份证号") |
|||
@NotBlank(message = "身份证号不能为空", groups = {AddUserRequired.class}) |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 0行程上报,1疫苗接种,2核酸检测 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("来源") |
|||
@NotBlank(message = "origin不能为空:0行程上报,1疫苗接种,2核酸检测", groups = {AddInternalGroup.class}) |
|||
private String origin; |
|||
|
|||
/** |
|||
* 随访时间 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("随访时间") |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@NotNull(message = "随访时间不能为空", groups = {AddUserRequired.class}) |
|||
private Date visitTime; |
|||
|
|||
/** |
|||
* 随访内容 |
|||
*/ |
|||
@ColumnWidth(200) |
|||
@ExcelProperty("随访内容") |
|||
@NotBlank(message = "随访内容不能为空", groups = {AddUserRequired.class}) |
|||
@Length(message = "随访内容最多输入1000字", groups = {AddUserRequired.class}) |
|||
private String content; |
|||
|
|||
/** |
|||
* 工作人员所属组织id |
|||
*/ |
|||
@ExcelIgnore |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 删除标识 1删除;0未删除 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
@ExcelIgnore |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelIgnore |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelIgnore |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,134 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 核酸上报记录 |
|||
|
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-25 |
|||
*/ |
|||
@Data |
|||
public class IcNatDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id CUSTOMER.id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 是否客户下居民(0:否 1:是) |
|||
*/ |
|||
private String isResiUser; |
|||
|
|||
/** |
|||
* 居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 人员姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 检测时间,精确到分钟 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date natTime; |
|||
|
|||
/** |
|||
* 检测结果(0:阴性 1:阳性) |
|||
*/ |
|||
private String natResult; |
|||
|
|||
/** |
|||
* 检测地点 |
|||
*/ |
|||
private String natAddress; |
|||
|
|||
/** |
|||
* 文件名 |
|||
*/ |
|||
private String fileName; |
|||
|
|||
/** |
|||
* 文件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|||
*/ |
|||
private String attachmentType; |
|||
|
|||
/** |
|||
* url地址 |
|||
*/ |
|||
private String attachmentUrl; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 通知渠道 0小程序通知,1短信通知,多选是数组 |
|||
*/ |
|||
private List<String> channel = new ArrayList<>(); |
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
private String content = ""; |
|||
|
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 核酸记录关系表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-31 |
|||
*/ |
|||
@Data |
|||
public class IcNatRelationDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 居民端上报时存储用户所在网格的组织id.居民信息的人存储居民所在组织id.单个新增或者导入的存储登录用户所属的组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织pids,包含当前agencyId值 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* 核酸记录表Id(ic_nat.id) |
|||
*/ |
|||
private String icNatId; |
|||
|
|||
/** |
|||
* 关系数据的绑定途径【居民端录入:resi; |
|||
数字社区录入:icresi; |
|||
导入的:import; |
|||
同步的:synchro】 |
|||
*/ |
|||
private String userType; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 防疫通知 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-28 |
|||
*/ |
|||
@Data |
|||
public class IcNoticeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
@JsonIgnore |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id customer.id |
|||
*/ |
|||
@JsonIgnore |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 通知渠道 0小程序通知,1短信通知 |
|||
*/ |
|||
private String channel; |
|||
private List<String> channelList; |
|||
/** |
|||
* 通知来源 0行程上报,1疫苗接种,2核酸检测 |
|||
*/ |
|||
@JsonIgnore |
|||
private String origin; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
@JsonIgnore |
|||
private String userId; |
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@JsonIgnore |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 被通知人身份证号 |
|||
*/ |
|||
@JsonIgnore |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 发送通知的社区 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 删除标识:0.未删除 1.已删除 |
|||
*/ |
|||
@JsonIgnore |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
@JsonIgnore |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
@JsonIgnore |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
@JsonIgnore |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@JsonIgnore |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 居民疫苗情况 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-28 |
|||
*/ |
|||
@Data |
|||
public class IcResiVaccineDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id customer.id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 接种时间 |
|||
*/ |
|||
private Date inoculateTime; |
|||
|
|||
/** |
|||
* 接种地点 |
|||
*/ |
|||
private String inoculateAddress; |
|||
|
|||
/** |
|||
* 疫苗厂家 |
|||
*/ |
|||
private String manufacturer; |
|||
|
|||
/** |
|||
* 预留字段1 |
|||
*/ |
|||
private String field1; |
|||
|
|||
/** |
|||
* 预留字段2 |
|||
*/ |
|||
private String field2; |
|||
|
|||
/** |
|||
* 预留字段3 |
|||
*/ |
|||
private String field3; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remaek; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,218 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnore; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|||
import com.alibaba.excel.annotation.write.style.HeadStyle; |
|||
import com.alibaba.excel.enums.poi.FillPatternTypeEnum; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 行程上报信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2022-03-25 |
|||
*/ |
|||
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 44) |
|||
@Data |
|||
public class IcTripReportRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键ID |
|||
*/ |
|||
@ExcelIgnore |
|||
private String id; |
|||
|
|||
/** |
|||
* 居民端用户所在网格id,数字社区居民所属网格id |
|||
*/ |
|||
@ExcelIgnore |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 居民端上报的:存储用户所在网格的组织id; |
|||
*/ |
|||
@ExcelIgnore |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* agency_id的所有上级 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String pids; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
@ExcelIgnore |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@ColumnWidth(15) |
|||
@ExcelProperty("姓名") |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@ColumnWidth(15) |
|||
@ExcelProperty("手机号") |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@ColumnWidth(22) |
|||
@ExcelProperty("身份证号") |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ExcelIgnore |
|||
private String userId; |
|||
|
|||
/** |
|||
* 居民端小程序的人:resi;数字社区的居民:icresi;单独录入:input; 导入:import |
|||
*/ |
|||
@ExcelIgnore |
|||
private String userType; |
|||
|
|||
/** |
|||
* 现居地编码 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String presentAddressCode; |
|||
|
|||
/** |
|||
* 现居地编码路径:"presentAddressPathCode":"37,3702,370203,370203026,370203026002" |
|||
*/ |
|||
@ExcelIgnore |
|||
private String presentAddressPathCode; |
|||
|
|||
/** |
|||
* 现居地名称eg:山东省青岛市黄岛区玫瑰山路社区 |
|||
*/ |
|||
@ColumnWidth(50) |
|||
@ExcelProperty("现居地") |
|||
private String presentAddress; |
|||
|
|||
/** |
|||
* 详细地址 |
|||
*/ |
|||
@ColumnWidth(35) |
|||
@ExcelProperty("详细地址") |
|||
private String detailAddress; |
|||
|
|||
/** |
|||
* 来源地区编码 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String sourceAddressCode; |
|||
|
|||
/** |
|||
* 来源地编码路径: "sourceAddressPathCode": "37,3702,370203,370203026,370203026002" |
|||
*/ |
|||
@ExcelIgnore |
|||
private String sourceAddressPathCode; |
|||
|
|||
/** |
|||
* 来源地区地址 |
|||
*/ |
|||
@ColumnWidth(50) |
|||
@ExcelProperty("来自地区") |
|||
private String sourceAddress; |
|||
|
|||
/** |
|||
* 到达日期 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("来到本地时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
private Date arriveDate; |
|||
|
|||
/** |
|||
* 离开日期 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("离开本地时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
private Date leaveDate; |
|||
|
|||
/** |
|||
* pc行程上报-列表返参:最近一次通知时间 |
|||
*/ |
|||
@ColumnWidth(25) |
|||
@ExcelProperty("最近一次通知时间") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
private Date latestNoticeTime; |
|||
|
|||
/** |
|||
* 备注信息 |
|||
*/ |
|||
@ColumnWidth(100) |
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
/** |
|||
* 删除标识 1删除;0未删除 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
@ExcelIgnore |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelIgnore |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
@ExcelIgnore |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelIgnore |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date updatedTime; |
|||
|
|||
@ExcelIgnore |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm") |
|||
private Date reportTime; |
|||
|
|||
|
|||
/** |
|||
* pc行程上报-列表返参:是否加入核酸检测关注名单:true:已加入;false:未加入 |
|||
*/ |
|||
@ExcelIgnore |
|||
private Boolean heSuanCheck; |
|||
|
|||
@ColumnWidth(20) |
|||
@ExcelProperty("核算检测关注名单") |
|||
private String heSuanCheckDesc; |
|||
} |
@ -0,0 +1,105 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 核酸检测-上报核酸记录 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class AddIcNatFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 9156247659994638103L; |
|||
|
|||
public interface Nat extends CustomerClientShowGroup { |
|||
} |
|||
public interface Edit extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
/** |
|||
* 核酸记录Id,修改时使用 |
|||
*/ |
|||
@NotBlank(message = "组织Id不能为空", groups = Edit.class) |
|||
private String icNatId; |
|||
/** |
|||
* 当前网格所属组织Id |
|||
*/ |
|||
@NotBlank(message = "组织Id不能为空", groups = Nat.class) |
|||
private String agencyId; |
|||
/** |
|||
* 居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 居民端小程序的人:resi;数字社区的居民:icresi;未关联上的:other |
|||
*/ |
|||
@NotBlank(message = "居民来源不能为空", groups = Nat.class) |
|||
private String userType; |
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@NotBlank(message = "姓名不能为空", groups = Nat.class) |
|||
private String name; |
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@NotBlank(message = "手机号不能为空", groups = Nat.class) |
|||
private String mobile; |
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@NotBlank(message = "身份证号不能为空", groups = Nat.class) |
|||
private String idCard; |
|||
/** |
|||
* 检测时间 |
|||
*/ |
|||
@NotNull(message = "检测时间不能为空", groups = Nat.class) |
|||
@JsonFormat(pattern="yyyy-MM-dd HH:mm") |
|||
private Date natTime; |
|||
/** |
|||
* 检测结果 |
|||
*/ |
|||
private String natResult; |
|||
/** |
|||
* 检测地点 |
|||
*/ |
|||
private String natAddress; |
|||
/** |
|||
* 文件名 |
|||
*/ |
|||
private String fileName; |
|||
/** |
|||
* 附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|||
*/ |
|||
private String attachmentType; |
|||
/** |
|||
* 附件地址 |
|||
*/ |
|||
private String attachmentUrl; |
|||
/** |
|||
* 是否客户下居民(0:否 1:是) |
|||
*/ |
|||
private String isResiUser = "0"; |
|||
/** |
|||
* 通知渠道 0小程序通知,1短信通知,多选是数组 |
|||
*/ |
|||
private List<String> channel = new ArrayList<>(); |
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
private String content = ""; |
|||
|
|||
//token中信息
|
|||
private String customerId; |
|||
private String staffId; |
|||
|
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.Valid; |
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2022/3/28 16:48 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class CancelAttentionPackageFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 2198470055930997870L; |
|||
|
|||
public interface CancelAttentionPackageForm{} |
|||
|
|||
|
|||
/** |
|||
* 身份证 |
|||
*/ |
|||
@NotNull(message = "idCard不能为空",groups = CancelAttentionPackageForm.class) |
|||
private List<String> idCards; |
|||
|
|||
/** |
|||
* 关注类型,核酸检测:2,疫苗接种:1,行程上报:0 |
|||
*/ |
|||
@NotNull(message = "attentionType不能为空",groups = CancelAttentionPackageForm.class) |
|||
private Integer attentionType ; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue