Quellcode durchsuchen

企业用户认证

xuxuan vor 5 Jahren
Ursprung
Commit
0b1b221cbc

+ 15 - 13
core/src/main/java/com/mooctest/crowd/domain/domainobject/EnterpriseAuthentication.java

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

+ 0 - 1
site/src/main/java/com/mooctest/crowd/site/command/ApplyPersonalAuthCommand.java

@@ -42,7 +42,6 @@ public class ApplyPersonalAuthCommand {
     @NotNull(message = "请正确填写过期时间")
     private Timestamp IDCardDeadTime;
 
-
     @NotNull(message = "请填写银行卡号")
     private String bankAccount;
 

+ 7 - 5
site/src/main/java/com/mooctest/crowd/site/data/vo/EnterpriseAuthVO.java

@@ -13,11 +13,13 @@ import java.sql.Timestamp;
  */
 @Data
 public class EnterpriseAuthVO {
-    private Long id;
-    private Long userId;
-    private String enterpriseName;
+
+
     private String legalPersonName;
-    private String businessLicensePhoto;
+
+    private String  sex;
+    private String IDCardPositivePhoto;
+    private String IDCardBackPhoto;
     private String unifiedSocialCreditCode;
     private String bankAccount;
     private String address;
@@ -33,4 +35,4 @@ public class EnterpriseAuthVO {
         this.authStatus = new StatusVO();
         authStatus.initAuthStatus(this.isAuthentication);
     }
-}
+}