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 0e92f1a5
authored
Feb 12, 2025
by
朱海
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]小时级数据统计异常bug
1 parent
37d67f4e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
src/main/java/com/viontech/keliu/controller/ToolController.java
src/main/java/com/viontech/keliu/service/PersonRecordService.java
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
src/main/java/com/viontech/keliu/controller/ToolController.java
View file @
0e92f1a
...
...
@@ -3,11 +3,16 @@ package com.viontech.keliu.controller;
import
cn.hutool.core.date.DateField
;
import
cn.hutool.core.date.DateTime
;
import
cn.hutool.core.date.DateUtil
;
import
com.viontech.keliu.entity.DPersonRecord
;
import
com.viontech.keliu.service.PersonGroupService
;
import
com.viontech.keliu.service.PersonRecordService
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.jdbc.core.BeanPropertyRowMapper
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
...
...
@@ -27,6 +32,8 @@ public class ToolController {
@Resource
private
PersonRecordService
personRecordService
;
@Resource
private
JdbcTemplate
jdbcTemplate
;
/*@Resource
private PersonGroupService personGroupService;*/
/*@GetMapping("/buildData")
...
...
src/main/java/com/viontech/keliu/service/PersonRecordService.java
View file @
0e92f1a
package
com
.
viontech
.
keliu
.
service
;
import
com.viontech.keliu.entity.DPersonRecord
;
import
java.util.Date
;
import
java.util.List
;
/**
* Created with IntelliJ IDEA.
...
...
src/main/java/com/viontech/keliu/service/impl/PersonRecordServiceImpl.java
View file @
0e92f1a
...
...
@@ -591,6 +591,7 @@ public class PersonRecordServiceImpl implements PersonRecordService {
}
long
newPersonCount
=
v
.
getStaffCount
()
+
customerCount
;
DMallHourFaceRecognitionSta
updateSta
=
new
DMallHourFaceRecognitionSta
();
updateSta
.
setMallId
(
mallId
);
updateSta
.
setCountdate
(
countDate
);
updateSta
.
setPersonCount
(
newPersonCount
);
updateSta
.
setCustomCount
(
customerCount
);
...
...
@@ -613,10 +614,12 @@ public class PersonRecordServiceImpl implements PersonRecordService {
updateSta
.
setFemaleStage
(
femaleStageStr
);
CustomerGroupResult
customerGroupResult
=
new
CustomerGroupResult
();
Map
<
String
,
List
<
DPersonRecord
>>
groupMap
=
personRecords
.
stream
().
collect
(
Collectors
.
groupingBy
(
DPersonRecord:
:
getGroupUnid
));
groupMap
.
forEach
((
k1
,
v1
)
->
{
calGroup
(
1
,
customerGroupResult
,
v1
);
});
if
(
CollectionUtils
.
isNotEmpty
(
dPersonRecords
))
{
Map
<
String
,
List
<
DPersonRecord
>>
groupMap
=
dPersonRecords
.
stream
().
collect
(
Collectors
.
groupingBy
(
DPersonRecord:
:
getGroupUnid
));
groupMap
.
forEach
((
k1
,
v1
)
->
{
calGroup
(
1
,
customerGroupResult
,
v1
);
});
}
updateSta
.
setGroupNum
(
customerGroupResult
.
getGroupNum
());
updateSta
.
setSingleGroupNum
(
customerGroupResult
.
getSingleGroup
());
updateSta
.
setDoubleGroupNum
(
customerGroupResult
.
getDoubleGroup
());
...
...
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