Commit 994fe2a2 by 朱海

[add]新增mysql配置,修复d_face_residence表数据被删除的bug

1 parent 900780ba
...@@ -659,7 +659,7 @@ public class PersonRecordServiceImpl implements PersonRecordService { ...@@ -659,7 +659,7 @@ public class PersonRecordServiceImpl implements PersonRecordService {
private void updateFaceResidence(Long mallId, Date countDate, List<DPersonRecord> personRecords) { private void updateFaceResidence(Long mallId, Date countDate, List<DPersonRecord> personRecords) {
// 过滤出匹配上进出的人员记录 // 过滤出匹配上进出的人员记录
List<DPersonRecord> matchInOutPersonRecords = personRecords.stream().filter(d -> d.getArriveTime() != null && d.getLeaveTime() != null).collect(Collectors.toList()); List<String> matchInOutPersonRecords = personRecords.stream().filter(d -> d.getArriveTime() != null && d.getLeaveTime() != null).map(DPersonRecord::getPersonUnid).collect(Collectors.toList());
// 查询已有数据 // 查询已有数据
String sql = "select id,mall_id,countdate,person_unid from d_face_residence where mall_id = ? and countdate = ?;"; String sql = "select id,mall_id,countdate,person_unid from d_face_residence where mall_id = ? and countdate = ?;";
List<DFaceResidence> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(DFaceResidence.class), mallId, countDate); List<DFaceResidence> list = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(DFaceResidence.class), mallId, countDate);
......
...@@ -3,7 +3,7 @@ server.max-http-header-size=102400 ...@@ -3,7 +3,7 @@ server.max-http-header-size=102400
################################## DATABASE ######################################## ################################## DATABASE ########################################
# \u6570\u636E\u5E93Url \u6237\u540D \u5BC6\u7801 \u914D\u7F6E # \u6570\u636E\u5E93Url \u6237\u540D \u5BC6\u7801 \u914D\u7F6E
spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/vion-store?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true spring.datasource.url=jdbc:mysql://192.168.1.64:3306/vion-store?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=vionmysql spring.datasource.password=vionmysql
......
spring: spring:
profiles: profiles:
active: pro active: mysql
datasource: datasource:
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver
aop: aop:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!