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
4d39f85a
Commit
4d39f85a
authored
Jul 10, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页统计模块 统计近一周
parent
ffae41f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
bill-manager/src/main/java/com/mortals/xhx/daemon/task/SiteStatTaskImpl.java
...in/java/com/mortals/xhx/daemon/task/SiteStatTaskImpl.java
+25
-8
No files found.
bill-manager/src/main/java/com/mortals/xhx/daemon/task/SiteStatTaskImpl.java
View file @
4d39f85a
...
...
@@ -13,6 +13,8 @@ import com.mortals.xhx.module.ph.model.PhQueueStatEntity;
import
com.mortals.xhx.module.ph.service.PhQueueStatService
;
import
com.mortals.xhx.module.pj.model.PjEvaluateStatEntity
;
import
com.mortals.xhx.module.pj.service.PjEvaluateStatService
;
import
com.mortals.xhx.module.stat.model.StatEntity
;
import
com.mortals.xhx.module.stat.service.StatService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -37,6 +39,8 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
private
PjEvaluateStatService
pjEvaluateStatService
;
@Autowired
private
PhQueueStatService
phQueueStatService
;
@Autowired
private
StatService
statService
;
@Override
...
...
@@ -73,16 +77,29 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
//设置排号
PhQueueStatEntity
phQueueStatEntity
=
new
PhQueueStatEntity
();
sites
tatEntity
.
initAttrValue
();
sites
tatEntity
.
setSiteId
(
site
.
getId
());
sites
tatEntity
.
setSiteName
(
site
.
getSiteName
());
sites
tatEntity
.
setSiteCode
(
site
.
getSiteCode
());
sites
tatEntity
.
setYear
(
year
);
sites
tatEntity
.
setMonth
(
month
);
sites
tatEntity
.
setDay
(
day
);
phQueueS
tatEntity
.
initAttrValue
();
phQueueS
tatEntity
.
setSiteId
(
site
.
getId
());
phQueueS
tatEntity
.
setSiteName
(
site
.
getSiteName
());
phQueueS
tatEntity
.
setSiteCode
(
site
.
getSiteCode
());
phQueueS
tatEntity
.
setYear
(
year
);
phQueueS
tatEntity
.
setMonth
(
month
);
phQueueS
tatEntity
.
setDay
(
day
);
phQueueStatService
.
updateSitePhStat
(
phQueueStatEntity
,
null
);
StatEntity
statEntity
=
new
StatEntity
();
statEntity
.
initAttrValue
();
statEntity
.
setSiteId
(
site
.
getId
());
statEntity
.
setSiteName
(
site
.
getSiteName
());
statEntity
.
setSiteCode
(
site
.
getSiteCode
());
statEntity
.
setYear
(
year
);
statEntity
.
setMonth
(
month
);
statEntity
.
setDay
(
day
);
//设置年月日
statService
.
updateSiteStat
(
statEntity
,
null
);
}
}
...
...
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