|
|
@ -1,7 +1,9 @@ |
|
|
|
package com.epmet.dto.form; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|
|
|
import com.epmet.dto.IcCommunitySelfOrganizationPersonnelDTO; |
|
|
|
import lombok.Data; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
@ -18,12 +20,13 @@ public class AddCommunitySelfOrganizationFormDTO implements Serializable { |
|
|
|
|
|
|
|
private static final long serialVersionUID = -4996925380900678065L; |
|
|
|
|
|
|
|
public interface AddCommunitySelfOrganizationForm{} |
|
|
|
public interface AddCommunitySelfOrganizationForm extends CustomerClientShowGroup {} |
|
|
|
|
|
|
|
/** |
|
|
|
* 组织名称 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "organizationName不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@NotBlank(message = "组织名称不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@Length(max = 50,message = "组织名称最多输入50字",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private String organizationName; |
|
|
|
|
|
|
|
@NotBlank(message = "分类不能为空", groups = AddCommunitySelfOrganizationForm.class) |
|
|
@ -32,25 +35,25 @@ public class AddCommunitySelfOrganizationFormDTO implements Serializable { |
|
|
|
/** |
|
|
|
* 组织人数 |
|
|
|
*/ |
|
|
|
@NotNull(message = "organizationPersonCount不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@NotNull(message = "组织人数不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private Integer organizationPersonCount; |
|
|
|
|
|
|
|
/** |
|
|
|
* 负责人姓名 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "principalName不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@NotBlank(message = "负责人不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private String principalName; |
|
|
|
|
|
|
|
/** |
|
|
|
* 负责人电话 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "principalPhone不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@NotBlank(message = "联系电话",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private String principalPhone; |
|
|
|
|
|
|
|
/** |
|
|
|
* 服务事项 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "serviceItem不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
@NotBlank(message = "服务事项不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private String serviceItem; |
|
|
|
|
|
|
|
/** |
|
|
@ -66,6 +69,7 @@ public class AddCommunitySelfOrganizationFormDTO implements Serializable { |
|
|
|
/** |
|
|
|
* 经度 |
|
|
|
*/ |
|
|
|
@NotBlank(message = "位置坐标不能为空",groups = AddCommunitySelfOrganizationForm.class) |
|
|
|
private String longitude; |
|
|
|
|
|
|
|
/** |
|
|
|