Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
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
廖旭伟
self-service
Commits
d69fed0c
Commit
d69fed0c
authored
May 11, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备列表查询增加桌面式自助服务终端,告警消息列表过滤自助服务终端
parent
f85706c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceAlarmPdu.java
...ava/com/mortals/xhx/common/pdu/device/DeviceAlarmPdu.java
+9
-0
sst-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+1
-1
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+12
-0
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceAlarmPdu.java
View file @
d69fed0c
...
@@ -3,6 +3,7 @@ package com.mortals.xhx.common.pdu.device;
...
@@ -3,6 +3,7 @@ package com.mortals.xhx.common.pdu.device;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
public
class
DeviceAlarmPdu
extends
BaseEntityLong
{
public
class
DeviceAlarmPdu
extends
BaseEntityLong
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -56,7 +57,15 @@ public class DeviceAlarmPdu extends BaseEntityLong {
...
@@ -56,7 +57,15 @@ public class DeviceAlarmPdu extends BaseEntityLong {
/** 结束 创建时间 */
/** 结束 创建时间 */
private
String
createTimeEnd
;
private
String
createTimeEnd
;
private
List
<
Long
>
alarmDeviceList
;
public
List
<
Long
>
getAlarmDeviceList
()
{
return
alarmDeviceList
;
}
public
void
setAlarmDeviceList
(
List
<
Long
>
alarmDeviceList
)
{
this
.
alarmDeviceList
=
alarmDeviceList
;
}
public
DeviceAlarmPdu
(){}
public
DeviceAlarmPdu
(){}
/**
/**
...
...
sst-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
d69fed0c
...
@@ -48,7 +48,7 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
...
@@ -48,7 +48,7 @@ public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, Device
Result
<
DeviceEntity
>
result
=
new
Result
();
Result
<
DeviceEntity
>
result
=
new
Result
();
DevicePdu
devicePdu
=
new
DevicePdu
();
DevicePdu
devicePdu
=
new
DevicePdu
();
BeanUtils
.
copyProperties
(
entity
,
devicePdu
,
BeanUtil
.
getNullPropertyNames
(
entity
));
BeanUtils
.
copyProperties
(
entity
,
devicePdu
,
BeanUtil
.
getNullPropertyNames
(
entity
));
devicePdu
.
setProductName
(
productName
);
devicePdu
.
setProductName
(
entity
.
getProductName
()
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
rest
=
deviceFeign
.
list
(
devicePdu
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
rest
=
deviceFeign
.
list
(
devicePdu
);
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
List
<
DeviceEntity
>
collect
=
rest
.
getData
().
getData
().
stream
().
map
(
item
->
{
List
<
DeviceEntity
>
collect
=
rest
.
getData
().
getData
().
stream
().
map
(
item
->
{
...
...
sst-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
d69fed0c
...
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -162,6 +163,17 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
...
@@ -162,6 +163,17 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
if
(!
ObjectUtils
.
isEmpty
(
query
)
&&
!
ObjectUtils
.
isEmpty
(
query
.
getSize
()))
{
if
(!
ObjectUtils
.
isEmpty
(
query
)
&&
!
ObjectUtils
.
isEmpty
(
query
.
getSize
()))
{
pageInfo
.
setPrePageResult
(
query
.
getSize
());
pageInfo
.
setPrePageResult
(
query
.
getSize
());
}
}
DevicePdu
devicePdu
=
new
DevicePdu
();
devicePdu
.
setSiteId
(
query
.
getSiteId
());
devicePdu
.
setProductName
(
"%自助服务终端%"
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
restd
=
deviceFeign
.
list
(
devicePdu
);
if
(
restd
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
List
<
Long
>
deviceIdList
=
restd
.
getData
().
getData
().
stream
().
map
(
item
->
{
return
item
.
getId
();
}).
collect
(
Collectors
.
toList
());
query
.
setAlarmDeviceList
(
deviceIdList
);
}
Result
<
DeviceAlarmPdu
>
result
=
new
Result
();
Result
<
DeviceAlarmPdu
>
result
=
new
Result
();
Rest
<
RespData
<
List
<
DeviceAlarmPdu
>>>
rest
=
deviceAlarmFeign
.
list
(
query
);
Rest
<
RespData
<
List
<
DeviceAlarmPdu
>>>
rest
=
deviceAlarmFeign
.
list
(
query
);
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
...
...
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