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
6cfbf0b9
Commit
6cfbf0b9
authored
Aug 02, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重新调整统计线程实现
parent
9859f90d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
bill-manager/src/main/java/com/mortals/xhx/module/access/web/AccessController.java
...a/com/mortals/xhx/module/access/web/AccessController.java
+14
-12
No files found.
bill-manager/src/main/java/com/mortals/xhx/module/access/web/AccessController.java
View file @
6cfbf0b9
...
@@ -28,22 +28,22 @@ import java.util.Arrays;
...
@@ -28,22 +28,22 @@ import java.util.Arrays;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
*
* 区域接入
* 区域接入
*
*
* @author zxfei
* @author zxfei
* @date 2024-07-02
* @date 2024-07-02
*/
*/
@RestController
@RestController
@RequestMapping
(
"access"
)
@RequestMapping
(
"access"
)
@Slf4j
@Slf4j
public
class
AccessController
extends
BaseCRUDJsonBodyMappingController
<
AccessService
,
AccessEntity
,
Long
>
{
public
class
AccessController
extends
BaseCRUDJsonBodyMappingController
<
AccessService
,
AccessEntity
,
Long
>
{
@Autowired
@Autowired
private
AccessService
accessService
;
private
AccessService
accessService
;
public
AccessController
(){
public
AccessController
()
{
super
.
setModuleDesc
(
"区域接入"
);
super
.
setModuleDesc
(
"区域接入"
);
}
}
@Override
@Override
...
@@ -73,10 +73,12 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe
...
@@ -73,10 +73,12 @@ public class AccessController extends BaseCRUDJsonBodyMappingController<AccessSe
DateTime
attendEnd
=
DateUtil
.
parseDate
(
accessQuery
.
getAccessTimeEnd
());
DateTime
attendEnd
=
DateUtil
.
parseDate
(
accessQuery
.
getAccessTimeEnd
());
Long
compare
=
DateUtil
.
between
(
attendEnd
,
attendStart
,
DateUnit
.
DAY
);
Long
compare
=
DateUtil
.
between
(
attendEnd
,
attendStart
,
DateUnit
.
DAY
);
log
.
info
(
"计算天数区间:{}"
,
compare
);
log
.
info
(
"计算天数区间:{}"
,
compare
);
List
<
SitePdu
>
statSiteList
=
accessService
.
getStatSiteList
(
new
AccessQuery
());
accessQuery
.
setAccessTimeStart
(
null
);
accessQuery
.
setAccessTimeEnd
(
null
);
List
<
SitePdu
>
statSiteList
=
accessService
.
getStatSiteList
(
accessQuery
);
for
(
SitePdu
site
:
statSiteList
)
{
for
(
SitePdu
site
:
statSiteList
)
{
StatThread
statThread
=
new
StatThread
(
attendStart
,
compare
,
site
,
context
,
StatThread
statThread
=
new
StatThread
(
attendStart
,
compare
,
site
,
context
,
Arrays
.
asList
(
StatTypeEnum
.
STAT_PH
.
getValue
(),
StatTypeEnum
.
STAT_PJ
.
getValue
(),
StatTypeEnum
.
STAT_ALL
.
getValue
()));
Arrays
.
asList
(
StatTypeEnum
.
STAT_PH
.
getValue
(),
StatTypeEnum
.
STAT_PJ
.
getValue
(),
StatTypeEnum
.
STAT_ALL
.
getValue
()));
ThreadPool
.
getInstance
().
execute
(
statThread
);
ThreadPool
.
getInstance
().
execute
(
statThread
);
}
}
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
...
...
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