Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-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
赵啸非
device-new-platform
Commits
e23ed62e
Commit
e23ed62e
authored
Apr 23, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改统计逻辑
parent
8f590716
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
device-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
...ava/com/mortals/xhx/module/site/model/SiteTreeSelect.java
+8
-0
device-manager/src/main/java/com/mortals/xhx/module/sitestat/web/SitestatController.java
...m/mortals/xhx/module/sitestat/web/SitestatController.java
+0
-4
device-manager/src/test/java/com/mortals/httpclient/sitestat/SitestatController.http
...a/com/mortals/httpclient/sitestat/SitestatController.http
+7
-1
device-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+2
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
View file @
e23ed62e
...
...
@@ -105,6 +105,8 @@ public class SiteTreeSelect implements Serializable {
* 离线总数
*/
private
Integer
onlineTotal
;
private
Integer
stopCount
;
/**
* 未激活设备数量
*/
...
...
@@ -221,6 +223,12 @@ public class SiteTreeSelect implements Serializable {
.
count
();
node
.
setOfflineTotal
(
deviceOfflineCount
.
intValue
());
//停用数量
Long
stopCount
=
deviceList
.
stream
()
.
filter
(
f
->
f
.
getDeviceStatus
()
>
DeviceStatusEnum
.
未激活
.
getValue
())
.
filter
(
f
->
f
.
getEnabled
()
==
YesNoEnum
.
NO
.
getValue
())
.
count
();
node
.
setStopCount
(
stopCount
.
intValue
());
//设置统计id
SitestatEntity
sitestatCache
=
sitestatService
.
getExtCache
(
node
.
getSiteCode
());
if
(!
ObjectUtils
.
isEmpty
(
sitestatCache
))
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/sitestat/web/SitestatController.java
View file @
e23ed62e
...
...
@@ -53,10 +53,6 @@ public class SitestatController extends BaseCRUDJsonBodyMappingController<Sitest
super
.
setModuleDesc
(
"站点统计"
);
}
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
super
.
init
(
model
,
context
);
...
...
device-manager/src/test/java/com/mortals/httpclient/sitestat/SitestatController.http
View file @
e23ed62e
...
...
@@ -15,7 +15,6 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
###站点统计列表
POST {{baseUrl}}/sitestat/list
Authorization: {{authToken}}
Content-Type: application/json
{
...
...
@@ -23,6 +22,13 @@ Content-Type: application/json
"page":1,
"size":10
}
###站点统计树
GET {{baseUrl}}/sitestat/siteTree
Authorization: {{authToken}}
Content-Type: application/json
{}
###站点统计更新与保存
...
...
device-manager/src/test/java/com/mortals/httpclient/system.http
View file @
e23ed62e
...
...
@@ -103,10 +103,10 @@ Content-Type: application/json
{
"size": -1,
"groupList": ["productCode","
month
"],
"groupList": ["productCode","
year
"],
"year": 2024,
"siteId": 1,
"orderColList": [{"colName":"
month
","sortKind":"asc"}]
"orderColList": [{"colName":"
year
","sortKind":"asc"}]
}
...
...
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