Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-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
赵啸非
enterprise-platform
Commits
2b30f238
Commit
2b30f238
authored
Sep 20, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页统计报表
parent
cf41d6ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
enterprise-manager/src/main/java/com/mortals/xhx/module/company/service/impl/CompanyServiceImpl.java
...s/xhx/module/company/service/impl/CompanyServiceImpl.java
+1
-2
enterprise-manager/src/test/java/com/mortals/httpclient/company/CompanyController.http
...ava/com/mortals/httpclient/company/CompanyController.http
+7
-0
enterprise-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+3
-16
No files found.
enterprise-manager/src/main/java/com/mortals/xhx/module/company/service/impl/CompanyServiceImpl.java
View file @
2b30f238
...
...
@@ -214,12 +214,11 @@ public class CompanyServiceImpl extends AbstractCRUDServiceImpl<CompanyDao, Comp
for
(
int
i
=
0
;
i
<
30
;
i
++)
{
DateTime
curDate
=
DateUtil
.
offsetDay
(
beforeDay
,
i
);
Map
<
String
,
Integer
>
map
=
new
HashMap
<>();
map
.
put
(
curDate
.
toDateStr
(),
0
);
StaffRecordQuery
staffRecordQuery
=
new
StaffRecordQuery
();
staffRecordQuery
.
setCreateTimeStart
(
curDate
.
toDateStr
());
staffRecordQuery
.
setCreateTimeEnd
(
curDate
.
toDateStr
());
List
<
StaffRecordEntity
>
staffRecordEntities
=
staffRecordService
.
find
(
staffRecordQuery
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
staffRecordEntities
))
{
int
sum
=
staffRecordEntities
.
stream
().
mapToInt
(
item
->
item
.
getSumViews
()).
sum
();
map
.
put
(
curDate
.
toDateStr
(),
sum
);
...
...
enterprise-manager/src/test/java/com/mortals/httpclient/company/CompanyController.http
View file @
2b30f238
...
...
@@ -22,6 +22,13 @@ Content-Type: application/json
"size":10
}
###公司统计
POST {{baseUrl}}/company/stat
Content-Type: application/json
Authorization: {{authToken}}
{}
###公司更新与保存
POST {{baseUrl}}/company/save
...
...
enterprise-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
2b30f238
{
"local"
:
{
"baseUrl"
:
"http://127.0.0.1:21085/office"
,
"baseLogin"
:
"http://127.0.0.1:18222/m"
"baseUrl"
:
"http://localhost:17214/enterprise"
},
"dev"
:
{
"baseUrl"
:
"http://192.168.0.217:18222/m"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
"baseUrl"
:
"http://192.168.0.217:18222/enterprise"
},
"test"
:
{
"baseUrl"
:
"http://192.168.0.98:11085/office"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"portal"
:
{
"baseUrl"
:
"http://192.168.0.98:11072/zwfw"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"yibin"
:
{
"baseUrl"
:
"http://10.12.185.213:11085/office"
},
"yibin-web"
:
{
"baseUrl"
:
"http://112.19.80.237:11085/office"
"baseUrl"
:
"http://192.168.0.98:11086/enterprise"
}
}
\ No newline at end of file
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