|
@ -17,9 +17,7 @@ |
|
|
|
|
|
|
|
|
package com.epmet.dto.form; |
|
|
package com.epmet.dto.form; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
|
|
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
import org.hibernate.validator.constraints.Length; |
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
|
|
|
|
@ -35,59 +33,56 @@ public class IcNeighborHoodFormDTO implements Serializable { |
|
|
|
|
|
|
|
|
public interface DeleteGroup extends CustomerClientShowGroup { |
|
|
public interface DeleteGroup extends CustomerClientShowGroup { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public interface AddShowGroup extends CustomerClientShowGroup { |
|
|
|
|
|
} |
|
|
|
|
|
public interface UpdateShowGroup extends CustomerClientShowGroup { |
|
|
|
|
|
} |
|
|
/** |
|
|
/** |
|
|
* 小区id |
|
|
* 小区id |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "小区id不能为空", groups = {UpdateGroup.class,DeleteGroup.class}) |
|
|
@NotBlank(message = "小区id不能为空", groups = {UpdateShowGroup.class,DeleteGroup.class}) |
|
|
private String neighborHoodId; |
|
|
private String neighborHoodId; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 小区名称 |
|
|
* 小区名称 |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "小区名称不能为空", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
@NotBlank(message = "小区名称不能为空", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
@Length(max=50,message = "小区名称不能超过50个字", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
@Length(max=50,message = "小区名称不能超过50个字", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
private String neighborHoodName; |
|
|
private String neighborHoodName; |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 客户id |
|
|
|
|
|
*/ |
|
|
|
|
|
/* @NotBlank(message = "客户id不能为空", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
|
|
|
private String customerId;*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 组织id |
|
|
* 组织id |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "组织id不能为空", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
@NotBlank(message = "组织id不能为空", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
private String agencyId; |
|
|
private String agencyId; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 网格id |
|
|
* 网格id |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "网格id不能为空", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
@NotBlank(message = "网格id不能为空", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
private String gridId; |
|
|
private String gridId; |
|
|
/** |
|
|
/** |
|
|
* 关联物业id |
|
|
* 关联物业id |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "关联物业ID不能为空", groups = {UpdateGroup.class}) |
|
|
@NotBlank(message = "关联物业ID不能为空", groups = {AddShowGroup.class,UpdateShowGroup.class}) |
|
|
private String propertyId; |
|
|
private String propertyId; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 详细地址 |
|
|
* 详细地址 |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "详细地址不能为空", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
@NotBlank(message = "详细地址不能为空", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
private String address; |
|
|
private String address; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 备注 |
|
|
* 备注 |
|
|
*/ |
|
|
*/ |
|
|
@NotBlank(message = "备注不能为空", groups = {UpdateGroup.class}) |
|
|
@Length(max=500,message = "备注不能超过500个字", groups = {AddShowGroup.class, UpdateShowGroup.class}) |
|
|
@Length(max=500,message = "备注不能超过500个字", groups = {AddGroup.class, UpdateGroup.class}) |
|
|
|
|
|
private String remark; |
|
|
private String remark; |
|
|
/** |
|
|
/** |
|
|
* 坐标位置 |
|
|
* 坐标位置 |
|
|
*/ |
|
|
*/ |
|
|
//@NotBlank(message = "坐标位置不能为空", groups = {AddGroup.class, UpdateGroup.class})
|
|
|
|
|
|
private String location; |
|
|
private String location; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|