Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
84e02b55
Commit
84e02b55
authored
Jul 02, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物联网1.0
parent
4f37832b
Changes
34
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
1920 additions
and
1735 deletions
+1920
-1735
db/module.sql
db/module.sql
+14
-7
device-manager-ui/admin/src/components/SearchForm.vue
device-manager-ui/admin/src/components/SearchForm.vue
+1
-1
device-manager-ui/admin/src/views/device/alarm/info/list.vue
device-manager-ui/admin/src/views/device/alarm/info/list.vue
+30
-30
device-manager-ui/admin/src/views/device/module/dialogshow.vue
...e-manager-ui/admin/src/views/device/module/dialogshow.vue
+11
-6
device-manager-ui/admin/src/views/device/module/list.vue
device-manager-ui/admin/src/views/device/module/list.vue
+0
-22
device-manager-ui/admin/src/views/device/module/use/dialogshow.vue
...nager-ui/admin/src/views/device/module/use/dialogshow.vue
+9
-4
device-manager-ui/admin/src/views/system/param/dialogshow.vue
...ce-manager-ui/admin/src/views/system/param/dialogshow.vue
+2
-1
device-manager/src/main/java/com/mortals/xhx/common/code/LogTypeEnum.java
...rc/main/java/com/mortals/xhx/common/code/LogTypeEnum.java
+2
-2
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceMsgComsumerStartedService.java
...n/applicationservice/DeviceMsgComsumerStartedService.java
+2
-1
device-manager/src/main/java/com/mortals/xhx/daemon/task/DeviceStatTaskImpl.java
.../java/com/mortals/xhx/daemon/task/DeviceStatTaskImpl.java
+74
-4
device-manager/src/main/java/com/mortals/xhx/module/device/dao/DeviceModuleDao.java
...va/com/mortals/xhx/module/device/dao/DeviceModuleDao.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/dao/DeviceModuleUseDao.java
...com/mortals/xhx/module/device/dao/DeviceModuleUseDao.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/dao/ibatis/DeviceModuleDaoImpl.java
...als/xhx/module/device/dao/ibatis/DeviceModuleDaoImpl.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/dao/ibatis/DeviceModuleUseDaoImpl.java
.../xhx/module/device/dao/ibatis/DeviceModuleUseDaoImpl.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceLogEntity.java
.../com/mortals/xhx/module/device/model/DeviceLogEntity.java
+88
-67
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceLogQuery.java
...a/com/mortals/xhx/module/device/model/DeviceLogQuery.java
+412
-375
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleEntity.java
...m/mortals/xhx/module/device/model/DeviceModuleEntity.java
+22
-22
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleQuery.java
...om/mortals/xhx/module/device/model/DeviceModuleQuery.java
+37
-205
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleUseEntity.java
...ortals/xhx/module/device/model/DeviceModuleUseEntity.java
+73
-31
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleUseQuery.java
...mortals/xhx/module/device/model/DeviceModuleUseQuery.java
+353
-279
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceAlarmInfoVo.java
...mortals/xhx/module/device/model/vo/DeviceAlarmInfoVo.java
+8
-0
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceModuleUseVo.java
...mortals/xhx/module/device/model/vo/DeviceModuleUseVo.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceModuleVo.java
...om/mortals/xhx/module/device/model/vo/DeviceModuleVo.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceModuleService.java
...ortals/xhx/module/device/service/DeviceModuleService.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceModuleUseService.java
...als/xhx/module/device/service/DeviceModuleUseService.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleServiceImpl.java
...x/module/device/service/impl/DeviceModuleServiceImpl.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleUseServiceImpl.java
...odule/device/service/impl/DeviceModuleUseServiceImpl.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceAlarmInfoController.java
...tals/xhx/module/device/web/DeviceAlarmInfoController.java
+18
-12
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleController.java
...mortals/xhx/module/device/web/DeviceModuleController.java
+18
-6
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleUseController.java
...tals/xhx/module/device/web/DeviceModuleUseController.java
+18
-6
device-manager/src/main/resources/sqlmap/module/device/DeviceLogMapper.xml
...c/main/resources/sqlmap/module/device/DeviceLogMapper.xml
+392
-358
device-manager/src/main/resources/sqlmap/module/device/DeviceModuleMapper.xml
...ain/resources/sqlmap/module/device/DeviceModuleMapper.xml
+51
-79
device-manager/src/main/resources/sqlmap/module/device/DeviceModuleUseMapper.xml
.../resources/sqlmap/module/device/DeviceModuleUseMapper.xml
+275
-207
doc/设备管理系统.docx
doc/设备管理系统.docx
+0
-0
No files found.
db/module.sql
View file @
84e02b55
...
@@ -129,9 +129,9 @@ PRIMARY KEY (`id`)
...
@@ -129,9 +129,9 @@ PRIMARY KEY (`id`)
DROP
TABLE
IF
EXISTS
`mortals_xhx_device_module`
;
DROP
TABLE
IF
EXISTS
`mortals_xhx_device_module`
;
CREATE
TABLE
mortals_xhx_device_module
(
CREATE
TABLE
mortals_xhx_device_module
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`module
Id`
bigint
(
20
)
NOT
NULL
COMMENT
'模块名称'
,
`module
Name`
varchar
(
256
)
NOT
NULL
COMMENT
'模块名称'
,
`
deviceId`
bigint
(
20
)
NOT
NULL
COMMENT
'所属设备
'
,
`
moduleMsgCode`
varchar
(
256
)
NOT
NULL
COMMENT
'模块消息编码,与上报消息头编码一致,唯一
'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
...
@@ -143,14 +143,18 @@ PRIMARY KEY (`id`)
...
@@ -143,14 +143,18 @@ PRIMARY KEY (`id`)
DROP
TABLE
IF
EXISTS
`mortals_xhx_device_module_use`
;
DROP
TABLE
IF
EXISTS
`mortals_xhx_device_module_use`
;
CREATE
TABLE
mortals_xhx_device_module_use
(
CREATE
TABLE
mortals_xhx_device_module_use
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`moduleId`
bigint
(
20
)
NOT
NULL
COMMENT
'模块ID'
,
`moduleName`
varchar
(
256
)
NOT
NULL
COMMENT
'模块名称'
,
`moduleMsgCode`
varchar
(
256
)
NOT
NULL
COMMENT
'模块消息编码'
,
`deviceId`
bigint
(
20
)
NOT
NULL
COMMENT
'所属设备'
,
`useNum`
int
COMMENT
'调用次数'
,
`useNum`
int
COMMENT
'调用次数'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateUserId`
bigint
(
20
)
COMMENT
'更新用户'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
`updateTime`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备模块使用频率'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备模块使用频率'
;
-- ----------------------------
-- ----------------------------
-- 设备告警配置表
-- 设备告警配置表
-- ----------------------------
-- ----------------------------
...
@@ -193,9 +197,10 @@ CREATE TABLE mortals_xhx_device_log(
...
@@ -193,9 +197,10 @@ CREATE TABLE mortals_xhx_device_log(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`traceID`
varchar
(
64
)
COMMENT
'traceId,日志追踪id'
,
`traceID`
varchar
(
64
)
COMMENT
'traceId,日志追踪id'
,
`deviceId`
bigint
(
20
)
COMMENT
'设备ID'
,
`deviceId`
bigint
(
20
)
COMMENT
'设备ID'
,
`device
Num
`
varchar
(
32
)
NOT
NULL
COMMENT
'设备编号'
,
`device
Code
`
varchar
(
32
)
NOT
NULL
COMMENT
'设备编号'
,
`deviceName`
varchar
(
32
)
NOT
NULL
COMMENT
'设备名称,设置设备名称。'
,
`deviceName`
varchar
(
32
)
NOT
NULL
COMMENT
'设备名称,设置设备名称。'
,
`logType`
tinyint
(
2
)
NOT
NULL
COMMENT
'日志类型,(0.上报事件,1.下发服务)'
,
`messageHead`
varchar
(
64
)
NOT
NULL
COMMENT
'业务消息头标识'
,
`logType`
tinyint
(
2
)
NOT
NULL
COMMENT
'消息类型,(0.上行,1.下行)'
,
`content`
varchar
(
2048
)
COMMENT
'内容'
,
`content`
varchar
(
2048
)
COMMENT
'内容'
,
`createUserId`
bigint
(
20
)
NOT
NULL
COMMENT
'创建用户'
,
`createUserId`
bigint
(
20
)
NOT
NULL
COMMENT
'创建用户'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
...
@@ -204,6 +209,8 @@ CREATE TABLE mortals_xhx_device_log(
...
@@ -204,6 +209,8 @@ CREATE TABLE mortals_xhx_device_log(
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备日志'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'设备日志'
;
-- ----------------------------
-- ----------------------------
-- 站点统计表
-- 站点统计表
-- ----------------------------
-- ----------------------------
...
...
device-manager-ui/admin/src/components/SearchForm.vue
View file @
84e02b55
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
v-if=
"item.type === 'datetime'"
v-if=
"item.type === 'datetime'"
type=
"datetime"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间
"
:placeholder=
"item.label
"
>
>
</el-date-picker>
</el-date-picker>
...
...
device-manager-ui/admin/src/views/device/alarm/info/list.vue
View file @
84e02b55
<
template
>
<
template
>
<div
class=
"page"
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
notAdd
:config=
"tableConfig"
>
</LayoutTable>
<LayoutTable
:data=
"tableData"
notAdd
notDel
:config=
"tableConfig"
>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
</div>
</div>
...
@@ -26,6 +26,7 @@ export default {
...
@@ -26,6 +26,7 @@ export default {
//this.config.addQuery = { deviceId, deviceType };
//this.config.addQuery = { deviceId, deviceType };
if
(
this
.
queryIn
.
alarmDevice
)
{
if
(
this
.
queryIn
.
alarmDevice
)
{
this
.
query
=
{}
this
.
query
[
"
alarmDevice
"
]
=
this
.
queryIn
.
alarmDevice
;
this
.
query
[
"
alarmDevice
"
]
=
this
.
queryIn
.
alarmDevice
;
}
}
...
@@ -60,21 +61,29 @@ export default {
...
@@ -60,21 +61,29 @@ export default {
return
{
return
{
config
:
{
config
:
{
search
:
[
search
:
[
{
name
:
"
alarmDevice
"
,
type
:
"
text
"
,
label
:
"
告警设备
"
,
fuzzy
:
true
,
},
{
{
name
:
"
alarmStatus
"
,
name
:
"
alarmStatus
"
,
type
:
"
select
"
,
type
:
"
select
"
,
label
:
"
告警状态,来自工单系统
"
,
label
:
"
告警状态
"
,
fuzzy
:
true
,
},
{
name
:
"
alarmTimeStart
"
,
type
:
"
datetime
"
,
label
:
"
开始时间
"
,
},
{
name
:
"
alarmTimeEnd
"
,
type
:
"
datetime
"
,
label
:
"
结束时间
"
,
placeholder
:
"
结束时间
"
},
},
],
],
columns
:
[
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
{
label
:
"
告警时间
"
,
label
:
"
告警时间
"
,
...
@@ -87,33 +96,24 @@ export default {
...
@@ -87,33 +96,24 @@ export default {
prop
:
"
alarmDevice
"
,
prop
:
"
alarmDevice
"
,
formatter
:
this
.
formatterString
,
formatter
:
this
.
formatterString
,
},
},
{
{
label
:
"
告警类型,
"
,
prop
:
"
alarmType
"
,
formatter
:
this
.
formatter
},
label
:
"
告警内容
"
,
prop
:
"
alarmContent
"
,
},
{
label
:
"
告警级别
"
,
prop
:
"
alarmLevel
"
,
formatter
:
this
.
formatter
},
{
label
:
"
告警级别
"
,
prop
:
"
alarmLevel
"
,
formatter
:
this
.
formatter
},
{
label
:
"
接收人员,
"
,
prop
:
"
alarmReceivePersonnel
"
},
{
{
label
:
"
告警状态
,来自工单系统
"
,
label
:
"
告警状态
"
,
prop
:
"
alarmStatus
"
,
prop
:
"
alarmStatus
"
,
formatter
:
this
.
formatter
,
formatter
:
this
.
formatter
,
},
},
{
label
:
"
操作
"
,
width
:
240
,
formatter
:
(
row
)
=>
{
return
(
<
table
-
buttons
noAdd
noEdit
noDel
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
);
},
},
],
],
},
},
};
};
...
...
device-manager-ui/admin/src/views/device/module/dialogshow.vue
View file @
84e02b55
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<Field
label=
"模块名称"
prop=
"module
Id"
v-model=
"form.moduleId
"
placeholder=
"请输入模块名称"
/>
<Field
label=
"模块名称"
prop=
"module
Name"
v-model=
"form.moduleName"
type=
"textarea
"
placeholder=
"请输入模块名称"
/>
<Field
label=
"
所属设备"
prop=
"deviceId"
v-model=
"form.deviceId"
placeholder=
"请输入所属设备
"
/>
<Field
label=
"
模块消息编码,与上报消息头编码一致,唯一"
prop=
"moduleMsgCode"
v-model=
"form.moduleMsgCode"
type=
"textarea"
placeholder=
"请输入模块消息编码,与上报消息头编码一致,唯一
"
/>
</el-row>
</el-row>
...
@@ -36,8 +36,13 @@
...
@@ -36,8 +36,13 @@
],
],
// 表单校验
// 表单校验
rules
:
{
rules
:
{
createTime
:
[
moduleName
:
[
{
required
:
true
,
message
:
"
请选择创建时间
"
},
{
required
:
true
,
message
:
"
请输入模块名称
"
,
trigger
:
"
blur
"
},
{
max
:
256
,
message
:
"
最多只能录入256个字符
"
,
trigger
:
"
blur
"
,},
],
moduleMsgCode
:
[
{
required
:
true
,
message
:
"
请输入模块消息编码,与上报消息头编码一致,唯一
"
,
trigger
:
"
blur
"
},
{
max
:
256
,
message
:
"
最多只能录入256个字符
"
,
trigger
:
"
blur
"
,},
],
],
}
}
};
};
...
@@ -88,8 +93,8 @@
...
@@ -88,8 +93,8 @@
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
module
Id
:
null
,
module
Name
:
""
,
deviceId
:
null
,
moduleMsgCode
:
""
,
};
};
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
...
...
device-manager-ui/admin/src/views/device/module/list.vue
View file @
84e02b55
...
@@ -13,31 +13,9 @@
...
@@ -13,31 +13,9 @@
import
table
from
"
@/assets/mixins/table
"
;
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
export
default
{
name
:
"
DeviceModule
"
,
name
:
"
DeviceModule
"
,
props
:
{
queryIn
:
{
type
:
Object
,
default
:
null
,
},
},
components
:
{
dialogShow
},
components
:
{
dialogShow
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{
created
()
{
console
.
log
(
"
queryIn module:
"
,
this
.
queryIn
);
//this.config.addQuery = { deviceId, deviceType };
if
(
this
.
queryIn
.
deviceId
)
{
this
.
query
[
"
deviceId
"
]
=
this
.
queryIn
.
deviceId
;
}
this
.
pageInfo
.
list
=
"
/device/module/list
"
;
this
.
pageInfo
.
del
=
"
/device/module/delete
"
;
this
.
pageInfo
.
add
=
"
/device/module/add
"
;
this
.
pageInfo
.
edit
=
"
/device/module/edit
"
;
this
.
pageInfo
.
view
=
"
/device/module/view
"
;
console
.
log
(
"
pageInfo
"
,
this
.
pageInfo
)
},
},
methods
:
{
methods
:
{
...
...
device-manager-ui/admin/src/views/device/module/use/dialogshow.vue
View file @
84e02b55
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<Field
label=
"模块ID"
prop=
"moduleId"
v-model=
"form.moduleId"
placeholder=
"请输入模块ID"
/>
<Field
label=
"模块名称"
prop=
"moduleName"
v-model=
"form.moduleName"
type=
"textarea"
placeholder=
"请输入模块名称"
/>
<Field
label=
"模块消息编码"
prop=
"moduleMsgCode"
v-model=
"form.moduleMsgCode"
placeholder=
"请输入模块消息编码"
/>
<Field
label=
"所属设备"
prop=
"deviceId"
v-model=
"form.deviceId"
placeholder=
"请输入所属设备"
/>
<Field
label=
"调用次数"
prop=
"useNum"
v-model=
"form.useNum"
placeholder=
"请输入调用次数"
/>
<Field
label=
"调用次数"
prop=
"useNum"
v-model=
"form.useNum"
placeholder=
"请输入调用次数"
/>
</el-row>
</el-row>
...
@@ -36,8 +38,9 @@
...
@@ -36,8 +38,9 @@
],
],
// 表单校验
// 表单校验
rules
:
{
rules
:
{
createTime
:
[
moduleName
:
[
{
required
:
true
,
message
:
"
请选择创建时间
"
},
{
required
:
true
,
message
:
"
请输入模块名称
"
,
trigger
:
"
blur
"
},
{
max
:
256
,
message
:
"
最多只能录入256个字符
"
,
trigger
:
"
blur
"
,},
],
],
}
}
};
};
...
@@ -88,7 +91,9 @@
...
@@ -88,7 +91,9 @@
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
moduleId
:
null
,
moduleName
:
""
,
moduleMsgCode
:
null
,
deviceId
:
null
,
useNum
:
null
,
useNum
:
null
,
};
};
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
...
...
device-manager-ui/admin/src/views/system/param/dialogshow.vue
View file @
84e02b55
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
form
from
"
@/assets/mixins/form
"
;
import
form
from
"
@/assets/mixins/form
dialog
"
;
export
default
{
export
default
{
mixins
:
[
form
],
mixins
:
[
form
],
data
()
{
data
()
{
...
@@ -82,6 +82,7 @@ export default {
...
@@ -82,6 +82,7 @@ export default {
paramKey
:
[{
required
:
true
,
message
:
"
请输入参数键
"
,
trigger
:
"
blur
"
}],
paramKey
:
[{
required
:
true
,
message
:
"
请输入参数键
"
,
trigger
:
"
blur
"
}],
paramValue
:
[{
required
:
true
,
message
:
"
请输入参数值
"
,
trigger
:
"
blur
"
}],
paramValue
:
[{
required
:
true
,
message
:
"
请输入参数值
"
,
trigger
:
"
blur
"
}],
},
},
// urls:{list: "/para/file/list"}
};
};
},
},
...
...
device-manager/src/main/java/com/mortals/xhx/common/code/LogTypeEnum.java
View file @
84e02b55
...
@@ -9,8 +9,8 @@ import java.util.Map;
...
@@ -9,8 +9,8 @@ import java.util.Map;
* @author zxfei
* @author zxfei
*/
*/
public
enum
LogTypeEnum
{
public
enum
LogTypeEnum
{
上报事件
(
0
,
"上
报事件
"
),
上报事件
(
0
,
"上
行
"
),
下发服务
(
1
,
"下
发服务
"
);
下发服务
(
1
,
"下
行
"
);
private
Integer
value
;
private
Integer
value
;
private
String
desc
;
private
String
desc
;
...
...
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceMsgComsumerStartedService.java
View file @
84e02b55
...
@@ -181,7 +181,8 @@ public class DeviceMsgComsumerStartedService implements IApplicationStartedServi
...
@@ -181,7 +181,8 @@ public class DeviceMsgComsumerStartedService implements IApplicationStartedServi
deviceLogEntity
.
initAttrValue
();
deviceLogEntity
.
initAttrValue
();
deviceLogEntity
.
setDeviceId
(
deviceEntity
.
getId
());
deviceLogEntity
.
setDeviceId
(
deviceEntity
.
getId
());
deviceLogEntity
.
setDeviceName
(
deviceEntity
.
getDeviceName
());
deviceLogEntity
.
setDeviceName
(
deviceEntity
.
getDeviceName
());
deviceLogEntity
.
setDeviceNum
(
deviceEntity
.
getDeviceCode
());
deviceLogEntity
.
setDeviceCode
(
deviceEntity
.
getDeviceCode
());
deviceLogEntity
.
setMessageHead
(
queueMsg
.
getHeaders
().
getData
().
get
(
MESSAGETYPE
));
deviceLogEntity
.
setContent
(
JSONObject
.
toJSONString
(
deviceReq
));
deviceLogEntity
.
setContent
(
JSONObject
.
toJSONString
(
deviceReq
));
deviceLogEntity
.
setLogType
(
LogTypeEnum
.
上报事件
.
getValue
());
deviceLogEntity
.
setLogType
(
LogTypeEnum
.
上报事件
.
getValue
());
deviceLogEntity
.
setCreateUserId
(
1L
);
deviceLogEntity
.
setCreateUserId
(
1L
);
...
...
device-manager/src/main/java/com/mortals/xhx/daemon/task/DeviceStatTaskImpl.java
View file @
84e02b55
...
@@ -12,9 +12,10 @@ import com.mortals.xhx.common.code.DeviceOnlineStatusEnum;
...
@@ -12,9 +12,10 @@ import com.mortals.xhx.common.code.DeviceOnlineStatusEnum;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.DeviceStatusEnum
;
import
com.mortals.xhx.common.code.DeviceStatusEnum
;
import
com.mortals.xhx.common.key.ParamKey
;
import
com.mortals.xhx.common.key.ParamKey
;
import
com.mortals.xhx.module.device.model.DeviceLogEntity
;
import
com.mortals.xhx.module.device.model.*
;
import
com.mortals.xhx.module.device.model.DeviceLogQuery
;
import
com.mortals.xhx.module.device.service.DeviceLogService
;
import
com.mortals.xhx.module.device.service.DeviceLogService
;
import
com.mortals.xhx.module.device.service.DeviceModuleService
;
import
com.mortals.xhx.module.device.service.DeviceModuleUseService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
com.mortals.xhx.module.platform.model.PlatformEntity
;
import
com.mortals.xhx.module.platform.model.PlatformEntity
;
import
com.mortals.xhx.module.platform.service.PlatformService
;
import
com.mortals.xhx.module.platform.service.PlatformService
;
...
@@ -26,6 +27,9 @@ import org.springframework.stereotype.Service;
...
@@ -26,6 +27,9 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* 设备状态任务
* 设备状态任务
...
@@ -41,21 +45,87 @@ public class DeviceStatTaskImpl implements ITaskExcuteService {
...
@@ -41,21 +45,87 @@ public class DeviceStatTaskImpl implements ITaskExcuteService {
private
DeviceService
deviceService
;
private
DeviceService
deviceService
;
@Autowired
@Autowired
private
DeviceLogService
deviceLogService
;
private
DeviceLogService
deviceLogService
;
@Autowired
private
DeviceModuleUseService
deviceModuleUseService
;
@Autowired
@Autowired
private
ParamService
paramService
;
private
ParamService
paramService
;
@Autowired
@Autowired
private
ProductService
productService
;
private
ProductService
productService
;
@Autowired
@Autowired
private
PlatformService
platformService
;
private
PlatformService
platformService
;
@Autowired
private
DeviceModuleService
moduleService
;
@Override
@Override
public
void
excuteTask
(
ITask
task
)
throws
AppException
{
public
void
excuteTask
(
ITask
task
)
throws
AppException
{
log
.
debug
(
"设备状态统计,开始执行"
);
log
.
debug
(
"设备统计,开始执行"
);
doDeviceModuleUse
();
//doDeviceUpOrDown();
//doDeviceUpOrDown();
//doDeviceLogDel();
//doDeviceLogDel();
log
.
debug
(
"设备状态统计,结束执行"
);
log
.
debug
(
"设备统计,结束执行"
);
}
/**
* 统计设备模块使用率
*/
private
void
doDeviceModuleUse
()
{
Map
<
String
,
DeviceModuleEntity
>
moduleMap
=
moduleService
.
find
(
new
DeviceModuleQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getModuleMsgCode
(),
y
->
y
,
(
o
,
n
)
->
n
));
try
{
// TODO: 2022/7/2 根据每个设备单独查询统计 计算数据量会减少
List
<
DeviceModuleUseEntity
>
moduleUseEntityList
=
deviceService
.
getCacheList
().
stream
().
flatMap
(
device
->
{
//查询当前设备日志
List
<
DeviceLogEntity
>
deviceLogList
=
deviceLogService
.
find
(
new
DeviceLogQuery
().
deviceId
(
device
.
getId
()));
//分组统计每个模块头使用率
Map
<
String
,
Long
>
modelCollect
=
deviceLogList
.
parallelStream
().
collect
(
Collectors
.
groupingBy
(
DeviceLogEntity:
:
getMessageHead
,
Collectors
.
counting
()));
return
modelCollect
.
entrySet
().
stream
().
map
(
item
->
{
if
(
moduleMap
.
containsKey
(
item
.
getKey
()))
{
DeviceModuleUseEntity
deviceModuleUseEntity
=
new
DeviceModuleUseEntity
();
deviceModuleUseEntity
.
initAttrValue
();
DeviceModuleEntity
deviceModuleEntity
=
moduleMap
.
get
(
item
.
getKey
());
deviceModuleUseEntity
.
setDeviceId
(
device
.
getId
());
deviceModuleUseEntity
.
setModuleMsgCode
(
deviceModuleEntity
.
getModuleMsgCode
());
deviceModuleUseEntity
.
setModuleName
(
deviceModuleEntity
.
getModuleName
());
deviceModuleUseEntity
.
setUseNum
(
item
.
getValue
());
deviceModuleUseEntity
.
setCreateUserId
(
1L
);
deviceModuleUseEntity
.
setCreateTime
(
new
Date
());
return
deviceModuleUseEntity
;
}
}
return
null
;
}).
filter
(
f
->
f
!=
null
);
}).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
moduleUseEntityList
))
{
//遍历,更新统计数据表 标识 设备id与消息头
Map
<
String
,
DeviceModuleUseEntity
>
collect
=
deviceModuleUseService
.
find
(
new
DeviceModuleUseQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getDeviceId
()
+
"#"
+
x
.
getModuleMsgCode
(),
y
->
y
,
(
o
,
n
)
->
n
));
moduleUseEntityList
.
stream
().
forEach
(
mudule
->
{
String
key
=
mudule
.
getDeviceId
()
+
"#"
+
mudule
.
getModuleMsgCode
();
if
(
collect
.
containsKey
(
key
))
{
//更新
DeviceModuleUseEntity
deviceModuleUseEntity
=
collect
.
get
(
key
);
mudule
.
setId
(
deviceModuleUseEntity
.
getId
());
mudule
.
setUpdateTime
(
new
Date
());
mudule
.
setUpdateUserId
(
1L
);
deviceModuleUseService
.
update
(
mudule
,
null
);
}
else
{
//新增
deviceModuleUseService
.
save
(
mudule
,
null
);
}
});
}
}
catch
(
Exception
e
)
{
log
.
error
(
"更新任务异常,结束执行"
,
e
);
}
}
/**
/**
* 统计更新设备状态
* 统计更新设备状态
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/dao/DeviceModuleDao.java
View file @
84e02b55
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
* 设备模块信息 DAO接口
* 设备模块信息 DAO接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
public
interface
DeviceModuleDao
extends
ICRUDDao
<
DeviceModuleEntity
,
Long
>{
public
interface
DeviceModuleDao
extends
ICRUDDao
<
DeviceModuleEntity
,
Long
>{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/dao/DeviceModuleUseDao.java
View file @
84e02b55
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
* 设备模块使用频率 DAO接口
* 设备模块使用频率 DAO接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
public
interface
DeviceModuleUseDao
extends
ICRUDDao
<
DeviceModuleUseEntity
,
Long
>{
public
interface
DeviceModuleUseDao
extends
ICRUDDao
<
DeviceModuleUseEntity
,
Long
>{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/dao/ibatis/DeviceModuleDaoImpl.java
View file @
84e02b55
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
* 设备模块信息DaoImpl DAO接口
* 设备模块信息DaoImpl DAO接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@Repository
(
"deviceModuleDao"
)
@Repository
(
"deviceModuleDao"
)
public
class
DeviceModuleDaoImpl
extends
BaseCRUDDaoMybatis
<
DeviceModuleEntity
,
Long
>
implements
DeviceModuleDao
{
public
class
DeviceModuleDaoImpl
extends
BaseCRUDDaoMybatis
<
DeviceModuleEntity
,
Long
>
implements
DeviceModuleDao
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/dao/ibatis/DeviceModuleUseDaoImpl.java
View file @
84e02b55
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
* 设备模块使用频率DaoImpl DAO接口
* 设备模块使用频率DaoImpl DAO接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@Repository
(
"deviceModuleUseDao"
)
@Repository
(
"deviceModuleUseDao"
)
public
class
DeviceModuleUseDaoImpl
extends
BaseCRUDDaoMybatis
<
DeviceModuleUseEntity
,
Long
>
implements
DeviceModuleUseDao
{
public
class
DeviceModuleUseDaoImpl
extends
BaseCRUDDaoMybatis
<
DeviceModuleUseEntity
,
Long
>
implements
DeviceModuleUseDao
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceLogEntity.java
View file @
84e02b55
...
@@ -7,11 +7,11 @@ import com.mortals.framework.annotation.Excel;
...
@@ -7,11 +7,11 @@ 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.DeviceLogVo
;
import
com.mortals.xhx.module.device.model.vo.DeviceLogVo
;
/**
/**
* 设备日志实体对象
* 设备日志实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-01
* @date 2022-07-02
*/
*/
public
class
DeviceLogEntity
extends
DeviceLogVo
{
public
class
DeviceLogEntity
extends
DeviceLogVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -27,13 +27,17 @@ public class DeviceLogEntity extends DeviceLogVo {
...
@@ -27,13 +27,17 @@ public class DeviceLogEntity extends DeviceLogVo {
/**
/**
* 设备编号
* 设备编号
*/
*/
private
String
device
Num
;
private
String
device
Code
;
/**
/**
* 设备名称,设置设备名称。
* 设备名称,设置设备名称。
*/
*/
private
String
deviceName
;
private
String
deviceName
;
/**
/**
* 日志类型,(0.上报事件,1.下发服务)
* 业务消息头标识
*/
private
String
messageHead
;
/**
* 消息类型,(0.上行,1.下行)
*/
*/
private
Integer
logType
;
private
Integer
logType
;
/**
/**
...
@@ -76,15 +80,15 @@ public class DeviceLogEntity extends DeviceLogVo {
...
@@ -76,15 +80,15 @@ public class DeviceLogEntity extends DeviceLogVo {
* 获取 设备编号
* 获取 设备编号
* @return String
* @return String
*/
*/
public
String
getDevice
Num
(){
public
String
getDevice
Code
(){
return
device
Num
;
return
device
Code
;
}
}
/**
/**
* 设置 设备编号
* 设置 设备编号
* @param deviceNum
* @param deviceCode
*/
*/
public
void
setDevice
Num
(
String
deviceNum
){
public
void
setDevice
Code
(
String
deviceCode
){
this
.
device
Num
=
deviceNum
;
this
.
device
Code
=
deviceCode
;
}
}
/**
/**
* 获取 设备名称,设置设备名称。
* 获取 设备名称,设置设备名称。
...
@@ -101,14 +105,28 @@ public class DeviceLogEntity extends DeviceLogVo {
...
@@ -101,14 +105,28 @@ public class DeviceLogEntity extends DeviceLogVo {
this
.
deviceName
=
deviceName
;
this
.
deviceName
=
deviceName
;
}
}
/**
/**
* 获取 日志类型,(0.上报事件,1.下发服务)
* 获取 业务消息头标识
* @return String
*/
public
String
getMessageHead
(){
return
messageHead
;
}
/**
* 设置 业务消息头标识
* @param messageHead
*/
public
void
setMessageHead
(
String
messageHead
){
this
.
messageHead
=
messageHead
;
}
/**
* 获取 消息类型,(0.上行,1.下行)
* @return Integer
* @return Integer
*/
*/
public
Integer
getLogType
(){
public
Integer
getLogType
(){
return
logType
;
return
logType
;
}
}
/**
/**
* 设置 日志类型,(0.上报事件,1.下发服务
)
* 设置 消息类型,(0.上行,1.下行
)
* @param logType
* @param logType
*/
*/
public
void
setLogType
(
Integer
logType
){
public
void
setLogType
(
Integer
logType
){
...
@@ -152,8 +170,9 @@ public class DeviceLogEntity extends DeviceLogVo {
...
@@ -152,8 +170,9 @@ public class DeviceLogEntity extends DeviceLogVo {
StringBuilder
sb
=
new
StringBuilder
(
""
);
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",traceID:"
).
append
(
getTraceID
());
sb
.
append
(
",traceID:"
).
append
(
getTraceID
());
sb
.
append
(
",deviceId:"
).
append
(
getDeviceId
());
sb
.
append
(
",deviceId:"
).
append
(
getDeviceId
());
sb
.
append
(
",device
Num:"
).
append
(
getDeviceNum
());
sb
.
append
(
",device
Code:"
).
append
(
getDeviceCode
());
sb
.
append
(
",deviceName:"
).
append
(
getDeviceName
());
sb
.
append
(
",deviceName:"
).
append
(
getDeviceName
());
sb
.
append
(
",messageHead:"
).
append
(
getMessageHead
());
sb
.
append
(
",logType:"
).
append
(
getLogType
());
sb
.
append
(
",logType:"
).
append
(
getLogType
());
sb
.
append
(
",content:"
).
append
(
getContent
());
sb
.
append
(
",content:"
).
append
(
getContent
());
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -165,10 +184,12 @@ public class DeviceLogEntity extends DeviceLogVo {
...
@@ -165,10 +184,12 @@ public class DeviceLogEntity extends DeviceLogVo {
this
.
deviceId
=
null
;
this
.
deviceId
=
null
;
this
.
deviceNum
=
""
;
this
.
deviceCode
=
""
;
this
.
deviceName
=
""
;
this
.
deviceName
=
""
;
this
.
messageHead
=
""
;
this
.
logType
=
null
;
this
.
logType
=
null
;
this
.
content
=
""
;
this
.
content
=
""
;
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceLogQuery.java
View file @
84e02b55
...
@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model;
...
@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model;
import
java.util.List
;
import
java.util.List
;
import
com.mortals.xhx.module.device.model.DeviceLogEntity
;
import
com.mortals.xhx.module.device.model.DeviceLogEntity
;
/**
/**
* 设备日志查询对象
* 设备日志查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-01
* @date 2022-07-02
*/
*/
public
class
DeviceLogQuery
extends
DeviceLogEntity
{
public
class
DeviceLogQuery
extends
DeviceLogEntity
{
/** 开始 主键ID,主键,自增长 */
/** 开始 主键ID,主键,自增长 */
private
Long
idStart
;
private
Long
idStart
;
...
@@ -37,21 +37,24 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -37,21 +37,24 @@ public class DeviceLogQuery extends DeviceLogEntity {
private
List
<
Long
>
deviceIdList
;
private
List
<
Long
>
deviceIdList
;
/** 设备编号 */
/** 设备编号 */
private
List
<
String
>
device
Num
List
;
private
List
<
String
>
device
Code
List
;
/** 设备名称,设置设备名称。 */
/** 设备名称,设置设备名称。 */
private
List
<
String
>
deviceNameList
;
private
List
<
String
>
deviceNameList
;
/** 开始 日志类型,(0.上报事件,1.下发服务) */
/** 业务消息头标识 */
private
List
<
String
>
messageHeadList
;
/** 开始 消息类型,(0.上行,1.下行) */
private
Integer
logTypeStart
;
private
Integer
logTypeStart
;
/** 结束
日志类型,(0.上报事件,1.下发服务
) */
/** 结束
消息类型,(0.上行,1.下行
) */
private
Integer
logTypeEnd
;
private
Integer
logTypeEnd
;
/** 增加
日志类型,(0.上报事件,1.下发服务
) */
/** 增加
消息类型,(0.上行,1.下行
) */
private
Integer
logTypeIncrement
;
private
Integer
logTypeIncrement
;
/**
日志类型,(0.上报事件,1.下发服务
)列表 */
/**
消息类型,(0.上行,1.下行
)列表 */
private
List
<
Integer
>
logTypeList
;
private
List
<
Integer
>
logTypeList
;
/** 内容 */
/** 内容 */
...
@@ -246,18 +249,18 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -246,18 +249,18 @@ public class DeviceLogQuery extends DeviceLogEntity {
/**
/**
* 获取 设备编号
* 获取 设备编号
* @return deviceNum
List
* @return deviceCode
List
*/
*/
public
List
<
String
>
getDevice
Num
List
(){
public
List
<
String
>
getDevice
Code
List
(){
return
this
.
device
Num
List
;
return
this
.
device
Code
List
;
}
}
/**
/**
* 设置 设备编号
* 设置 设备编号
* @param deviceNum
List
* @param deviceCode
List
*/
*/
public
void
setDevice
NumList
(
List
<
String
>
deviceNum
List
){
public
void
setDevice
CodeList
(
List
<
String
>
deviceCode
List
){
this
.
device
NumList
=
deviceNum
List
;
this
.
device
CodeList
=
deviceCode
List
;
}
}
/**
/**
* 获取 设备名称,设置设备名称。
* 获取 设备名称,设置设备名称。
...
@@ -275,7 +278,22 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -275,7 +278,22 @@ public class DeviceLogQuery extends DeviceLogEntity {
this
.
deviceNameList
=
deviceNameList
;
this
.
deviceNameList
=
deviceNameList
;
}
}
/**
/**
* 获取 开始 日志类型,(0.上报事件,1.下发服务)
* 获取 业务消息头标识
* @return messageHeadList
*/
public
List
<
String
>
getMessageHeadList
(){
return
this
.
messageHeadList
;
}
/**
* 设置 业务消息头标识
* @param messageHeadList
*/
public
void
setMessageHeadList
(
List
<
String
>
messageHeadList
){
this
.
messageHeadList
=
messageHeadList
;
}
/**
* 获取 开始 消息类型,(0.上行,1.下行)
* @return logTypeStart
* @return logTypeStart
*/
*/
public
Integer
getLogTypeStart
(){
public
Integer
getLogTypeStart
(){
...
@@ -283,7 +301,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -283,7 +301,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 开始 日志类型,(0.上报事件,1.下发服务
)
* 设置 开始 消息类型,(0.上行,1.下行
)
* @param logTypeStart
* @param logTypeStart
*/
*/
public
void
setLogTypeStart
(
Integer
logTypeStart
){
public
void
setLogTypeStart
(
Integer
logTypeStart
){
...
@@ -291,7 +309,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -291,7 +309,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 获取 结束 日志类型,(0.上报事件,1.下发服务
)
* 获取 结束 消息类型,(0.上行,1.下行
)
* @return $logTypeEnd
* @return $logTypeEnd
*/
*/
public
Integer
getLogTypeEnd
(){
public
Integer
getLogTypeEnd
(){
...
@@ -299,7 +317,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -299,7 +317,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 结束 日志类型,(0.上报事件,1.下发服务
)
* 设置 结束 消息类型,(0.上行,1.下行
)
* @param logTypeEnd
* @param logTypeEnd
*/
*/
public
void
setLogTypeEnd
(
Integer
logTypeEnd
){
public
void
setLogTypeEnd
(
Integer
logTypeEnd
){
...
@@ -307,7 +325,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -307,7 +325,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 获取 增加 日志类型,(0.上报事件,1.下发服务
)
* 获取 增加 消息类型,(0.上行,1.下行
)
* @return logTypeIncrement
* @return logTypeIncrement
*/
*/
public
Integer
getLogTypeIncrement
(){
public
Integer
getLogTypeIncrement
(){
...
@@ -315,7 +333,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -315,7 +333,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 增加 日志类型,(0.上报事件,1.下发服务
)
* 设置 增加 消息类型,(0.上行,1.下行
)
* @param logTypeIncrement
* @param logTypeIncrement
*/
*/
public
void
setLogTypeIncrement
(
Integer
logTypeIncrement
){
public
void
setLogTypeIncrement
(
Integer
logTypeIncrement
){
...
@@ -323,7 +341,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -323,7 +341,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 获取 日志类型,(0.上报事件,1.下发服务
)
* 获取 消息类型,(0.上行,1.下行
)
* @return logTypeList
* @return logTypeList
*/
*/
public
List
<
Integer
>
getLogTypeList
(){
public
List
<
Integer
>
getLogTypeList
(){
...
@@ -331,7 +349,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -331,7 +349,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 日志类型,(0.上报事件,1.下发服务
)
* 设置 消息类型,(0.上行,1.下行
)
* @param logTypeList
* @param logTypeList
*/
*/
public
void
setLogTypeList
(
List
<
Integer
>
logTypeList
){
public
void
setLogTypeList
(
List
<
Integer
>
logTypeList
){
...
@@ -657,19 +675,19 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -657,19 +675,19 @@ public class DeviceLogQuery extends DeviceLogEntity {
/**
/**
* 设置 设备编号
* 设置 设备编号
* @param deviceNum
* @param deviceCode
*/
*/
public
DeviceLogQuery
device
Num
(
String
deviceNum
){
public
DeviceLogQuery
device
Code
(
String
deviceCode
){
setDevice
Num
(
deviceNum
);
setDevice
Code
(
deviceCode
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 设备编号
* 设置 设备编号
* @param deviceNum
List
* @param deviceCode
List
*/
*/
public
DeviceLogQuery
device
NumList
(
List
<
String
>
deviceNum
List
){
public
DeviceLogQuery
device
CodeList
(
List
<
String
>
deviceCode
List
){
this
.
device
NumList
=
deviceNum
List
;
this
.
device
CodeList
=
deviceCode
List
;
return
this
;
return
this
;
}
}
...
@@ -692,8 +710,27 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -692,8 +710,27 @@ public class DeviceLogQuery extends DeviceLogEntity {
return
this
;
return
this
;
}
}
/**
* 设置 业务消息头标识
* @param messageHead
*/
public
DeviceLogQuery
messageHead
(
String
messageHead
){
setMessageHead
(
messageHead
);
return
this
;
}
/**
* 设置 业务消息头标识
* @param messageHeadList
*/
public
DeviceLogQuery
messageHeadList
(
List
<
String
>
messageHeadList
){
this
.
messageHeadList
=
messageHeadList
;
return
this
;
}
/**
/**
* 设置 日志类型,(0.上报事件,1.下发服务
)
* 设置 消息类型,(0.上行,1.下行
)
* @param logType
* @param logType
*/
*/
public
DeviceLogQuery
logType
(
Integer
logType
){
public
DeviceLogQuery
logType
(
Integer
logType
){
...
@@ -702,7 +739,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -702,7 +739,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 开始 日志类型,(0.上报事件,1.下发服务
)
* 设置 开始 消息类型,(0.上行,1.下行
)
* @param logTypeStart
* @param logTypeStart
*/
*/
public
DeviceLogQuery
logTypeStart
(
Integer
logTypeStart
){
public
DeviceLogQuery
logTypeStart
(
Integer
logTypeStart
){
...
@@ -711,7 +748,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -711,7 +748,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 结束 日志类型,(0.上报事件,1.下发服务
)
* 设置 结束 消息类型,(0.上行,1.下行
)
* @param logTypeEnd
* @param logTypeEnd
*/
*/
public
DeviceLogQuery
logTypeEnd
(
Integer
logTypeEnd
){
public
DeviceLogQuery
logTypeEnd
(
Integer
logTypeEnd
){
...
@@ -720,7 +757,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -720,7 +757,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 增加 日志类型,(0.上报事件,1.下发服务
)
* 设置 增加 消息类型,(0.上行,1.下行
)
* @param logTypeIncrement
* @param logTypeIncrement
*/
*/
public
DeviceLogQuery
logTypeIncrement
(
Integer
logTypeIncrement
){
public
DeviceLogQuery
logTypeIncrement
(
Integer
logTypeIncrement
){
...
@@ -729,7 +766,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
...
@@ -729,7 +766,7 @@ public class DeviceLogQuery extends DeviceLogEntity {
}
}
/**
/**
* 设置 日志类型,(0.上报事件,1.下发服务
)
* 设置 消息类型,(0.上行,1.下行
)
* @param logTypeList
* @param logTypeList
*/
*/
public
DeviceLogQuery
logTypeList
(
List
<
Integer
>
logTypeList
){
public
DeviceLogQuery
logTypeList
(
List
<
Integer
>
logTypeList
){
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleEntity.java
View file @
84e02b55
...
@@ -10,7 +10,7 @@ import com.mortals.xhx.module.device.model.vo.DeviceModuleVo;
...
@@ -10,7 +10,7 @@ import com.mortals.xhx.module.device.model.vo.DeviceModuleVo;
* 设备模块信息实体对象
* 设备模块信息实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-0
1
* @date 2022-07-0
2
*/
*/
public
class
DeviceModuleEntity
extends
DeviceModuleVo
{
public
class
DeviceModuleEntity
extends
DeviceModuleVo
{
...
@@ -19,42 +19,42 @@ public class DeviceModuleEntity extends DeviceModuleVo {
...
@@ -19,42 +19,42 @@ public class DeviceModuleEntity extends DeviceModuleVo {
/**
/**
* 模块名称
* 模块名称
*/
*/
private
Long
moduleId
;
private
String
moduleName
;
/**
/**
*
所属设备
*
模块消息编码,与上报消息头编码一致,唯一
*/
*/
private
Long
deviceId
;
private
String
moduleMsgCode
;
public
DeviceModuleEntity
(){}
public
DeviceModuleEntity
(){}
/**
/**
* 获取 模块名称
* 获取 模块名称
* @return
Lo
ng
* @return
Stri
ng
*/
*/
public
Long
getModuleId
(){
public
String
getModuleName
(){
return
module
Id
;
return
module
Name
;
}
}
/**
/**
* 设置 模块名称
* 设置 模块名称
* @param module
Id
* @param module
Name
*/
*/
public
void
setModule
Id
(
Long
moduleId
){
public
void
setModule
Name
(
String
moduleName
){
this
.
module
Id
=
moduleId
;
this
.
module
Name
=
moduleName
;
}
}
/**
/**
* 获取
所属设备
* 获取
模块消息编码,与上报消息头编码一致,唯一
* @return
Lo
ng
* @return
Stri
ng
*/
*/
public
Long
getDeviceId
(){
public
String
getModuleMsgCode
(){
return
deviceId
;
return
moduleMsgCode
;
}
}
/**
/**
* 设置
所属设备
* 设置
模块消息编码,与上报消息头编码一致,唯一
* @param
deviceId
* @param
moduleMsgCode
*/
*/
public
void
set
DeviceId
(
Long
deviceId
){
public
void
set
ModuleMsgCode
(
String
moduleMsgCode
){
this
.
deviceId
=
deviceId
;
this
.
moduleMsgCode
=
moduleMsgCode
;
}
}
...
@@ -78,15 +78,15 @@ public class DeviceModuleEntity extends DeviceModuleVo {
...
@@ -78,15 +78,15 @@ public class DeviceModuleEntity extends DeviceModuleVo {
public
String
toString
(){
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",module
Id:"
).
append
(
getModuleId
());
sb
.
append
(
",module
Name:"
).
append
(
getModuleName
());
sb
.
append
(
",
deviceId:"
).
append
(
getDeviceId
());
sb
.
append
(
",
moduleMsgCode:"
).
append
(
getModuleMsgCode
());
return
sb
.
toString
();
return
sb
.
toString
();
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
module
Id
=
null
;
this
.
module
Name
=
""
;
this
.
deviceId
=
null
;
this
.
moduleMsgCode
=
""
;
}
}
}
}
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleQuery.java
View file @
84e02b55
...
@@ -6,7 +6,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleEntity;
...
@@ -6,7 +6,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleEntity;
* 设备模块信息查询对象
* 设备模块信息查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-0
1
* @date 2022-07-0
2
*/
*/
public
class
DeviceModuleQuery
extends
DeviceModuleEntity
{
public
class
DeviceModuleQuery
extends
DeviceModuleEntity
{
/** 开始 主键ID,主键,自增长 */
/** 开始 主键ID,主键,自增长 */
...
@@ -21,29 +21,11 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
...
@@ -21,29 +21,11 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
/** 主键ID,主键,自增长列表 */
/** 主键ID,主键,自增长列表 */
private
List
<
Long
>
idList
;
private
List
<
Long
>
idList
;
/**
开始
模块名称 */
/** 模块名称 */
private
L
ong
moduleIdStar
t
;
private
L
ist
<
String
>
moduleNameLis
t
;
/** 结束 模块名称 */
/** 模块消息编码,与上报消息头编码一致,唯一 */
private
Long
moduleIdEnd
;
private
List
<
String
>
moduleMsgCodeList
;
/** 增加 模块名称 */
private
Long
moduleIdIncrement
;
/** 模块名称列表 */
private
List
<
Long
>
moduleIdList
;
/** 开始 所属设备 */
private
Long
deviceIdStart
;
/** 结束 所属设备 */
private
Long
deviceIdEnd
;
/** 增加 所属设备 */
private
Long
deviceIdIncrement
;
/** 所属设备列表 */
private
List
<
Long
>
deviceIdList
;
/** 开始 创建时间 */
/** 开始 创建时间 */
private
String
createTimeStart
;
private
String
createTimeStart
;
...
@@ -141,134 +123,36 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
...
@@ -141,134 +123,36 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
this
.
idList
=
idList
;
this
.
idList
=
idList
;
}
}
/**
* 获取 开始 模块名称
* @return moduleIdStart
*/
public
Long
getModuleIdStart
(){
return
this
.
moduleIdStart
;
}
/**
* 设置 开始 模块名称
* @param moduleIdStart
*/
public
void
setModuleIdStart
(
Long
moduleIdStart
){
this
.
moduleIdStart
=
moduleIdStart
;
}
/**
* 获取 结束 模块名称
* @return $moduleIdEnd
*/
public
Long
getModuleIdEnd
(){
return
this
.
moduleIdEnd
;
}
/**
* 设置 结束 模块名称
* @param moduleIdEnd
*/
public
void
setModuleIdEnd
(
Long
moduleIdEnd
){
this
.
moduleIdEnd
=
moduleIdEnd
;
}
/**
* 获取 增加 模块名称
* @return moduleIdIncrement
*/
public
Long
getModuleIdIncrement
(){
return
this
.
moduleIdIncrement
;
}
/**
* 设置 增加 模块名称
* @param moduleIdIncrement
*/
public
void
setModuleIdIncrement
(
Long
moduleIdIncrement
){
this
.
moduleIdIncrement
=
moduleIdIncrement
;
}
/**
/**
* 获取 模块名称
* 获取 模块名称
* @return module
Id
List
* @return module
Name
List
*/
*/
public
List
<
Long
>
getModuleId
List
(){
public
List
<
String
>
getModuleName
List
(){
return
this
.
module
Id
List
;
return
this
.
module
Name
List
;
}
}
/**
/**
* 设置 模块名称
* 设置 模块名称
* @param moduleIdList
* @param moduleNameList
*/
public
void
setModuleIdList
(
List
<
Long
>
moduleIdList
){
this
.
moduleIdList
=
moduleIdList
;
}
/**
* 获取 开始 所属设备
* @return deviceIdStart
*/
public
Long
getDeviceIdStart
(){
return
this
.
deviceIdStart
;
}
/**
* 设置 开始 所属设备
* @param deviceIdStart
*/
public
void
setDeviceIdStart
(
Long
deviceIdStart
){
this
.
deviceIdStart
=
deviceIdStart
;
}
/**
* 获取 结束 所属设备
* @return $deviceIdEnd
*/
public
Long
getDeviceIdEnd
(){
return
this
.
deviceIdEnd
;
}
/**
* 设置 结束 所属设备
* @param deviceIdEnd
*/
public
void
setDeviceIdEnd
(
Long
deviceIdEnd
){
this
.
deviceIdEnd
=
deviceIdEnd
;
}
/**
* 获取 增加 所属设备
* @return deviceIdIncrement
*/
public
Long
getDeviceIdIncrement
(){
return
this
.
deviceIdIncrement
;
}
/**
* 设置 增加 所属设备
* @param deviceIdIncrement
*/
*/
public
void
set
DeviceIdIncrement
(
Long
deviceIdIncremen
t
){
public
void
set
ModuleNameList
(
List
<
String
>
moduleNameLis
t
){
this
.
deviceIdIncrement
=
deviceIdIncremen
t
;
this
.
moduleNameList
=
moduleNameLis
t
;
}
}
/**
/**
* 获取
所属设备
* 获取
模块消息编码,与上报消息头编码一致,唯一
* @return
deviceId
List
* @return
moduleMsgCode
List
*/
*/
public
List
<
Long
>
getDeviceId
List
(){
public
List
<
String
>
getModuleMsgCode
List
(){
return
this
.
deviceId
List
;
return
this
.
moduleMsgCode
List
;
}
}
/**
/**
* 设置
所属设备
* 设置
模块消息编码,与上报消息头编码一致,唯一
* @param
deviceId
List
* @param
moduleMsgCode
List
*/
*/
public
void
set
DeviceIdList
(
List
<
Long
>
deviceId
List
){
public
void
set
ModuleMsgCodeList
(
List
<
String
>
moduleMsgCode
List
){
this
.
deviceIdList
=
deviceId
List
;
this
.
moduleMsgCodeList
=
moduleMsgCode
List
;
}
}
/**
/**
* 获取 开始 创建时间
* 获取 开始 创建时间
* @return createTimeStart
* @return createTimeStart
...
@@ -442,93 +326,41 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
...
@@ -442,93 +326,41 @@ public class DeviceModuleQuery extends DeviceModuleEntity {
return
this
;
return
this
;
}
}
/**
* 设置 模块名称
* @param moduleId
*/
public
DeviceModuleQuery
moduleId
(
Long
moduleId
){
setModuleId
(
moduleId
);
return
this
;
}
/**
* 设置 开始 模块名称
* @param moduleIdStart
*/
public
DeviceModuleQuery
moduleIdStart
(
Long
moduleIdStart
){
this
.
moduleIdStart
=
moduleIdStart
;
return
this
;
}
/**
* 设置 结束 模块名称
* @param moduleIdEnd
*/
public
DeviceModuleQuery
moduleIdEnd
(
Long
moduleIdEnd
){
this
.
moduleIdEnd
=
moduleIdEnd
;
return
this
;
}
/**
* 设置 增加 模块名称
* @param moduleIdIncrement
*/
public
DeviceModuleQuery
moduleIdIncrement
(
Long
moduleIdIncrement
){
this
.
moduleIdIncrement
=
moduleIdIncrement
;
return
this
;
}
/**
/**
* 设置 模块名称
* 设置 模块名称
* @param module
IdList
* @param module
Name
*/
*/
public
DeviceModuleQuery
module
IdList
(
List
<
Long
>
moduleIdList
){
public
DeviceModuleQuery
module
Name
(
String
moduleName
){
this
.
moduleIdList
=
moduleIdList
;
setModuleName
(
moduleName
)
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 所属设备
* 设置 模块名称
* @param deviceId
* @param moduleNameList
*/
public
DeviceModuleQuery
deviceId
(
Long
deviceId
){
setDeviceId
(
deviceId
);
return
this
;
}
/**
* 设置 开始 所属设备
* @param deviceIdStart
*/
*/
public
DeviceModuleQuery
deviceIdStart
(
Long
deviceIdStar
t
){
public
DeviceModuleQuery
moduleNameList
(
List
<
String
>
moduleNameLis
t
){
this
.
deviceIdStart
=
deviceIdStar
t
;
this
.
moduleNameList
=
moduleNameLis
t
;
return
this
;
return
this
;
}
}
/**
* 设置 结束 所属设备
* @param deviceIdEnd
*/
public
DeviceModuleQuery
deviceIdEnd
(
Long
deviceIdEnd
){
this
.
deviceIdEnd
=
deviceIdEnd
;
return
this
;
}
/**
/**
* 设置
增加 所属设备
* 设置
模块消息编码,与上报消息头编码一致,唯一
* @param
deviceIdIncrement
* @param
moduleMsgCode
*/
*/
public
DeviceModuleQuery
deviceIdIncrement
(
Long
deviceIdIncrement
){
public
DeviceModuleQuery
moduleMsgCode
(
String
moduleMsgCode
){
this
.
deviceIdIncrement
=
deviceIdIncrement
;
setModuleMsgCode
(
moduleMsgCode
)
;
return
this
;
return
this
;
}
}
/**
/**
* 设置
所属设备
* 设置
模块消息编码,与上报消息头编码一致,唯一
* @param
deviceId
List
* @param
moduleMsgCode
List
*/
*/
public
DeviceModuleQuery
deviceIdList
(
List
<
Long
>
deviceId
List
){
public
DeviceModuleQuery
moduleMsgCodeList
(
List
<
String
>
moduleMsgCode
List
){
this
.
deviceIdList
=
deviceId
List
;
this
.
moduleMsgCodeList
=
moduleMsgCode
List
;
return
this
;
return
this
;
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleUseEntity.java
View file @
84e02b55
...
@@ -7,19 +7,27 @@ import com.mortals.framework.annotation.Excel;
...
@@ -7,19 +7,27 @@ 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.DeviceModuleUseVo
;
import
com.mortals.xhx.module.device.model.vo.DeviceModuleUseVo
;
/**
/**
* 设备模块使用频率实体对象
* 设备模块使用频率实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-01
* @date 2022-07-02
*/
*/
public
class
DeviceModuleUseEntity
extends
DeviceModuleUseVo
{
public
class
DeviceModuleUseEntity
extends
DeviceModuleUseVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 模块ID
* 模块名称
*/
private
String
moduleName
;
/**
* 模块消息编码
*/
private
String
moduleMsgCode
;
/**
* 所属设备
*/
*/
private
Long
modul
eId
;
private
Long
devic
eId
;
/**
/**
* 调用次数
* 调用次数
*/
*/
...
@@ -29,18 +37,46 @@ public class DeviceModuleUseEntity extends DeviceModuleUseVo {
...
@@ -29,18 +37,46 @@ public class DeviceModuleUseEntity extends DeviceModuleUseVo {
public
DeviceModuleUseEntity
(){}
public
DeviceModuleUseEntity
(){}
/**
/**
* 获取 模块ID
* 获取 模块名称
* @return String
*/
public
String
getModuleName
(){
return
moduleName
;
}
/**
* 设置 模块名称
* @param moduleName
*/
public
void
setModuleName
(
String
moduleName
){
this
.
moduleName
=
moduleName
;
}
/**
* 获取 模块消息编码
* @return String
*/
public
String
getModuleMsgCode
(){
return
moduleMsgCode
;
}
/**
* 设置 模块消息编码
* @param moduleMsgCode
*/
public
void
setModuleMsgCode
(
String
moduleMsgCode
){
this
.
moduleMsgCode
=
moduleMsgCode
;
}
/**
* 获取 所属设备
* @return Long
* @return Long
*/
*/
public
Long
get
Modul
eId
(){
public
Long
get
Devic
eId
(){
return
modul
eId
;
return
devic
eId
;
}
}
/**
/**
* 设置 模块ID
* 设置 所属设备
* @param modul
eId
* @param devic
eId
*/
*/
public
void
set
ModuleId
(
Long
modul
eId
){
public
void
set
DeviceId
(
Long
devic
eId
){
this
.
moduleId
=
modul
eId
;
this
.
deviceId
=
devic
eId
;
}
}
/**
/**
* 获取 调用次数
* 获取 调用次数
...
@@ -78,14 +114,20 @@ public class DeviceModuleUseEntity extends DeviceModuleUseVo {
...
@@ -78,14 +114,20 @@ public class DeviceModuleUseEntity extends DeviceModuleUseVo {
public
String
toString
(){
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",moduleId:"
).
append
(
getModuleId
());
sb
.
append
(
",moduleName:"
).
append
(
getModuleName
());
sb
.
append
(
",moduleMsgCode:"
).
append
(
getModuleMsgCode
());
sb
.
append
(
",deviceId:"
).
append
(
getDeviceId
());
sb
.
append
(
",useNum:"
).
append
(
getUseNum
());
sb
.
append
(
",useNum:"
).
append
(
getUseNum
());
return
sb
.
toString
();
return
sb
.
toString
();
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
moduleId
=
null
;
this
.
moduleName
=
""
;
this
.
moduleMsgCode
=
""
;
this
.
deviceId
=
null
;
this
.
useNum
=
null
;
this
.
useNum
=
null
;
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/DeviceModuleUseQuery.java
View file @
84e02b55
...
@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model;
...
@@ -3,11 +3,11 @@ package com.mortals.xhx.module.device.model;
import
java.util.List
;
import
java.util.List
;
import
com.mortals.xhx.module.device.model.DeviceModuleUseEntity
;
import
com.mortals.xhx.module.device.model.DeviceModuleUseEntity
;
/**
/**
* 设备模块使用频率查询对象
* 设备模块使用频率查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-01
* @date 2022-07-02
*/
*/
public
class
DeviceModuleUseQuery
extends
DeviceModuleUseEntity
{
public
class
DeviceModuleUseQuery
extends
DeviceModuleUseEntity
{
/** 开始 主键ID,主键,自增长 */
/** 开始 主键ID,主键,自增长 */
private
Long
idStart
;
private
Long
idStart
;
...
@@ -21,17 +21,23 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
...
@@ -21,17 +21,23 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
/** 主键ID,主键,自增长列表 */
/** 主键ID,主键,自增长列表 */
private
List
<
Long
>
idList
;
private
List
<
Long
>
idList
;
/** 开始 模块ID */
/** 模块名称 */
private
Long
moduleIdStart
;
private
List
<
String
>
moduleNameList
;
/** 模块消息编码 */
private
List
<
String
>
moduleMsgCodeList
;
/** 开始 所属设备 */
private
Long
deviceIdStart
;
/** 结束
模块ID
*/
/** 结束
所属设备
*/
private
Long
modul
eIdEnd
;
private
Long
devic
eIdEnd
;
/** 增加
模块ID
*/
/** 增加
所属设备
*/
private
Long
modul
eIdIncrement
;
private
Long
devic
eIdIncrement
;
/**
模块ID
列表 */
/**
所属设备
列表 */
private
List
<
Long
>
modul
eIdList
;
private
List
<
Long
>
devic
eIdList
;
/** 开始 调用次数 */
/** 开始 调用次数 */
private
Long
useNumStart
;
private
Long
useNumStart
;
...
@@ -142,67 +148,97 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
...
@@ -142,67 +148,97 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
}
}
/**
/**
* 获取 开始 模块ID
* 获取 模块名称
* @return moduleIdStart
* @return moduleNameList
*/
public
List
<
String
>
getModuleNameList
(){
return
this
.
moduleNameList
;
}
/**
* 设置 模块名称
* @param moduleNameList
*/
public
void
setModuleNameList
(
List
<
String
>
moduleNameList
){
this
.
moduleNameList
=
moduleNameList
;
}
/**
* 获取 模块消息编码
* @return moduleMsgCodeList
*/
public
List
<
String
>
getModuleMsgCodeList
(){
return
this
.
moduleMsgCodeList
;
}
/**
* 设置 模块消息编码
* @param moduleMsgCodeList
*/
public
void
setModuleMsgCodeList
(
List
<
String
>
moduleMsgCodeList
){
this
.
moduleMsgCodeList
=
moduleMsgCodeList
;
}
/**
* 获取 开始 所属设备
* @return deviceIdStart
*/
*/
public
Long
get
Modul
eIdStart
(){
public
Long
get
Devic
eIdStart
(){
return
this
.
modul
eIdStart
;
return
this
.
devic
eIdStart
;
}
}
/**
/**
* 设置 开始 模块ID
* 设置 开始 所属设备
* @param modul
eIdStart
* @param devic
eIdStart
*/
*/
public
void
set
ModuleIdStart
(
Long
modul
eIdStart
){
public
void
set
DeviceIdStart
(
Long
devic
eIdStart
){
this
.
moduleIdStart
=
modul
eIdStart
;
this
.
deviceIdStart
=
devic
eIdStart
;
}
}
/**
/**
* 获取 结束 模块ID
* 获取 结束 所属设备
* @return $modul
eIdEnd
* @return $devic
eIdEnd
*/
*/
public
Long
get
Modul
eIdEnd
(){
public
Long
get
Devic
eIdEnd
(){
return
this
.
modul
eIdEnd
;
return
this
.
devic
eIdEnd
;
}
}
/**
/**
* 设置 结束 模块ID
* 设置 结束 所属设备
* @param modul
eIdEnd
* @param devic
eIdEnd
*/
*/
public
void
set
ModuleIdEnd
(
Long
modul
eIdEnd
){
public
void
set
DeviceIdEnd
(
Long
devic
eIdEnd
){
this
.
moduleIdEnd
=
modul
eIdEnd
;
this
.
deviceIdEnd
=
devic
eIdEnd
;
}
}
/**
/**
* 获取 增加 模块ID
* 获取 增加 所属设备
* @return modul
eIdIncrement
* @return devic
eIdIncrement
*/
*/
public
Long
get
Modul
eIdIncrement
(){
public
Long
get
Devic
eIdIncrement
(){
return
this
.
modul
eIdIncrement
;
return
this
.
devic
eIdIncrement
;
}
}
/**
/**
* 设置 增加 模块ID
* 设置 增加 所属设备
* @param modul
eIdIncrement
* @param devic
eIdIncrement
*/
*/
public
void
set
ModuleIdIncrement
(
Long
modul
eIdIncrement
){
public
void
set
DeviceIdIncrement
(
Long
devic
eIdIncrement
){
this
.
moduleIdIncrement
=
modul
eIdIncrement
;
this
.
deviceIdIncrement
=
devic
eIdIncrement
;
}
}
/**
/**
* 获取 模块ID
* 获取 所属设备
* @return modul
eIdList
* @return devic
eIdList
*/
*/
public
List
<
Long
>
get
Modul
eIdList
(){
public
List
<
Long
>
get
Devic
eIdList
(){
return
this
.
modul
eIdList
;
return
this
.
devic
eIdList
;
}
}
/**
/**
* 设置 模块ID
* 设置 所属设备
* @param modul
eIdList
* @param devic
eIdList
*/
*/
public
void
set
ModuleIdList
(
List
<
Long
>
modul
eIdList
){
public
void
set
DeviceIdList
(
List
<
Long
>
devic
eIdList
){
this
.
moduleIdList
=
modul
eIdList
;
this
.
deviceIdList
=
devic
eIdList
;
}
}
/**
/**
...
@@ -442,48 +478,86 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
...
@@ -442,48 +478,86 @@ public class DeviceModuleUseQuery extends DeviceModuleUseEntity {
return
this
;
return
this
;
}
}
/**
* 设置 模块名称
* @param moduleName
*/
public
DeviceModuleUseQuery
moduleName
(
String
moduleName
){
setModuleName
(
moduleName
);
return
this
;
}
/**
* 设置 模块名称
* @param moduleNameList
*/
public
DeviceModuleUseQuery
moduleNameList
(
List
<
String
>
moduleNameList
){
this
.
moduleNameList
=
moduleNameList
;
return
this
;
}
/**
* 设置 模块消息编码
* @param moduleMsgCode
*/
public
DeviceModuleUseQuery
moduleMsgCode
(
String
moduleMsgCode
){
setModuleMsgCode
(
moduleMsgCode
);
return
this
;
}
/**
* 设置 模块消息编码
* @param moduleMsgCodeList
*/
public
DeviceModuleUseQuery
moduleMsgCodeList
(
List
<
String
>
moduleMsgCodeList
){
this
.
moduleMsgCodeList
=
moduleMsgCodeList
;
return
this
;
}
/**
/**
* 设置 模块ID
* 设置 所属设备
* @param modul
eId
* @param devic
eId
*/
*/
public
DeviceModuleUseQuery
moduleId
(
Long
modul
eId
){
public
DeviceModuleUseQuery
deviceId
(
Long
devic
eId
){
setModuleId
(
modul
eId
);
setDeviceId
(
devic
eId
);
return
this
;
return
this
;
}
}
/**
/**
* 设置 开始 模块ID
* 设置 开始 所属设备
* @param modul
eIdStart
* @param devic
eIdStart
*/
*/
public
DeviceModuleUseQuery
moduleIdStart
(
Long
modul
eIdStart
){
public
DeviceModuleUseQuery
deviceIdStart
(
Long
devic
eIdStart
){
this
.
moduleIdStart
=
modul
eIdStart
;
this
.
deviceIdStart
=
devic
eIdStart
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 结束 模块ID
* 设置 结束 所属设备
* @param modul
eIdEnd
* @param devic
eIdEnd
*/
*/
public
DeviceModuleUseQuery
moduleIdEnd
(
Long
modul
eIdEnd
){
public
DeviceModuleUseQuery
deviceIdEnd
(
Long
devic
eIdEnd
){
this
.
moduleIdEnd
=
modul
eIdEnd
;
this
.
deviceIdEnd
=
devic
eIdEnd
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 增加 模块ID
* 设置 增加 所属设备
* @param modul
eIdIncrement
* @param devic
eIdIncrement
*/
*/
public
DeviceModuleUseQuery
moduleIdIncrement
(
Long
modul
eIdIncrement
){
public
DeviceModuleUseQuery
deviceIdIncrement
(
Long
devic
eIdIncrement
){
this
.
moduleIdIncrement
=
modul
eIdIncrement
;
this
.
deviceIdIncrement
=
devic
eIdIncrement
;
return
this
;
return
this
;
}
}
/**
/**
* 设置 模块ID
* 设置 所属设备
* @param modul
eIdList
* @param devic
eIdList
*/
*/
public
DeviceModuleUseQuery
moduleIdList
(
List
<
Long
>
modul
eIdList
){
public
DeviceModuleUseQuery
deviceIdList
(
List
<
Long
>
devic
eIdList
){
this
.
moduleIdList
=
modul
eIdList
;
this
.
deviceIdList
=
devic
eIdList
;
return
this
;
return
this
;
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceAlarmInfoVo.java
View file @
84e02b55
package
com.mortals.xhx.module.device.model.vo
;
package
com.mortals.xhx.module.device.model.vo
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.device.model.DeviceAlarmInfoEntity
;
import
com.mortals.xhx.module.device.model.DeviceAlarmInfoEntity
;
import
lombok.Data
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -9,6 +11,12 @@ import java.util.List;
...
@@ -9,6 +11,12 @@ import java.util.List;
* @author zxfei
* @author zxfei
* @date 2022-07-01
* @date 2022-07-01
*/
*/
@Data
public
class
DeviceAlarmInfoVo
extends
BaseEntityLong
{
public
class
DeviceAlarmInfoVo
extends
BaseEntityLong
{
/** 开始 告警时间 */
private
String
alarmTimeStart
;
/** 结束 告警时间 */
private
String
alarmTimeEnd
;
}
}
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceModuleUseVo.java
View file @
84e02b55
...
@@ -7,7 +7,7 @@ import java.util.List;
...
@@ -7,7 +7,7 @@ import java.util.List;
* 设备模块使用频率视图对象
* 设备模块使用频率视图对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-0
1
* @date 2022-07-0
2
*/
*/
public
class
DeviceModuleUseVo
extends
BaseEntityLong
{
public
class
DeviceModuleUseVo
extends
BaseEntityLong
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/model/vo/DeviceModuleVo.java
View file @
84e02b55
...
@@ -7,7 +7,7 @@ import java.util.List;
...
@@ -7,7 +7,7 @@ import java.util.List;
* 设备模块信息视图对象
* 设备模块信息视图对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-0
1
* @date 2022-07-0
2
*/
*/
public
class
DeviceModuleVo
extends
BaseEntityLong
{
public
class
DeviceModuleVo
extends
BaseEntityLong
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceModuleService.java
View file @
84e02b55
...
@@ -7,7 +7,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleEntity;
...
@@ -7,7 +7,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleEntity;
* 设备模块信息 service接口
* 设备模块信息 service接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
public
interface
DeviceModuleService
extends
ICRUDService
<
DeviceModuleEntity
,
Long
>{
public
interface
DeviceModuleService
extends
ICRUDService
<
DeviceModuleEntity
,
Long
>{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/DeviceModuleUseService.java
View file @
84e02b55
...
@@ -7,7 +7,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleUseEntity;
...
@@ -7,7 +7,7 @@ import com.mortals.xhx.module.device.model.DeviceModuleUseEntity;
* 设备模块使用频率 service接口
* 设备模块使用频率 service接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
public
interface
DeviceModuleUseService
extends
ICRUDService
<
DeviceModuleUseEntity
,
Long
>{
public
interface
DeviceModuleUseService
extends
ICRUDService
<
DeviceModuleUseEntity
,
Long
>{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleServiceImpl.java
View file @
84e02b55
...
@@ -9,7 +9,7 @@ import com.mortals.xhx.module.device.service.DeviceModuleService;
...
@@ -9,7 +9,7 @@ import com.mortals.xhx.module.device.service.DeviceModuleService;
* 设备模块信息 service实现
* 设备模块信息 service实现
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@Service
(
"deviceModuleService"
)
@Service
(
"deviceModuleService"
)
public
class
DeviceModuleServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceModuleDao
,
DeviceModuleEntity
,
Long
>
implements
DeviceModuleService
{
public
class
DeviceModuleServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceModuleDao
,
DeviceModuleEntity
,
Long
>
implements
DeviceModuleService
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceModuleUseServiceImpl.java
View file @
84e02b55
...
@@ -9,7 +9,7 @@ import com.mortals.xhx.module.device.service.DeviceModuleUseService;
...
@@ -9,7 +9,7 @@ import com.mortals.xhx.module.device.service.DeviceModuleUseService;
* 设备模块使用频率 service实现
* 设备模块使用频率 service实现
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@Service
(
"deviceModuleUseService"
)
@Service
(
"deviceModuleUseService"
)
public
class
DeviceModuleUseServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceModuleUseDao
,
DeviceModuleUseEntity
,
Long
>
implements
DeviceModuleUseService
{
public
class
DeviceModuleUseServiceImpl
extends
AbstractCRUDServiceImpl
<
DeviceModuleUseDao
,
DeviceModuleUseEntity
,
Long
>
implements
DeviceModuleUseService
{
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceAlarmInfoController.java
View file @
84e02b55
...
@@ -4,35 +4,41 @@ import com.mortals.framework.model.Context;
...
@@ -4,35 +4,41 @@ import com.mortals.framework.model.Context;
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.module.device.model.DeviceAlarmInfoEntity
;
import
com.mortals.xhx.module.device.model.DeviceAlarmInfoEntity
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
import
com.mortals.xhx.module.device.service.DeviceAlarmInfoService
;
import
com.mortals.xhx.module.device.service.DeviceAlarmInfoService
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
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
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
*
* 设备告警日志
* 设备告警日志
*
*
* @author zxfei
* @author zxfei
* @date 2022-06-27
* @date 2022-06-27
*/
*/
@RestController
@RestController
@RequestMapping
(
"device/alarm/info"
)
@RequestMapping
(
"device/alarm/info"
)
public
class
DeviceAlarmInfoController
extends
BaseCRUDJsonBodyMappingController
<
DeviceAlarmInfoService
,
DeviceAlarmInfoEntity
,
Long
>
{
public
class
DeviceAlarmInfoController
extends
BaseCRUDJsonBodyMappingController
<
DeviceAlarmInfoService
,
DeviceAlarmInfoEntity
,
Long
>
{
@Autowired
@Autowired
private
ParamService
paramService
;
private
ParamService
paramService
;
@Autowired
private
DeviceService
deviceService
;
public
DeviceAlarmInfoController
(){
public
DeviceAlarmInfoController
()
{
super
.
setModuleDesc
(
"设备告警日志"
);
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
,
"alarmType"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmType"
));
this
.
addDict
(
model
,
"alarmType"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmType"
));
this
.
addDict
(
model
,
"alarmLevel"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmLevel"
));
this
.
addDict
(
model
,
"alarmLevel"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmLevel"
));
this
.
addDict
(
model
,
"alarmStatus"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmStatus"
));
this
.
addDict
(
model
,
"alarmStatus"
,
paramService
.
getParamBySecondOrganize
(
"DeviceAlarmInfo"
,
"alarmStatus"
));
this
.
addDict
(
model
,
"alarmDevice"
,
deviceService
.
find
(
new
DeviceQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getDeviceName
())));
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleController.java
View file @
84e02b55
package
com.mortals.xhx.module.device.web
;
package
com.mortals.xhx.module.device.web
;
import
com.mortals.framework.model.Context
;
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.module.device.model.DeviceModuleEntity
;
import
com.mortals.xhx.module.device.service.DeviceModuleService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
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
com.mortals.framework.model.Context
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.device.model.DeviceModuleEntity
;
import
com.mortals.xhx.module.device.service.DeviceModuleService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
/**
/**
*
*
* 设备模块信息
* 设备模块信息
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@RestController
@RestController
@RequestMapping
(
"device/module"
)
@RequestMapping
(
"device/module"
)
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleUseController.java
View file @
84e02b55
package
com.mortals.xhx.module.device.web
;
package
com.mortals.xhx.module.device.web
;
import
com.mortals.framework.model.Context
;
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.module.device.model.DeviceModuleUseEntity
;
import
com.mortals.xhx.module.device.service.DeviceModuleUseService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
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
com.mortals.framework.model.Context
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.module.device.model.DeviceModuleUseEntity
;
import
com.mortals.xhx.module.device.service.DeviceModuleUseService
;
import
org.apache.commons.lang3.ArrayUtils
;
import
com.mortals.framework.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Arrays
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
static
com
.
mortals
.
framework
.
ap
.
SysConstains
.*;
/**
/**
*
*
* 设备模块使用频率
* 设备模块使用频率
*
*
* @author zxfei
* @author zxfei
* @date 2022-0
6-27
* @date 2022-0
7-02
*/
*/
@RestController
@RestController
@RequestMapping
(
"device/module/use"
)
@RequestMapping
(
"device/module/use"
)
...
...
device-manager/src/main/resources/sqlmap/module/device/DeviceLogMapper.xml
View file @
84e02b55
This diff is collapsed.
Click to expand it.
device-manager/src/main/resources/sqlmap/module/device/DeviceModuleMapper.xml
View file @
84e02b55
This diff is collapsed.
Click to expand it.
device-manager/src/main/resources/sqlmap/module/device/DeviceModuleUseMapper.xml
View file @
84e02b55
This diff is collapsed.
Click to expand it.
doc/设备管理系统.docx
View file @
84e02b55
No preview for this file type
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