14 changed files with 533 additions and 63 deletions
@ -0,0 +1,112 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
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 IcDemandFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2931148629441558468L; |
||||
|
|
||||
|
public interface Add extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
public interface AddInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface Update extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
public interface UpdateInternalGroup { |
||||
|
} |
||||
|
|
||||
|
@NotBlank(message = "需求id不能为空",groups = UpdateInternalGroup.class) |
||||
|
private String demandRecId; |
||||
|
|
||||
|
@NotBlank(message = "customerId不能为空", groups = {AddInternalGroup.class, UpdateInternalGroup.class}) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 网格id |
||||
|
*/ |
||||
|
@NotBlank(message = "所属网格不能为空",groups = {AddInternalGroup.class}) |
||||
|
private String gridId; |
||||
|
|
||||
|
/** |
||||
|
* 需求内容1000字 |
||||
|
*/ |
||||
|
@NotBlank(message = "需求内容不能为空", groups = {Add.class, Update.class}) |
||||
|
@Length(max = 1000, message = "需求内容至多输入1000字", groups = {Add.class, Update.class}) |
||||
|
private String content; |
||||
|
|
||||
|
/** |
||||
|
* 二级需求分类编码 |
||||
|
*/ |
||||
|
@NotBlank(message = "需求类别不能为空",groups = Add.class) |
||||
|
private String categoryCode; |
||||
|
|
||||
|
/** |
||||
|
* 父级需求分类编码 |
||||
|
*/ |
||||
|
@NotBlank(message = "父级分类不能为空",groups = Add.class) |
||||
|
private String parentCode; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 希望服务时间 |
||||
|
*/ |
||||
|
@NotNull(message = "服务时间不能为空",groups = {Add.class, Update.class}) |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private Date wantServiceTime; |
||||
|
|
||||
|
/** |
||||
|
* 需求人:user.id或者ic_resi_user.id |
||||
|
*/ |
||||
|
@NotBlank(message = "需求人不能为空",groups ={AddInternalGroup.class, UpdateInternalGroup.class}) |
||||
|
private String demandUserId; |
||||
|
|
||||
|
/** |
||||
|
* 需求人联系姓名 |
||||
|
*/ |
||||
|
@NotBlank(message = "联系人不能为空",groups = {Add.class, Update.class}) |
||||
|
private String demandUserName; |
||||
|
|
||||
|
/** |
||||
|
* 需求人联系电话 |
||||
|
*/ |
||||
|
@NotBlank(message = "联系电话不能为空",groups = {Add.class, Update.class}) |
||||
|
private String demandUserMobile; |
||||
|
|
||||
|
/** |
||||
|
* 服务地点,工作端指派默认居民居住房屋地址,居民端地图选择 |
||||
|
*/ |
||||
|
@NotBlank(message = "服务地点不能为空",groups = {Add.class, Update.class}) |
||||
|
private String serviceLocation; |
||||
|
|
||||
|
/** |
||||
|
* 门牌号详细地址 |
||||
|
*/ |
||||
|
@Length(max = 200, message = "门牌号至多输入200字", groups = {Add.class, Update.class}) |
||||
|
private String locationDetail; |
||||
|
|
||||
|
/** |
||||
|
* 经度,需求人是ic的居民时,取所住楼栋的中心点位 |
||||
|
*/ |
||||
|
private String longitude; |
||||
|
|
||||
|
/** |
||||
|
* 纬度,需求人是ic的居民时,取所住楼栋的中心点位 |
||||
|
*/ |
||||
|
private String latitude; |
||||
|
|
||||
|
} |
@ -0,0 +1,107 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.AddGroup; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 事件管理新增 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcEventAddEditFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 网格ID |
||||
|
*/ |
||||
|
@NotBlank(message = "网格ID不能为空", groups = {AddGroup.class}) |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 报事人Id |
||||
|
*/ |
||||
|
private String reportUserId; |
||||
|
/** |
||||
|
* 报事人姓名 |
||||
|
*/ |
||||
|
@NotBlank(message = "报事人不能为空", groups = {AddGroup.class}) |
||||
|
private String name; |
||||
|
/** |
||||
|
* 手机号 |
||||
|
*/ |
||||
|
@Length(max = 11, message = "手机号位数不能超过11位", groups = AddGroup.class) |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 身份证号 |
||||
|
*/ |
||||
|
@NotBlank(message = "身份证号不能为空", groups = {AddGroup.class}) |
||||
|
@Length(min = 15, max = 18, message = "身份证号位数不正确", groups = AddGroup.class) |
||||
|
private String idCard; |
||||
|
/** |
||||
|
* 反映渠道 |
||||
|
*/ |
||||
|
@NotBlank(message = "反映渠道不能为空", groups = {AddGroup.class}) |
||||
|
private String sourceType; |
||||
|
/** |
||||
|
* 事件内容 |
||||
|
*/ |
||||
|
@NotBlank(message = "事件内容不能为空", groups = {AddGroup.class}) |
||||
|
private String eventContent; |
||||
|
/** |
||||
|
* 图片集合 |
||||
|
*/ |
||||
|
private List<String> imageList; |
||||
|
/** |
||||
|
* 二类分类Id |
||||
|
*/ |
||||
|
private List<String> categoryList; |
||||
|
/** |
||||
|
* 事件地址 |
||||
|
*/ |
||||
|
//@NotBlank(message = "事件地址不能为空", groups = {AddGroup.class})
|
||||
|
private String address; |
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private String latitude; |
||||
|
/** |
||||
|
* 维度 |
||||
|
*/ |
||||
|
private String longitude; |
||||
|
/** |
||||
|
* 处理方式[0:已回复 1:已转项目 1:已转需求] |
||||
|
*/ |
||||
|
private String operationType; |
||||
|
/** |
||||
|
* 项目、需求ID |
||||
|
*/ |
||||
|
private String operationId; |
||||
|
/** |
||||
|
* 回复内容 |
||||
|
*/ |
||||
|
private String content; |
||||
|
/** |
||||
|
* 处理中:processing;已办结:closed_case |
||||
|
*/ |
||||
|
private String status; |
||||
|
/** |
||||
|
* 立项接口入参对象 |
||||
|
*/ |
||||
|
private EventToProjectFormDTO project; |
||||
|
/** |
||||
|
* 转需求接口入参对象 |
||||
|
*/ |
||||
|
private IcDemandFormDTO demand; |
||||
|
|
||||
|
|
||||
|
private String customerId; |
||||
|
private String userId; |
||||
|
private String app; |
||||
|
private String client; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue