chao 4 years ago
parent
commit
81f7199d9f

+ 0 - 1
src/main/java/com/caimei365/user/controller/BaseApi.java

@@ -6,7 +6,6 @@ import io.swagger.annotations.*;
 import lombok.RequiredArgsConstructor;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.Map;

+ 106 - 4
src/main/java/com/caimei365/user/model/vo/ClubVo.java

@@ -1,8 +1,7 @@
 package com.caimei365.user.model.vo;
 
-import com.caimei365.user.model.po.ClubPo;
 import lombok.Data;
-import lombok.EqualsAndHashCode;
+import java.io.Serializable;
 
 /**
  * Description
@@ -11,8 +10,111 @@ import lombok.EqualsAndHashCode;
  * @date : 2021/3/15
  */
 @Data
-@EqualsAndHashCode(callSuper = true)
-public class ClubVo extends ClubPo {
+public class ClubVo implements Serializable {
+    /**
+     * 机构ID
+     */
+    private Integer clubId;
+    /**
+     * 用户ID
+     */
+    private Integer userId;
+    /**
+     * 机构名称
+     */
+    private String name;
+    /**
+     * 机构简称
+     */
+    private String shortName;
+    /**
+     * 联系手机
+     */
+    private String contractMobile;
+    /**
+     * 联系邮箱
+     */
+    private String contractEmail;
+    /**
+     * 固定电话
+     */
+    private String contractPhone;
+    /**
+     * 联系人
+     */
+    private String linkMan;
+    /**
+     * 省
+     */
+    private Integer provinceId;
+    /**
+     * 市
+     */
+    private Integer cityId;
+    /**
+     * 地址ID
+     */
+    private Integer townId;
+    /**
+     * 地址
+     */
+    private String address;
+    /**
+     * 门头照
+     */
+    private String shopPhoto;
+    /**
+     * 营业执照
+     */
+    private String businessLicense;
+    /**
+     * 统一社会信用代码
+     */
+    private String socialCreditCode;
+    /**
+     * 一级分类为医美=1和生美=2
+     */
+    private Integer firstClubType;
+    /**
+     * 医美的二级分类为诊所=1、门诊=2、医院=3。  生美没有二级分类
+     */
+    private Integer secondClubType;
+    /**
+     * 若为医美分类下的门诊和医院则需要填写科室。
+     */
+    private String department;
+    /**
+     * 医美分类必须上传医疗执业许可证(medicalPracticeLicenseImg)
+     */
+    private String medicalPracticeLicense;
+    /**
+     * 主打项目(mainpro)
+     */
+    private String mainProduct;
+    /**
+     * 传真
+     */
+    private String fax;
+    /**
+     * 公司简介(info)
+     */
+    private String profile;
+    /**
+     * 协销ID
+     */
+    private Integer serviceProviderId;
+    /**
+     * 扫描状态 0待扫描 1 已扫描 2已上线
+     */
+    private Integer scanFlag;
+    /**
+     * 注册时间
+     */
+    private String addTime;
+    /**
+     * 状态:90:已上线,91:已冻结,92:审查资料未通过,待补充资料,1:待审查资料,2:电话预约,3:已预约,20:待确认,21:待拜访,30:待员工推荐,40:已完成第一次采购
+     */
+    private Integer status;
     /**
      * 省市区地址
      */

+ 1 - 0
src/main/java/com/caimei365/user/service/impl/BaseServiceImpl.java

@@ -59,6 +59,7 @@ public class BaseServiceImpl implements BaseService {
             log.info("获取图片验证码:"+captcha.getCode() + ",token:" + captcha.getMd5Code());
             return ResponseJson.success(result);
         } catch (Exception e) {
+            log.info(e.getMessage());
             return ResponseJson.error("获取图片验证码异常", null);
         }
     }

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -9,5 +9,5 @@ spring:
     config:                             # Config客户端配置
       profile: @activatedProperties@    # 启用配置后缀名称
       label: master                     # 分支名称
-      uri: http://localhost:18001       # 配置中心地址
+      uri: http://47.119.112.46:18001       # 配置中心地址
       name: user                        # 配置文件名称

+ 0 - 25
src/test/java/com/caimei365/user/AliSmsUtilTest.java

@@ -1,25 +0,0 @@
-package com.caimei365.user;
-
-import com.caimei365.user.utils.AliyunSmsUtil;
-import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.context.SpringBootTest;
-
-/**
- * Description
- *
- * @author : Charles
- * @date : 2021/3/5
- */
-@SpringBootTest
-public class AliSmsUtilTest {
-
-    @Test
-    void test1() {
-        //发短信
-        AliyunSmsUtil.sendSms("15814011616", 0, "{\"code\":\"123\"}");
-        AliyunSmsUtil.sendSms("15814011616", 0, "{code:456}");
-    }
-
-
-
-}

+ 0 - 26
src/test/java/com/caimei365/user/UserApplicationTests.java

@@ -8,33 +8,7 @@ class UserApplicationTests {
 
     @Test
     void contextLoads() {
-        System.out.println(test1("郑超"));
-        System.out.println(test1("郑超的"));
-        System.out.println(test1("郑超的机"));
-        System.out.println(test1("郑超的机构"));
-        System.out.println(test1("郑超的机构中心"));
     }
 
-    private StringBuilder test1(String userName){
-        char[] nameArr = userName.toCharArray();
-        StringBuilder showName = new StringBuilder();
-        switch (nameArr.length) {
-            case 0:
-            case 1:
-                break;
-            case 2:
-                showName.append('*').append(nameArr[1]);
-                break;
-            case 3:
-                showName.append('*').append(nameArr[1]).append(nameArr[2]);
-                break;
-            case 4:
-                showName.append(nameArr[0]).append(nameArr[1]).append('*').append(nameArr[3]);
-                break;
-            default:
-                showName.append(nameArr[0]).append(nameArr[1]).append("***").append(nameArr[nameArr.length-1]);
-        }
-        return showName;
-    }
 
 }