zjxpcyc 6 anni fa
parent
commit
b02b3ed9e2

+ 5
- 0
whole-estate/src/main/java/com/example/wholeestate/service/impl/CustomerServiceImpl.java Vedi File

@@ -89,6 +89,11 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
89 89
             return responseBean;
90 90
         }
91 91
 
92
+        // 已经注册过的, 不再注册
93
+        if (selectOne.getHasReg().intValue() == 1) {
94
+            return responseBean;
95
+        }
96
+
92 97
         BeanTools.copyProperties(customer, selectOne);
93 98
 
94 99
         customerMapper.update(selectOne, queryWrapper);

+ 1
- 1
whole-estate/src/main/resources/application.yml Vedi File

@@ -6,7 +6,7 @@ spring:
6 6
   datasource:
7 7
     username: whole-estate
8 8
     password: whole-estate
9
-    url: jdbc:mysql://47.101.36.130:3306/whole-estate?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
9
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/whole-estate?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
10 10
     driver-class-name: com.mysql.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数
12 12
     max-active: 20 # 最大连接数