Sfoglia il codice sorgente

优化认证逻辑

forever 1 mese fa
parent
commit
ea3f6b75a6

+ 22 - 17
vehicle-client/src/main/java/com/chelvc/cloud/vehicle/client/param/MerchantAuthModifyParam.java

@@ -44,23 +44,23 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 营业执照有效期
      */
-    @NotNull(message = "营业执照有效期不能为空")
+//    @NotNull(message = "营业执照有效期不能为空")
     private Date businessLicenseExpirationDate;
     /**
      * 身份证号
      */
-    @NotEmpty(message = "身份证号不能为空")
+//    @NotEmpty(message = "身份证号不能为空")
     @Size(max = 32, message = "身份证号长度不能大于32")
     private String idCardNumber;
     /**
      * 身份证有效期开始时间
      */
-    @NotNull(message = "身份证有效期开始时间不能为空")
+//    @NotNull(message = "身份证有效期开始时间不能为空")
     private Date idCardExpirationDateStart;
     /**
      * 身份证有效期
      */
-    @NotNull(message = "身份证有效期不能为空")
+//    @NotNull(message = "身份证有效期不能为空")
     private Date idCardExpirationDate;
     /**
      * 店铺图
@@ -69,7 +69,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 法人姓名
      */
-    @NotEmpty(message = "法人姓名不能为空")
+//    @NotEmpty(message = "法人姓名不能为空")
     @Size(max = 255, message = "法人姓名长度t不能大于255")
     private String legalRepresentativeName;
     /**
@@ -80,7 +80,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 手机号
      */
-    @NotEmpty(message = "手机号不能为空")
+//    @NotEmpty(message = "手机号不能为空")
     @Size(max = 20, message = "手机号长度不能大于20")
     private String mobileNumber;
     /**
@@ -99,7 +99,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      *店名
      */
-    @NotEmpty(message = "店名不能为空")
+//    @NotEmpty(message = "店名不能为空")
     @Size(max = 255, message = "店名长度不能大于255")
     private String storeName;
     /**
@@ -164,7 +164,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 所属地区
      */
-    @NotNull(message = "所属地区不能为空")
+//    @NotNull(message = "所属地区不能为空")
     @Min(value = 100000, message = "所属地区不能小于100000")
     @Max(value = 999999, message = "所属地区不能大于999999")
     private Integer region;
@@ -173,14 +173,14 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 营业时间
      */
-    @NotEmpty(message = "营业时间不能为空")
+//    @NotEmpty(message = "营业时间不能为空")
     @Size(max = 50, message = "营业时间长度不能大于50")
     private String opening;
 
     /**
      * 省
      */
-    @NotNull(message = "所属省份不能为空")
+//    @NotNull(message = "所属省份不能为空")
     @Min(value = 100000, message = "所属省份不能小于100000")
     @Max(value = 999999, message = "所属省份不能大于999999")
     private Integer province;
@@ -188,7 +188,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 市
      */
-    @NotNull(message = "所属城市不能为空")
+//    @NotNull(message = "所属城市不能为空")
     @Min(value = 100000, message = "所属城市不能小于100000")
     @Max(value = 999999, message = "所属城市不能大于999999")
     private Integer city;
@@ -196,7 +196,7 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 区
      */
-    @NotNull(message = "所在地区不能为空")
+//    @NotNull(message = "所在地区不能为空")
     @Min(value = 100000, message = "所属区不能小于100000")
     @Max(value = 999999, message = "所属区不能大于999999")
     private Integer district;
@@ -204,29 +204,29 @@ public class MerchantAuthModifyParam implements Serializable {
     /**
      * 经度
      */
-    @NotNull(message = "经度不能为空")
+//    @NotNull(message = "经度不能为空")
     private Double longitude;
 
     /**
      * 纬度
      */
-    @NotNull(message = "纬度不能为空")
+//    @NotNull(message = "纬度不能为空")
     private Double latitude;
 
     /**
      * 开户账号
      */
-    @NotNull(message = "开户账号不能为空")
+//    @NotNull(message = "开户账号不能为空")
     private String bankCardNo;
     /**
      * 银行预留手机号
      */
-    @NotNull(message = "银行预留手机号不能为空")
+//    @NotNull(message = "银行预留手机号不能为空")
     private String reservedPhoneNo;
     /**
      * 营业执照名称
      */
-    @NotNull(message = "营业执照名称不能为空")
+//    @NotNull(message = "营业执照名称不能为空")
     private String businessName;
     /**
      * 商家主营业务
@@ -241,4 +241,9 @@ public class MerchantAuthModifyParam implements Serializable {
      * 营业状态 0-营业中 1-休息中
      */
     private String businessStatus;
+
+    /**
+     * 操作类型  1-简易认证 2-资质认证
+     */
+    private String opType;
 }

+ 3 - 3
vehicle-server/src/main/java/com/chelvc/cloud/vehicle/server/service/impl/MerchantAuthServiceImpl.java

@@ -69,7 +69,7 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
         MerchantAuth merchantAuth = MerchantAuthCopier.INSTANCE.copying(param);
         merchantAuth.setApplicationTime(new Date());
         merchantAuth.setApplicant(userId);
-        merchantAuth.setReviewStatus("1");
+        merchantAuth.setReviewStatus("3");
         this.save(merchantAuth);
         MerchantModifyParam param1 = new MerchantModifyParam();
         param1.setName(param.getStoreName());
@@ -96,7 +96,7 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
             this.merchantService.updateMerchant(merchant.getId(),param1);
         }
         //首信易商户子商户认证
-        merchantRelationService.registerMerchantId(merchantAuth);
+//        merchantRelationService.registerMerchantId(merchantAuth);
         return merchantAuth.getId();
     }
 
@@ -111,7 +111,7 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
             throw new ResourceUnavailableException("已认证成功,不可重复认证");
         }
         MerchantAuthCopier.INSTANCE.copying(param, merchantAuth);
-        merchantAuth.setReviewStatus("1");
+        merchantAuth.setReviewStatus("3");
         merchantAuth.setId(id);
         this.updateById(merchantAuth);
         MerchantModifyParam param1 = new MerchantModifyParam();