|
@@ -15,11 +15,13 @@ public class EnterpriseAuthentication {
|
|
|
|
|
|
private Long id;
|
|
private Long id;
|
|
private Long userId;
|
|
private Long userId;
|
|
- private String enterpriseName;
|
|
|
|
|
|
+ private String sex;
|
|
|
|
+ private String IDCardPositivePhoto;//身份证正面照片
|
|
|
|
+ private String IDCardBackPhoto;//身份证反面
|
|
private String legalPersonName;
|
|
private String legalPersonName;
|
|
private String businessLicensePhoto;
|
|
private String businessLicensePhoto;
|
|
private String unifiedSocialCreditCode;
|
|
private String unifiedSocialCreditCode;
|
|
- private String bankAccount;
|
|
|
|
|
|
+
|
|
private String address;
|
|
private String address;
|
|
private int isDeleted;
|
|
private int isDeleted;
|
|
private int isAuthentication;
|
|
private int isAuthentication;
|
|
@@ -32,11 +34,11 @@ public class EnterpriseAuthentication {
|
|
return "CompanyAuth{" +
|
|
return "CompanyAuth{" +
|
|
"id=" + id +
|
|
"id=" + id +
|
|
", userId=" + userId +
|
|
", userId=" + userId +
|
|
- ", enterpriseName='" + enterpriseName + '\'' +
|
|
|
|
|
|
+
|
|
", legalPersonName='" + legalPersonName + '\'' +
|
|
", legalPersonName='" + legalPersonName + '\'' +
|
|
", businessLicensePhoto='" + businessLicensePhoto + '\'' +
|
|
", businessLicensePhoto='" + businessLicensePhoto + '\'' +
|
|
", unifiedSocialCreditCode='" + unifiedSocialCreditCode + '\'' +
|
|
", unifiedSocialCreditCode='" + unifiedSocialCreditCode + '\'' +
|
|
- ", bankAccount='" + bankAccount + '\'' +
|
|
|
|
|
|
+
|
|
", address='" + address + '\'' +
|
|
", address='" + address + '\'' +
|
|
", isDeleted=" + isDeleted +
|
|
", isDeleted=" + isDeleted +
|
|
", isAuthentication=" + isAuthentication +
|
|
", isAuthentication=" + isAuthentication +
|
|
@@ -57,11 +59,11 @@ public class EnterpriseAuthentication {
|
|
}
|
|
}
|
|
|
|
|
|
public EnterpriseAuthentication passAuthentication() {
|
|
public EnterpriseAuthentication passAuthentication() {
|
|
- if(this.getIsAuthentication() == AuthenticationStatus.isNotAuthenticated){
|
|
|
|
|
|
+ if (this.getIsAuthentication() == AuthenticationStatus.isNotAuthenticated) {
|
|
throw new BaseException("当前是未通过认证状态,不可通过认证,需对认证信息进行修改后再提交认证申请");
|
|
throw new BaseException("当前是未通过认证状态,不可通过认证,需对认证信息进行修改后再提交认证申请");
|
|
- }else if(this.getIsAuthentication() == AuthenticationStatus.isAuthenticated){
|
|
|
|
|
|
+ } else if (this.getIsAuthentication() == AuthenticationStatus.isAuthenticated) {
|
|
throw new BaseException("当前已通过认证,不可再次进行认证");
|
|
throw new BaseException("当前已通过认证,不可再次进行认证");
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.setIsAuthentication(AuthenticationStatus.isAuthenticated);
|
|
this.setIsAuthentication(AuthenticationStatus.isAuthenticated);
|
|
this.setCheckTime(new Timestamp(System.currentTimeMillis()));
|
|
this.setCheckTime(new Timestamp(System.currentTimeMillis()));
|
|
this.setExplain("");
|
|
this.setExplain("");
|
|
@@ -71,14 +73,14 @@ public class EnterpriseAuthentication {
|
|
}
|
|
}
|
|
|
|
|
|
public EnterpriseAuthentication rejectAuthentication(String explain) {
|
|
public EnterpriseAuthentication rejectAuthentication(String explain) {
|
|
- if(this.getIsDeleted() == DeletedStatus.isDeleted){
|
|
|
|
|
|
+ if (this.getIsDeleted() == DeletedStatus.isDeleted) {
|
|
throw new BaseException("当前认证信息已被删除,不可做认证状态改变操作");
|
|
throw new BaseException("当前认证信息已被删除,不可做认证状态改变操作");
|
|
- }else {
|
|
|
|
- if(this.getIsAuthentication() == AuthenticationStatus.isNotAuthenticated){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (this.getIsAuthentication() == AuthenticationStatus.isNotAuthenticated) {
|
|
throw new BaseException("当前已是未通过认证状态,不可再次拒绝认证");
|
|
throw new BaseException("当前已是未通过认证状态,不可再次拒绝认证");
|
|
- }else if(this.getIsAuthentication() == AuthenticationStatus.isAuthenticated){
|
|
|
|
|
|
+ } else if (this.getIsAuthentication() == AuthenticationStatus.isAuthenticated) {
|
|
throw new BaseException("当前已通过认证,不可拒绝认证");
|
|
throw new BaseException("当前已通过认证,不可拒绝认证");
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
this.setIsAuthentication(AuthenticationStatus.isNotAuthenticated);
|
|
this.setIsAuthentication(AuthenticationStatus.isNotAuthenticated);
|
|
this.setExplain(explain);
|
|
this.setExplain(explain);
|
|
this.setCheckTime(new Timestamp(System.currentTimeMillis()));
|
|
this.setCheckTime(new Timestamp(System.currentTimeMillis()));
|
|
@@ -90,7 +92,7 @@ public class EnterpriseAuthentication {
|
|
public EnterpriseAuthentication updateAuthInfo(EnterpriseAuthentication modifyAuth) {
|
|
public EnterpriseAuthentication updateAuthInfo(EnterpriseAuthentication modifyAuth) {
|
|
modifyAuth.userId = this.userId;
|
|
modifyAuth.userId = this.userId;
|
|
modifyAuth.id = this.id;
|
|
modifyAuth.id = this.id;
|
|
- BeanUtils.copyProperties(modifyAuth,this);
|
|
|
|
|
|
+ BeanUtils.copyProperties(modifyAuth, this);
|
|
this.setIsAuthentication(AuthenticationStatus.isAuthenIng);
|
|
this.setIsAuthentication(AuthenticationStatus.isAuthenIng);
|
|
this.setIsDeleted(DeletedStatus.isNotDeleted);
|
|
this.setIsDeleted(DeletedStatus.isNotDeleted);
|
|
this.setApplyTime(new Timestamp(System.currentTimeMillis()));
|
|
this.setApplyTime(new Timestamp(System.currentTimeMillis()));
|