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 a62e11f1
authored
Oct 31, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]修复小时级数据修改异常的bug
1 parent
a9a5bf21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
View file @
a62e11f
...
@@ -628,7 +628,7 @@ public class PersonRecordServiceImpl implements PersonRecordService {
...
@@ -628,7 +628,7 @@ public class PersonRecordServiceImpl implements PersonRecordService {
});
});
if
(
CollectionUtils
.
isNotEmpty
(
updateList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
updateList
))
{
String
updateSql
=
"update d_mall_hour_face_recognition_sta set person_count = :personCount,custom_count = :customCount,male_count = :maleCount,female_count = :femaleCount,male_stage = :maleStage, female_stage = :femaleStage, group_num = :groupNum, single_group_num = :singleGroupNum, double_group_num = :doubleGroupNum, multiple_group_num = :multipleGroupNum, family_group_num = :familyGroupNum, lover_group_num = :loverGroupNum, partner_group_num = :partnerGroupNum where mall_id = :mallId and countdate = :count
D
ate and counttime = :counttime;"
;
String
updateSql
=
"update d_mall_hour_face_recognition_sta set person_count = :personCount,custom_count = :customCount,male_count = :maleCount,female_count = :femaleCount,male_stage = :maleStage, female_stage = :femaleStage, group_num = :groupNum, single_group_num = :singleGroupNum, double_group_num = :doubleGroupNum, multiple_group_num = :multipleGroupNum, family_group_num = :familyGroupNum, lover_group_num = :loverGroupNum, partner_group_num = :partnerGroupNum where mall_id = :mallId and countdate = :count
d
ate and counttime = :counttime;"
;
SqlParameterSource
[]
updateSources
=
SqlParameterSourceUtils
.
createBatch
(
updateList
.
toArray
());
SqlParameterSource
[]
updateSources
=
SqlParameterSourceUtils
.
createBatch
(
updateList
.
toArray
());
namedParameterJdbcTemplate
.
batchUpdate
(
updateSql
,
updateSources
);
namedParameterJdbcTemplate
.
batchUpdate
(
updateSql
,
updateSources
);
}
}
...
...
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