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
1949a07c
Commit
1949a07c
authored
Jun 01, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询%%问题
parent
6a42baf8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
74 deletions
+27
-74
device-manager-ui/admin/src/views/device/list.vue
device-manager-ui/admin/src/views/device/list.vue
+4
-4
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
...ava/com/mortals/xhx/module/device/model/DeviceEntity.java
+14
-0
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
...java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
+9
-70
No files found.
device-manager-ui/admin/src/views/device/list.vue
View file @
1949a07c
...
...
@@ -248,8 +248,8 @@ export default {
this
.
query
[
"
page
"
]
=
1
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatusList
:
[
1
,
2
],
enabled
:
1
,
//
deviceStatusList: [1, 2],
//
enabled: 1,
});
this
.
getData
();
...
...
@@ -259,7 +259,7 @@ export default {
//去除其它条件
this
.
query
[
"
page
"
]
=
1
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatusList
:
[
1
,
2
],
//
deviceStatusList: [1, 2],
enabled
:
enabled
,
});
...
...
@@ -270,7 +270,7 @@ export default {
//去除其它条件
// delete this.query["productId"]
//delete this.query["deviceName"]
// delete this.query["deviceCode
"]
delete
this
.
query
[
"
enabled
"
]
this
.
query
=
Object
.
assign
(
this
.
query
,
{
deviceStatus
:
val
});
this
.
query
[
"
page
"
]
=
1
this
.
getData
();
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
View file @
1949a07c
package
com.mortals.xhx.module.device.model
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.xhx.module.device.model.vo.DeviceVo
;
import
lombok.Data
;
...
...
@@ -17,10 +18,12 @@ public class DeviceEntity extends DeviceVo {
/**
* 设备名称
*/
@Excel
(
name
=
"设备名称"
)
private
String
deviceName
;
/**
* 设备编码,SN码等,默认为MAC地址
*/
@Excel
(
name
=
"设备编码"
)
private
String
deviceCode
;
/**
* 设备的MAC地址
...
...
@@ -37,6 +40,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 站点名称
*/
@Excel
(
name
=
"站点名称"
)
private
String
siteName
;
/**
* 平台系统Id
...
...
@@ -45,6 +49,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 平台系统名称
*/
@Excel
(
name
=
"平台系统名称"
)
private
String
platformName
;
/**
* 产品Id
...
...
@@ -53,6 +58,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 产品名称
*/
@Excel
(
name
=
"产品名称"
)
private
String
productName
;
/**
* 皮肤id
...
...
@@ -73,6 +79,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 设备生产厂商名称
*/
@Excel
(
name
=
"设备生产厂商名称"
)
private
String
deviceFirmname
;
/**
* 设备来源(0.子设备,1.网关设备,2.直连设备)
...
...
@@ -93,10 +100,12 @@ public class DeviceEntity extends DeviceVo {
/**
* 所属楼栋
*/
@Excel
(
name
=
"所属楼栋"
)
private
Integer
deviceInBuilding
;
/**
* 所属楼层
*/
@Excel
(
name
=
"所属楼层"
)
private
Integer
deviceInFloor
;
/**
* 保修期至
...
...
@@ -105,10 +114,12 @@ public class DeviceEntity extends DeviceVo {
/**
* 负责人
*/
@Excel
(
name
=
"负责人"
)
private
String
leadingOfficial
;
/**
* 联系电话
*/
@Excel
(
name
=
"联系电话"
)
private
String
leadingOfficialTelephone
;
/**
* 是否接收异常短(0.否,1.是)
...
...
@@ -165,6 +176,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 设备来源(0.旧设备,1.新设备)
*/
@Excel
(
name
=
"设备来源"
,
readConverterExp
=
"0=旧设备,1=新设备"
)
private
Integer
source
;
/**
* 设备SN码
...
...
@@ -177,6 +189,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 产品编码
*/
@Excel
(
name
=
"产品类型"
,
cacheDict
=
"productDict"
,
type
=
Excel
.
Type
.
IMPORT
)
private
String
productCode
;
/**
* 大厅Id
...
...
@@ -185,6 +198,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 大厅名称
*/
@Excel
(
name
=
"大厅名称"
)
private
String
hallName
;
/**
* 是否显示短信(0.否,1.是)
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceVo.java
View file @
1949a07c
...
...
@@ -26,11 +26,7 @@ public class DeviceVo extends BaseEntityLong {
*/
private
String
platformCode
;
/**
* 产品编码
*/
@Excel
(
name
=
"产品类型"
,
cacheDict
=
"productDict"
,
type
=
Excel
.
Type
.
IMPORT
)
private
String
productCode
;
/**
...
...
@@ -58,71 +54,14 @@ public class DeviceVo extends BaseEntityLong {
private
List
<
Integer
>
deviceStatusList
;
/**
* 设备名称
*/
@Excel
(
name
=
"设备名称"
)
private
String
deviceName
;
/**
* 设备编码,SN码等,默认为MAC地址
*/
@Excel
(
name
=
"设备编码"
)
private
String
deviceCode
;
/**
* 站点名称
*/
@Excel
(
name
=
"站点名称"
)
private
String
siteName
;
/**
* 平台系统名称
*/
@Excel
(
name
=
"平台系统名称"
)
private
String
platformName
;
/**
* 产品名称
*/
@Excel
(
name
=
"产品名称"
)
private
String
productName
;
/**
* 设备生产厂商名称
*/
@Excel
(
name
=
"设备生产厂商名称"
)
private
String
deviceFirmname
;
/**
* 所属楼栋
*/
@Excel
(
name
=
"所属楼栋"
)
private
Integer
deviceInBuilding
;
/**
* 所属楼层
*/
@Excel
(
name
=
"所属楼层"
)
private
Integer
deviceInFloor
;
/**
* 负责人
*/
@Excel
(
name
=
"负责人"
)
private
String
leadingOfficial
;
/**
* 联系电话
*/
@Excel
(
name
=
"联系电话"
)
private
String
leadingOfficialTelephone
;
/**
* 设备来源(0.旧设备,1.新设备)
*/
@Excel
(
name
=
"设备来源"
,
readConverterExp
=
"0=旧设备,1=新设备"
)
private
Integer
source
;
/**
* 设备SN码
*/
@Excel
(
name
=
"设备SN码"
)
private
String
deviceSN
;
/**
* 大厅名称
*/
@Excel
(
name
=
"大厅名称"
)
private
String
hallName
;
...
...
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