28 changed files with 573 additions and 171 deletions
@ -0,0 +1,23 @@ |
|||
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; |
|||
private Class<?> cls; |
|||
|
|||
} |
@ -0,0 +1,115 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
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; |
|||
|
|||
/** |
|||
* 行程上报居民端入参 |
|||
*/ |
|||
@Data |
|||
public class IcTripReportFormDTO implements Serializable { |
|||
public interface ResiUserInternalGroup { |
|||
} |
|||
|
|||
public interface ResiUserRequired extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@NotBlank(message = "姓名不能为空", groups = {ResiUserRequired.class}) |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@NotBlank(message = "手机号不能为空", groups = {ResiUserRequired.class}) |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@NotBlank(message = "身份证号不能为空", groups = {ResiUserRequired.class}) |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 现居地编码 |
|||
*/ |
|||
@NotBlank(message = "现居地编码不能为空", groups = {ResiUserRequired.class}) |
|||
private String presentAddressCode; |
|||
|
|||
/** |
|||
* 现居地名称eg:山东省青岛市黄岛区玫瑰山路社区 |
|||
*/ |
|||
@NotBlank(message = "现居地名称不能为空", groups = {ResiUserRequired.class}) |
|||
private String presentAddress; |
|||
|
|||
/** |
|||
* 详细地址 |
|||
*/ |
|||
@NotBlank(message = "详细地址不能为空", groups = {ResiUserRequired.class}) |
|||
private String detailAddress; |
|||
|
|||
/** |
|||
* 来源地区编码 |
|||
*/ |
|||
@NotBlank(message = "来自地区编码不能为空", groups = {ResiUserRequired.class}) |
|||
private String sourceAddressCode; |
|||
|
|||
/** |
|||
* 来源地区地址 |
|||
*/ |
|||
@NotBlank(message = "来自地区名称不能为空", groups = {ResiUserRequired.class}) |
|||
private String sourceAddress; |
|||
|
|||
/** |
|||
* 到达日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@NotNull(message = "来到本地时间不能为空", groups = {ResiUserRequired.class}) |
|||
private Date arriveDate; |
|||
|
|||
/** |
|||
* 离开日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
private Date leaveDate; |
|||
|
|||
/** |
|||
* 备注信息 |
|||
*/ |
|||
@Length(max = 500, message = "备注最多可输入500字", groups = {ResiUserRequired.class}) |
|||
private String remark; |
|||
|
|||
|
|||
@NotBlank(message = "网格不能为空", groups = {ResiUserInternalGroup.class}) |
|||
private String gridId; |
|||
|
|||
|
|||
//后端自己赋值
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 居民端小程序的人:resi;数字社区的居民:icresi;未关联上的:other |
|||
*/ |
|||
private String userType; |
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 居民端小程序:我的上报 |
|||
*/ |
|||
@Data |
|||
public class MyReportedTripFormDTO extends PageFormDTO { |
|||
private String userId; |
|||
private String customerId; |
|||
} |
Loading…
Reference in new issue