Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
6a7f3830
Commit
6a7f3830
authored
Jun 25, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加排号与评价统计报表
parent
33289246
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
bill-manager/src/main/java/com/mortals/xhx/module/ph/service/impl/PhQueueStatServiceImpl.java
...ls/xhx/module/ph/service/impl/PhQueueStatServiceImpl.java
+6
-2
bill-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+1
-1
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/ph/service/impl/PhQueueStatServiceImpl.java
View file @
6a7f3830
...
@@ -44,7 +44,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -44,7 +44,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
public
Rest
<
Void
>
updateSitePhStat
(
PhQueueStatEntity
entity
,
Context
context
)
{
public
Rest
<
Void
>
updateSitePhStat
(
PhQueueStatEntity
entity
,
Context
context
)
{
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
set
(
entity
.
getYear
(),
entity
.
getMonth
()
-
1
,
entity
.
getDay
());
calendar
.
set
(
entity
.
getYear
(),
entity
.
getMonth
()
-
1
,
entity
.
getDay
());
SimpleDateFormat
date
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
//yyyy-年,MM-月,dd-日,HH-时,mm-分,ss-秒
SimpleDateFormat
date
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
//yyyy-年,MM-月,dd-日,HH-时,mm-分,ss-秒
String
currentDate
=
date
.
format
(
calendar
.
getTime
());
String
currentDate
=
date
.
format
(
calendar
.
getTime
());
...
@@ -91,7 +91,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -91,7 +91,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
phQueueStatEntity
.
setSiteName
(
entity
.
getSiteName
());
phQueueStatEntity
.
setSiteName
(
entity
.
getSiteName
());
phQueueStatEntity
.
setPhCount
(
phQueueEntities
.
size
());
phQueueStatEntity
.
setPhCount
(
phQueueEntities
.
size
());
//计算平均等待时间
//计算平均等待时间
phQueueStatEntity
.
setWaitTime
(
intAvg
.
intValue
());
phQueueStatEntity
.
setWaitTime
(
intAvg
.
intValue
());
phQueueStatEntity
.
setYear
(
entity
.
getYear
());
phQueueStatEntity
.
setYear
(
entity
.
getYear
());
phQueueStatEntity
.
setMonth
(
entity
.
getMonth
());
phQueueStatEntity
.
setMonth
(
entity
.
getMonth
());
...
@@ -116,6 +116,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -116,6 +116,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
String
sectionName
=
item
.
getKey
();
String
sectionName
=
item
.
getKey
();
if
(
ObjectUtils
.
isEmpty
(
sectionName
))
return
;
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
...
@@ -161,6 +162,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -161,6 +162,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
String
hallName
=
item
.
getKey
();
String
hallName
=
item
.
getKey
();
if
(
ObjectUtils
.
isEmpty
(
hallName
))
return
;
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},大厅:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getHallName
(),
phQueueEntities
.
size
());
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},大厅:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getHallName
(),
phQueueEntities
.
size
());
...
@@ -205,6 +207,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -205,6 +207,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
String
bussiness
=
item
.
getKey
();
String
bussiness
=
item
.
getKey
();
if
(
ObjectUtils
.
isEmpty
(
bussiness
))
return
;
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},业务:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getBusiness
(),
phQueueEntities
.
size
());
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},业务:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getBusiness
(),
phQueueEntities
.
size
());
...
@@ -248,6 +251,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
...
@@ -248,6 +251,7 @@ public class PhQueueStatServiceImpl extends AbstractCRUDServiceImpl<PhQueueStatD
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
Map
<
String
,
List
<
PhQueueEntity
>>
collect
=
phQueueEntities
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getSectionName
()));
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
collect
.
entrySet
().
stream
().
forEach
(
item
->
{
String
window
=
item
.
getKey
();
String
window
=
item
.
getKey
();
if
(
ObjectUtils
.
isEmpty
(
window
))
return
;
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
List
<
PhQueueEntity
>
value
=
item
.
getValue
();
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
Double
intAvg
=
value
.
stream
().
mapToInt
(
e
->
e
.
getWaitTime
()).
average
().
orElse
(
0
D
);
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},业务:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getBusiness
(),
phQueueEntities
.
size
());
log
.
info
(
"更新站点评价统计数据,站点名称:{},日期:{},业务:{},评价数量:{}"
,
entity
.
getSiteName
(),
currentDate
,
entity
.
getBusiness
(),
phQueueEntities
.
size
());
...
...
bill-manager/src/test/java/com/mortals/httpclient/system.http
View file @
6a7f3830
...
@@ -57,7 +57,7 @@ Content-Type: application/json
...
@@ -57,7 +57,7 @@ Content-Type: application/json
{
{
"taketimeStart": "2023-04-01",
"taketimeStart": "2023-04-01",
"taketimeEnd": "2023-04-0
3
"
"taketimeEnd": "2023-04-0
1
"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment