|
@@ -6,8 +6,9 @@ import com.mooctest.crowd.domain.domainobject.EvaluationAgencyAbility;
|
|
import com.mooctest.crowd.domain.factory.UserFactory;
|
|
import com.mooctest.crowd.domain.factory.UserFactory;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
+
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
-import java.sql.Timestamp;
|
|
|
|
|
|
+import java.sql.Date;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -20,31 +21,34 @@ import java.util.stream.Collectors;
|
|
@Data
|
|
@Data
|
|
public class ApplyAgencyAuthCommand{
|
|
public class ApplyAgencyAuthCommand{
|
|
|
|
|
|
|
|
+ @NotNull(message = "企业名称不可为空")
|
|
|
|
+ private String evaluationAgencyName;
|
|
|
|
+ @NotNull(message = "营业执照图片不可为空")
|
|
|
|
+ private String businessLicensePhoto;
|
|
|
|
+ @NotNull(message = "企业地址不可为空")
|
|
|
|
+ private String address;
|
|
|
|
+ @NotNull(message = "LOGO不可为空")
|
|
|
|
+ private String agencyPhoto;
|
|
|
|
+
|
|
|
|
+ @NotNull(message = "法人姓名不能为空")
|
|
|
|
+ private String legalPersonName;
|
|
@NotNull(message = "身份证号码不能为空")
|
|
@NotNull(message = "身份证号码不能为空")
|
|
private String IdCardNum;
|
|
private String IdCardNum;
|
|
-
|
|
|
|
@NotNull(message = "请选择性别")
|
|
@NotNull(message = "请选择性别")
|
|
- private String sex;
|
|
|
|
-// @NotNull(message = "机构名称不可为空")
|
|
|
|
- private String evaluationAgencyName;
|
|
|
|
|
|
+ private String gender;
|
|
@NotNull(message = "请上传身份证正面照")
|
|
@NotNull(message = "请上传身份证正面照")
|
|
private String idCardPositivePhoto;//身份证正面照
|
|
private String idCardPositivePhoto;//身份证正面照
|
|
@NotNull(message = "请上传身份证反面照")
|
|
@NotNull(message = "请上传身份证反面照")
|
|
private String idCardBackPhoto;//身份证反面照
|
|
private String idCardBackPhoto;//身份证反面照
|
|
@NotNull(message = "请正确填写身份证过期时间")
|
|
@NotNull(message = "请正确填写身份证过期时间")
|
|
- private Timestamp idCardDeadTime;
|
|
|
|
- @NotNull(message = "机构地址不可为空")
|
|
|
|
- private String address;
|
|
|
|
|
|
+ private Date idCardDeadTime;
|
|
|
|
+ @NotNull(message = "请选择企业认证类型")
|
|
|
|
+ private ArrayList<Integer> roleList;
|
|
|
|
+
|
|
// @NotNull(message = "评测能力不可为空")
|
|
// @NotNull(message = "评测能力不可为空")
|
|
private List<String> evaluationAgencyAbilityList;
|
|
private List<String> evaluationAgencyAbilityList;
|
|
// @NotNull(message = "机构资源不可为空")
|
|
// @NotNull(message = "机构资源不可为空")
|
|
private List<AgencyResourceCommand> evaluationAgencyResourceList;
|
|
private List<AgencyResourceCommand> evaluationAgencyResourceList;
|
|
-// @NotNull(message = "LOGO不可为空")
|
|
|
|
- private String agencyPhoto;
|
|
|
|
- @NotNull(message = "请选择认证研发机构或者评测机构")
|
|
|
|
- private ArrayList<Integer> roleList;
|
|
|
|
-// @NotNull(message = "法人姓名不能为空")
|
|
|
|
- private String legalPersonName;
|
|
|
|
|
|
|
|
public EvaluationAgency toAgency(){
|
|
public EvaluationAgency toAgency(){
|
|
EvaluationAgency agency = UserFactory.defaultAgency();
|
|
EvaluationAgency agency = UserFactory.defaultAgency();
|