Your Name 5 vuotta sitten
vanhempi
commit
28a1410fca

+ 1
- 1
src/main/java/com.huiju.welcome/service/impl/CameraServiceImpl.java Näytä tiedosto

@@ -248,7 +248,7 @@ public class CameraServiceImpl implements ICameraService {
248 248
 
249 249
         // 生成新的人员
250 250
         TaPerson taPerson = taPersonService.newPersonByDevice(taSnapshotPerson, matchPerson);
251
-        if (taPerson.getPersonId() != matchPerson.getPersonId()) {
251
+        if (null == matchPerson || taPerson.getPersonId() != matchPerson.getPersonId()) {
252 252
             // 同步相机识别库
253 253
             dispatchPerson(taPerson);
254 254
         }

+ 1
- 1
src/main/resources/application.yml Näytä tiedosto

@@ -4,7 +4,7 @@ spring:
4 4
 #    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/welcome3?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
5 5
 #    username: welcome
6 6
 #    password: s190QU2#z%hdU%^FPkY9qjls
7
-    url: jdbc:mysql://47.101.36.130:3306/welcome3?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
7
+    url: jdbc:mysql://47.101.36.130:3306/welcome3bak?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull
8 8
     username: root
9 9
     password: Wt4q*/9}i00q@0a4jM{z6O#h129@F/
10 10
   servlet: