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 1f22fa60
authored
Mar 08, 2024
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]接待时间写入数据库
1 parent
db4da0c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/viontech/keliu/dao/DPersonRecordDao.java
src/main/java/com/viontech/keliu/dao/DPersonRecordDao.java
View file @
1f22fa6
...
@@ -32,9 +32,9 @@ public class DPersonRecordDao {
...
@@ -32,9 +32,9 @@ public class DPersonRecordDao {
public
void
createDPersonRecordBatch
(
List
<
DPersonRecord
>
personRecordList
)
{
public
void
createDPersonRecordBatch
(
List
<
DPersonRecord
>
personRecordList
)
{
SqlParameterSource
[]
batch
=
SqlParameterSourceUtils
.
createBatch
(
personRecordList
.
toArray
());
SqlParameterSource
[]
batch
=
SqlParameterSourceUtils
.
createBatch
(
personRecordList
.
toArray
());
String
sql
=
"insert into d_person_record (mall_id,account_id,count_date,person_unid,group_unid,age,gender,person_type,arrive_time, leave_time, "
+
String
sql
=
"insert into d_person_record (mall_id,account_id,count_date,person_unid,group_unid,age,gender,person_type,arrive_time, leave_time, "
+
"visit_count, visit_duration, engage_count,engage_time,reception_count,reception_duration,attention_count,attention_time)"
+
"visit_count, visit_duration, engage_count,engage_time,reception_count,reception_
time,reception_
duration,attention_count,attention_time)"
+
" values(:mallId,:accountId,:countDate,:personUnid,:groupUnid,:age,:gender,:personType,:arriveTime,:leaveTime,:visitCount,:visitDuration,"
+
" values(:mallId,:accountId,:countDate,:personUnid,:groupUnid,:age,:gender,:personType,:arriveTime,:leaveTime,:visitCount,:visitDuration,"
+
":engageCount,:engageTime,:receptionCount,:receptionDuration,:attentionCount,:attentionTime)"
;
":engageCount,:engageTime,:receptionCount,:reception
Time,:reception
Duration,:attentionCount,:attentionTime)"
;
namedParameterJdbcTemplate
.
batchUpdate
(
sql
,
batch
);
namedParameterJdbcTemplate
.
batchUpdate
(
sql
,
batch
);
}
}
...
...
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