Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
朱海
/
VVAS-PicGroup
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 994fe2a2
authored
Nov 22, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add]新增mysql配置,修复d_face_residence表数据被删除的bug
1 parent
900780ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
src/main/resources/application-mysql.properties
src/main/resources/application.yml
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
View file @
994fe2a
...
...
@@ -659,7 +659,7 @@ public class PersonRecordServiceImpl implements PersonRecordService {
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 = ?;"
;
List
<
DFaceResidence
>
list
=
jdbcTemplate
.
query
(
sql
,
new
BeanPropertyRowMapper
<>(
DFaceResidence
.
class
),
mallId
,
countDate
);
...
...
src/main/resources/application-mysql.properties
View file @
994fe2a
...
...
@@ -3,7 +3,7 @@ server.max-http-header-size=102400
################################## DATABASE ########################################
# \u6570\u636E\u5E93Url \u6237\u540D \u5BC6\u7801 \u914D\u7F6E
spring.datasource.driver-class-
name
=
com.mysql.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://1
27.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://1
92.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.password
=
vionmysql
...
...
src/main/resources/application.yml
View file @
994fe2a
spring
:
profiles
:
active
:
pro
active
:
mysql
datasource
:
driver-class-name
:
org.postgresql.Driver
aop
:
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment