Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
c6ba21e2
Commit
c6ba21e2
authored
Jun 21, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设备相关信息
parent
fa7b842e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2980 additions
and
1976 deletions
+2980
-1976
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceReq.java
...ain/java/com/mortals/xhx/common/pdu/device/DeviceReq.java
+0
-1
sample-form-manager/db/add.sql
sample-form-manager/db/add.sql
+22
-0
sample-form-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java
.../com/mortals/xhx/base/framework/aspect/OperlogAspect.java
+14
-9
sample-form-manager/src/main/java/com/mortals/xhx/common/code/DeviceMethodEnum.java
...in/java/com/mortals/xhx/common/code/DeviceMethodEnum.java
+72
-0
sample-form-manager/src/main/java/com/mortals/xhx/common/code/EnabledEnum.java
...rc/main/java/com/mortals/xhx/common/code/EnabledEnum.java
+65
-0
sample-form-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
...c/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
+11
-12
sample-form-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
...ava/com/mortals/xhx/module/device/model/DeviceEntity.java
+96
-321
sample-form-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java
...java/com/mortals/xhx/module/device/model/DeviceQuery.java
+1361
-814
sample-form-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java
.../com/mortals/xhx/module/device/service/DeviceService.java
+18
-0
sample-form-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+70
-0
sample-form-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+148
-12
sample-form-manager/src/main/resources/sqlmap/module/device/DeviceMapper.xml
.../src/main/resources/sqlmap/module/device/DeviceMapper.xml
+1103
-807
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DeviceReq.java
View file @
c6ba21e2
package
com.mortals.xhx.common.pdu.device
;
package
com.mortals.xhx.common.pdu.device
;
import
com.fasterxml.jackson.databind.annotation.JsonDeserialize
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
...
sample-form-manager/db/add.sql
0 → 100644
View file @
c6ba21e2
-- ----------------------------
2023
-
06
-
21
-- ----------------------------
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`deviceFirmId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'设备生产厂商ID'
AFTER
siteName
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`deviceFirmname`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'设备生产厂商名称'
AFTER
deviceFirmId
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`ip`
varchar
(
64
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
DEFAULT
NULL
COMMENT
'设备访问ip'
AFTER
deviceFirmname
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`port`
varchar
(
64
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
DEFAULT
NULL
COMMENT
'端口'
AFTER
ip
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`enabled`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'启用状态 (0.停止,1.启用)'
AFTER
port
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`deviceRemark`
varchar
(
256
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
DEFAULT
NULL
COMMENT
'备注'
AFTER
enabled
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`onlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近上线时间'
AFTER
deviceRemark
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`offlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近离线时间'
AFTER
onlineTime
;
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/base/framework/aspect/OperlogAspect.java
View file @
c6ba21e2
...
@@ -4,8 +4,10 @@ import java.util.Date;
...
@@ -4,8 +4,10 @@ import java.util.Date;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
cn.hutool.core.util.StrUtil
;
import
com.mortals.framework.model.OperateLogPdu
;
import
com.mortals.framework.model.OperateLogPdu
;
import
com.mortals.framework.service.IMessageProduceService
;
import
com.mortals.framework.service.IMessageProduceService
;
import
com.mortals.xhx.common.code.OperTypeEnum
;
import
com.mortals.xhx.system.MessageProducer
;
import
com.mortals.xhx.system.MessageProducer
;
import
org.aspectj.lang.JoinPoint
;
import
org.aspectj.lang.JoinPoint
;
import
org.aspectj.lang.annotation.AfterReturning
;
import
org.aspectj.lang.annotation.AfterReturning
;
...
@@ -28,7 +30,7 @@ import com.mortals.xhx.base.system.oper.service.OperLogService;
...
@@ -28,7 +30,7 @@ import com.mortals.xhx.base.system.oper.service.OperLogService;
* 操作日志记录
* 操作日志记录
*/
*/
@Component
@Component
public
class
OperlogAspect
extends
FileLogServiceImpl
implements
ILogService
{
public
class
OperlogAspect
extends
FileLogServiceImpl
implements
ILogService
{
private
final
static
Logger
logger
=
LoggerFactory
.
getLogger
(
OperlogAspect
.
class
);
private
final
static
Logger
logger
=
LoggerFactory
.
getLogger
(
OperlogAspect
.
class
);
...
@@ -39,11 +41,19 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
...
@@ -39,11 +41,19 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
@Override
@Override
public
void
doHandlerLog
(
String
platformMark
,
Long
userId
,
String
userName
,
String
loginName
,
String
requestUrl
,
public
void
doHandlerLog
(
String
platformMark
,
Long
userId
,
String
userName
,
String
loginName
,
String
requestUrl
,
String
content
,
String
ip
,
Date
logDate
)
{
String
content
,
String
ip
,
Date
logDate
)
{
super
.
doHandlerLog
(
platformMark
,
userId
,
userName
,
loginName
,
requestUrl
,
content
,
ip
,
logDate
);
super
.
doHandlerLog
(
platformMark
,
userId
,
userName
,
loginName
,
requestUrl
,
content
,
ip
,
logDate
);
if
(
ObjectUtils
.
isEmpty
(
userId
))
return
;
operLogService
.
insertOperLog
(
ip
,
requestUrl
,
userId
,
userName
,
loginName
,
content
);
operLogService
.
insertOperLog
(
ip
,
requestUrl
,
userId
,
userName
,
loginName
,
content
);
int
operType
=
OperTypeEnum
.
OTHER
.
getValue
();
//判断内容包含
if
(
StrUtil
.
contains
(
content
,
"查询"
)
||
StrUtil
.
contains
(
content
,
"查看"
))
{
operType
=
OperTypeEnum
.
SEARCH
.
getValue
();
}
else
if
(
StrUtil
.
contains
(
content
,
"保存"
)
||
StrUtil
.
contains
(
content
,
"新增"
)
||
StrUtil
.
contains
(
content
,
"修改"
))
{
operType
=
OperTypeEnum
.
SAVE
.
getValue
();
}
else
if
(
StrUtil
.
contains
(
content
,
"删除"
))
{
operType
=
OperTypeEnum
.
DELETE
.
getValue
();
}
OperateLogPdu
operateLogPdu
=
new
OperateLogPdu
();
OperateLogPdu
operateLogPdu
=
new
OperateLogPdu
();
operateLogPdu
.
initAttrValue
();
operateLogPdu
.
initAttrValue
();
operateLogPdu
.
setIp
(
ip
);
operateLogPdu
.
setIp
(
ip
);
...
@@ -54,17 +64,13 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
...
@@ -54,17 +64,13 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
operateLogPdu
.
setPlatformMark
(
platformMark
);
operateLogPdu
.
setPlatformMark
(
platformMark
);
operateLogPdu
.
setLogDate
(
logDate
);
operateLogPdu
.
setLogDate
(
logDate
);
operateLogPdu
.
setContent
(
content
);
operateLogPdu
.
setContent
(
content
);
operateLogPdu
.
setOperType
(
1
);
operateLogPdu
.
setOperType
(
operType
);
messageProducer
.
syncOperSend
(
operateLogPdu
);
messageProducer
.
syncOperSend
(
operateLogPdu
);
}
}
@Override
@Override
public
void
doHandlerLog
(
String
platformMark
,
String
loginName
,
String
requestUrl
,
String
content
,
String
ip
)
{
public
void
doHandlerLog
(
String
platformMark
,
String
loginName
,
String
requestUrl
,
String
content
,
String
ip
)
{
// operLogService.insertOperLog(ip, requestUrl, null, "", loginName,
// content);
this
.
doHandlerLog
(
platformMark
,
null
,
""
,
loginName
,
requestUrl
,
content
,
ip
,
new
Date
());
this
.
doHandlerLog
(
platformMark
,
null
,
""
,
loginName
,
requestUrl
,
content
,
ip
,
new
Date
());
}
}
@Pointcut
(
"execution(public * com.mortals.xhx..*Controller.*(..))"
)
@Pointcut
(
"execution(public * com.mortals.xhx..*Controller.*(..))"
)
...
@@ -79,7 +85,6 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
...
@@ -79,7 +85,6 @@ public class OperlogAspect extends FileLogServiceImpl implements ILogService {
// url
// url
logger
.
info
(
"ip[{}]url[{}]"
,
request
.
getRemoteAddr
(),
request
.
getRequestURL
());
logger
.
info
(
"ip[{}]url[{}]"
,
request
.
getRemoteAddr
(),
request
.
getRequestURL
());
// 参数第1和第2个参数为HttpServletRequest request, HttpServletResponse
// 参数第1和第2个参数为HttpServletRequest request, HttpServletResponse
// response
if
(
joinPoint
.
getArgs
().
length
>
2
)
{
if
(
joinPoint
.
getArgs
().
length
>
2
)
{
logger
.
info
(
"args={}"
,
joinPoint
.
getArgs
()[
2
]);
logger
.
info
(
"args={}"
,
joinPoint
.
getArgs
()[
2
]);
}
else
{
}
else
{
...
...
sample-form-manager/src/main/java/com/mortals/xhx/common/code/DeviceMethodEnum.java
0 → 100644
View file @
c6ba21e2
package
com.mortals.xhx.common.code
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* 设备请求方式,1:新增,2:修改,3:删除,4:激活,5:启用,6:停用
*
* @author zxfei
*/
public
enum
DeviceMethodEnum
{
ADD
(
1
,
"新增"
),
UPDATE
(
2
,
"修改"
),
DEL
(
3
,
"删除"
),
ACTIVE
(
4
,
"激活"
),
ENABLED
(
5
,
"启用"
),
STOP
(
6
,
"停用"
),
ONLINE
(
7
,
"上线"
),
OFFLINE
(
8
,
"下线"
)
;
private
Integer
value
;
private
String
desc
;
DeviceMethodEnum
(
Integer
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
Integer
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
this
.
desc
;
}
public
static
DeviceMethodEnum
getByValue
(
Integer
value
)
{
for
(
DeviceMethodEnum
deviceTypeEnum
:
DeviceMethodEnum
.
values
())
{
if
(
deviceTypeEnum
.
getValue
()
==
value
)
{
return
deviceTypeEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
Integer
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
DeviceMethodEnum
item
:
DeviceMethodEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
Integer
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
hasE
=
true
;
break
;
}
}
if
(!
hasE
)
{
resultMap
.
put
(
item
.
getValue
()
+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
)
{
}
}
return
resultMap
;
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/common/code/EnabledEnum.java
0 → 100644
View file @
c6ba21e2
package
com.mortals.xhx.common.code
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* 启用状态 (0.停止,1.启用)枚举类
*
* @author zxfei
*/
public
enum
EnabledEnum
{
停止
(
0
,
"停止"
),
启用
(
1
,
"启用"
);
private
Integer
value
;
private
String
desc
;
EnabledEnum
(
Integer
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
Integer
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
this
.
desc
;
}
public
static
EnabledEnum
getByValue
(
Integer
value
)
{
for
(
EnabledEnum
enabledEnum
:
EnabledEnum
.
values
())
{
if
(
enabledEnum
.
getValue
()
==
value
)
{
return
enabledEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
Integer
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
EnabledEnum
item
:
EnabledEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
Integer
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
hasE
=
true
;
break
;
}
}
if
(!
hasE
)
{
resultMap
.
put
(
item
.
getValue
()
+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
)
{
}
}
return
resultMap
;
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
View file @
c6ba21e2
...
@@ -3,20 +3,19 @@ package com.mortals.xhx.common.code;
...
@@ -3,20 +3,19 @@ package com.mortals.xhx.common.code;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
* Created by chendilin on 2018/3/7.
*/
public
enum
OperTypeEnum
{
public
enum
OperTypeEnum
{
SAVE
(
0
,
"添加"
),
SAVE
(
0
,
"添加"
),
UPDATE
(
1
,
"更新"
),
UPDATE
(
1
,
"更新"
),
DELETE
(
2
,
"删除"
),
DELETE
(
2
,
"删除"
),
OTHER
(-
1
,
"其它"
);
SEARCH
(
3
,
"查询"
),
OTHER
(-
1
,
"其它"
);
private
int
value
;
private
int
value
;
private
String
msg
;
private
String
msg
;
private
OperTypeEnum
(
int
value
,
String
msg
)
{
private
OperTypeEnum
(
int
value
,
String
msg
)
{
this
.
value
=
value
;
this
.
value
=
value
;
this
.
msg
=
msg
;
this
.
msg
=
msg
;
}
}
...
@@ -25,11 +24,11 @@ public enum OperTypeEnum {
...
@@ -25,11 +24,11 @@ public enum OperTypeEnum {
return
this
.
value
;
return
this
.
value
;
}
}
public
static
Map
<
String
,
String
>
getEnumMap
()
{
public
static
Map
<
String
,
String
>
getEnumMap
()
{
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>();
OperTypeEnum
[]
operTypeEnum
=
OperTypeEnum
.
values
();
OperTypeEnum
[]
operTypeEnum
=
OperTypeEnum
.
values
();
for
(
OperTypeEnum
typeEnum
:
operTypeEnum
)
{
for
(
OperTypeEnum
typeEnum
:
operTypeEnum
)
{
resultMap
.
put
(
String
.
valueOf
(
typeEnum
.
value
),
typeEnum
.
msg
);
resultMap
.
put
(
String
.
valueOf
(
typeEnum
.
value
),
typeEnum
.
msg
);
}
}
return
resultMap
;
return
resultMap
;
}
}
...
...
sample-form-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceEntity.java
View file @
c6ba21e2
package
com.mortals.xhx.module.device.model
;
package
com.mortals.xhx.module.device.model
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.device.model.vo.DeviceVo
;
import
com.mortals.xhx.module.device.model.vo.DeviceVo
;
import
lombok.Data
;
/**
/**
* 设备实体对象
* 设备实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-02-25
* @date 2023-06-21
*/
*/
@Data
public
class
DeviceEntity
extends
DeviceVo
{
public
class
DeviceEntity
extends
DeviceVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 设备id
* 设备id
*/
*/
private
Long
deviceId
;
private
Long
deviceId
;
/**
/**
* 设备名称
* 设备名称
*/
*/
private
String
deviceName
;
private
String
deviceName
;
/**
/**
* 设备编码
* 设备编码
*/
*/
private
String
deviceCode
;
private
String
deviceCode
;
/**
/**
* 设备的MAC地址
* 设备的MAC地址
*/
*/
private
String
deviceMac
;
private
String
deviceMac
;
/**
/**
* 站点Id
* 站点Id
*/
*/
private
Long
siteId
;
private
Long
siteId
;
/**
/**
* 站点编号,来源基础服务平台
* 站点编号,来源基础服务平台
*/
*/
private
String
siteCode
;
private
String
siteCode
;
/**
/**
* 站点名称
* 站点名称
*/
*/
private
String
siteName
;
private
String
siteName
;
/**
/**
* 产品编码
* 产品编码
*/
*/
private
String
productCode
;
private
String
productCode
;
/**
/**
* 产品名称
* 产品名称
*/
*/
private
String
productName
;
private
String
productName
;
/**
/**
* 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设备来源(0.子设备,1.网关设备,2.直连设备)
*/
*/
private
Integer
deviceSrc
;
private
Integer
deviceSrc
;
/**
/**
* 经度
* 经度
*/
*/
private
String
lon
;
private
String
lon
;
/**
/**
* 纬度
* 纬度
*/
*/
private
String
lati
;
private
String
lati
;
/**
/**
* 负责人
* 负责人
*/
*/
private
String
leadingOfficial
;
private
String
leadingOfficial
;
/**
/**
* 联系电话
* 联系电话
*/
*/
private
String
leadingOfficialTelephone
;
private
String
leadingOfficialTelephone
;
/**
/**
* 设备状态 (0.未激活,1.离线,2.在线)
* 设备状态 (0.未激活,1.离线,2.在线)
*/
*/
private
Integer
deviceStatus
;
private
Integer
deviceStatus
;
/**
/**
* 备注
* 备注
*/
*/
private
String
deviceRemark
;
private
String
deviceRemark
;
/**
/**
* 设备来源(0.旧设备,1.新设备)
* 设备来源(0.旧设备,1.新设备)
*/
*/
private
Integer
source
;
private
Integer
source
;
public
DeviceEntity
(){}
/**
* 获取 设备id
* @return Long
*/
public
Long
getDeviceId
(){
return
deviceId
;
}
/**
* 设置 设备id
* @param deviceId
*/
public
void
setDeviceId
(
Long
deviceId
){
this
.
deviceId
=
deviceId
;
}
/**
* 获取 设备名称
* @return String
*/
public
String
getDeviceName
(){
return
deviceName
;
}
/**
* 设置 设备名称
* @param deviceName
*/
public
void
setDeviceName
(
String
deviceName
){
this
.
deviceName
=
deviceName
;
}
/**
* 获取 设备编码
* @return String
*/
public
String
getDeviceCode
(){
return
deviceCode
;
}
/**
* 设置 设备编码
* @param deviceCode
*/
public
void
setDeviceCode
(
String
deviceCode
){
this
.
deviceCode
=
deviceCode
;
}
/**
* 获取 设备的MAC地址
* @return String
*/
public
String
getDeviceMac
(){
return
deviceMac
;
}
/**
* 设置 设备的MAC地址
* @param deviceMac
*/
public
void
setDeviceMac
(
String
deviceMac
){
this
.
deviceMac
=
deviceMac
;
}
/**
* 获取 站点Id
* @return Long
*/
public
Long
getSiteId
(){
return
siteId
;
}
/**
* 设置 站点Id
* @param siteId
*/
public
void
setSiteId
(
Long
siteId
){
this
.
siteId
=
siteId
;
}
/**
* 获取 站点编号,来源基础服务平台
* @return String
*/
public
String
getSiteCode
(){
return
siteCode
;
}
/**
* 设置 站点编号,来源基础服务平台
* @param siteCode
*/
public
void
setSiteCode
(
String
siteCode
){
this
.
siteCode
=
siteCode
;
}
/**
* 获取 站点名称
* @return String
*/
public
String
getSiteName
(){
return
siteName
;
}
/**
/**
* 设置 站点名称
* 设备生产厂商ID
* @param siteName
*/
*/
private
Long
deviceFirmId
;
public
void
setSiteName
(
String
siteName
){
this
.
siteName
=
siteName
;
}
/**
/**
* 获取 产品编码
* 设备生产厂商名称
* @return String
*/
*/
private
String
deviceFirmname
;
public
String
getProductCode
(){
return
productCode
;
}
/**
* 设置 产品编码
* @param productCode
*/
public
void
setProductCode
(
String
productCode
){
this
.
productCode
=
productCode
;
}
/**
/**
* 获取 产品名称
* 设备访问ip
* @return String
*/
*/
private
String
ip
;
public
String
getProductName
(){
return
productName
;
}
/**
/**
* 设置 产品名称
* 端口
* @param productName
*/
*/
private
String
port
;
public
void
setProductName
(
String
productName
){
this
.
productName
=
productName
;
}
/**
/**
* 获取 设备来源(0.子设备,1.网关设备,2.直连设备)
* 启用状态 (0.停止,1.启用)
* @return Integer
*/
*/
private
Integer
enabled
;
public
Integer
getDeviceSrc
(){
return
deviceSrc
;
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 最近上线时间
* @param deviceSrc
*/
*/
private
Date
onlineTime
;
public
void
setDeviceSrc
(
Integer
deviceSrc
){
this
.
deviceSrc
=
deviceSrc
;
}
/**
/**
* 获取 经度
* 最近离线时间
* @return String
*/
*/
private
Date
offlineTime
;
public
String
getLon
(){
return
lon
;
}
/**
* 设置 经度
* @param lon
*/
public
void
setLon
(
String
lon
){
this
.
lon
=
lon
;
}
/**
* 获取 纬度
* @return String
*/
public
String
getLati
(){
return
lati
;
}
/**
* 设置 纬度
* @param lati
*/
public
void
setLati
(
String
lati
){
this
.
lati
=
lati
;
}
/**
* 获取 负责人
* @return String
*/
public
String
getLeadingOfficial
(){
return
leadingOfficial
;
}
/**
* 设置 负责人
* @param leadingOfficial
*/
public
void
setLeadingOfficial
(
String
leadingOfficial
){
this
.
leadingOfficial
=
leadingOfficial
;
}
/**
* 获取 联系电话
* @return String
*/
public
String
getLeadingOfficialTelephone
(){
return
leadingOfficialTelephone
;
}
/**
* 设置 联系电话
* @param leadingOfficialTelephone
*/
public
void
setLeadingOfficialTelephone
(
String
leadingOfficialTelephone
){
this
.
leadingOfficialTelephone
=
leadingOfficialTelephone
;
}
/**
* 获取 设备状态 (0.未激活,1.离线,2.在线)
* @return Integer
*/
public
Integer
getDeviceStatus
(){
return
deviceStatus
;
}
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatus
*/
public
void
setDeviceStatus
(
Integer
deviceStatus
){
this
.
deviceStatus
=
deviceStatus
;
}
/**
* 获取 备注
* @return String
*/
public
String
getDeviceRemark
(){
return
deviceRemark
;
}
/**
* 设置 备注
* @param deviceRemark
*/
public
void
setDeviceRemark
(
String
deviceRemark
){
this
.
deviceRemark
=
deviceRemark
;
}
/**
* 获取 设备来源(0.旧设备,1.新设备)
* @return Integer
*/
public
Integer
getSource
(){
return
source
;
}
/**
* 设置 设备来源(0.旧设备,1.新设备)
* @param source
*/
public
void
setSource
(
Integer
source
){
this
.
source
=
source
;
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
...
@@ -340,68 +123,60 @@ public class DeviceEntity extends DeviceVo {
...
@@ -340,68 +123,60 @@ public class DeviceEntity extends DeviceVo {
if
(
obj
instanceof
DeviceEntity
)
{
if
(
obj
instanceof
DeviceEntity
)
{
DeviceEntity
tmp
=
(
DeviceEntity
)
obj
;
DeviceEntity
tmp
=
(
DeviceEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
}
}
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",deviceId:"
).
append
(
getDeviceId
());
sb
.
append
(
",deviceName:"
).
append
(
getDeviceName
());
sb
.
append
(
",deviceCode:"
).
append
(
getDeviceCode
());
sb
.
append
(
",deviceMac:"
).
append
(
getDeviceMac
());
sb
.
append
(
",siteId:"
).
append
(
getSiteId
());
sb
.
append
(
",siteCode:"
).
append
(
getSiteCode
());
sb
.
append
(
",siteName:"
).
append
(
getSiteName
());
sb
.
append
(
",productCode:"
).
append
(
getProductCode
());
sb
.
append
(
",productName:"
).
append
(
getProductName
());
sb
.
append
(
",deviceSrc:"
).
append
(
getDeviceSrc
());
sb
.
append
(
",lon:"
).
append
(
getLon
());
sb
.
append
(
",lati:"
).
append
(
getLati
());
sb
.
append
(
",leadingOfficial:"
).
append
(
getLeadingOfficial
());
sb
.
append
(
",leadingOfficialTelephone:"
).
append
(
getLeadingOfficialTelephone
());
sb
.
append
(
",deviceStatus:"
).
append
(
getDeviceStatus
());
sb
.
append
(
",deviceRemark:"
).
append
(
getDeviceRemark
());
sb
.
append
(
",source:"
).
append
(
getSource
());
return
sb
.
toString
();
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
deviceId
=
null
;
this
.
deviceId
=
-
1L
;
this
.
deviceName
=
""
;
this
.
deviceCode
=
""
;
this
.
deviceMac
=
""
;
this
.
siteId
=
-
1L
;
this
.
siteCode
=
""
;
this
.
siteName
=
""
;
this
.
productCode
=
""
;
this
.
deviceName
=
null
;
this
.
productName
=
""
;
this
.
deviceCode
=
null
;
this
.
deviceSrc
=
2
;
this
.
deviceMac
=
null
;
this
.
lon
=
""
;
this
.
siteId
=
null
;
this
.
lati
=
""
;
this
.
siteCode
=
null
;
this
.
leadingOfficial
=
""
;
this
.
siteName
=
null
;
this
.
leadingOfficialTelephone
=
""
;
this
.
productCode
=
null
;
this
.
deviceStatus
=
0
;
this
.
productName
=
null
;
this
.
deviceRemark
=
""
;
this
.
deviceSrc
=
2
;
this
.
source
=
1
;
this
.
lon
=
null
;
this
.
deviceFirmId
=
-
1L
;
this
.
lati
=
null
;
this
.
deviceFirmname
=
""
;
this
.
leadingOfficial
=
null
;
this
.
ip
=
""
;
this
.
leadingOfficialTelephone
=
null
;
this
.
port
=
""
;
this
.
deviceStatus
=
null
;
this
.
enabled
=
0
;
this
.
deviceRemark
=
null
;
this
.
onlineTime
=
null
;
this
.
source
=
1
;
this
.
offlineTime
=
null
;
}
}
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceQuery.java
View file @
c6ba21e2
package
com.mortals.xhx.module.device.model
;
package
com.mortals.xhx.module.device.model
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
/**
/**
* 设备查询对象
* 设备查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-02-25
* @date 2023-06-21
*/
*/
public
class
DeviceQuery
extends
DeviceEntity
{
public
class
DeviceQuery
extends
DeviceEntity
{
/** 开始 主键ID,主键,自增长 */
/** 开始 主键ID,主键,自增长 */
private
Long
idStart
;
private
Long
idStart
;
...
@@ -201,6 +202,63 @@ public class DeviceQuery extends DeviceEntity {
...
@@ -201,6 +202,63 @@ public class DeviceQuery extends DeviceEntity {
/** 结束 更新时间 */
/** 结束 更新时间 */
private
String
updateTimeEnd
;
private
String
updateTimeEnd
;
/** 开始 设备生产厂商ID */
private
Long
deviceFirmIdStart
;
/** 结束 设备生产厂商ID */
private
Long
deviceFirmIdEnd
;
/** 增加 设备生产厂商ID */
private
Long
deviceFirmIdIncrement
;
/** 设备生产厂商ID列表 */
private
List
<
Long
>
deviceFirmIdList
;
/** 设备生产厂商ID排除列表 */
private
List
<
Long
>
deviceFirmIdNotList
;
/** 设备生产厂商名称 */
private
List
<
String
>
deviceFirmnameList
;
/** 设备生产厂商名称排除列表 */
private
List
<
String
>
deviceFirmnameNotList
;
/** 设备访问ip */
private
List
<
String
>
ipList
;
/** 设备访问ip排除列表 */
private
List
<
String
>
ipNotList
;
/** 端口 */
private
List
<
String
>
portList
;
/** 端口排除列表 */
private
List
<
String
>
portNotList
;
/** 开始 启用状态 (0.停止,1.启用) */
private
Integer
enabledStart
;
/** 结束 启用状态 (0.停止,1.启用) */
private
Integer
enabledEnd
;
/** 增加 启用状态 (0.停止,1.启用) */
private
Integer
enabledIncrement
;
/** 启用状态 (0.停止,1.启用)列表 */
private
List
<
Integer
>
enabledList
;
/** 启用状态 (0.停止,1.启用)排除列表 */
private
List
<
Integer
>
enabledNotList
;
/** 开始 最近上线时间 */
private
String
onlineTimeStart
;
/** 结束 最近上线时间 */
private
String
onlineTimeEnd
;
/** 开始 最近离线时间 */
private
String
offlineTimeStart
;
/** 结束 最近离线时间 */
private
String
offlineTimeEnd
;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private
List
<
DeviceQuery
>
orConditionList
;
private
List
<
DeviceQuery
>
orConditionList
;
...
@@ -210,1791 +268,2280 @@ public class DeviceQuery extends DeviceEntity {
...
@@ -210,1791 +268,2280 @@ public class DeviceQuery extends DeviceEntity {
public
DeviceQuery
(){}
public
DeviceQuery
(){}
/**
/**
* 获取 开始 主键ID,主键,自增长
* 获取 开始 主键ID,主键,自增长
* @return idStart
* @return idStart
*/
*/
public
Long
getIdStart
(){
public
Long
getIdStart
(){
return
this
.
idStart
;
return
this
.
idStart
;
}
}
/**
/**
* 设置 开始 主键ID,主键,自增长
* 设置 开始 主键ID,主键,自增长
* @param idStart
* @param idStart
*/
*/
public
void
setIdStart
(
Long
idStart
){
public
void
setIdStart
(
Long
idStart
){
this
.
idStart
=
idStart
;
this
.
idStart
=
idStart
;
}
}
/**
/**
* 获取 结束 主键ID,主键,自增长
* 获取 结束 主键ID,主键,自增长
* @return $idEnd
* @return $idEnd
*/
*/
public
Long
getIdEnd
(){
public
Long
getIdEnd
(){
return
this
.
idEnd
;
return
this
.
idEnd
;
}
}
/**
/**
* 设置 结束 主键ID,主键,自增长
* 设置 结束 主键ID,主键,自增长
* @param idEnd
* @param idEnd
*/
*/
public
void
setIdEnd
(
Long
idEnd
){
public
void
setIdEnd
(
Long
idEnd
){
this
.
idEnd
=
idEnd
;
this
.
idEnd
=
idEnd
;
}
}
/**
/**
* 获取 增加 主键ID,主键,自增长
* 获取 增加 主键ID,主键,自增长
* @return idIncrement
* @return idIncrement
*/
*/
public
Long
getIdIncrement
(){
public
Long
getIdIncrement
(){
return
this
.
idIncrement
;
return
this
.
idIncrement
;
}
}
/**
/**
* 设置 增加 主键ID,主键,自增长
* 设置 增加 主键ID,主键,自增长
* @param idIncrement
* @param idIncrement
*/
*/
public
void
setIdIncrement
(
Long
idIncrement
){
public
void
setIdIncrement
(
Long
idIncrement
){
this
.
idIncrement
=
idIncrement
;
this
.
idIncrement
=
idIncrement
;
}
}
/**
/**
* 获取 主键ID,主键,自增长
* 获取 主键ID,主键,自增长
* @return idList
* @return idList
*/
*/
public
List
<
Long
>
getIdList
(){
public
List
<
Long
>
getIdList
(){
return
this
.
idList
;
return
this
.
idList
;
}
}
/**
/**
* 设置 主键ID,主键,自增长
* 设置 主键ID,主键,自增长
* @param idList
* @param idList
*/
*/
public
void
setIdList
(
List
<
Long
>
idList
){
public
void
setIdList
(
List
<
Long
>
idList
){
this
.
idList
=
idList
;
this
.
idList
=
idList
;
}
}
/**
/**
* 获取 主键ID,主键,自增长
* 获取 主键ID,主键,自增长
* @return idNotList
* @return idNotList
*/
*/
public
List
<
Long
>
getIdNotList
(){
public
List
<
Long
>
getIdNotList
(){
return
this
.
idNotList
;
return
this
.
idNotList
;
}
}
/**
/**
* 设置 主键ID,主键,自增长
* 设置 主键ID,主键,自增长
* @param idNotList
* @param idNotList
*/
*/
public
void
setIdNotList
(
List
<
Long
>
idNotList
){
public
void
setIdNotList
(
List
<
Long
>
idNotList
){
this
.
idNotList
=
idNotList
;
this
.
idNotList
=
idNotList
;
}
}
/**
/**
* 获取 开始 设备id
* 获取 开始 设备id
* @return deviceIdStart
* @return deviceIdStart
*/
*/
public
Long
getDeviceIdStart
(){
public
Long
getDeviceIdStart
(){
return
this
.
deviceIdStart
;
return
this
.
deviceIdStart
;
}
}
/**
/**
* 设置 开始 设备id
* 设置 开始 设备id
* @param deviceIdStart
* @param deviceIdStart
*/
*/
public
void
setDeviceIdStart
(
Long
deviceIdStart
){
public
void
setDeviceIdStart
(
Long
deviceIdStart
){
this
.
deviceIdStart
=
deviceIdStart
;
this
.
deviceIdStart
=
deviceIdStart
;
}
}
/**
/**
* 获取 结束 设备id
* 获取 结束 设备id
* @return $deviceIdEnd
* @return $deviceIdEnd
*/
*/
public
Long
getDeviceIdEnd
(){
public
Long
getDeviceIdEnd
(){
return
this
.
deviceIdEnd
;
return
this
.
deviceIdEnd
;
}
}
/**
/**
* 设置 结束 设备id
* 设置 结束 设备id
* @param deviceIdEnd
* @param deviceIdEnd
*/
*/
public
void
setDeviceIdEnd
(
Long
deviceIdEnd
){
public
void
setDeviceIdEnd
(
Long
deviceIdEnd
){
this
.
deviceIdEnd
=
deviceIdEnd
;
this
.
deviceIdEnd
=
deviceIdEnd
;
}
}
/**
/**
* 获取 增加 设备id
* 获取 增加 设备id
* @return deviceIdIncrement
* @return deviceIdIncrement
*/
*/
public
Long
getDeviceIdIncrement
(){
public
Long
getDeviceIdIncrement
(){
return
this
.
deviceIdIncrement
;
return
this
.
deviceIdIncrement
;
}
}
/**
/**
* 设置 增加 设备id
* 设置 增加 设备id
* @param deviceIdIncrement
* @param deviceIdIncrement
*/
*/
public
void
setDeviceIdIncrement
(
Long
deviceIdIncrement
){
public
void
setDeviceIdIncrement
(
Long
deviceIdIncrement
){
this
.
deviceIdIncrement
=
deviceIdIncrement
;
this
.
deviceIdIncrement
=
deviceIdIncrement
;
}
}
/**
/**
* 获取 设备id
* 获取 设备id
* @return deviceIdList
* @return deviceIdList
*/
*/
public
List
<
Long
>
getDeviceIdList
(){
public
List
<
Long
>
getDeviceIdList
(){
return
this
.
deviceIdList
;
return
this
.
deviceIdList
;
}
}
/**
/**
* 设置 设备id
* 设置 设备id
* @param deviceIdList
* @param deviceIdList
*/
*/
public
void
setDeviceIdList
(
List
<
Long
>
deviceIdList
){
public
void
setDeviceIdList
(
List
<
Long
>
deviceIdList
){
this
.
deviceIdList
=
deviceIdList
;
this
.
deviceIdList
=
deviceIdList
;
}
}
/**
/**
* 获取 设备id
* 获取 设备id
* @return deviceIdNotList
* @return deviceIdNotList
*/
*/
public
List
<
Long
>
getDeviceIdNotList
(){
public
List
<
Long
>
getDeviceIdNotList
(){
return
this
.
deviceIdNotList
;
return
this
.
deviceIdNotList
;
}
}
/**
/**
* 设置 设备id
* 设置 设备id
* @param deviceIdNotList
* @param deviceIdNotList
*/
*/
public
void
setDeviceIdNotList
(
List
<
Long
>
deviceIdNotList
){
public
void
setDeviceIdNotList
(
List
<
Long
>
deviceIdNotList
){
this
.
deviceIdNotList
=
deviceIdNotList
;
this
.
deviceIdNotList
=
deviceIdNotList
;
}
}
/**
/**
* 获取 设备名称
* 获取 设备名称
* @return deviceNameList
* @return deviceNameList
*/
*/
public
List
<
String
>
getDeviceNameList
(){
public
List
<
String
>
getDeviceNameList
(){
return
this
.
deviceNameList
;
return
this
.
deviceNameList
;
}
}
/**
/**
* 设置 设备名称
* 设置 设备名称
* @param deviceNameList
* @param deviceNameList
*/
*/
public
void
setDeviceNameList
(
List
<
String
>
deviceNameList
){
public
void
setDeviceNameList
(
List
<
String
>
deviceNameList
){
this
.
deviceNameList
=
deviceNameList
;
this
.
deviceNameList
=
deviceNameList
;
}
}
/**
/**
* 获取 设备名称
* 获取 设备名称
* @return deviceNameNotList
* @return deviceNameNotList
*/
*/
public
List
<
String
>
getDeviceNameNotList
(){
public
List
<
String
>
getDeviceNameNotList
(){
return
this
.
deviceNameNotList
;
return
this
.
deviceNameNotList
;
}
}
/**
/**
* 设置 设备名称
* 设置 设备名称
* @param deviceNameNotList
* @param deviceNameNotList
*/
*/
public
void
setDeviceNameNotList
(
List
<
String
>
deviceNameNotList
){
public
void
setDeviceNameNotList
(
List
<
String
>
deviceNameNotList
){
this
.
deviceNameNotList
=
deviceNameNotList
;
this
.
deviceNameNotList
=
deviceNameNotList
;
}
}
/**
/**
* 获取 设备编码
* 获取 设备编码
* @return deviceCodeList
* @return deviceCodeList
*/
*/
public
List
<
String
>
getDeviceCodeList
(){
public
List
<
String
>
getDeviceCodeList
(){
return
this
.
deviceCodeList
;
return
this
.
deviceCodeList
;
}
}
/**
/**
* 设置 设备编码
* 设置 设备编码
* @param deviceCodeList
* @param deviceCodeList
*/
*/
public
void
setDeviceCodeList
(
List
<
String
>
deviceCodeList
){
public
void
setDeviceCodeList
(
List
<
String
>
deviceCodeList
){
this
.
deviceCodeList
=
deviceCodeList
;
this
.
deviceCodeList
=
deviceCodeList
;
}
}
/**
/**
* 获取 设备编码
* 获取 设备编码
* @return deviceCodeNotList
* @return deviceCodeNotList
*/
*/
public
List
<
String
>
getDeviceCodeNotList
(){
public
List
<
String
>
getDeviceCodeNotList
(){
return
this
.
deviceCodeNotList
;
return
this
.
deviceCodeNotList
;
}
}
/**
/**
* 设置 设备编码
* 设置 设备编码
* @param deviceCodeNotList
* @param deviceCodeNotList
*/
*/
public
void
setDeviceCodeNotList
(
List
<
String
>
deviceCodeNotList
){
public
void
setDeviceCodeNotList
(
List
<
String
>
deviceCodeNotList
){
this
.
deviceCodeNotList
=
deviceCodeNotList
;
this
.
deviceCodeNotList
=
deviceCodeNotList
;
}
}
/**
/**
* 获取 设备的MAC地址
* 获取 设备的MAC地址
* @return deviceMacList
* @return deviceMacList
*/
*/
public
List
<
String
>
getDeviceMacList
(){
public
List
<
String
>
getDeviceMacList
(){
return
this
.
deviceMacList
;
return
this
.
deviceMacList
;
}
}
/**
/**
* 设置 设备的MAC地址
* 设置 设备的MAC地址
* @param deviceMacList
* @param deviceMacList
*/
*/
public
void
setDeviceMacList
(
List
<
String
>
deviceMacList
){
public
void
setDeviceMacList
(
List
<
String
>
deviceMacList
){
this
.
deviceMacList
=
deviceMacList
;
this
.
deviceMacList
=
deviceMacList
;
}
}
/**
/**
* 获取 设备的MAC地址
* 获取 设备的MAC地址
* @return deviceMacNotList
* @return deviceMacNotList
*/
*/
public
List
<
String
>
getDeviceMacNotList
(){
public
List
<
String
>
getDeviceMacNotList
(){
return
this
.
deviceMacNotList
;
return
this
.
deviceMacNotList
;
}
}
/**
/**
* 设置 设备的MAC地址
* 设置 设备的MAC地址
* @param deviceMacNotList
* @param deviceMacNotList
*/
*/
public
void
setDeviceMacNotList
(
List
<
String
>
deviceMacNotList
){
public
void
setDeviceMacNotList
(
List
<
String
>
deviceMacNotList
){
this
.
deviceMacNotList
=
deviceMacNotList
;
this
.
deviceMacNotList
=
deviceMacNotList
;
}
}
/**
/**
* 获取 开始 站点Id
* 获取 开始 站点Id
* @return siteIdStart
* @return siteIdStart
*/
*/
public
Long
getSiteIdStart
(){
public
Long
getSiteIdStart
(){
return
this
.
siteIdStart
;
return
this
.
siteIdStart
;
}
}
/**
/**
* 设置 开始 站点Id
* 设置 开始 站点Id
* @param siteIdStart
* @param siteIdStart
*/
*/
public
void
setSiteIdStart
(
Long
siteIdStart
){
public
void
setSiteIdStart
(
Long
siteIdStart
){
this
.
siteIdStart
=
siteIdStart
;
this
.
siteIdStart
=
siteIdStart
;
}
}
/**
/**
* 获取 结束 站点Id
* 获取 结束 站点Id
* @return $siteIdEnd
* @return $siteIdEnd
*/
*/
public
Long
getSiteIdEnd
(){
public
Long
getSiteIdEnd
(){
return
this
.
siteIdEnd
;
return
this
.
siteIdEnd
;
}
}
/**
/**
* 设置 结束 站点Id
* 设置 结束 站点Id
* @param siteIdEnd
* @param siteIdEnd
*/
*/
public
void
setSiteIdEnd
(
Long
siteIdEnd
){
public
void
setSiteIdEnd
(
Long
siteIdEnd
){
this
.
siteIdEnd
=
siteIdEnd
;
this
.
siteIdEnd
=
siteIdEnd
;
}
}
/**
/**
* 获取 增加 站点Id
* 获取 增加 站点Id
* @return siteIdIncrement
* @return siteIdIncrement
*/
*/
public
Long
getSiteIdIncrement
(){
public
Long
getSiteIdIncrement
(){
return
this
.
siteIdIncrement
;
return
this
.
siteIdIncrement
;
}
}
/**
/**
* 设置 增加 站点Id
* 设置 增加 站点Id
* @param siteIdIncrement
* @param siteIdIncrement
*/
*/
public
void
setSiteIdIncrement
(
Long
siteIdIncrement
){
public
void
setSiteIdIncrement
(
Long
siteIdIncrement
){
this
.
siteIdIncrement
=
siteIdIncrement
;
this
.
siteIdIncrement
=
siteIdIncrement
;
}
}
/**
/**
* 获取 站点Id
* 获取 站点Id
* @return siteIdList
* @return siteIdList
*/
*/
public
List
<
Long
>
getSiteIdList
(){
public
List
<
Long
>
getSiteIdList
(){
return
this
.
siteIdList
;
return
this
.
siteIdList
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
* @param siteIdList
* @param siteIdList
*/
*/
public
void
setSiteIdList
(
List
<
Long
>
siteIdList
){
public
void
setSiteIdList
(
List
<
Long
>
siteIdList
){
this
.
siteIdList
=
siteIdList
;
this
.
siteIdList
=
siteIdList
;
}
}
/**
/**
* 获取 站点Id
* 获取 站点Id
* @return siteIdNotList
* @return siteIdNotList
*/
*/
public
List
<
Long
>
getSiteIdNotList
(){
public
List
<
Long
>
getSiteIdNotList
(){
return
this
.
siteIdNotList
;
return
this
.
siteIdNotList
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
* @param siteIdNotList
* @param siteIdNotList
*/
*/
public
void
setSiteIdNotList
(
List
<
Long
>
siteIdNotList
){
public
void
setSiteIdNotList
(
List
<
Long
>
siteIdNotList
){
this
.
siteIdNotList
=
siteIdNotList
;
this
.
siteIdNotList
=
siteIdNotList
;
}
}
/**
/**
* 获取 站点编号,来源基础服务平台
* 获取 站点编号,来源基础服务平台
* @return siteCodeList
* @return siteCodeList
*/
*/
public
List
<
String
>
getSiteCodeList
(){
public
List
<
String
>
getSiteCodeList
(){
return
this
.
siteCodeList
;
return
this
.
siteCodeList
;
}
}
/**
/**
* 设置 站点编号,来源基础服务平台
* 设置 站点编号,来源基础服务平台
* @param siteCodeList
* @param siteCodeList
*/
*/
public
void
setSiteCodeList
(
List
<
String
>
siteCodeList
){
public
void
setSiteCodeList
(
List
<
String
>
siteCodeList
){
this
.
siteCodeList
=
siteCodeList
;
this
.
siteCodeList
=
siteCodeList
;
}
}
/**
/**
* 获取 站点编号,来源基础服务平台
* 获取 站点编号,来源基础服务平台
* @return siteCodeNotList
* @return siteCodeNotList
*/
*/
public
List
<
String
>
getSiteCodeNotList
(){
public
List
<
String
>
getSiteCodeNotList
(){
return
this
.
siteCodeNotList
;
return
this
.
siteCodeNotList
;
}
}
/**
/**
* 设置 站点编号,来源基础服务平台
* 设置 站点编号,来源基础服务平台
* @param siteCodeNotList
* @param siteCodeNotList
*/
*/
public
void
setSiteCodeNotList
(
List
<
String
>
siteCodeNotList
){
public
void
setSiteCodeNotList
(
List
<
String
>
siteCodeNotList
){
this
.
siteCodeNotList
=
siteCodeNotList
;
this
.
siteCodeNotList
=
siteCodeNotList
;
}
}
/**
/**
* 获取 站点名称
* 获取 站点名称
* @return siteNameList
* @return siteNameList
*/
*/
public
List
<
String
>
getSiteNameList
(){
public
List
<
String
>
getSiteNameList
(){
return
this
.
siteNameList
;
return
this
.
siteNameList
;
}
}
/**
/**
* 设置 站点名称
* 设置 站点名称
* @param siteNameList
* @param siteNameList
*/
*/
public
void
setSiteNameList
(
List
<
String
>
siteNameList
){
public
void
setSiteNameList
(
List
<
String
>
siteNameList
){
this
.
siteNameList
=
siteNameList
;
this
.
siteNameList
=
siteNameList
;
}
}
/**
/**
* 获取 站点名称
* 获取 站点名称
* @return siteNameNotList
* @return siteNameNotList
*/
*/
public
List
<
String
>
getSiteNameNotList
(){
public
List
<
String
>
getSiteNameNotList
(){
return
this
.
siteNameNotList
;
return
this
.
siteNameNotList
;
}
}
/**
/**
* 设置 站点名称
* 设置 站点名称
* @param siteNameNotList
* @param siteNameNotList
*/
*/
public
void
setSiteNameNotList
(
List
<
String
>
siteNameNotList
){
public
void
setSiteNameNotList
(
List
<
String
>
siteNameNotList
){
this
.
siteNameNotList
=
siteNameNotList
;
this
.
siteNameNotList
=
siteNameNotList
;
}
}
/**
/**
* 获取 产品编码
* 获取 产品编码
* @return productCodeList
* @return productCodeList
*/
*/
public
List
<
String
>
getProductCodeList
(){
public
List
<
String
>
getProductCodeList
(){
return
this
.
productCodeList
;
return
this
.
productCodeList
;
}
}
/**
/**
* 设置 产品编码
* 设置 产品编码
* @param productCodeList
* @param productCodeList
*/
*/
public
void
setProductCodeList
(
List
<
String
>
productCodeList
){
public
void
setProductCodeList
(
List
<
String
>
productCodeList
){
this
.
productCodeList
=
productCodeList
;
this
.
productCodeList
=
productCodeList
;
}
}
/**
/**
* 获取 产品编码
* 获取 产品编码
* @return productCodeNotList
* @return productCodeNotList
*/
*/
public
List
<
String
>
getProductCodeNotList
(){
public
List
<
String
>
getProductCodeNotList
(){
return
this
.
productCodeNotList
;
return
this
.
productCodeNotList
;
}
}
/**
/**
* 设置 产品编码
* 设置 产品编码
* @param productCodeNotList
* @param productCodeNotList
*/
*/
public
void
setProductCodeNotList
(
List
<
String
>
productCodeNotList
){
public
void
setProductCodeNotList
(
List
<
String
>
productCodeNotList
){
this
.
productCodeNotList
=
productCodeNotList
;
this
.
productCodeNotList
=
productCodeNotList
;
}
}
/**
/**
* 获取 产品名称
* 获取 产品名称
* @return productNameList
* @return productNameList
*/
*/
public
List
<
String
>
getProductNameList
(){
public
List
<
String
>
getProductNameList
(){
return
this
.
productNameList
;
return
this
.
productNameList
;
}
}
/**
/**
* 设置 产品名称
* 设置 产品名称
* @param productNameList
* @param productNameList
*/
*/
public
void
setProductNameList
(
List
<
String
>
productNameList
){
public
void
setProductNameList
(
List
<
String
>
productNameList
){
this
.
productNameList
=
productNameList
;
this
.
productNameList
=
productNameList
;
}
}
/**
/**
* 获取 产品名称
* 获取 产品名称
* @return productNameNotList
* @return productNameNotList
*/
*/
public
List
<
String
>
getProductNameNotList
(){
public
List
<
String
>
getProductNameNotList
(){
return
this
.
productNameNotList
;
return
this
.
productNameNotList
;
}
}
/**
/**
* 设置 产品名称
* 设置 产品名称
* @param productNameNotList
* @param productNameNotList
*/
*/
public
void
setProductNameNotList
(
List
<
String
>
productNameNotList
){
public
void
setProductNameNotList
(
List
<
String
>
productNameNotList
){
this
.
productNameNotList
=
productNameNotList
;
this
.
productNameNotList
=
productNameNotList
;
}
}
/**
/**
* 获取 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* 获取 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* @return deviceSrcStart
* @return deviceSrcStart
*/
*/
public
Integer
getDeviceSrcStart
(){
public
Integer
getDeviceSrcStart
(){
return
this
.
deviceSrcStart
;
return
this
.
deviceSrcStart
;
}
}
/**
/**
* 设置 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcStart
* @param deviceSrcStart
*/
*/
public
void
setDeviceSrcStart
(
Integer
deviceSrcStart
){
public
void
setDeviceSrcStart
(
Integer
deviceSrcStart
){
this
.
deviceSrcStart
=
deviceSrcStart
;
this
.
deviceSrcStart
=
deviceSrcStart
;
}
}
/**
/**
* 获取 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* 获取 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* @return $deviceSrcEnd
* @return $deviceSrcEnd
*/
*/
public
Integer
getDeviceSrcEnd
(){
public
Integer
getDeviceSrcEnd
(){
return
this
.
deviceSrcEnd
;
return
this
.
deviceSrcEnd
;
}
}
/**
/**
* 设置 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcEnd
* @param deviceSrcEnd
*/
*/
public
void
setDeviceSrcEnd
(
Integer
deviceSrcEnd
){
public
void
setDeviceSrcEnd
(
Integer
deviceSrcEnd
){
this
.
deviceSrcEnd
=
deviceSrcEnd
;
this
.
deviceSrcEnd
=
deviceSrcEnd
;
}
}
/**
/**
* 获取 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* 获取 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* @return deviceSrcIncrement
* @return deviceSrcIncrement
*/
*/
public
Integer
getDeviceSrcIncrement
(){
public
Integer
getDeviceSrcIncrement
(){
return
this
.
deviceSrcIncrement
;
return
this
.
deviceSrcIncrement
;
}
}
/**
/**
* 设置 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcIncrement
* @param deviceSrcIncrement
*/
*/
public
void
setDeviceSrcIncrement
(
Integer
deviceSrcIncrement
){
public
void
setDeviceSrcIncrement
(
Integer
deviceSrcIncrement
){
this
.
deviceSrcIncrement
=
deviceSrcIncrement
;
this
.
deviceSrcIncrement
=
deviceSrcIncrement
;
}
}
/**
/**
* 获取 设备来源(0.子设备,1.网关设备,2.直连设备)
* 获取 设备来源(0.子设备,1.网关设备,2.直连设备)
* @return deviceSrcList
* @return deviceSrcList
*/
*/
public
List
<
Integer
>
getDeviceSrcList
(){
public
List
<
Integer
>
getDeviceSrcList
(){
return
this
.
deviceSrcList
;
return
this
.
deviceSrcList
;
}
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcList
* @param deviceSrcList
*/
*/
public
void
setDeviceSrcList
(
List
<
Integer
>
deviceSrcList
){
public
void
setDeviceSrcList
(
List
<
Integer
>
deviceSrcList
){
this
.
deviceSrcList
=
deviceSrcList
;
this
.
deviceSrcList
=
deviceSrcList
;
}
}
/**
/**
* 获取 设备来源(0.子设备,1.网关设备,2.直连设备)
* 获取 设备来源(0.子设备,1.网关设备,2.直连设备)
* @return deviceSrcNotList
* @return deviceSrcNotList
*/
*/
public
List
<
Integer
>
getDeviceSrcNotList
(){
public
List
<
Integer
>
getDeviceSrcNotList
(){
return
this
.
deviceSrcNotList
;
return
this
.
deviceSrcNotList
;
}
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcNotList
* @param deviceSrcNotList
*/
*/
public
void
setDeviceSrcNotList
(
List
<
Integer
>
deviceSrcNotList
){
public
void
setDeviceSrcNotList
(
List
<
Integer
>
deviceSrcNotList
){
this
.
deviceSrcNotList
=
deviceSrcNotList
;
this
.
deviceSrcNotList
=
deviceSrcNotList
;
}
}
/**
/**
* 获取 经度
* 获取 经度
* @return lonList
* @return lonList
*/
*/
public
List
<
String
>
getLonList
(){
public
List
<
String
>
getLonList
(){
return
this
.
lonList
;
return
this
.
lonList
;
}
}
/**
/**
* 设置 经度
* 设置 经度
* @param lonList
* @param lonList
*/
*/
public
void
setLonList
(
List
<
String
>
lonList
){
public
void
setLonList
(
List
<
String
>
lonList
){
this
.
lonList
=
lonList
;
this
.
lonList
=
lonList
;
}
}
/**
/**
* 获取 经度
* 获取 经度
* @return lonNotList
* @return lonNotList
*/
*/
public
List
<
String
>
getLonNotList
(){
public
List
<
String
>
getLonNotList
(){
return
this
.
lonNotList
;
return
this
.
lonNotList
;
}
}
/**
/**
* 设置 经度
* 设置 经度
* @param lonNotList
* @param lonNotList
*/
*/
public
void
setLonNotList
(
List
<
String
>
lonNotList
){
public
void
setLonNotList
(
List
<
String
>
lonNotList
){
this
.
lonNotList
=
lonNotList
;
this
.
lonNotList
=
lonNotList
;
}
}
/**
/**
* 获取 纬度
* 获取 纬度
* @return latiList
* @return latiList
*/
*/
public
List
<
String
>
getLatiList
(){
public
List
<
String
>
getLatiList
(){
return
this
.
latiList
;
return
this
.
latiList
;
}
}
/**
/**
* 设置 纬度
* 设置 纬度
* @param latiList
* @param latiList
*/
*/
public
void
setLatiList
(
List
<
String
>
latiList
){
public
void
setLatiList
(
List
<
String
>
latiList
){
this
.
latiList
=
latiList
;
this
.
latiList
=
latiList
;
}
}
/**
/**
* 获取 纬度
* 获取 纬度
* @return latiNotList
* @return latiNotList
*/
*/
public
List
<
String
>
getLatiNotList
(){
public
List
<
String
>
getLatiNotList
(){
return
this
.
latiNotList
;
return
this
.
latiNotList
;
}
}
/**
/**
* 设置 纬度
* 设置 纬度
* @param latiNotList
* @param latiNotList
*/
*/
public
void
setLatiNotList
(
List
<
String
>
latiNotList
){
public
void
setLatiNotList
(
List
<
String
>
latiNotList
){
this
.
latiNotList
=
latiNotList
;
this
.
latiNotList
=
latiNotList
;
}
}
/**
/**
* 获取 负责人
* 获取 负责人
* @return leadingOfficialList
* @return leadingOfficialList
*/
*/
public
List
<
String
>
getLeadingOfficialList
(){
public
List
<
String
>
getLeadingOfficialList
(){
return
this
.
leadingOfficialList
;
return
this
.
leadingOfficialList
;
}
}
/**
/**
* 设置 负责人
* 设置 负责人
* @param leadingOfficialList
* @param leadingOfficialList
*/
*/
public
void
setLeadingOfficialList
(
List
<
String
>
leadingOfficialList
){
public
void
setLeadingOfficialList
(
List
<
String
>
leadingOfficialList
){
this
.
leadingOfficialList
=
leadingOfficialList
;
this
.
leadingOfficialList
=
leadingOfficialList
;
}
}
/**
/**
* 获取 负责人
* 获取 负责人
* @return leadingOfficialNotList
* @return leadingOfficialNotList
*/
*/
public
List
<
String
>
getLeadingOfficialNotList
(){
public
List
<
String
>
getLeadingOfficialNotList
(){
return
this
.
leadingOfficialNotList
;
return
this
.
leadingOfficialNotList
;
}
}
/**
/**
* 设置 负责人
* 设置 负责人
* @param leadingOfficialNotList
* @param leadingOfficialNotList
*/
*/
public
void
setLeadingOfficialNotList
(
List
<
String
>
leadingOfficialNotList
){
public
void
setLeadingOfficialNotList
(
List
<
String
>
leadingOfficialNotList
){
this
.
leadingOfficialNotList
=
leadingOfficialNotList
;
this
.
leadingOfficialNotList
=
leadingOfficialNotList
;
}
}
/**
/**
* 获取 联系电话
* 获取 联系电话
* @return leadingOfficialTelephoneList
* @return leadingOfficialTelephoneList
*/
*/
public
List
<
String
>
getLeadingOfficialTelephoneList
(){
public
List
<
String
>
getLeadingOfficialTelephoneList
(){
return
this
.
leadingOfficialTelephoneList
;
return
this
.
leadingOfficialTelephoneList
;
}
}
/**
/**
* 设置 联系电话
* 设置 联系电话
* @param leadingOfficialTelephoneList
* @param leadingOfficialTelephoneList
*/
*/
public
void
setLeadingOfficialTelephoneList
(
List
<
String
>
leadingOfficialTelephoneList
){
public
void
setLeadingOfficialTelephoneList
(
List
<
String
>
leadingOfficialTelephoneList
){
this
.
leadingOfficialTelephoneList
=
leadingOfficialTelephoneList
;
this
.
leadingOfficialTelephoneList
=
leadingOfficialTelephoneList
;
}
}
/**
/**
* 获取 联系电话
* 获取 联系电话
* @return leadingOfficialTelephoneNotList
* @return leadingOfficialTelephoneNotList
*/
*/
public
List
<
String
>
getLeadingOfficialTelephoneNotList
(){
public
List
<
String
>
getLeadingOfficialTelephoneNotList
(){
return
this
.
leadingOfficialTelephoneNotList
;
return
this
.
leadingOfficialTelephoneNotList
;
}
}
/**
/**
* 设置 联系电话
* 设置 联系电话
* @param leadingOfficialTelephoneNotList
* @param leadingOfficialTelephoneNotList
*/
*/
public
void
setLeadingOfficialTelephoneNotList
(
List
<
String
>
leadingOfficialTelephoneNotList
){
public
void
setLeadingOfficialTelephoneNotList
(
List
<
String
>
leadingOfficialTelephoneNotList
){
this
.
leadingOfficialTelephoneNotList
=
leadingOfficialTelephoneNotList
;
this
.
leadingOfficialTelephoneNotList
=
leadingOfficialTelephoneNotList
;
}
}
/**
/**
* 获取 开始 设备状态 (0.未激活,1.离线,2.在线)
* 获取 开始 设备状态 (0.未激活,1.离线,2.在线)
* @return deviceStatusStart
* @return deviceStatusStart
*/
*/
public
Integer
getDeviceStatusStart
(){
public
Integer
getDeviceStatusStart
(){
return
this
.
deviceStatusStart
;
return
this
.
deviceStatusStart
;
}
}
/**
/**
* 设置 开始 设备状态 (0.未激活,1.离线,2.在线)
* 设置 开始 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusStart
* @param deviceStatusStart
*/
*/
public
void
setDeviceStatusStart
(
Integer
deviceStatusStart
){
public
void
setDeviceStatusStart
(
Integer
deviceStatusStart
){
this
.
deviceStatusStart
=
deviceStatusStart
;
this
.
deviceStatusStart
=
deviceStatusStart
;
}
}
/**
/**
* 获取 结束 设备状态 (0.未激活,1.离线,2.在线)
* 获取 结束 设备状态 (0.未激活,1.离线,2.在线)
* @return $deviceStatusEnd
* @return $deviceStatusEnd
*/
*/
public
Integer
getDeviceStatusEnd
(){
public
Integer
getDeviceStatusEnd
(){
return
this
.
deviceStatusEnd
;
return
this
.
deviceStatusEnd
;
}
}
/**
/**
* 设置 结束 设备状态 (0.未激活,1.离线,2.在线)
* 设置 结束 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusEnd
* @param deviceStatusEnd
*/
*/
public
void
setDeviceStatusEnd
(
Integer
deviceStatusEnd
){
public
void
setDeviceStatusEnd
(
Integer
deviceStatusEnd
){
this
.
deviceStatusEnd
=
deviceStatusEnd
;
this
.
deviceStatusEnd
=
deviceStatusEnd
;
}
}
/**
/**
* 获取 增加 设备状态 (0.未激活,1.离线,2.在线)
* 获取 增加 设备状态 (0.未激活,1.离线,2.在线)
* @return deviceStatusIncrement
* @return deviceStatusIncrement
*/
*/
public
Integer
getDeviceStatusIncrement
(){
public
Integer
getDeviceStatusIncrement
(){
return
this
.
deviceStatusIncrement
;
return
this
.
deviceStatusIncrement
;
}
}
/**
/**
* 设置 增加 设备状态 (0.未激活,1.离线,2.在线)
* 设置 增加 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusIncrement
* @param deviceStatusIncrement
*/
*/
public
void
setDeviceStatusIncrement
(
Integer
deviceStatusIncrement
){
public
void
setDeviceStatusIncrement
(
Integer
deviceStatusIncrement
){
this
.
deviceStatusIncrement
=
deviceStatusIncrement
;
this
.
deviceStatusIncrement
=
deviceStatusIncrement
;
}
}
/**
/**
* 获取 设备状态 (0.未激活,1.离线,2.在线)
* 获取 设备状态 (0.未激活,1.离线,2.在线)
* @return deviceStatusList
* @return deviceStatusList
*/
*/
public
List
<
Integer
>
getDeviceStatusList
(){
public
List
<
Integer
>
getDeviceStatusList
(){
return
this
.
deviceStatusList
;
return
this
.
deviceStatusList
;
}
}
/**
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusList
* @param deviceStatusList
*/
*/
public
void
setDeviceStatusList
(
List
<
Integer
>
deviceStatusList
){
public
void
setDeviceStatusList
(
List
<
Integer
>
deviceStatusList
){
this
.
deviceStatusList
=
deviceStatusList
;
this
.
deviceStatusList
=
deviceStatusList
;
}
}
/**
/**
* 获取 设备状态 (0.未激活,1.离线,2.在线)
* 获取 设备状态 (0.未激活,1.离线,2.在线)
* @return deviceStatusNotList
* @return deviceStatusNotList
*/
*/
public
List
<
Integer
>
getDeviceStatusNotList
(){
public
List
<
Integer
>
getDeviceStatusNotList
(){
return
this
.
deviceStatusNotList
;
return
this
.
deviceStatusNotList
;
}
}
/**
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusNotList
* @param deviceStatusNotList
*/
*/
public
void
setDeviceStatusNotList
(
List
<
Integer
>
deviceStatusNotList
){
public
void
setDeviceStatusNotList
(
List
<
Integer
>
deviceStatusNotList
){
this
.
deviceStatusNotList
=
deviceStatusNotList
;
this
.
deviceStatusNotList
=
deviceStatusNotList
;
}
}
/**
/**
* 获取 备注
* 获取 备注
* @return deviceRemarkList
* @return deviceRemarkList
*/
*/
public
List
<
String
>
getDeviceRemarkList
(){
public
List
<
String
>
getDeviceRemarkList
(){
return
this
.
deviceRemarkList
;
return
this
.
deviceRemarkList
;
}
}
/**
/**
* 设置 备注
* 设置 备注
* @param deviceRemarkList
* @param deviceRemarkList
*/
*/
public
void
setDeviceRemarkList
(
List
<
String
>
deviceRemarkList
){
public
void
setDeviceRemarkList
(
List
<
String
>
deviceRemarkList
){
this
.
deviceRemarkList
=
deviceRemarkList
;
this
.
deviceRemarkList
=
deviceRemarkList
;
}
}
/**
/**
* 获取 备注
* 获取 备注
* @return deviceRemarkNotList
* @return deviceRemarkNotList
*/
*/
public
List
<
String
>
getDeviceRemarkNotList
(){
public
List
<
String
>
getDeviceRemarkNotList
(){
return
this
.
deviceRemarkNotList
;
return
this
.
deviceRemarkNotList
;
}
}
/**
/**
* 设置 备注
* 设置 备注
* @param deviceRemarkNotList
* @param deviceRemarkNotList
*/
*/
public
void
setDeviceRemarkNotList
(
List
<
String
>
deviceRemarkNotList
){
public
void
setDeviceRemarkNotList
(
List
<
String
>
deviceRemarkNotList
){
this
.
deviceRemarkNotList
=
deviceRemarkNotList
;
this
.
deviceRemarkNotList
=
deviceRemarkNotList
;
}
}
/**
/**
* 获取 开始 设备来源(0.旧设备,1.新设备)
* 获取 开始 设备来源(0.旧设备,1.新设备)
* @return sourceStart
* @return sourceStart
*/
*/
public
Integer
getSourceStart
(){
public
Integer
getSourceStart
(){
return
this
.
sourceStart
;
return
this
.
sourceStart
;
}
}
/**
/**
* 设置 开始 设备来源(0.旧设备,1.新设备)
* 设置 开始 设备来源(0.旧设备,1.新设备)
* @param sourceStart
* @param sourceStart
*/
*/
public
void
setSourceStart
(
Integer
sourceStart
){
public
void
setSourceStart
(
Integer
sourceStart
){
this
.
sourceStart
=
sourceStart
;
this
.
sourceStart
=
sourceStart
;
}
}
/**
/**
* 获取 结束 设备来源(0.旧设备,1.新设备)
* 获取 结束 设备来源(0.旧设备,1.新设备)
* @return $sourceEnd
* @return $sourceEnd
*/
*/
public
Integer
getSourceEnd
(){
public
Integer
getSourceEnd
(){
return
this
.
sourceEnd
;
return
this
.
sourceEnd
;
}
}
/**
/**
* 设置 结束 设备来源(0.旧设备,1.新设备)
* 设置 结束 设备来源(0.旧设备,1.新设备)
* @param sourceEnd
* @param sourceEnd
*/
*/
public
void
setSourceEnd
(
Integer
sourceEnd
){
public
void
setSourceEnd
(
Integer
sourceEnd
){
this
.
sourceEnd
=
sourceEnd
;
this
.
sourceEnd
=
sourceEnd
;
}
}
/**
/**
* 获取 增加 设备来源(0.旧设备,1.新设备)
* 获取 增加 设备来源(0.旧设备,1.新设备)
* @return sourceIncrement
* @return sourceIncrement
*/
*/
public
Integer
getSourceIncrement
(){
public
Integer
getSourceIncrement
(){
return
this
.
sourceIncrement
;
return
this
.
sourceIncrement
;
}
}
/**
/**
* 设置 增加 设备来源(0.旧设备,1.新设备)
* 设置 增加 设备来源(0.旧设备,1.新设备)
* @param sourceIncrement
* @param sourceIncrement
*/
*/
public
void
setSourceIncrement
(
Integer
sourceIncrement
){
public
void
setSourceIncrement
(
Integer
sourceIncrement
){
this
.
sourceIncrement
=
sourceIncrement
;
this
.
sourceIncrement
=
sourceIncrement
;
}
}
/**
/**
* 获取 设备来源(0.旧设备,1.新设备)
* 获取 设备来源(0.旧设备,1.新设备)
* @return sourceList
* @return sourceList
*/
*/
public
List
<
Integer
>
getSourceList
(){
public
List
<
Integer
>
getSourceList
(){
return
this
.
sourceList
;
return
this
.
sourceList
;
}
}
/**
/**
* 设置 设备来源(0.旧设备,1.新设备)
* 设置 设备来源(0.旧设备,1.新设备)
* @param sourceList
* @param sourceList
*/
*/
public
void
setSourceList
(
List
<
Integer
>
sourceList
){
public
void
setSourceList
(
List
<
Integer
>
sourceList
){
this
.
sourceList
=
sourceList
;
this
.
sourceList
=
sourceList
;
}
}
/**
/**
* 获取 设备来源(0.旧设备,1.新设备)
* 获取 设备来源(0.旧设备,1.新设备)
* @return sourceNotList
* @return sourceNotList
*/
*/
public
List
<
Integer
>
getSourceNotList
(){
public
List
<
Integer
>
getSourceNotList
(){
return
this
.
sourceNotList
;
return
this
.
sourceNotList
;
}
}
/**
/**
* 设置 设备来源(0.旧设备,1.新设备)
* 设置 设备来源(0.旧设备,1.新设备)
* @param sourceNotList
* @param sourceNotList
*/
*/
public
void
setSourceNotList
(
List
<
Integer
>
sourceNotList
){
public
void
setSourceNotList
(
List
<
Integer
>
sourceNotList
){
this
.
sourceNotList
=
sourceNotList
;
this
.
sourceNotList
=
sourceNotList
;
}
}
/**
/**
* 获取 开始 创建用户
* 获取 开始 创建用户
* @return createUserIdStart
* @return createUserIdStart
*/
*/
public
Long
getCreateUserIdStart
(){
public
Long
getCreateUserIdStart
(){
return
this
.
createUserIdStart
;
return
this
.
createUserIdStart
;
}
}
/**
/**
* 设置 开始 创建用户
* 设置 开始 创建用户
* @param createUserIdStart
* @param createUserIdStart
*/
*/
public
void
setCreateUserIdStart
(
Long
createUserIdStart
){
public
void
setCreateUserIdStart
(
Long
createUserIdStart
){
this
.
createUserIdStart
=
createUserIdStart
;
this
.
createUserIdStart
=
createUserIdStart
;
}
}
/**
/**
* 获取 结束 创建用户
* 获取 结束 创建用户
* @return $createUserIdEnd
* @return $createUserIdEnd
*/
*/
public
Long
getCreateUserIdEnd
(){
public
Long
getCreateUserIdEnd
(){
return
this
.
createUserIdEnd
;
return
this
.
createUserIdEnd
;
}
}
/**
/**
* 设置 结束 创建用户
* 设置 结束 创建用户
* @param createUserIdEnd
* @param createUserIdEnd
*/
*/
public
void
setCreateUserIdEnd
(
Long
createUserIdEnd
){
public
void
setCreateUserIdEnd
(
Long
createUserIdEnd
){
this
.
createUserIdEnd
=
createUserIdEnd
;
this
.
createUserIdEnd
=
createUserIdEnd
;
}
}
/**
/**
* 获取 增加 创建用户
* 获取 增加 创建用户
* @return createUserIdIncrement
* @return createUserIdIncrement
*/
*/
public
Long
getCreateUserIdIncrement
(){
public
Long
getCreateUserIdIncrement
(){
return
this
.
createUserIdIncrement
;
return
this
.
createUserIdIncrement
;
}
}
/**
/**
* 设置 增加 创建用户
* 设置 增加 创建用户
* @param createUserIdIncrement
* @param createUserIdIncrement
*/
*/
public
void
setCreateUserIdIncrement
(
Long
createUserIdIncrement
){
public
void
setCreateUserIdIncrement
(
Long
createUserIdIncrement
){
this
.
createUserIdIncrement
=
createUserIdIncrement
;
this
.
createUserIdIncrement
=
createUserIdIncrement
;
}
}
/**
/**
* 获取 创建用户
* 获取 创建用户
* @return createUserIdList
* @return createUserIdList
*/
*/
public
List
<
Long
>
getCreateUserIdList
(){
public
List
<
Long
>
getCreateUserIdList
(){
return
this
.
createUserIdList
;
return
this
.
createUserIdList
;
}
}
/**
/**
* 设置 创建用户
* 设置 创建用户
* @param createUserIdList
* @param createUserIdList
*/
*/
public
void
setCreateUserIdList
(
List
<
Long
>
createUserIdList
){
public
void
setCreateUserIdList
(
List
<
Long
>
createUserIdList
){
this
.
createUserIdList
=
createUserIdList
;
this
.
createUserIdList
=
createUserIdList
;
}
}
/**
/**
* 获取 创建用户
* 获取 创建用户
* @return createUserIdNotList
* @return createUserIdNotList
*/
*/
public
List
<
Long
>
getCreateUserIdNotList
(){
public
List
<
Long
>
getCreateUserIdNotList
(){
return
this
.
createUserIdNotList
;
return
this
.
createUserIdNotList
;
}
}
/**
/**
* 设置 创建用户
* 设置 创建用户
* @param createUserIdNotList
* @param createUserIdNotList
*/
*/
public
void
setCreateUserIdNotList
(
List
<
Long
>
createUserIdNotList
){
public
void
setCreateUserIdNotList
(
List
<
Long
>
createUserIdNotList
){
this
.
createUserIdNotList
=
createUserIdNotList
;
this
.
createUserIdNotList
=
createUserIdNotList
;
}
}
/**
/**
* 获取 开始 创建时间
* 获取 开始 创建时间
* @return createTimeStart
* @return createTimeStart
*/
*/
public
String
getCreateTimeStart
(){
public
String
getCreateTimeStart
(){
return
this
.
createTimeStart
;
return
this
.
createTimeStart
;
}
}
/**
/**
* 设置 开始 创建时间
* 设置 开始 创建时间
* @param createTimeStart
* @param createTimeStart
*/
*/
public
void
setCreateTimeStart
(
String
createTimeStart
){
public
void
setCreateTimeStart
(
String
createTimeStart
){
this
.
createTimeStart
=
createTimeStart
;
this
.
createTimeStart
=
createTimeStart
;
}
}
/**
/**
* 获取 结束 创建时间
* 获取 结束 创建时间
* @return createTimeEnd
* @return createTimeEnd
*/
*/
public
String
getCreateTimeEnd
(){
public
String
getCreateTimeEnd
(){
return
this
.
createTimeEnd
;
return
this
.
createTimeEnd
;
}
}
/**
/**
* 设置 结束 创建时间
* 设置 结束 创建时间
* @param createTimeEnd
* @param createTimeEnd
*/
*/
public
void
setCreateTimeEnd
(
String
createTimeEnd
){
public
void
setCreateTimeEnd
(
String
createTimeEnd
){
this
.
createTimeEnd
=
createTimeEnd
;
this
.
createTimeEnd
=
createTimeEnd
;
}
}
/**
/**
* 获取 开始 更新用户
* 获取 开始 更新用户
* @return updateUserIdStart
* @return updateUserIdStart
*/
*/
public
Long
getUpdateUserIdStart
(){
public
Long
getUpdateUserIdStart
(){
return
this
.
updateUserIdStart
;
return
this
.
updateUserIdStart
;
}
}
/**
/**
* 设置 开始 更新用户
* 设置 开始 更新用户
* @param updateUserIdStart
* @param updateUserIdStart
*/
*/
public
void
setUpdateUserIdStart
(
Long
updateUserIdStart
){
public
void
setUpdateUserIdStart
(
Long
updateUserIdStart
){
this
.
updateUserIdStart
=
updateUserIdStart
;
this
.
updateUserIdStart
=
updateUserIdStart
;
}
}
/**
/**
* 获取 结束 更新用户
* 获取 结束 更新用户
* @return $updateUserIdEnd
* @return $updateUserIdEnd
*/
*/
public
Long
getUpdateUserIdEnd
(){
public
Long
getUpdateUserIdEnd
(){
return
this
.
updateUserIdEnd
;
return
this
.
updateUserIdEnd
;
}
}
/**
/**
* 设置 结束 更新用户
* 设置 结束 更新用户
* @param updateUserIdEnd
* @param updateUserIdEnd
*/
*/
public
void
setUpdateUserIdEnd
(
Long
updateUserIdEnd
){
public
void
setUpdateUserIdEnd
(
Long
updateUserIdEnd
){
this
.
updateUserIdEnd
=
updateUserIdEnd
;
this
.
updateUserIdEnd
=
updateUserIdEnd
;
}
}
/**
/**
* 获取 增加 更新用户
* 获取 增加 更新用户
* @return updateUserIdIncrement
* @return updateUserIdIncrement
*/
*/
public
Long
getUpdateUserIdIncrement
(){
public
Long
getUpdateUserIdIncrement
(){
return
this
.
updateUserIdIncrement
;
return
this
.
updateUserIdIncrement
;
}
}
/**
/**
* 设置 增加 更新用户
* 设置 增加 更新用户
* @param updateUserIdIncrement
* @param updateUserIdIncrement
*/
*/
public
void
setUpdateUserIdIncrement
(
Long
updateUserIdIncrement
){
public
void
setUpdateUserIdIncrement
(
Long
updateUserIdIncrement
){
this
.
updateUserIdIncrement
=
updateUserIdIncrement
;
this
.
updateUserIdIncrement
=
updateUserIdIncrement
;
}
}
/**
/**
* 获取 更新用户
* 获取 更新用户
* @return updateUserIdList
* @return updateUserIdList
*/
*/
public
List
<
Long
>
getUpdateUserIdList
(){
public
List
<
Long
>
getUpdateUserIdList
(){
return
this
.
updateUserIdList
;
return
this
.
updateUserIdList
;
}
}
/**
/**
* 设置 更新用户
* 设置 更新用户
* @param updateUserIdList
* @param updateUserIdList
*/
*/
public
void
setUpdateUserIdList
(
List
<
Long
>
updateUserIdList
){
public
void
setUpdateUserIdList
(
List
<
Long
>
updateUserIdList
){
this
.
updateUserIdList
=
updateUserIdList
;
this
.
updateUserIdList
=
updateUserIdList
;
}
}
/**
/**
* 获取 更新用户
* 获取 更新用户
* @return updateUserIdNotList
* @return updateUserIdNotList
*/
*/
public
List
<
Long
>
getUpdateUserIdNotList
(){
public
List
<
Long
>
getUpdateUserIdNotList
(){
return
this
.
updateUserIdNotList
;
return
this
.
updateUserIdNotList
;
}
}
/**
/**
* 设置 更新用户
* 设置 更新用户
* @param updateUserIdNotList
* @param updateUserIdNotList
*/
*/
public
void
setUpdateUserIdNotList
(
List
<
Long
>
updateUserIdNotList
){
public
void
setUpdateUserIdNotList
(
List
<
Long
>
updateUserIdNotList
){
this
.
updateUserIdNotList
=
updateUserIdNotList
;
this
.
updateUserIdNotList
=
updateUserIdNotList
;
}
}
/**
/**
* 获取 开始 更新时间
* 获取 开始 更新时间
* @return updateTimeStart
* @return updateTimeStart
*/
*/
public
String
getUpdateTimeStart
(){
public
String
getUpdateTimeStart
(){
return
this
.
updateTimeStart
;
return
this
.
updateTimeStart
;
}
}
/**
/**
* 设置 开始 更新时间
* 设置 开始 更新时间
* @param updateTimeStart
* @param updateTimeStart
*/
*/
public
void
setUpdateTimeStart
(
String
updateTimeStart
){
public
void
setUpdateTimeStart
(
String
updateTimeStart
){
this
.
updateTimeStart
=
updateTimeStart
;
this
.
updateTimeStart
=
updateTimeStart
;
}
}
/**
/**
* 获取 结束 更新时间
* 获取 结束 更新时间
* @return updateTimeEnd
* @return updateTimeEnd
*/
*/
public
String
getUpdateTimeEnd
(){
public
String
getUpdateTimeEnd
(){
return
this
.
updateTimeEnd
;
return
this
.
updateTimeEnd
;
}
}
/**
/**
* 设置 结束 更新时间
* 设置 结束 更新时间
* @param updateTimeEnd
* @param updateTimeEnd
*/
*/
public
void
setUpdateTimeEnd
(
String
updateTimeEnd
){
public
void
setUpdateTimeEnd
(
String
updateTimeEnd
){
this
.
updateTimeEnd
=
updateTimeEnd
;
this
.
updateTimeEnd
=
updateTimeEnd
;
}
}
/**
/**
* 设置 主键ID,主键,自增长
* 获取 开始 设备生产厂商ID
* @param id
* @return deviceFirmIdStart
*/
*/
public
Long
getDeviceFirmIdStart
(){
return
this
.
deviceFirmIdStart
;
}
/**
* 设置 开始 设备生产厂商ID
* @param deviceFirmIdStart
*/
public
void
setDeviceFirmIdStart
(
Long
deviceFirmIdStart
){
this
.
deviceFirmIdStart
=
deviceFirmIdStart
;
}
/**
* 获取 结束 设备生产厂商ID
* @return $deviceFirmIdEnd
*/
public
Long
getDeviceFirmIdEnd
(){
return
this
.
deviceFirmIdEnd
;
}
/**
* 设置 结束 设备生产厂商ID
* @param deviceFirmIdEnd
*/
public
void
setDeviceFirmIdEnd
(
Long
deviceFirmIdEnd
){
this
.
deviceFirmIdEnd
=
deviceFirmIdEnd
;
}
/**
* 获取 增加 设备生产厂商ID
* @return deviceFirmIdIncrement
*/
public
Long
getDeviceFirmIdIncrement
(){
return
this
.
deviceFirmIdIncrement
;
}
/**
* 设置 增加 设备生产厂商ID
* @param deviceFirmIdIncrement
*/
public
void
setDeviceFirmIdIncrement
(
Long
deviceFirmIdIncrement
){
this
.
deviceFirmIdIncrement
=
deviceFirmIdIncrement
;
}
/**
* 获取 设备生产厂商ID
* @return deviceFirmIdList
*/
public
List
<
Long
>
getDeviceFirmIdList
(){
return
this
.
deviceFirmIdList
;
}
/**
* 设置 设备生产厂商ID
* @param deviceFirmIdList
*/
public
void
setDeviceFirmIdList
(
List
<
Long
>
deviceFirmIdList
){
this
.
deviceFirmIdList
=
deviceFirmIdList
;
}
/**
* 获取 设备生产厂商ID
* @return deviceFirmIdNotList
*/
public
List
<
Long
>
getDeviceFirmIdNotList
(){
return
this
.
deviceFirmIdNotList
;
}
/**
* 设置 设备生产厂商ID
* @param deviceFirmIdNotList
*/
public
void
setDeviceFirmIdNotList
(
List
<
Long
>
deviceFirmIdNotList
){
this
.
deviceFirmIdNotList
=
deviceFirmIdNotList
;
}
/**
* 获取 设备生产厂商名称
* @return deviceFirmnameList
*/
public
List
<
String
>
getDeviceFirmnameList
(){
return
this
.
deviceFirmnameList
;
}
/**
* 设置 设备生产厂商名称
* @param deviceFirmnameList
*/
public
void
setDeviceFirmnameList
(
List
<
String
>
deviceFirmnameList
){
this
.
deviceFirmnameList
=
deviceFirmnameList
;
}
/**
* 获取 设备生产厂商名称
* @return deviceFirmnameNotList
*/
public
List
<
String
>
getDeviceFirmnameNotList
(){
return
this
.
deviceFirmnameNotList
;
}
/**
* 设置 设备生产厂商名称
* @param deviceFirmnameNotList
*/
public
void
setDeviceFirmnameNotList
(
List
<
String
>
deviceFirmnameNotList
){
this
.
deviceFirmnameNotList
=
deviceFirmnameNotList
;
}
/**
* 获取 设备访问ip
* @return ipList
*/
public
List
<
String
>
getIpList
(){
return
this
.
ipList
;
}
/**
* 设置 设备访问ip
* @param ipList
*/
public
void
setIpList
(
List
<
String
>
ipList
){
this
.
ipList
=
ipList
;
}
/**
* 获取 设备访问ip
* @return ipNotList
*/
public
List
<
String
>
getIpNotList
(){
return
this
.
ipNotList
;
}
/**
* 设置 设备访问ip
* @param ipNotList
*/
public
void
setIpNotList
(
List
<
String
>
ipNotList
){
this
.
ipNotList
=
ipNotList
;
}
/**
* 获取 端口
* @return portList
*/
public
List
<
String
>
getPortList
(){
return
this
.
portList
;
}
/**
* 设置 端口
* @param portList
*/
public
void
setPortList
(
List
<
String
>
portList
){
this
.
portList
=
portList
;
}
/**
* 获取 端口
* @return portNotList
*/
public
List
<
String
>
getPortNotList
(){
return
this
.
portNotList
;
}
/**
* 设置 端口
* @param portNotList
*/
public
void
setPortNotList
(
List
<
String
>
portNotList
){
this
.
portNotList
=
portNotList
;
}
/**
* 获取 开始 启用状态 (0.停止,1.启用)
* @return enabledStart
*/
public
Integer
getEnabledStart
(){
return
this
.
enabledStart
;
}
/**
* 设置 开始 启用状态 (0.停止,1.启用)
* @param enabledStart
*/
public
void
setEnabledStart
(
Integer
enabledStart
){
this
.
enabledStart
=
enabledStart
;
}
/**
* 获取 结束 启用状态 (0.停止,1.启用)
* @return $enabledEnd
*/
public
Integer
getEnabledEnd
(){
return
this
.
enabledEnd
;
}
/**
* 设置 结束 启用状态 (0.停止,1.启用)
* @param enabledEnd
*/
public
void
setEnabledEnd
(
Integer
enabledEnd
){
this
.
enabledEnd
=
enabledEnd
;
}
/**
* 获取 增加 启用状态 (0.停止,1.启用)
* @return enabledIncrement
*/
public
Integer
getEnabledIncrement
(){
return
this
.
enabledIncrement
;
}
/**
* 设置 增加 启用状态 (0.停止,1.启用)
* @param enabledIncrement
*/
public
void
setEnabledIncrement
(
Integer
enabledIncrement
){
this
.
enabledIncrement
=
enabledIncrement
;
}
/**
* 获取 启用状态 (0.停止,1.启用)
* @return enabledList
*/
public
List
<
Integer
>
getEnabledList
(){
return
this
.
enabledList
;
}
/**
* 设置 启用状态 (0.停止,1.启用)
* @param enabledList
*/
public
void
setEnabledList
(
List
<
Integer
>
enabledList
){
this
.
enabledList
=
enabledList
;
}
/**
* 获取 启用状态 (0.停止,1.启用)
* @return enabledNotList
*/
public
List
<
Integer
>
getEnabledNotList
(){
return
this
.
enabledNotList
;
}
/**
* 设置 启用状态 (0.停止,1.启用)
* @param enabledNotList
*/
public
void
setEnabledNotList
(
List
<
Integer
>
enabledNotList
){
this
.
enabledNotList
=
enabledNotList
;
}
/**
* 获取 开始 最近上线时间
* @return onlineTimeStart
*/
public
String
getOnlineTimeStart
(){
return
this
.
onlineTimeStart
;
}
/**
* 设置 开始 最近上线时间
* @param onlineTimeStart
*/
public
void
setOnlineTimeStart
(
String
onlineTimeStart
){
this
.
onlineTimeStart
=
onlineTimeStart
;
}
/**
* 获取 结束 最近上线时间
* @return onlineTimeEnd
*/
public
String
getOnlineTimeEnd
(){
return
this
.
onlineTimeEnd
;
}
/**
* 设置 结束 最近上线时间
* @param onlineTimeEnd
*/
public
void
setOnlineTimeEnd
(
String
onlineTimeEnd
){
this
.
onlineTimeEnd
=
onlineTimeEnd
;
}
/**
* 获取 开始 最近离线时间
* @return offlineTimeStart
*/
public
String
getOfflineTimeStart
(){
return
this
.
offlineTimeStart
;
}
/**
* 设置 开始 最近离线时间
* @param offlineTimeStart
*/
public
void
setOfflineTimeStart
(
String
offlineTimeStart
){
this
.
offlineTimeStart
=
offlineTimeStart
;
}
/**
* 获取 结束 最近离线时间
* @return offlineTimeEnd
*/
public
String
getOfflineTimeEnd
(){
return
this
.
offlineTimeEnd
;
}
/**
* 设置 结束 最近离线时间
* @param offlineTimeEnd
*/
public
void
setOfflineTimeEnd
(
String
offlineTimeEnd
){
this
.
offlineTimeEnd
=
offlineTimeEnd
;
}
/**
* 设置 主键ID,主键,自增长
* @param id
*/
public
DeviceQuery
id
(
Long
id
){
public
DeviceQuery
id
(
Long
id
){
setId
(
id
);
setId
(
id
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 主键ID,主键,自增长
* 设置 开始 主键ID,主键,自增长
* @param idStart
* @param idStart
*/
*/
public
DeviceQuery
idStart
(
Long
idStart
){
public
DeviceQuery
idStart
(
Long
idStart
){
this
.
idStart
=
idStart
;
this
.
idStart
=
idStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 主键ID,主键,自增长
* 设置 结束 主键ID,主键,自增长
* @param idEnd
* @param idEnd
*/
*/
public
DeviceQuery
idEnd
(
Long
idEnd
){
public
DeviceQuery
idEnd
(
Long
idEnd
){
this
.
idEnd
=
idEnd
;
this
.
idEnd
=
idEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 主键ID,主键,自增长
* 设置 增加 主键ID,主键,自增长
* @param idIncrement
* @param idIncrement
*/
*/
public
DeviceQuery
idIncrement
(
Long
idIncrement
){
public
DeviceQuery
idIncrement
(
Long
idIncrement
){
this
.
idIncrement
=
idIncrement
;
this
.
idIncrement
=
idIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 主键ID,主键,自增长
* 设置 主键ID,主键,自增长
* @param idList
* @param idList
*/
*/
public
DeviceQuery
idList
(
List
<
Long
>
idList
){
public
DeviceQuery
idList
(
List
<
Long
>
idList
){
this
.
idList
=
idList
;
this
.
idList
=
idList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 主键ID,主键,自增长
* 设置 主键ID,主键,自增长
* @param idNotList
* @param idNotList
*/
*/
public
DeviceQuery
idNotList
(
List
<
Long
>
idNotList
){
public
DeviceQuery
idNotList
(
List
<
Long
>
idNotList
){
this
.
idNotList
=
idNotList
;
this
.
idNotList
=
idNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备id
* 设置 设备id
* @param deviceId
* @param deviceId
*/
*/
public
DeviceQuery
deviceId
(
Long
deviceId
){
public
DeviceQuery
deviceId
(
Long
deviceId
){
setDeviceId
(
deviceId
);
setDeviceId
(
deviceId
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 设备id
* 设置 开始 设备id
* @param deviceIdStart
* @param deviceIdStart
*/
*/
public
DeviceQuery
deviceIdStart
(
Long
deviceIdStart
){
public
DeviceQuery
deviceIdStart
(
Long
deviceIdStart
){
this
.
deviceIdStart
=
deviceIdStart
;
this
.
deviceIdStart
=
deviceIdStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 设备id
* 设置 结束 设备id
* @param deviceIdEnd
* @param deviceIdEnd
*/
*/
public
DeviceQuery
deviceIdEnd
(
Long
deviceIdEnd
){
public
DeviceQuery
deviceIdEnd
(
Long
deviceIdEnd
){
this
.
deviceIdEnd
=
deviceIdEnd
;
this
.
deviceIdEnd
=
deviceIdEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 设备id
* 设置 增加 设备id
* @param deviceIdIncrement
* @param deviceIdIncrement
*/
*/
public
DeviceQuery
deviceIdIncrement
(
Long
deviceIdIncrement
){
public
DeviceQuery
deviceIdIncrement
(
Long
deviceIdIncrement
){
this
.
deviceIdIncrement
=
deviceIdIncrement
;
this
.
deviceIdIncrement
=
deviceIdIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备id
* 设置 设备id
* @param deviceIdList
* @param deviceIdList
*/
*/
public
DeviceQuery
deviceIdList
(
List
<
Long
>
deviceIdList
){
public
DeviceQuery
deviceIdList
(
List
<
Long
>
deviceIdList
){
this
.
deviceIdList
=
deviceIdList
;
this
.
deviceIdList
=
deviceIdList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备id
* 设置 设备id
* @param deviceIdNotList
* @param deviceIdNotList
*/
*/
public
DeviceQuery
deviceIdNotList
(
List
<
Long
>
deviceIdNotList
){
public
DeviceQuery
deviceIdNotList
(
List
<
Long
>
deviceIdNotList
){
this
.
deviceIdNotList
=
deviceIdNotList
;
this
.
deviceIdNotList
=
deviceIdNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备名称
* 设置 设备名称
* @param deviceName
* @param deviceName
*/
*/
public
DeviceQuery
deviceName
(
String
deviceName
){
public
DeviceQuery
deviceName
(
String
deviceName
){
setDeviceName
(
deviceName
);
setDeviceName
(
deviceName
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备名称
* 设置 设备名称
* @param deviceNameList
* @param deviceNameList
*/
*/
public
DeviceQuery
deviceNameList
(
List
<
String
>
deviceNameList
){
public
DeviceQuery
deviceNameList
(
List
<
String
>
deviceNameList
){
this
.
deviceNameList
=
deviceNameList
;
this
.
deviceNameList
=
deviceNameList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备编码
* 设置 设备编码
* @param deviceCode
* @param deviceCode
*/
*/
public
DeviceQuery
deviceCode
(
String
deviceCode
){
public
DeviceQuery
deviceCode
(
String
deviceCode
){
setDeviceCode
(
deviceCode
);
setDeviceCode
(
deviceCode
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备编码
* 设置 设备编码
* @param deviceCodeList
* @param deviceCodeList
*/
*/
public
DeviceQuery
deviceCodeList
(
List
<
String
>
deviceCodeList
){
public
DeviceQuery
deviceCodeList
(
List
<
String
>
deviceCodeList
){
this
.
deviceCodeList
=
deviceCodeList
;
this
.
deviceCodeList
=
deviceCodeList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备的MAC地址
* 设置 设备的MAC地址
* @param deviceMac
* @param deviceMac
*/
*/
public
DeviceQuery
deviceMac
(
String
deviceMac
){
public
DeviceQuery
deviceMac
(
String
deviceMac
){
setDeviceMac
(
deviceMac
);
setDeviceMac
(
deviceMac
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备的MAC地址
* 设置 设备的MAC地址
* @param deviceMacList
* @param deviceMacList
*/
*/
public
DeviceQuery
deviceMacList
(
List
<
String
>
deviceMacList
){
public
DeviceQuery
deviceMacList
(
List
<
String
>
deviceMacList
){
this
.
deviceMacList
=
deviceMacList
;
this
.
deviceMacList
=
deviceMacList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
* @param siteId
* @param siteId
*/
*/
public
DeviceQuery
siteId
(
Long
siteId
){
public
DeviceQuery
siteId
(
Long
siteId
){
setSiteId
(
siteId
);
setSiteId
(
siteId
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 站点Id
* 设置 开始 站点Id
* @param siteIdStart
* @param siteIdStart
*/
*/
public
DeviceQuery
siteIdStart
(
Long
siteIdStart
){
public
DeviceQuery
siteIdStart
(
Long
siteIdStart
){
this
.
siteIdStart
=
siteIdStart
;
this
.
siteIdStart
=
siteIdStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 站点Id
* 设置 结束 站点Id
* @param siteIdEnd
* @param siteIdEnd
*/
*/
public
DeviceQuery
siteIdEnd
(
Long
siteIdEnd
){
public
DeviceQuery
siteIdEnd
(
Long
siteIdEnd
){
this
.
siteIdEnd
=
siteIdEnd
;
this
.
siteIdEnd
=
siteIdEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 站点Id
* 设置 增加 站点Id
* @param siteIdIncrement
* @param siteIdIncrement
*/
*/
public
DeviceQuery
siteIdIncrement
(
Long
siteIdIncrement
){
public
DeviceQuery
siteIdIncrement
(
Long
siteIdIncrement
){
this
.
siteIdIncrement
=
siteIdIncrement
;
this
.
siteIdIncrement
=
siteIdIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
* @param siteIdList
* @param siteIdList
*/
*/
public
DeviceQuery
siteIdList
(
List
<
Long
>
siteIdList
){
public
DeviceQuery
siteIdList
(
List
<
Long
>
siteIdList
){
this
.
siteIdList
=
siteIdList
;
this
.
siteIdList
=
siteIdList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点Id
* 设置 站点Id
* @param siteIdNotList
* @param siteIdNotList
*/
*/
public
DeviceQuery
siteIdNotList
(
List
<
Long
>
siteIdNotList
){
public
DeviceQuery
siteIdNotList
(
List
<
Long
>
siteIdNotList
){
this
.
siteIdNotList
=
siteIdNotList
;
this
.
siteIdNotList
=
siteIdNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点编号,来源基础服务平台
* 设置 站点编号,来源基础服务平台
* @param siteCode
* @param siteCode
*/
*/
public
DeviceQuery
siteCode
(
String
siteCode
){
public
DeviceQuery
siteCode
(
String
siteCode
){
setSiteCode
(
siteCode
);
setSiteCode
(
siteCode
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点编号,来源基础服务平台
* 设置 站点编号,来源基础服务平台
* @param siteCodeList
* @param siteCodeList
*/
*/
public
DeviceQuery
siteCodeList
(
List
<
String
>
siteCodeList
){
public
DeviceQuery
siteCodeList
(
List
<
String
>
siteCodeList
){
this
.
siteCodeList
=
siteCodeList
;
this
.
siteCodeList
=
siteCodeList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点名称
* 设置 站点名称
* @param siteName
* @param siteName
*/
*/
public
DeviceQuery
siteName
(
String
siteName
){
public
DeviceQuery
siteName
(
String
siteName
){
setSiteName
(
siteName
);
setSiteName
(
siteName
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 站点名称
* 设置 站点名称
* @param siteNameList
* @param siteNameList
*/
*/
public
DeviceQuery
siteNameList
(
List
<
String
>
siteNameList
){
public
DeviceQuery
siteNameList
(
List
<
String
>
siteNameList
){
this
.
siteNameList
=
siteNameList
;
this
.
siteNameList
=
siteNameList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 产品编码
* 设置 产品编码
* @param productCode
* @param productCode
*/
*/
public
DeviceQuery
productCode
(
String
productCode
){
public
DeviceQuery
productCode
(
String
productCode
){
setProductCode
(
productCode
);
setProductCode
(
productCode
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 产品编码
* 设置 产品编码
* @param productCodeList
* @param productCodeList
*/
*/
public
DeviceQuery
productCodeList
(
List
<
String
>
productCodeList
){
public
DeviceQuery
productCodeList
(
List
<
String
>
productCodeList
){
this
.
productCodeList
=
productCodeList
;
this
.
productCodeList
=
productCodeList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 产品名称
* 设置 产品名称
* @param productName
* @param productName
*/
*/
public
DeviceQuery
productName
(
String
productName
){
public
DeviceQuery
productName
(
String
productName
){
setProductName
(
productName
);
setProductName
(
productName
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 产品名称
* 设置 产品名称
* @param productNameList
* @param productNameList
*/
*/
public
DeviceQuery
productNameList
(
List
<
String
>
productNameList
){
public
DeviceQuery
productNameList
(
List
<
String
>
productNameList
){
this
.
productNameList
=
productNameList
;
this
.
productNameList
=
productNameList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrc
* @param deviceSrc
*/
*/
public
DeviceQuery
deviceSrc
(
Integer
deviceSrc
){
public
DeviceQuery
deviceSrc
(
Integer
deviceSrc
){
setDeviceSrc
(
deviceSrc
);
setDeviceSrc
(
deviceSrc
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 开始 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcStart
* @param deviceSrcStart
*/
*/
public
DeviceQuery
deviceSrcStart
(
Integer
deviceSrcStart
){
public
DeviceQuery
deviceSrcStart
(
Integer
deviceSrcStart
){
this
.
deviceSrcStart
=
deviceSrcStart
;
this
.
deviceSrcStart
=
deviceSrcStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 结束 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcEnd
* @param deviceSrcEnd
*/
*/
public
DeviceQuery
deviceSrcEnd
(
Integer
deviceSrcEnd
){
public
DeviceQuery
deviceSrcEnd
(
Integer
deviceSrcEnd
){
this
.
deviceSrcEnd
=
deviceSrcEnd
;
this
.
deviceSrcEnd
=
deviceSrcEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 增加 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcIncrement
* @param deviceSrcIncrement
*/
*/
public
DeviceQuery
deviceSrcIncrement
(
Integer
deviceSrcIncrement
){
public
DeviceQuery
deviceSrcIncrement
(
Integer
deviceSrcIncrement
){
this
.
deviceSrcIncrement
=
deviceSrcIncrement
;
this
.
deviceSrcIncrement
=
deviceSrcIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcList
* @param deviceSrcList
*/
*/
public
DeviceQuery
deviceSrcList
(
List
<
Integer
>
deviceSrcList
){
public
DeviceQuery
deviceSrcList
(
List
<
Integer
>
deviceSrcList
){
this
.
deviceSrcList
=
deviceSrcList
;
this
.
deviceSrcList
=
deviceSrcList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* 设置 设备来源(0.子设备,1.网关设备,2.直连设备)
* @param deviceSrcNotList
* @param deviceSrcNotList
*/
*/
public
DeviceQuery
deviceSrcNotList
(
List
<
Integer
>
deviceSrcNotList
){
public
DeviceQuery
deviceSrcNotList
(
List
<
Integer
>
deviceSrcNotList
){
this
.
deviceSrcNotList
=
deviceSrcNotList
;
this
.
deviceSrcNotList
=
deviceSrcNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 经度
* 设置 经度
* @param lon
* @param lon
*/
*/
public
DeviceQuery
lon
(
String
lon
){
public
DeviceQuery
lon
(
String
lon
){
setLon
(
lon
);
setLon
(
lon
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 经度
* 设置 经度
* @param lonList
* @param lonList
*/
*/
public
DeviceQuery
lonList
(
List
<
String
>
lonList
){
public
DeviceQuery
lonList
(
List
<
String
>
lonList
){
this
.
lonList
=
lonList
;
this
.
lonList
=
lonList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 纬度
* 设置 纬度
* @param lati
* @param lati
*/
*/
public
DeviceQuery
lati
(
String
lati
){
public
DeviceQuery
lati
(
String
lati
){
setLati
(
lati
);
setLati
(
lati
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 纬度
* 设置 纬度
* @param latiList
* @param latiList
*/
*/
public
DeviceQuery
latiList
(
List
<
String
>
latiList
){
public
DeviceQuery
latiList
(
List
<
String
>
latiList
){
this
.
latiList
=
latiList
;
this
.
latiList
=
latiList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 负责人
* 设置 负责人
* @param leadingOfficial
* @param leadingOfficial
*/
*/
public
DeviceQuery
leadingOfficial
(
String
leadingOfficial
){
public
DeviceQuery
leadingOfficial
(
String
leadingOfficial
){
setLeadingOfficial
(
leadingOfficial
);
setLeadingOfficial
(
leadingOfficial
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 负责人
* 设置 负责人
* @param leadingOfficialList
* @param leadingOfficialList
*/
*/
public
DeviceQuery
leadingOfficialList
(
List
<
String
>
leadingOfficialList
){
public
DeviceQuery
leadingOfficialList
(
List
<
String
>
leadingOfficialList
){
this
.
leadingOfficialList
=
leadingOfficialList
;
this
.
leadingOfficialList
=
leadingOfficialList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 联系电话
* 设置 联系电话
* @param leadingOfficialTelephone
* @param leadingOfficialTelephone
*/
*/
public
DeviceQuery
leadingOfficialTelephone
(
String
leadingOfficialTelephone
){
public
DeviceQuery
leadingOfficialTelephone
(
String
leadingOfficialTelephone
){
setLeadingOfficialTelephone
(
leadingOfficialTelephone
);
setLeadingOfficialTelephone
(
leadingOfficialTelephone
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 联系电话
* 设置 联系电话
* @param leadingOfficialTelephoneList
* @param leadingOfficialTelephoneList
*/
*/
public
DeviceQuery
leadingOfficialTelephoneList
(
List
<
String
>
leadingOfficialTelephoneList
){
public
DeviceQuery
leadingOfficialTelephoneList
(
List
<
String
>
leadingOfficialTelephoneList
){
this
.
leadingOfficialTelephoneList
=
leadingOfficialTelephoneList
;
this
.
leadingOfficialTelephoneList
=
leadingOfficialTelephoneList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatus
* @param deviceStatus
*/
*/
public
DeviceQuery
deviceStatus
(
Integer
deviceStatus
){
public
DeviceQuery
deviceStatus
(
Integer
deviceStatus
){
setDeviceStatus
(
deviceStatus
);
setDeviceStatus
(
deviceStatus
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 设备状态 (0.未激活,1.离线,2.在线)
* 设置 开始 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusStart
* @param deviceStatusStart
*/
*/
public
DeviceQuery
deviceStatusStart
(
Integer
deviceStatusStart
){
public
DeviceQuery
deviceStatusStart
(
Integer
deviceStatusStart
){
this
.
deviceStatusStart
=
deviceStatusStart
;
this
.
deviceStatusStart
=
deviceStatusStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 设备状态 (0.未激活,1.离线,2.在线)
* 设置 结束 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusEnd
* @param deviceStatusEnd
*/
*/
public
DeviceQuery
deviceStatusEnd
(
Integer
deviceStatusEnd
){
public
DeviceQuery
deviceStatusEnd
(
Integer
deviceStatusEnd
){
this
.
deviceStatusEnd
=
deviceStatusEnd
;
this
.
deviceStatusEnd
=
deviceStatusEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 设备状态 (0.未激活,1.离线,2.在线)
* 设置 增加 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusIncrement
* @param deviceStatusIncrement
*/
*/
public
DeviceQuery
deviceStatusIncrement
(
Integer
deviceStatusIncrement
){
public
DeviceQuery
deviceStatusIncrement
(
Integer
deviceStatusIncrement
){
this
.
deviceStatusIncrement
=
deviceStatusIncrement
;
this
.
deviceStatusIncrement
=
deviceStatusIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusList
* @param deviceStatusList
*/
*/
public
DeviceQuery
deviceStatusList
(
List
<
Integer
>
deviceStatusList
){
public
DeviceQuery
deviceStatusList
(
List
<
Integer
>
deviceStatusList
){
this
.
deviceStatusList
=
deviceStatusList
;
this
.
deviceStatusList
=
deviceStatusList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* 设置 设备状态 (0.未激活,1.离线,2.在线)
* @param deviceStatusNotList
* @param deviceStatusNotList
*/
*/
public
DeviceQuery
deviceStatusNotList
(
List
<
Integer
>
deviceStatusNotList
){
public
DeviceQuery
deviceStatusNotList
(
List
<
Integer
>
deviceStatusNotList
){
this
.
deviceStatusNotList
=
deviceStatusNotList
;
this
.
deviceStatusNotList
=
deviceStatusNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 备注
* 设置 备注
* @param deviceRemark
* @param deviceRemark
*/
*/
public
DeviceQuery
deviceRemark
(
String
deviceRemark
){
public
DeviceQuery
deviceRemark
(
String
deviceRemark
){
setDeviceRemark
(
deviceRemark
);
setDeviceRemark
(
deviceRemark
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 备注
* 设置 备注
* @param deviceRemarkList
* @param deviceRemarkList
*/
*/
public
DeviceQuery
deviceRemarkList
(
List
<
String
>
deviceRemarkList
){
public
DeviceQuery
deviceRemarkList
(
List
<
String
>
deviceRemarkList
){
this
.
deviceRemarkList
=
deviceRemarkList
;
this
.
deviceRemarkList
=
deviceRemarkList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.旧设备,1.新设备)
* 设置 设备来源(0.旧设备,1.新设备)
* @param source
* @param source
*/
*/
public
DeviceQuery
source
(
Integer
source
){
public
DeviceQuery
source
(
Integer
source
){
setSource
(
source
);
setSource
(
source
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 设备来源(0.旧设备,1.新设备)
* 设置 开始 设备来源(0.旧设备,1.新设备)
* @param sourceStart
* @param sourceStart
*/
*/
public
DeviceQuery
sourceStart
(
Integer
sourceStart
){
public
DeviceQuery
sourceStart
(
Integer
sourceStart
){
this
.
sourceStart
=
sourceStart
;
this
.
sourceStart
=
sourceStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 设备来源(0.旧设备,1.新设备)
* 设置 结束 设备来源(0.旧设备,1.新设备)
* @param sourceEnd
* @param sourceEnd
*/
*/
public
DeviceQuery
sourceEnd
(
Integer
sourceEnd
){
public
DeviceQuery
sourceEnd
(
Integer
sourceEnd
){
this
.
sourceEnd
=
sourceEnd
;
this
.
sourceEnd
=
sourceEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 设备来源(0.旧设备,1.新设备)
* 设置 增加 设备来源(0.旧设备,1.新设备)
* @param sourceIncrement
* @param sourceIncrement
*/
*/
public
DeviceQuery
sourceIncrement
(
Integer
sourceIncrement
){
public
DeviceQuery
sourceIncrement
(
Integer
sourceIncrement
){
this
.
sourceIncrement
=
sourceIncrement
;
this
.
sourceIncrement
=
sourceIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.旧设备,1.新设备)
* 设置 设备来源(0.旧设备,1.新设备)
* @param sourceList
* @param sourceList
*/
*/
public
DeviceQuery
sourceList
(
List
<
Integer
>
sourceList
){
public
DeviceQuery
sourceList
(
List
<
Integer
>
sourceList
){
this
.
sourceList
=
sourceList
;
this
.
sourceList
=
sourceList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备来源(0.旧设备,1.新设备)
* 设置 设备来源(0.旧设备,1.新设备)
* @param sourceNotList
* @param sourceNotList
*/
*/
public
DeviceQuery
sourceNotList
(
List
<
Integer
>
sourceNotList
){
public
DeviceQuery
sourceNotList
(
List
<
Integer
>
sourceNotList
){
this
.
sourceNotList
=
sourceNotList
;
this
.
sourceNotList
=
sourceNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 创建用户
* 设置 创建用户
* @param createUserId
* @param createUserId
*/
*/
public
DeviceQuery
createUserId
(
Long
createUserId
){
public
DeviceQuery
createUserId
(
Long
createUserId
){
setCreateUserId
(
createUserId
);
setCreateUserId
(
createUserId
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 创建用户
* 设置 开始 创建用户
* @param createUserIdStart
* @param createUserIdStart
*/
*/
public
DeviceQuery
createUserIdStart
(
Long
createUserIdStart
){
public
DeviceQuery
createUserIdStart
(
Long
createUserIdStart
){
this
.
createUserIdStart
=
createUserIdStart
;
this
.
createUserIdStart
=
createUserIdStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 创建用户
* 设置 结束 创建用户
* @param createUserIdEnd
* @param createUserIdEnd
*/
*/
public
DeviceQuery
createUserIdEnd
(
Long
createUserIdEnd
){
public
DeviceQuery
createUserIdEnd
(
Long
createUserIdEnd
){
this
.
createUserIdEnd
=
createUserIdEnd
;
this
.
createUserIdEnd
=
createUserIdEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 创建用户
* 设置 增加 创建用户
* @param createUserIdIncrement
* @param createUserIdIncrement
*/
*/
public
DeviceQuery
createUserIdIncrement
(
Long
createUserIdIncrement
){
public
DeviceQuery
createUserIdIncrement
(
Long
createUserIdIncrement
){
this
.
createUserIdIncrement
=
createUserIdIncrement
;
this
.
createUserIdIncrement
=
createUserIdIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 创建用户
* 设置 创建用户
* @param createUserIdList
* @param createUserIdList
*/
*/
public
DeviceQuery
createUserIdList
(
List
<
Long
>
createUserIdList
){
public
DeviceQuery
createUserIdList
(
List
<
Long
>
createUserIdList
){
this
.
createUserIdList
=
createUserIdList
;
this
.
createUserIdList
=
createUserIdList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 创建用户
* 设置 创建用户
* @param createUserIdNotList
* @param createUserIdNotList
*/
*/
public
DeviceQuery
createUserIdNotList
(
List
<
Long
>
createUserIdNotList
){
public
DeviceQuery
createUserIdNotList
(
List
<
Long
>
createUserIdNotList
){
this
.
createUserIdNotList
=
createUserIdNotList
;
this
.
createUserIdNotList
=
createUserIdNotList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 更新用户
* 设置 更新用户
* @param updateUserId
* @param updateUserId
*/
*/
public
DeviceQuery
updateUserId
(
Long
updateUserId
){
public
DeviceQuery
updateUserId
(
Long
updateUserId
){
setUpdateUserId
(
updateUserId
);
setUpdateUserId
(
updateUserId
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 更新用户
* 设置 开始 更新用户
* @param updateUserIdStart
* @param updateUserIdStart
*/
*/
public
DeviceQuery
updateUserIdStart
(
Long
updateUserIdStart
){
public
DeviceQuery
updateUserIdStart
(
Long
updateUserIdStart
){
this
.
updateUserIdStart
=
updateUserIdStart
;
this
.
updateUserIdStart
=
updateUserIdStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 更新用户
* 设置 结束 更新用户
* @param updateUserIdEnd
* @param updateUserIdEnd
*/
*/
public
DeviceQuery
updateUserIdEnd
(
Long
updateUserIdEnd
){
public
DeviceQuery
updateUserIdEnd
(
Long
updateUserIdEnd
){
this
.
updateUserIdEnd
=
updateUserIdEnd
;
this
.
updateUserIdEnd
=
updateUserIdEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 更新用户
* 设置 增加 更新用户
* @param updateUserIdIncrement
* @param updateUserIdIncrement
*/
*/
public
DeviceQuery
updateUserIdIncrement
(
Long
updateUserIdIncrement
){
public
DeviceQuery
updateUserIdIncrement
(
Long
updateUserIdIncrement
){
this
.
updateUserIdIncrement
=
updateUserIdIncrement
;
this
.
updateUserIdIncrement
=
updateUserIdIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 更新用户
* 设置 更新用户
* @param updateUserIdList
* @param updateUserIdList
*/
*/
public
DeviceQuery
updateUserIdList
(
List
<
Long
>
updateUserIdList
){
public
DeviceQuery
updateUserIdList
(
List
<
Long
>
updateUserIdList
){
this
.
updateUserIdList
=
updateUserIdList
;
this
.
updateUserIdList
=
updateUserIdList
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 更新用户
* 设置 更新用户
* @param updateUserIdNotList
* @param updateUserIdNotList
*/
*/
public
DeviceQuery
updateUserIdNotList
(
List
<
Long
>
updateUserIdNotList
){
public
DeviceQuery
updateUserIdNotList
(
List
<
Long
>
updateUserIdNotList
){
this
.
updateUserIdNotList
=
updateUserIdNotList
;
this
.
updateUserIdNotList
=
updateUserIdNotList
;
return
this
;
return
this
;
}
}
/**
* 设置 设备生产厂商ID
* @param deviceFirmId
*/
public
DeviceQuery
deviceFirmId
(
Long
deviceFirmId
){
setDeviceFirmId
(
deviceFirmId
);
return
this
;
}
/**
* 设置 开始 设备生产厂商ID
* @param deviceFirmIdStart
*/
public
DeviceQuery
deviceFirmIdStart
(
Long
deviceFirmIdStart
){
this
.
deviceFirmIdStart
=
deviceFirmIdStart
;
return
this
;
}
/**
* 设置 结束 设备生产厂商ID
* @param deviceFirmIdEnd
*/
public
DeviceQuery
deviceFirmIdEnd
(
Long
deviceFirmIdEnd
){
this
.
deviceFirmIdEnd
=
deviceFirmIdEnd
;
return
this
;
}
/**
* 设置 增加 设备生产厂商ID
* @param deviceFirmIdIncrement
*/
public
DeviceQuery
deviceFirmIdIncrement
(
Long
deviceFirmIdIncrement
){
this
.
deviceFirmIdIncrement
=
deviceFirmIdIncrement
;
return
this
;
}
/**
* 设置 设备生产厂商ID
* @param deviceFirmIdList
*/
public
DeviceQuery
deviceFirmIdList
(
List
<
Long
>
deviceFirmIdList
){
this
.
deviceFirmIdList
=
deviceFirmIdList
;
return
this
;
}
/**
* 设置 设备生产厂商ID
* @param deviceFirmIdNotList
*/
public
DeviceQuery
deviceFirmIdNotList
(
List
<
Long
>
deviceFirmIdNotList
){
this
.
deviceFirmIdNotList
=
deviceFirmIdNotList
;
return
this
;
}
/**
* 设置 设备生产厂商名称
* @param deviceFirmname
*/
public
DeviceQuery
deviceFirmname
(
String
deviceFirmname
){
setDeviceFirmname
(
deviceFirmname
);
return
this
;
}
/**
* 设置 设备生产厂商名称
* @param deviceFirmnameList
*/
public
DeviceQuery
deviceFirmnameList
(
List
<
String
>
deviceFirmnameList
){
this
.
deviceFirmnameList
=
deviceFirmnameList
;
return
this
;
}
/**
* 设置 设备访问ip
* @param ip
*/
public
DeviceQuery
ip
(
String
ip
){
setIp
(
ip
);
return
this
;
}
/**
* 设置 设备访问ip
* @param ipList
*/
public
DeviceQuery
ipList
(
List
<
String
>
ipList
){
this
.
ipList
=
ipList
;
return
this
;
}
/**
* 设置 端口
* @param port
*/
public
DeviceQuery
port
(
String
port
){
setPort
(
port
);
return
this
;
}
/**
* 设置 端口
* @param portList
*/
public
DeviceQuery
portList
(
List
<
String
>
portList
){
this
.
portList
=
portList
;
return
this
;
}
/**
* 设置 启用状态 (0.停止,1.启用)
* @param enabled
*/
public
DeviceQuery
enabled
(
Integer
enabled
){
setEnabled
(
enabled
);
return
this
;
}
/**
* 设置 开始 启用状态 (0.停止,1.启用)
* @param enabledStart
*/
public
DeviceQuery
enabledStart
(
Integer
enabledStart
){
this
.
enabledStart
=
enabledStart
;
return
this
;
}
/**
* 设置 结束 启用状态 (0.停止,1.启用)
* @param enabledEnd
*/
public
DeviceQuery
enabledEnd
(
Integer
enabledEnd
){
this
.
enabledEnd
=
enabledEnd
;
return
this
;
}
/**
* 设置 增加 启用状态 (0.停止,1.启用)
* @param enabledIncrement
*/
public
DeviceQuery
enabledIncrement
(
Integer
enabledIncrement
){
this
.
enabledIncrement
=
enabledIncrement
;
return
this
;
}
/**
* 设置 启用状态 (0.停止,1.启用)
* @param enabledList
*/
public
DeviceQuery
enabledList
(
List
<
Integer
>
enabledList
){
this
.
enabledList
=
enabledList
;
return
this
;
}
/**
* 设置 启用状态 (0.停止,1.启用)
* @param enabledNotList
*/
public
DeviceQuery
enabledNotList
(
List
<
Integer
>
enabledNotList
){
this
.
enabledNotList
=
enabledNotList
;
return
this
;
}
/**
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
* @return orConditionList
*/
*/
public
List
<
DeviceQuery
>
getOrConditionList
(){
public
List
<
DeviceQuery
>
getOrConditionList
(){
return
this
.
orConditionList
;
return
this
.
orConditionList
;
}
}
/**
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
* @param orConditionList
*/
*/
public
void
setOrConditionList
(
List
<
DeviceQuery
>
orConditionList
){
public
void
setOrConditionList
(
List
<
DeviceQuery
>
orConditionList
){
this
.
orConditionList
=
orConditionList
;
this
.
orConditionList
=
orConditionList
;
}
}
/**
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
* @return andConditionList
*/
*/
public
List
<
DeviceQuery
>
getAndConditionList
(){
public
List
<
DeviceQuery
>
getAndConditionList
(){
return
this
.
andConditionList
;
return
this
.
andConditionList
;
}
}
/**
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
* @param andConditionList
*/
*/
public
void
setAndConditionList
(
List
<
DeviceQuery
>
andConditionList
){
public
void
setAndConditionList
(
List
<
DeviceQuery
>
andConditionList
){
this
.
andConditionList
=
andConditionList
;
this
.
andConditionList
=
andConditionList
;
}
}
...
...
sample-form-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceService.java
View file @
c6ba21e2
package
com.mortals.xhx.module.device.service
;
package
com.mortals.xhx.module.device.service
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.device.dao.DeviceDao
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
/**
/**
* DeviceService
* DeviceService
...
@@ -11,4 +13,20 @@ import com.mortals.xhx.module.device.model.DeviceEntity;
...
@@ -11,4 +13,20 @@ import com.mortals.xhx.module.device.model.DeviceEntity;
*/
*/
public
interface
DeviceService
extends
ICRUDService
<
DeviceEntity
,
Long
>{
public
interface
DeviceService
extends
ICRUDService
<
DeviceEntity
,
Long
>{
DeviceDao
getDao
();
/**
* 设备激活
* @param deviceCode
* @param context
*/
void
active
(
String
deviceCode
,
Context
context
);
/**
* 设备启用停用
* @param id
* @param context
*/
void
deviceEnabled
(
Long
id
,
Integer
status
,
Context
context
);
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
c6ba21e2
package
com.mortals.xhx.module.device.service.impl
;
package
com.mortals.xhx.module.device.service.impl
;
import
com.alibaba.fastjson.JSON
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.DeviceStatusEnum
;
import
com.mortals.xhx.common.code.EnabledEnum
;
import
com.mortals.xhx.common.pdu.LoginForm
;
import
com.mortals.xhx.common.pdu.device.DeviceReq
;
import
com.mortals.xhx.feign.device.IDeviceFeign
;
import
com.mortals.xhx.module.device.dao.DeviceDao
;
import
com.mortals.xhx.module.device.dao.DeviceDao
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Date
;
/**
/**
* DeviceService
* DeviceService
* 设备 service实现
* 设备 service实现
...
@@ -13,6 +31,58 @@ import org.springframework.stereotype.Service;
...
@@ -13,6 +31,58 @@ import org.springframework.stereotype.Service;
* @date 2023-02-25
* @date 2023-02-25
*/
*/
@Service
(
"deviceService"
)
@Service
(
"deviceService"
)
@Slf4j
public
class
DeviceServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceDao
,
DeviceEntity
,
Long
>
implements
DeviceService
{
public
class
DeviceServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceDao
,
DeviceEntity
,
Long
>
implements
DeviceService
{
@Autowired
private
IDeviceFeign
deviceFeign
;
@Value
(
"${token.loginName:'admin'}"
)
private
String
loginName
;
@Value
(
"${token.password:'admin'}"
)
private
String
password
;
@Override
public
void
active
(
String
deviceCode
,
Context
context
)
{
DeviceEntity
deviceEntity
=
this
.
selectOne
(
new
DeviceQuery
().
deviceCode
(
deviceCode
));
if
(
ObjectUtils
.
isEmpty
(
deviceEntity
))
throw
new
AppException
(
"当前设备不存在!"
);
if
(
deviceEntity
.
getDeviceStatus
()
>
DeviceStatusEnum
.
未激活
.
getValue
())
throw
new
AppException
(
"当前设备已激活!"
);
deviceEntity
.
setDeviceStatus
(
DeviceStatusEnum
.
离线
.
getValue
());
deviceEntity
.
setEnabled
(
EnabledEnum
.
启用
.
getValue
());
this
.
getDao
().
update
(
deviceEntity
);
String
token
=
getToken
();
DeviceReq
deviceReq
=
new
DeviceReq
();
deviceReq
.
setReceiveMethod
(
DeviceMethodEnum
.
ACTIVE
.
getValue
());
deviceReq
.
setDeviceCode
(
deviceCode
);
Rest
<
String
>
rest
=
deviceFeign
.
deviceCall
(
deviceReq
,
token
);
log
.
info
(
"激活结果:{}"
,
JSON
.
toJSONString
(
rest
));
}
@Override
public
void
deviceEnabled
(
Long
id
,
Integer
enabled
,
Context
context
)
{
DeviceEntity
deviceEntity
=
this
.
get
(
id
,
context
);
if
(
ObjectUtils
.
isEmpty
(
deviceEntity
))
throw
new
AppException
(
"当前设备不存在!"
);
deviceEntity
.
setEnabled
(
enabled
);
deviceEntity
.
setUpdateTime
(
new
Date
());
deviceEntity
.
setUpdateUserId
(
getContextUserId
(
context
));
this
.
getDao
().
update
(
deviceEntity
);
String
token
=
getToken
();
DeviceReq
deviceReq
=
new
DeviceReq
();
deviceReq
.
setReceiveMethod
(
DeviceMethodEnum
.
ENABLED
.
getValue
());
deviceReq
.
setDeviceCode
(
deviceEntity
.
getDeviceCode
());
Rest
<
String
>
rest
=
deviceFeign
.
deviceCall
(
deviceReq
,
token
);
log
.
info
(
"启用结果:{}"
,
JSON
.
toJSONString
(
rest
));
}
private
String
getToken
()
{
LoginForm
loginForm
=
new
LoginForm
();
loginForm
.
setLoginName
(
loginName
);
loginForm
.
setPassword
(
password
);
Rest
<
String
>
rest
=
deviceFeign
.
getToken
(
loginForm
);
String
token
=
rest
.
getData
();
return
token
;
}
}
}
\ No newline at end of file
sample-form-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
c6ba21e2
package
com.mortals.xhx.module.device.web
;
package
com.mortals.xhx.module.device.web
;
import
com.alibaba.fastjson.JSON
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.EnabledEnum
;
import
com.mortals.xhx.common.pdu.LoginForm
;
import
com.mortals.xhx.common.pdu.device.DeviceReq
;
import
com.mortals.xhx.feign.device.IDeviceFeign
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
/**
/**
*
* 设备
* 设备
*
*
* @author zxfei
* @author zxfei
* @date 2023-02-25
* @date 2023-02-25
*/
*/
@RestController
@RestController
@RequestMapping
(
"device"
)
@RequestMapping
(
"device"
)
public
class
DeviceController
extends
BaseCRUDJsonBodyMappingController
<
DeviceService
,
DeviceEntity
,
Long
>
{
@Slf4j
public
class
DeviceController
extends
BaseCRUDJsonBodyMappingController
<
DeviceService
,
DeviceEntity
,
Long
>
{
@Autowired
@Autowired
private
ParamService
paramService
;
private
ParamService
paramService
;
public
DeviceController
(){
@Autowired
super
.
setModuleDesc
(
"设备"
);
private
IDeviceFeign
deviceFeign
;
@Value
(
"${token.loginName:'admin'}"
)
private
String
loginName
;
@Value
(
"${token.password:'admin'}"
)
private
String
password
;
public
DeviceController
()
{
super
.
setModuleDesc
(
"设备"
);
}
}
@Override
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"deviceSrc"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"deviceSrc"
));
this
.
addDict
(
model
,
"deviceSrc"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"deviceSrc"
));
this
.
addDict
(
model
,
"deviceStatus"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"deviceStatus"
));
this
.
addDict
(
model
,
"deviceStatus"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"deviceStatus"
));
this
.
addDict
(
model
,
"source"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"source"
));
this
.
addDict
(
model
,
"source"
,
paramService
.
getParamBySecondOrganize
(
"Device"
,
"source"
));
this
.
addDict
(
model
,
"enabled"
,
EnabledEnum
.
getEnumMap
());
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
/**
* 设备激活
*/
@PostMapping
(
value
=
"active"
)
public
Rest
<
Void
>
deviceActive
(
@RequestBody
DeviceEntity
deviceEntity
)
{
log
.
info
(
"设备激活:{}"
,
deviceEntity
.
getDeviceCode
());
String
busiDesc
=
this
.
getModuleDesc
()
+
"设备激活"
;
Rest
<
Void
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
this
.
service
.
active
(
deviceEntity
.
getDeviceCode
(),
getContext
());
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"设备激活消息"
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
/**
* 设备启用停用
*/
@PostMapping
(
value
=
"enable"
)
public
String
deviceEnable
(
@RequestBody
DeviceEntity
deviceEntity
)
{
JSONObject
jsonObject
=
new
JSONObject
();
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
String
busiDesc
=
this
.
getModuleDesc
()
+
"设备"
;
try
{
this
.
service
.
deviceEnabled
(
deviceEntity
.
getId
(),
deviceEntity
.
getEnabled
(),
getContext
());
recordSysLog
(
request
,
busiDesc
+
EnabledEnum
.
getByValue
(
deviceEntity
.
getEnabled
()).
getDesc
()
+
" 【成功】"
);
jsonObject
.
put
(
KEY_RESULT_DATA
,
model
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
}
catch
(
Exception
e
)
{
log
.
error
(
"设备启用停用消息"
,
e
);
jsonObject
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_FAILURE
);
jsonObject
.
put
(
KEY_RESULT_MSG
,
super
.
convertException
(
e
));
}
return
jsonObject
.
toJSONString
();
}
@Override
protected
int
saveAfter
(
DeviceEntity
entity
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getUpdateTime
()))
{
String
token
=
getToken
();
DeviceReq
deviceReq
=
new
DeviceReq
();
deviceReq
.
setReceiveMethod
(
DeviceMethodEnum
.
ADD
.
getValue
());
deviceReq
.
setDeviceName
(
entity
.
getDeviceName
());
deviceReq
.
setDeviceCode
(
entity
.
getDeviceCode
());
deviceReq
.
setProductCode
(
entity
.
getProductCode
());
deviceReq
.
setIp
(
entity
.
getIp
());
deviceReq
.
setPort
(
entity
.
getPort
());
deviceReq
.
setSiteId
(
1L
);
deviceReq
.
setSiteCode
(
"511500000000-0001"
);
deviceReq
.
setSiteName
(
"宜宾市民中心"
);
deviceReq
.
setLeadingOfficial
(
entity
.
getLeadingOfficial
());
deviceReq
.
setLeadingOfficialTelephone
(
entity
.
getLeadingOfficialTelephone
());
deviceReq
.
setSource
(
1
);
deviceReq
.
setDeviceStatus
(
entity
.
getDeviceStatus
());
Rest
<
String
>
rest
=
deviceFeign
.
deviceCall
(
deviceReq
,
token
);
log
.
info
(
"添加结果:{}"
,
JSON
.
toJSONString
(
rest
));
}
else
{
String
token
=
getToken
();
DeviceReq
deviceReq
=
new
DeviceReq
();
deviceReq
.
setReceiveMethod
(
DeviceMethodEnum
.
UPDATE
.
getValue
());
deviceReq
.
setDeviceName
(
entity
.
getDeviceName
());
deviceReq
.
setDeviceCode
(
entity
.
getDeviceCode
());
deviceReq
.
setProductCode
(
entity
.
getProductCode
());
deviceReq
.
setIp
(
entity
.
getIp
());
deviceReq
.
setPort
(
entity
.
getPort
());
deviceReq
.
setSiteId
(
1L
);
deviceReq
.
setSiteCode
(
"511500000000-0001"
);
deviceReq
.
setSiteName
(
"宜宾市民中心"
);
deviceReq
.
setLeadingOfficial
(
entity
.
getLeadingOfficial
());
deviceReq
.
setLeadingOfficialTelephone
(
entity
.
getLeadingOfficialTelephone
());
deviceReq
.
setSource
(
1
);
deviceReq
.
setDeviceStatus
(
entity
.
getDeviceStatus
());
Rest
<
String
>
rest
=
deviceFeign
.
deviceCall
(
deviceReq
,
token
);
log
.
info
(
"更新结果:{}"
,
JSON
.
toJSONString
(
rest
));
}
return
super
.
saveAfter
(
entity
,
model
,
context
);
}
@Override
protected
void
deleteBefore
(
Long
[]
ids
,
Context
context
)
throws
AppException
{
super
.
deleteBefore
(
ids
,
context
);
String
token
=
getToken
();
DeviceQuery
deviceQuery
=
new
DeviceQuery
();
deviceQuery
.
setIdList
(
Arrays
.
asList
(
ids
));
List
<
DeviceEntity
>
deviceEntities
=
this
.
service
.
find
(
deviceQuery
,
context
);
for
(
DeviceEntity
entity
:
deviceEntities
)
{
DeviceReq
deviceReq
=
new
DeviceReq
();
deviceReq
.
setReceiveMethod
(
DeviceMethodEnum
.
DEL
.
getValue
());
deviceReq
.
setDeviceCode
(
entity
.
getDeviceCode
());
Rest
<
String
>
rest
=
deviceFeign
.
deviceCall
(
deviceReq
,
token
);
log
.
info
(
"删除结果:{}"
,
JSON
.
toJSONString
(
rest
));
}
}
private
String
getToken
()
{
LoginForm
loginForm
=
new
LoginForm
();
loginForm
.
setLoginName
(
loginName
);
loginForm
.
setPassword
(
password
);
Rest
<
String
>
rest
=
deviceFeign
.
getToken
(
loginForm
);
String
token
=
rest
.
getData
();
return
token
;
}
}
}
\ No newline at end of file
sample-form-manager/src/main/resources/sqlmap/module/device/DeviceMapper.xml
View file @
c6ba21e2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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