Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
14fb87be
Commit
14fb87be
authored
Mar 15, 2022
by
chenjunxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: “门禁设备配置”页面及服务端代码生成
parent
c2d87b43
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
2648 additions
and
4 deletions
+2648
-4
ant-design-vue-jeecg/src/defaultSettings.js
+4
-4
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceList.vue
+277
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceRecordList.vue
+193
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceForm.vue
+179
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceModal.Style#Drawer.vue
+85
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceModal.vue
+61
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordForm.vue
+120
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordModal.Style#Drawer.vue
+85
-0
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordModal.vue
+61
-0
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceList.vue
+271
-0
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceForm.vue
+175
-0
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceModal.Style#Drawer.vue
+85
-0
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceModal.vue
+61
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmAccessControlDeviceController.java
+155
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmAccessControlDeviceRecordController.java
+155
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmMonitoringDeviceController.java
+155
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmAccessControlDevice.java
+151
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmAccessControlDeviceRecord.java
+71
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmMonitoringDevice.java
+145
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmAccessControlDeviceMapper.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmAccessControlDeviceRecordMapper.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmMonitoringDeviceMapper.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmAccessControlDeviceMapper.xml
+6
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmAccessControlDeviceRecordMapper.xml
+6
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmMonitoringDeviceMapper.xml
+6
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmAccessControlDeviceRecordService.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmAccessControlDeviceService.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmMonitoringDeviceService.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmAccessControlDeviceRecordServiceImpl.java
+19
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmAccessControlDeviceServiceImpl.java
+19
-0
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmMonitoringDeviceServiceImpl.java
+19
-0
No files found.
ant-design-vue-jeecg/src/defaultSettings.js
View file @
14fb87be
...
@@ -15,14 +15,14 @@
...
@@ -15,14 +15,14 @@
export
default
{
export
default
{
primaryColor
:
'#1890FF'
,
// primary color of ant design
primaryColor
:
'#1890FF'
,
// primary color of ant design
navTheme
:
'
light
'
,
// theme for nav menu
navTheme
:
'
dark
'
,
// theme for nav menu
layout
:
'sidemenu'
,
// nav menu position: sidemenu or topmenu
layout
:
'sidemenu'
,
// nav menu position: sidemenu or topmenu
contentWidth
:
'Fixed'
,
// layout of content: Fluid or Fixed, only works when layout is topmenu
contentWidth
:
'Fixed'
,
// layout of content: Fluid or Fixed, only works when layout is topmenu
fixedHeader
:
fals
e
,
// sticky header
fixedHeader
:
tru
e
,
// sticky header
fixSiderbar
:
fals
e
,
// sticky siderbar
fixSiderbar
:
tru
e
,
// sticky siderbar
autoHideHeader
:
false
,
// auto hide header
autoHideHeader
:
false
,
// auto hide header
colorWeak
:
false
,
colorWeak
:
false
,
multipage
:
tru
e
,
//默认多页签模式
multipage
:
fals
e
,
//默认多页签模式
// vue-ls options
// vue-ls options
storageOptions
:
{
storageOptions
:
{
namespace
:
'pro__'
,
// key prefix
namespace
:
'pro__'
,
// key prefix
...
...
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceList.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-card
:bordered=
"false"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<a-form
layout=
"inline"
@
keyup
.
enter
.
native=
"searchQuery"
>
<a-row
:gutter=
"24"
>
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('pm_access_control_device')"
>
导出
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query
:fieldList=
"superFieldList"
ref=
"superQueryModal"
@
handleSuperQuery=
"handleSuperQuery"
></j-super-query>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div
class=
"ant-alert ant-alert-info"
style=
"margin-bottom: 16px;"
>
<i
class=
"anticon anticon-info-circle ant-alert-icon"
></i>
已选择
<a
style=
"font-weight: 600"
>
{{
selectedRowKeys
.
length
}}
</a>
项
<a
style=
"margin-left: 24px"
@
click=
"onClearSelected"
>
清空
</a>
</div>
<a-table
ref=
"table"
size=
"middle"
:scroll=
"
{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template
slot=
"htmlSlot"
slot-scope=
"text"
>
<div
v-html=
"text"
></div>
</
template
>
<
template
slot=
"imgSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无图片
</span>
<img
v-else
:src=
"getImgView(text)"
height=
"25px"
alt=
""
style=
"max-width:80px;font-size: 12px;font-style: italic;"
/>
</
template
>
<
template
slot=
"fileSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无文件
</span>
<a-button
v-else
:ghost=
"true"
type=
"primary"
icon=
"download"
size=
"small"
@
click=
"downloadFile(text)"
>
下载
</a-button>
</
template
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-dropdown>
<a
class=
"ant-dropdown-link"
>
更多
<a-icon
type=
"down"
/></a>
<a-menu
slot=
"overlay"
>
<a-menu-item>
<a
@
click=
"handleDetail(record)"
>
详情
</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<pm-access-control-device-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></pm-access-control-device-modal>
</a-card>
</template>
<
script
>
import
'@/assets/less/TableExpand.less'
import
{
mixinDevice
}
from
'@/utils/mixin'
import
{
JeecgListMixin
}
from
'@/mixins/JeecgListMixin'
import
PmAccessControlDeviceModal
from
'./modules/PmAccessControlDeviceModal'
export
default
{
name
:
'PmAccessControlDeviceList'
,
mixins
:[
JeecgListMixin
,
mixinDevice
],
components
:
{
PmAccessControlDeviceModal
},
data
()
{
return
{
description
:
'pm_access_control_device管理页面'
,
// 表头
columns
:
[
{
title
:
'#'
,
dataIndex
:
''
,
key
:
'rowIndex'
,
width
:
60
,
align
:
"center"
,
customRender
:
function
(
t
,
r
,
index
)
{
return
parseInt
(
index
)
+
1
;
}
},
{
title
:
'设备编码'
,
align
:
"center"
,
dataIndex
:
'code'
},
{
title
:
'设备名称'
,
align
:
"center"
,
dataIndex
:
'name'
},
{
title
:
'设备ip'
,
align
:
"center"
,
dataIndex
:
'ip'
},
{
title
:
'楼栋'
,
align
:
"center"
,
dataIndex
:
'buildingName'
},
{
title
:
'楼层'
,
align
:
"center"
,
dataIndex
:
'floor'
},
{
title
:
'设备位置'
,
align
:
"center"
,
dataIndex
:
'place'
},
{
title
:
'xy值'
,
align
:
"center"
,
dataIndex
:
'coordinate'
},
{
title
:
'开门时间'
,
align
:
"center"
,
dataIndex
:
'doorOpenTime'
},
{
title
:
'生产日期'
,
align
:
"center"
,
dataIndex
:
'dateOfProduction'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'安装日期'
,
align
:
"center"
,
dataIndex
:
'installationDate'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'保修截止日期'
,
align
:
"center"
,
dataIndex
:
'warrantyPeriod'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'生产厂商'
,
align
:
"center"
,
dataIndex
:
'manufacturer'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'状态'
,
align
:
"center"
,
dataIndex
:
'status'
},
{
title
:
'创建人Id(sys_user)'
,
align
:
"center"
,
dataIndex
:
'createUserId'
},
{
title
:
'修改人Id(sys_user)'
,
align
:
"center"
,
dataIndex
:
'modifyUserId'
},
{
title
:
'修改时间'
,
align
:
"center"
,
dataIndex
:
'modifyTime'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'操作'
,
dataIndex
:
'action'
,
align
:
"center"
,
fixed
:
"right"
,
width
:
147
,
scopedSlots
:
{
customRender
:
'action'
}
}
],
url
:
{
list
:
"/pm/pmAccessControlDevice/list"
,
delete
:
"/pm/pmAccessControlDevice/delete"
,
deleteBatch
:
"/pm/pmAccessControlDevice/deleteBatch"
,
exportXlsUrl
:
"/pm/pmAccessControlDevice/exportXls"
,
importExcelUrl
:
"pm/pmAccessControlDevice/importExcel"
,
},
dictOptions
:{},
superFieldList
:[],
}
},
created
()
{
this
.
getSuperFieldList
();
},
computed
:
{
importExcelUrl
:
function
(){
return
`
${
window
.
_CONFIG
[
'domianURL'
]}
/
${
this
.
url
.
importExcelUrl
}
`
;
},
},
methods
:
{
initDictConfig
(){
},
getSuperFieldList
(){
let
fieldList
=
[];
fieldList
.
push
({
type
:
'string'
,
value
:
'code'
,
text
:
'设备编码'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'name'
,
text
:
'设备名称'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'ip'
,
text
:
'设备ip'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'buildingName'
,
text
:
'楼栋'
})
fieldList
.
push
({
type
:
'int'
,
value
:
'floor'
,
text
:
'楼层'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'place'
,
text
:
'设备位置'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'coordinate'
,
text
:
'xy值'
})
fieldList
.
push
({
type
:
'int'
,
value
:
'doorOpenTime'
,
text
:
'开门时间'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'dateOfProduction'
,
text
:
'生产日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'installationDate'
,
text
:
'安装日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'warrantyPeriod'
,
text
:
'保修截止日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'manufacturer'
,
text
:
'生产厂商'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'status'
,
text
:
'状态'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'createUserId'
,
text
:
'创建人Id(sys_user)'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'modifyUserId'
,
text
:
'修改人Id(sys_user)'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'modifyTime'
,
text
:
'修改时间'
})
this
.
superFieldList
=
fieldList
}
}
}
</
script
>
<
style
scoped
>
@import
'~@assets/less/common.less'
;
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceRecordList.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-card
:bordered=
"false"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<a-form
layout=
"inline"
@
keyup
.
enter
.
native=
"searchQuery"
>
<a-row
:gutter=
"24"
>
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('pm_access_control_device_record')"
>
导出
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query
:fieldList=
"superFieldList"
ref=
"superQueryModal"
@
handleSuperQuery=
"handleSuperQuery"
></j-super-query>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div
class=
"ant-alert ant-alert-info"
style=
"margin-bottom: 16px;"
>
<i
class=
"anticon anticon-info-circle ant-alert-icon"
></i>
已选择
<a
style=
"font-weight: 600"
>
{{
selectedRowKeys
.
length
}}
</a>
项
<a
style=
"margin-left: 24px"
@
click=
"onClearSelected"
>
清空
</a>
</div>
<a-table
ref=
"table"
size=
"middle"
:scroll=
"
{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template
slot=
"htmlSlot"
slot-scope=
"text"
>
<div
v-html=
"text"
></div>
</
template
>
<
template
slot=
"imgSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无图片
</span>
<img
v-else
:src=
"getImgView(text)"
height=
"25px"
alt=
""
style=
"max-width:80px;font-size: 12px;font-style: italic;"
/>
</
template
>
<
template
slot=
"fileSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无文件
</span>
<a-button
v-else
:ghost=
"true"
type=
"primary"
icon=
"download"
size=
"small"
@
click=
"downloadFile(text)"
>
下载
</a-button>
</
template
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-dropdown>
<a
class=
"ant-dropdown-link"
>
更多
<a-icon
type=
"down"
/></a>
<a-menu
slot=
"overlay"
>
<a-menu-item>
<a
@
click=
"handleDetail(record)"
>
详情
</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<pm-access-control-device-record-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></pm-access-control-device-record-modal>
</a-card>
</template>
<
script
>
import
'@/assets/less/TableExpand.less'
import
{
mixinDevice
}
from
'@/utils/mixin'
import
{
JeecgListMixin
}
from
'@/mixins/JeecgListMixin'
import
PmAccessControlDeviceRecordModal
from
'./modules/PmAccessControlDeviceRecordModal'
export
default
{
name
:
'PmAccessControlDeviceRecordList'
,
mixins
:[
JeecgListMixin
,
mixinDevice
],
components
:
{
PmAccessControlDeviceRecordModal
},
data
()
{
return
{
description
:
'pm_access_control_device_record管理页面'
,
// 表头
columns
:
[
{
title
:
'#'
,
dataIndex
:
''
,
key
:
'rowIndex'
,
width
:
60
,
align
:
"center"
,
customRender
:
function
(
t
,
r
,
index
)
{
return
parseInt
(
index
)
+
1
;
}
},
{
title
:
'门禁设备Id'
,
align
:
"center"
,
dataIndex
:
'pmAccessControlDeviceId'
},
{
title
:
'图片地址'
,
align
:
"center"
,
dataIndex
:
'pictureUrl'
},
{
title
:
'姓名'
,
align
:
"center"
,
dataIndex
:
'name'
},
{
title
:
'修改时间'
,
align
:
"center"
,
dataIndex
:
'modifyTime'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'操作'
,
dataIndex
:
'action'
,
align
:
"center"
,
fixed
:
"right"
,
width
:
147
,
scopedSlots
:
{
customRender
:
'action'
}
}
],
url
:
{
list
:
"/pm/pmAccessControlDeviceRecord/list"
,
delete
:
"/pm/pmAccessControlDeviceRecord/delete"
,
deleteBatch
:
"/pm/pmAccessControlDeviceRecord/deleteBatch"
,
exportXlsUrl
:
"/pm/pmAccessControlDeviceRecord/exportXls"
,
importExcelUrl
:
"pm/pmAccessControlDeviceRecord/importExcel"
,
},
dictOptions
:{},
superFieldList
:[],
}
},
created
()
{
this
.
getSuperFieldList
();
},
computed
:
{
importExcelUrl
:
function
(){
return
`
${
window
.
_CONFIG
[
'domianURL'
]}
/
${
this
.
url
.
importExcelUrl
}
`
;
},
},
methods
:
{
initDictConfig
(){
},
getSuperFieldList
(){
let
fieldList
=
[];
fieldList
.
push
({
type
:
'int'
,
value
:
'pmAccessControlDeviceId'
,
text
:
'门禁设备Id'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'pictureUrl'
,
text
:
'图片地址'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'name'
,
text
:
'姓名'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'modifyTime'
,
text
:
'修改时间'
})
this
.
superFieldList
=
fieldList
}
}
}
</
script
>
<
style
scoped
>
@import
'~@assets/less/common.less'
;
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceForm.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-spin
:spinning=
"confirmLoading"
>
<j-form-container
:disabled=
"formDisabled"
>
<a-form-model
ref=
"form"
:model=
"model"
:rules=
"validatorRules"
slot=
"detail"
>
<a-row>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备编码"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"code"
>
<a-input
v-model=
"model.code"
placeholder=
"请输入设备编码"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备名称"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"name"
>
<a-input
v-model=
"model.name"
placeholder=
"请输入设备名称"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备ip"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"ip"
>
<a-input
v-model=
"model.ip"
placeholder=
"请输入设备ip"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"楼栋"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"buildingName"
>
<a-input
v-model=
"model.buildingName"
placeholder=
"请输入楼栋"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"楼层"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"floor"
>
<a-input-number
v-model=
"model.floor"
placeholder=
"请输入楼层"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备位置"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"place"
>
<a-input
v-model=
"model.place"
placeholder=
"请输入设备位置"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"xy值"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"coordinate"
>
<a-input
v-model=
"model.coordinate"
placeholder=
"请输入xy值"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"开门时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"doorOpenTime"
>
<a-input-number
v-model=
"model.doorOpenTime"
placeholder=
"请输入开门时间"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"生产日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"dateOfProduction"
>
<j-date
placeholder=
"请选择生产日期"
v-model=
"model.dateOfProduction"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"安装日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"installationDate"
>
<j-date
placeholder=
"请选择安装日期"
v-model=
"model.installationDate"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"保修截止日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"warrantyPeriod"
>
<j-date
placeholder=
"请选择保修截止日期"
v-model=
"model.warrantyPeriod"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"生产厂商"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"manufacturer"
>
<j-date
placeholder=
"请选择生产厂商"
v-model=
"model.manufacturer"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"状态"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"status"
>
<a-input
v-model=
"model.status"
placeholder=
"请输入状态"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"创建人Id(sys_user)"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"createUserId"
>
<a-input
v-model=
"model.createUserId"
placeholder=
"请输入创建人Id(sys_user)"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"修改人Id(sys_user)"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyUserId"
>
<a-input
v-model=
"model.modifyUserId"
placeholder=
"请输入修改人Id(sys_user)"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"修改时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyTime"
>
<j-date
placeholder=
"请选择修改时间"
v-model=
"model.modifyTime"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>
</a-spin>
</
template
>
<
script
>
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
validateDuplicateValue
}
from
'@/utils/util'
export
default
{
name
:
'PmAccessControlDeviceForm'
,
components
:
{},
props
:
{
//表单禁用
disabled
:
{
type
:
Boolean
,
default
:
false
,
required
:
false
}
},
data
()
{
return
{
model
:
{},
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
16
},
},
confirmLoading
:
false
,
validatorRules
:
{},
url
:
{
add
:
"/pm/pmAccessControlDevice/add"
,
edit
:
"/pm/pmAccessControlDevice/edit"
,
queryById
:
"/pm/pmAccessControlDevice/queryById"
}
}
},
computed
:
{
formDisabled
()
{
return
this
.
disabled
},
},
created
()
{
//备份model原始值
this
.
modelDefault
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
model
));
},
methods
:
{
add
()
{
this
.
edit
(
this
.
modelDefault
);
},
edit
(
record
)
{
this
.
model
=
Object
.
assign
({},
record
);
this
.
visible
=
true
;
},
submitForm
()
{
const
that
=
this
;
// 触发表单验证
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
that
.
confirmLoading
=
true
;
let
httpurl
=
''
;
let
method
=
''
;
if
(
!
this
.
model
.
id
)
{
httpurl
+=
this
.
url
.
add
;
method
=
'post'
;
}
else
{
httpurl
+=
this
.
url
.
edit
;
method
=
'put'
;
}
httpAction
(
httpurl
,
this
.
model
,
method
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
that
.
$message
.
success
(
res
.
message
);
that
.
$emit
(
'ok'
);
}
else
{
that
.
$message
.
warning
(
res
.
message
);
}
}).
finally
(()
=>
{
that
.
confirmLoading
=
false
;
})
}
})
},
}
}
</
script
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceModal.Style#Drawer.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-drawer
:title=
"title"
:width=
"width"
placement=
"right"
:closable=
"false"
@
close=
"close"
destroyOnClose
:visible=
"visible"
>
<pm-access-control-device-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
normal
></pm-access-control-device-form>
<div
class=
"drawer-footer"
>
<a-button
@
click=
"handleCancel"
style=
"margin-bottom: 0;"
>
关闭
</a-button>
<a-button
v-if=
"!disableSubmit"
@
click=
"handleOk"
type=
"primary"
style=
"margin-bottom: 0;"
>
提交
</a-button>
</div>
</a-drawer>
</
template
>
<
script
>
import
PmAccessControlDeviceForm
from
'./PmAccessControlDeviceForm'
export
default
{
name
:
'PmAccessControlDeviceModal'
,
components
:
{
PmAccessControlDeviceForm
},
data
()
{
return
{
title
:
"操作"
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
});
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
/** Button按钮间距 */
.ant-btn
{
margin-left
:
30px
;
margin-bottom
:
30px
;
float
:
right
;
}
.drawer-footer
{
position
:
absolute
;
bottom
:
-8px
;
width
:
100%
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
left
:
0
;
background
:
#fff
;
border-radius
:
0
0
2px
2px
;
}
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceModal.vue
0 → 100644
View file @
14fb87be
<
template
>
<j-modal
:title=
"title"
:width=
"width"
:visible=
"visible"
switchFullscreen
@
ok=
"handleOk"
:okButtonProps=
"
{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<pm-access-control-device-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
></pm-access-control-device-form>
</j-modal>
</
template
>
<
script
>
import
PmAccessControlDeviceForm
from
'./PmAccessControlDeviceForm'
export
default
{
name
:
'PmAccessControlDeviceModal'
,
components
:
{
PmAccessControlDeviceForm
},
data
()
{
return
{
title
:
''
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
})
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordForm.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-spin
:spinning=
"confirmLoading"
>
<j-form-container
:disabled=
"formDisabled"
>
<a-form-model
ref=
"form"
:model=
"model"
:rules=
"validatorRules"
slot=
"detail"
>
<a-row>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"门禁设备Id"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"pmAccessControlDeviceId"
>
<a-input-number
v-model=
"model.pmAccessControlDeviceId"
placeholder=
"请输入门禁设备Id"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"图片地址"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"pictureUrl"
>
<a-input
v-model=
"model.pictureUrl"
placeholder=
"请输入图片地址"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"姓名"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"name"
>
<a-input
v-model=
"model.name"
placeholder=
"请输入姓名"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"修改时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyTime"
>
<j-date
placeholder=
"请选择修改时间"
v-model=
"model.modifyTime"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>
</a-spin>
</
template
>
<
script
>
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
validateDuplicateValue
}
from
'@/utils/util'
export
default
{
name
:
'PmAccessControlDeviceRecordForm'
,
components
:
{
},
props
:
{
//表单禁用
disabled
:
{
type
:
Boolean
,
default
:
false
,
required
:
false
}
},
data
()
{
return
{
model
:{
},
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
16
},
},
confirmLoading
:
false
,
validatorRules
:
{
},
url
:
{
add
:
"/pm/pmAccessControlDeviceRecord/add"
,
edit
:
"/pm/pmAccessControlDeviceRecord/edit"
,
queryById
:
"/pm/pmAccessControlDeviceRecord/queryById"
}
}
},
computed
:
{
formDisabled
(){
return
this
.
disabled
},
},
created
()
{
//备份model原始值
this
.
modelDefault
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
model
));
},
methods
:
{
add
()
{
this
.
edit
(
this
.
modelDefault
);
},
edit
(
record
)
{
this
.
model
=
Object
.
assign
({},
record
);
this
.
visible
=
true
;
},
submitForm
()
{
const
that
=
this
;
// 触发表单验证
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
that
.
confirmLoading
=
true
;
let
httpurl
=
''
;
let
method
=
''
;
if
(
!
this
.
model
.
id
){
httpurl
+=
this
.
url
.
add
;
method
=
'post'
;
}
else
{
httpurl
+=
this
.
url
.
edit
;
method
=
'put'
;
}
httpAction
(
httpurl
,
this
.
model
,
method
).
then
((
res
)
=>
{
if
(
res
.
success
){
that
.
$message
.
success
(
res
.
message
);
that
.
$emit
(
'ok'
);
}
else
{
that
.
$message
.
warning
(
res
.
message
);
}
}).
finally
(()
=>
{
that
.
confirmLoading
=
false
;
})
}
})
},
}
}
</
script
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordModal.Style#Drawer.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-drawer
:title=
"title"
:width=
"width"
placement=
"right"
:closable=
"false"
@
close=
"close"
destroyOnClose
:visible=
"visible"
>
<pm-access-control-device-record-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
normal
></pm-access-control-device-record-form>
<div
class=
"drawer-footer"
>
<a-button
@
click=
"handleCancel"
style=
"margin-bottom: 0;"
>
关闭
</a-button>
<a-button
v-if=
"!disableSubmit"
@
click=
"handleOk"
type=
"primary"
style=
"margin-bottom: 0;"
>
提交
</a-button>
</div>
</a-drawer>
</
template
>
<
script
>
import
PmAccessControlDeviceRecordForm
from
'./PmAccessControlDeviceRecordForm'
export
default
{
name
:
'PmAccessControlDeviceRecordModal'
,
components
:
{
PmAccessControlDeviceRecordForm
},
data
()
{
return
{
title
:
"操作"
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
});
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
/** Button按钮间距 */
.ant-btn
{
margin-left
:
30px
;
margin-bottom
:
30px
;
float
:
right
;
}
.drawer-footer
{
position
:
absolute
;
bottom
:
-8px
;
width
:
100%
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
left
:
0
;
background
:
#fff
;
border-radius
:
0
0
2px
2px
;
}
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceRecordModal.vue
0 → 100644
View file @
14fb87be
<
template
>
<j-modal
:title=
"title"
:width=
"width"
:visible=
"visible"
switchFullscreen
@
ok=
"handleOk"
:okButtonProps=
"
{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<pm-access-control-device-record-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
></pm-access-control-device-record-form>
</j-modal>
</
template
>
<
script
>
import
PmAccessControlDeviceRecordForm
from
'./PmAccessControlDeviceRecordForm'
export
default
{
name
:
'PmAccessControlDeviceRecordModal'
,
components
:
{
PmAccessControlDeviceRecordForm
},
data
()
{
return
{
title
:
''
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
})
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceList.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-card
:bordered=
"false"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<a-form
layout=
"inline"
@
keyup
.
enter
.
native=
"searchQuery"
>
<a-row
:gutter=
"24"
>
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div
class=
"table-operator"
>
<a-button
@
click=
"handleAdd"
type=
"primary"
icon=
"plus"
>
新增
</a-button>
<a-button
type=
"primary"
icon=
"download"
@
click=
"handleExportXls('pm_monitoring_device')"
>
导出
</a-button>
<a-upload
name=
"file"
:showUploadList=
"false"
:multiple=
"false"
:headers=
"tokenHeader"
:action=
"importExcelUrl"
@
change=
"handleImportExcel"
>
<a-button
type=
"primary"
icon=
"import"
>
导入
</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query
:fieldList=
"superFieldList"
ref=
"superQueryModal"
@
handleSuperQuery=
"handleSuperQuery"
></j-super-query>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<a-menu
slot=
"overlay"
>
<a-menu-item
key=
"1"
@
click=
"batchDel"
><a-icon
type=
"delete"
/>
删除
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
批量操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</div>
<!-- table区域-begin -->
<div>
<div
class=
"ant-alert ant-alert-info"
style=
"margin-bottom: 16px;"
>
<i
class=
"anticon anticon-info-circle ant-alert-icon"
></i>
已选择
<a
style=
"font-weight: 600"
>
{{
selectedRowKeys
.
length
}}
</a>
项
<a
style=
"margin-left: 24px"
@
click=
"onClearSelected"
>
清空
</a>
</div>
<a-table
ref=
"table"
size=
"middle"
:scroll=
"
{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template
slot=
"htmlSlot"
slot-scope=
"text"
>
<div
v-html=
"text"
></div>
</
template
>
<
template
slot=
"imgSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无图片
</span>
<img
v-else
:src=
"getImgView(text)"
height=
"25px"
alt=
""
style=
"max-width:80px;font-size: 12px;font-style: italic;"
/>
</
template
>
<
template
slot=
"fileSlot"
slot-scope=
"text"
>
<span
v-if=
"!text"
style=
"font-size: 12px;font-style: italic;"
>
无文件
</span>
<a-button
v-else
:ghost=
"true"
type=
"primary"
icon=
"download"
size=
"small"
@
click=
"downloadFile(text)"
>
下载
</a-button>
</
template
>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"handleEdit(record)"
>
编辑
</a>
<a-divider
type=
"vertical"
/>
<a-dropdown>
<a
class=
"ant-dropdown-link"
>
更多
<a-icon
type=
"down"
/></a>
<a-menu
slot=
"overlay"
>
<a-menu-item>
<a
@
click=
"handleDetail(record)"
>
详情
</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm
title=
"确定删除吗?"
@
confirm=
"() => handleDelete(record.id)"
>
<a>
删除
</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
</span>
</a-table>
</div>
<pm-monitoring-device-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></pm-monitoring-device-modal>
</a-card>
</template>
<
script
>
import
'@/assets/less/TableExpand.less'
import
{
mixinDevice
}
from
'@/utils/mixin'
import
{
JeecgListMixin
}
from
'@/mixins/JeecgListMixin'
import
PmMonitoringDeviceModal
from
'./modules/PmMonitoringDeviceModal'
export
default
{
name
:
'PmMonitoringDeviceList'
,
mixins
:[
JeecgListMixin
,
mixinDevice
],
components
:
{
PmMonitoringDeviceModal
},
data
()
{
return
{
description
:
'pm_monitoring_device管理页面'
,
// 表头
columns
:
[
{
title
:
'#'
,
dataIndex
:
''
,
key
:
'rowIndex'
,
width
:
60
,
align
:
"center"
,
customRender
:
function
(
t
,
r
,
index
)
{
return
parseInt
(
index
)
+
1
;
}
},
{
title
:
'设备编码'
,
align
:
"center"
,
dataIndex
:
'code'
},
{
title
:
'设备名称'
,
align
:
"center"
,
dataIndex
:
'name'
},
{
title
:
'设备ip'
,
align
:
"center"
,
dataIndex
:
'ip'
},
{
title
:
'楼栋'
,
align
:
"center"
,
dataIndex
:
'buildingName'
},
{
title
:
'楼层'
,
align
:
"center"
,
dataIndex
:
'floor'
},
{
title
:
'设备位置'
,
align
:
"center"
,
dataIndex
:
'place'
},
{
title
:
'xy值'
,
align
:
"center"
,
dataIndex
:
'coordinate'
},
{
title
:
'生产日期'
,
align
:
"center"
,
dataIndex
:
'dateOfProduction'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'安装日期'
,
align
:
"center"
,
dataIndex
:
'installationDate'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'保修截止日期'
,
align
:
"center"
,
dataIndex
:
'warrantyPeriod'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'生产厂商'
,
align
:
"center"
,
dataIndex
:
'manufacturer'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'状态'
,
align
:
"center"
,
dataIndex
:
'status'
},
{
title
:
'创建人Id(sys_user)'
,
align
:
"center"
,
dataIndex
:
'createUserId'
},
{
title
:
'修改人Id(sys_user)'
,
align
:
"center"
,
dataIndex
:
'modifyUserId'
},
{
title
:
'修改时间'
,
align
:
"center"
,
dataIndex
:
'modifyTime'
,
customRender
:
function
(
text
)
{
return
!
text
?
""
:(
text
.
length
>
10
?
text
.
substr
(
0
,
10
):
text
)
}
},
{
title
:
'操作'
,
dataIndex
:
'action'
,
align
:
"center"
,
fixed
:
"right"
,
width
:
147
,
scopedSlots
:
{
customRender
:
'action'
}
}
],
url
:
{
list
:
"/pm/pmMonitoringDevice/list"
,
delete
:
"/pm/pmMonitoringDevice/delete"
,
deleteBatch
:
"/pm/pmMonitoringDevice/deleteBatch"
,
exportXlsUrl
:
"/pm/pmMonitoringDevice/exportXls"
,
importExcelUrl
:
"pm/pmMonitoringDevice/importExcel"
,
},
dictOptions
:{},
superFieldList
:[],
}
},
created
()
{
this
.
getSuperFieldList
();
},
computed
:
{
importExcelUrl
:
function
(){
return
`
${
window
.
_CONFIG
[
'domianURL'
]}
/
${
this
.
url
.
importExcelUrl
}
`
;
},
},
methods
:
{
initDictConfig
(){
},
getSuperFieldList
(){
let
fieldList
=
[];
fieldList
.
push
({
type
:
'string'
,
value
:
'code'
,
text
:
'设备编码'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'name'
,
text
:
'设备名称'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'ip'
,
text
:
'设备ip'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'buildingName'
,
text
:
'楼栋'
})
fieldList
.
push
({
type
:
'int'
,
value
:
'floor'
,
text
:
'楼层'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'place'
,
text
:
'设备位置'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'coordinate'
,
text
:
'xy值'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'dateOfProduction'
,
text
:
'生产日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'installationDate'
,
text
:
'安装日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'warrantyPeriod'
,
text
:
'保修截止日期'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'manufacturer'
,
text
:
'生产厂商'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'status'
,
text
:
'状态'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'createUserId'
,
text
:
'创建人Id(sys_user)'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'modifyUserId'
,
text
:
'修改人Id(sys_user)'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'modifyTime'
,
text
:
'修改时间'
})
this
.
superFieldList
=
fieldList
}
}
}
</
script
>
<
style
scoped
>
@import
'~@assets/less/common.less'
;
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceForm.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-spin
:spinning=
"confirmLoading"
>
<j-form-container
:disabled=
"formDisabled"
>
<a-form-model
ref=
"form"
:model=
"model"
:rules=
"validatorRules"
slot=
"detail"
>
<a-row>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备编码"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"code"
>
<a-input
v-model=
"model.code"
placeholder=
"请输入设备编码"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备名称"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"name"
>
<a-input
v-model=
"model.name"
placeholder=
"请输入设备名称"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备ip"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"ip"
>
<a-input
v-model=
"model.ip"
placeholder=
"请输入设备ip"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"楼栋"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"buildingName"
>
<a-input
v-model=
"model.buildingName"
placeholder=
"请输入楼栋"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"楼层"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"floor"
>
<a-input-number
v-model=
"model.floor"
placeholder=
"请输入楼层"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"设备位置"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"place"
>
<a-input
v-model=
"model.place"
placeholder=
"请输入设备位置"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"xy值"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"coordinate"
>
<a-input
v-model=
"model.coordinate"
placeholder=
"请输入xy值"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"生产日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"dateOfProduction"
>
<j-date
placeholder=
"请选择生产日期"
v-model=
"model.dateOfProduction"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"安装日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"installationDate"
>
<j-date
placeholder=
"请选择安装日期"
v-model=
"model.installationDate"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"保修截止日期"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"warrantyPeriod"
>
<j-date
placeholder=
"请选择保修截止日期"
v-model=
"model.warrantyPeriod"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"生产厂商"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"manufacturer"
>
<j-date
placeholder=
"请选择生产厂商"
v-model=
"model.manufacturer"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"状态"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"status"
>
<a-input
v-model=
"model.status"
placeholder=
"请输入状态"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"创建人Id(sys_user)"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"createUserId"
>
<a-input
v-model=
"model.createUserId"
placeholder=
"请输入创建人Id(sys_user)"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"修改人Id(sys_user)"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyUserId"
>
<a-input
v-model=
"model.modifyUserId"
placeholder=
"请输入修改人Id(sys_user)"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"修改时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyTime"
>
<j-date
placeholder=
"请选择修改时间"
v-model=
"model.modifyTime"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>
</a-spin>
</
template
>
<
script
>
import
{
httpAction
,
getAction
}
from
'@api/manage'
import
{
validateDuplicateValue
}
from
'@/utils/util'
export
default
{
name
:
'PmMonitoringDeviceForm'
,
components
:
{
},
props
:
{
//表单禁用
disabled
:
{
type
:
Boolean
,
default
:
false
,
required
:
false
}
},
data
()
{
return
{
model
:{
},
labelCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
5
},
},
wrapperCol
:
{
xs
:
{
span
:
24
},
sm
:
{
span
:
16
},
},
confirmLoading
:
false
,
validatorRules
:
{
},
url
:
{
add
:
"/pm/pmMonitoringDevice/add"
,
edit
:
"/pm/pmMonitoringDevice/edit"
,
queryById
:
"/pm/pmMonitoringDevice/queryById"
}
}
},
computed
:
{
formDisabled
(){
return
this
.
disabled
},
},
created
()
{
//备份model原始值
this
.
modelDefault
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
model
));
},
methods
:
{
add
()
{
this
.
edit
(
this
.
modelDefault
);
},
edit
(
record
)
{
this
.
model
=
Object
.
assign
({},
record
);
this
.
visible
=
true
;
},
submitForm
()
{
const
that
=
this
;
// 触发表单验证
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
that
.
confirmLoading
=
true
;
let
httpurl
=
''
;
let
method
=
''
;
if
(
!
this
.
model
.
id
){
httpurl
+=
this
.
url
.
add
;
method
=
'post'
;
}
else
{
httpurl
+=
this
.
url
.
edit
;
method
=
'put'
;
}
httpAction
(
httpurl
,
this
.
model
,
method
).
then
((
res
)
=>
{
if
(
res
.
success
){
that
.
$message
.
success
(
res
.
message
);
that
.
$emit
(
'ok'
);
}
else
{
that
.
$message
.
warning
(
res
.
message
);
}
}).
finally
(()
=>
{
that
.
confirmLoading
=
false
;
})
}
})
},
}
}
</
script
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceModal.Style#Drawer.vue
0 → 100644
View file @
14fb87be
<
template
>
<a-drawer
:title=
"title"
:width=
"width"
placement=
"right"
:closable=
"false"
@
close=
"close"
destroyOnClose
:visible=
"visible"
>
<pm-monitoring-device-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
normal
></pm-monitoring-device-form>
<div
class=
"drawer-footer"
>
<a-button
@
click=
"handleCancel"
style=
"margin-bottom: 0;"
>
关闭
</a-button>
<a-button
v-if=
"!disableSubmit"
@
click=
"handleOk"
type=
"primary"
style=
"margin-bottom: 0;"
>
提交
</a-button>
</div>
</a-drawer>
</
template
>
<
script
>
import
PmMonitoringDeviceForm
from
'./PmMonitoringDeviceForm'
export
default
{
name
:
'PmMonitoringDeviceModal'
,
components
:
{
PmMonitoringDeviceForm
},
data
()
{
return
{
title
:
"操作"
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
});
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
/** Button按钮间距 */
.ant-btn
{
margin-left
:
30px
;
margin-bottom
:
30px
;
float
:
right
;
}
.drawer-footer
{
position
:
absolute
;
bottom
:
-8px
;
width
:
100%
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
left
:
0
;
background
:
#fff
;
border-radius
:
0
0
2px
2px
;
}
</
style
>
\ No newline at end of file
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceModal.vue
0 → 100644
View file @
14fb87be
<
template
>
<j-modal
:title=
"title"
:width=
"width"
:visible=
"visible"
switchFullscreen
@
ok=
"handleOk"
:okButtonProps=
"
{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<pm-monitoring-device-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
></pm-monitoring-device-form>
</j-modal>
</
template
>
<
script
>
import
PmMonitoringDeviceForm
from
'./PmMonitoringDeviceForm'
export
default
{
name
:
'PmMonitoringDeviceModal'
,
components
:
{
PmMonitoringDeviceForm
},
data
()
{
return
{
title
:
''
,
width
:
800
,
visible
:
false
,
disableSubmit
:
false
}
},
methods
:
{
add
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
add
();
})
},
edit
(
record
)
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
realForm
.
edit
(
record
);
})
},
close
()
{
this
.
$emit
(
'close'
);
this
.
visible
=
false
;
},
handleOk
()
{
this
.
$refs
.
realForm
.
submitForm
();
},
submitCallback
(){
this
.
$emit
(
'ok'
);
this
.
visible
=
false
;
},
handleCancel
()
{
this
.
close
()
}
}
}
</
script
>
\ No newline at end of file
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmAccessControlDeviceController.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDevice
;
import
org.jeecg.modules.demo.pm.service.IPmAccessControlDeviceService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Arrays
;
/**
* @Description: pm_access_control_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Api
(
tags
=
"pm_access_control_device"
)
@RestController
@RequestMapping
(
"/pm/pmAccessControlDevice"
)
@Slf4j
public
class
PmAccessControlDeviceController
extends
JeecgController
<
PmAccessControlDevice
,
IPmAccessControlDeviceService
>
{
@Autowired
private
IPmAccessControlDeviceService
pmAccessControlDeviceService
;
/**
* 分页列表查询
*
* @param pmAccessControlDevice
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "pm_access_control_device-分页列表查询")
@ApiOperation
(
value
=
"pm_access_control_device-分页列表查询"
,
notes
=
"pm_access_control_device-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
PmAccessControlDevice
>>
queryPageList
(
PmAccessControlDevice
pmAccessControlDevice
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
PmAccessControlDevice
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
pmAccessControlDevice
,
req
.
getParameterMap
());
Page
<
PmAccessControlDevice
>
page
=
new
Page
<
PmAccessControlDevice
>(
pageNo
,
pageSize
);
IPage
<
PmAccessControlDevice
>
pageList
=
pmAccessControlDeviceService
.
page
(
page
,
queryWrapper
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param pmAccessControlDevice
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device-添加"
)
@ApiOperation
(
value
=
"pm_access_control_device-添加"
,
notes
=
"pm_access_control_device-添加"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
PmAccessControlDevice
pmAccessControlDevice
)
{
pmAccessControlDeviceService
.
save
(
pmAccessControlDevice
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param pmAccessControlDevice
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device-编辑"
)
@ApiOperation
(
value
=
"pm_access_control_device-编辑"
,
notes
=
"pm_access_control_device-编辑"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
public
Result
<
String
>
edit
(
@RequestBody
PmAccessControlDevice
pmAccessControlDevice
)
{
pmAccessControlDeviceService
.
updateById
(
pmAccessControlDevice
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device-通过id删除"
)
@ApiOperation
(
value
=
"pm_access_control_device-通过id删除"
,
notes
=
"pm_access_control_device-通过id删除"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
pmAccessControlDeviceService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device-批量删除"
)
@ApiOperation
(
value
=
"pm_access_control_device-批量删除"
,
notes
=
"pm_access_control_device-批量删除"
)
@DeleteMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
pmAccessControlDeviceService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "pm_access_control_device-通过id查询")
@ApiOperation
(
value
=
"pm_access_control_device-通过id查询"
,
notes
=
"pm_access_control_device-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
PmAccessControlDevice
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
PmAccessControlDevice
pmAccessControlDevice
=
pmAccessControlDeviceService
.
getById
(
id
);
if
(
pmAccessControlDevice
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
}
return
Result
.
OK
(
pmAccessControlDevice
);
}
/**
* 导出excel
*
* @param request
* @param pmAccessControlDevice
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
PmAccessControlDevice
pmAccessControlDevice
)
{
return
super
.
exportXls
(
request
,
pmAccessControlDevice
,
PmAccessControlDevice
.
class
,
"pm_access_control_device"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
PmAccessControlDevice
.
class
);
}
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmAccessControlDeviceRecordController.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDeviceRecord
;
import
org.jeecg.modules.demo.pm.service.IPmAccessControlDeviceRecordService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Arrays
;
/**
* @Description: pm_access_control_device_record
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Api
(
tags
=
"pm_access_control_device_record"
)
@RestController
@RequestMapping
(
"/pm/pmAccessControlDeviceRecord"
)
@Slf4j
public
class
PmAccessControlDeviceRecordController
extends
JeecgController
<
PmAccessControlDeviceRecord
,
IPmAccessControlDeviceRecordService
>
{
@Autowired
private
IPmAccessControlDeviceRecordService
pmAccessControlDeviceRecordService
;
/**
* 分页列表查询
*
* @param pmAccessControlDeviceRecord
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "pm_access_control_device_record-分页列表查询")
@ApiOperation
(
value
=
"pm_access_control_device_record-分页列表查询"
,
notes
=
"pm_access_control_device_record-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
PmAccessControlDeviceRecord
>>
queryPageList
(
PmAccessControlDeviceRecord
pmAccessControlDeviceRecord
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
PmAccessControlDeviceRecord
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
pmAccessControlDeviceRecord
,
req
.
getParameterMap
());
Page
<
PmAccessControlDeviceRecord
>
page
=
new
Page
<
PmAccessControlDeviceRecord
>(
pageNo
,
pageSize
);
IPage
<
PmAccessControlDeviceRecord
>
pageList
=
pmAccessControlDeviceRecordService
.
page
(
page
,
queryWrapper
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param pmAccessControlDeviceRecord
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device_record-添加"
)
@ApiOperation
(
value
=
"pm_access_control_device_record-添加"
,
notes
=
"pm_access_control_device_record-添加"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
PmAccessControlDeviceRecord
pmAccessControlDeviceRecord
)
{
pmAccessControlDeviceRecordService
.
save
(
pmAccessControlDeviceRecord
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param pmAccessControlDeviceRecord
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device_record-编辑"
)
@ApiOperation
(
value
=
"pm_access_control_device_record-编辑"
,
notes
=
"pm_access_control_device_record-编辑"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
public
Result
<
String
>
edit
(
@RequestBody
PmAccessControlDeviceRecord
pmAccessControlDeviceRecord
)
{
pmAccessControlDeviceRecordService
.
updateById
(
pmAccessControlDeviceRecord
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device_record-通过id删除"
)
@ApiOperation
(
value
=
"pm_access_control_device_record-通过id删除"
,
notes
=
"pm_access_control_device_record-通过id删除"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
pmAccessControlDeviceRecordService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"pm_access_control_device_record-批量删除"
)
@ApiOperation
(
value
=
"pm_access_control_device_record-批量删除"
,
notes
=
"pm_access_control_device_record-批量删除"
)
@DeleteMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
pmAccessControlDeviceRecordService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "pm_access_control_device_record-通过id查询")
@ApiOperation
(
value
=
"pm_access_control_device_record-通过id查询"
,
notes
=
"pm_access_control_device_record-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
PmAccessControlDeviceRecord
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
PmAccessControlDeviceRecord
pmAccessControlDeviceRecord
=
pmAccessControlDeviceRecordService
.
getById
(
id
);
if
(
pmAccessControlDeviceRecord
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
}
return
Result
.
OK
(
pmAccessControlDeviceRecord
);
}
/**
* 导出excel
*
* @param request
* @param pmAccessControlDeviceRecord
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
PmAccessControlDeviceRecord
pmAccessControlDeviceRecord
)
{
return
super
.
exportXls
(
request
,
pmAccessControlDeviceRecord
,
PmAccessControlDeviceRecord
.
class
,
"pm_access_control_device_record"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
PmAccessControlDeviceRecord
.
class
);
}
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/controller/PmMonitoringDeviceController.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.modules.demo.pm.entity.PmMonitoringDevice
;
import
org.jeecg.modules.demo.pm.service.IPmMonitoringDeviceService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Arrays
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Api
(
tags
=
"pm_monitoring_device"
)
@RestController
@RequestMapping
(
"/pm/pmMonitoringDevice"
)
@Slf4j
public
class
PmMonitoringDeviceController
extends
JeecgController
<
PmMonitoringDevice
,
IPmMonitoringDeviceService
>
{
@Autowired
private
IPmMonitoringDeviceService
pmMonitoringDeviceService
;
/**
* 分页列表查询
*
* @param pmMonitoringDevice
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "pm_monitoring_device-分页列表查询")
@ApiOperation
(
value
=
"pm_monitoring_device-分页列表查询"
,
notes
=
"pm_monitoring_device-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
PmMonitoringDevice
>>
queryPageList
(
PmMonitoringDevice
pmMonitoringDevice
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
PmMonitoringDevice
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
pmMonitoringDevice
,
req
.
getParameterMap
());
Page
<
PmMonitoringDevice
>
page
=
new
Page
<
PmMonitoringDevice
>(
pageNo
,
pageSize
);
IPage
<
PmMonitoringDevice
>
pageList
=
pmMonitoringDeviceService
.
page
(
page
,
queryWrapper
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param pmMonitoringDevice
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-添加"
)
@ApiOperation
(
value
=
"pm_monitoring_device-添加"
,
notes
=
"pm_monitoring_device-添加"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
PmMonitoringDevice
pmMonitoringDevice
)
{
pmMonitoringDeviceService
.
save
(
pmMonitoringDevice
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param pmMonitoringDevice
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-编辑"
)
@ApiOperation
(
value
=
"pm_monitoring_device-编辑"
,
notes
=
"pm_monitoring_device-编辑"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
public
Result
<
String
>
edit
(
@RequestBody
PmMonitoringDevice
pmMonitoringDevice
)
{
pmMonitoringDeviceService
.
updateById
(
pmMonitoringDevice
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-通过id删除"
)
@ApiOperation
(
value
=
"pm_monitoring_device-通过id删除"
,
notes
=
"pm_monitoring_device-通过id删除"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
pmMonitoringDeviceService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-批量删除"
)
@ApiOperation
(
value
=
"pm_monitoring_device-批量删除"
,
notes
=
"pm_monitoring_device-批量删除"
)
@DeleteMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
pmMonitoringDeviceService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "pm_monitoring_device-通过id查询")
@ApiOperation
(
value
=
"pm_monitoring_device-通过id查询"
,
notes
=
"pm_monitoring_device-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
PmMonitoringDevice
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
PmMonitoringDevice
pmMonitoringDevice
=
pmMonitoringDeviceService
.
getById
(
id
);
if
(
pmMonitoringDevice
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
}
return
Result
.
OK
(
pmMonitoringDevice
);
}
/**
* 导出excel
*
* @param request
* @param pmMonitoringDevice
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
PmMonitoringDevice
pmMonitoringDevice
)
{
return
super
.
exportXls
(
request
,
pmMonitoringDevice
,
PmMonitoringDevice
.
class
,
"pm_monitoring_device"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
PmMonitoringDevice
.
class
);
}
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmAccessControlDevice.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Description: pm_access_control_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Data
@TableName
(
"pm_access_control_device"
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@ApiModel
(
value
=
"pm_access_control_device对象"
,
description
=
"pm_access_control_device"
)
public
class
PmAccessControlDevice
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
/**
* 设备编码
*/
@Excel
(
name
=
"设备编码"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备编码"
)
private
String
code
;
/**
* 设备名称
*/
@Excel
(
name
=
"设备名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
/**
* 设备ip
*/
@Excel
(
name
=
"设备ip"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备ip"
)
private
String
ip
;
/**
* 楼栋
*/
@Excel
(
name
=
"楼栋"
,
width
=
15
)
@ApiModelProperty
(
value
=
"楼栋"
)
private
String
buildingName
;
/**
* 楼层
*/
@Excel
(
name
=
"楼层"
,
width
=
15
)
@ApiModelProperty
(
value
=
"楼层"
)
private
Integer
floor
;
/**
* 设备位置
*/
@Excel
(
name
=
"设备位置"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备位置"
)
private
String
place
;
/**
* xy值
*/
@Excel
(
name
=
"xy值"
,
width
=
15
)
@ApiModelProperty
(
value
=
"xy值"
)
private
String
coordinate
;
/**
* 开门时间
*/
@Excel
(
name
=
"开门时间"
,
width
=
15
)
@ApiModelProperty
(
value
=
"开门时间"
)
private
Integer
doorOpenTime
;
/**
* 生产日期
*/
@Excel
(
name
=
"生产日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"生产日期"
)
private
Date
dateOfProduction
;
/**
* 安装日期
*/
@Excel
(
name
=
"安装日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"安装日期"
)
private
Date
installationDate
;
/**
* 保修截止日期
*/
@Excel
(
name
=
"保修截止日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"保修截止日期"
)
private
Date
warrantyPeriod
;
/**
* 生产厂商
*/
@Excel
(
name
=
"生产厂商"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"生产厂商"
)
private
Date
manufacturer
;
/**
* 状态
*/
@Excel
(
name
=
"状态"
,
width
=
15
)
@ApiModelProperty
(
value
=
"状态"
)
private
String
status
;
/**
* 创建人Id(sys_user)
*/
@Excel
(
name
=
"创建人Id(sys_user)"
,
width
=
15
)
@ApiModelProperty
(
value
=
"创建人Id(sys_user)"
)
private
String
createUserId
;
/**
* 修改人Id(sys_user)
*/
@Excel
(
name
=
"修改人Id(sys_user)"
,
width
=
15
)
@ApiModelProperty
(
value
=
"修改人Id(sys_user)"
)
private
String
modifyUserId
;
/**
* 创建时间
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 修改时间
*/
@Excel
(
name
=
"修改时间"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmAccessControlDeviceRecord.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Description: pm_access_control_device_record
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Data
@TableName
(
"pm_access_control_device_record"
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@ApiModel
(
value
=
"pm_access_control_device_record对象"
,
description
=
"pm_access_control_device_record"
)
public
class
PmAccessControlDeviceRecord
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
/**
* 门禁设备Id
*/
@Excel
(
name
=
"门禁设备Id"
,
width
=
15
)
@ApiModelProperty
(
value
=
"门禁设备Id"
)
private
Integer
pmAccessControlDeviceId
;
/**
* 图片地址
*/
@Excel
(
name
=
"图片地址"
,
width
=
15
)
@ApiModelProperty
(
value
=
"图片地址"
)
private
String
pictureUrl
;
/**
* 姓名
*/
@Excel
(
name
=
"姓名"
,
width
=
15
)
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
/**
* 创建时间
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 修改时间
*/
@Excel
(
name
=
"修改时间"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/entity/PmMonitoringDevice.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Data
@TableName
(
"pm_monitoring_device"
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@ApiModel
(
value
=
"pm_monitoring_device对象"
,
description
=
"pm_monitoring_device"
)
public
class
PmMonitoringDevice
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* id
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
value
=
"id"
)
private
Integer
id
;
/**
* 设备编码
*/
@Excel
(
name
=
"设备编码"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备编码"
)
private
String
code
;
/**
* 设备名称
*/
@Excel
(
name
=
"设备名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
/**
* 设备ip
*/
@Excel
(
name
=
"设备ip"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备ip"
)
private
String
ip
;
/**
* 楼栋
*/
@Excel
(
name
=
"楼栋"
,
width
=
15
)
@ApiModelProperty
(
value
=
"楼栋"
)
private
String
buildingName
;
/**
* 楼层
*/
@Excel
(
name
=
"楼层"
,
width
=
15
)
@ApiModelProperty
(
value
=
"楼层"
)
private
Integer
floor
;
/**
* 设备位置
*/
@Excel
(
name
=
"设备位置"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备位置"
)
private
String
place
;
/**
* xy值
*/
@Excel
(
name
=
"xy值"
,
width
=
15
)
@ApiModelProperty
(
value
=
"xy值"
)
private
String
coordinate
;
/**
* 生产日期
*/
@Excel
(
name
=
"生产日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"生产日期"
)
private
Date
dateOfProduction
;
/**
* 安装日期
*/
@Excel
(
name
=
"安装日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"安装日期"
)
private
Date
installationDate
;
/**
* 保修截止日期
*/
@Excel
(
name
=
"保修截止日期"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"保修截止日期"
)
private
Date
warrantyPeriod
;
/**
* 生产厂商
*/
@Excel
(
name
=
"生产厂商"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"生产厂商"
)
private
Date
manufacturer
;
/**
* 状态
*/
@Excel
(
name
=
"状态"
,
width
=
15
)
@ApiModelProperty
(
value
=
"状态"
)
private
String
status
;
/**
* 创建人Id(sys_user)
*/
@Excel
(
name
=
"创建人Id(sys_user)"
,
width
=
15
)
@ApiModelProperty
(
value
=
"创建人Id(sys_user)"
)
private
String
createUserId
;
/**
* 修改人Id(sys_user)
*/
@Excel
(
name
=
"修改人Id(sys_user)"
,
width
=
15
)
@ApiModelProperty
(
value
=
"修改人Id(sys_user)"
)
private
String
modifyUserId
;
/**
* 创建时间
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 修改时间
*/
@Excel
(
name
=
"修改时间"
,
width
=
15
,
format
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmAccessControlDeviceMapper.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDevice
;
/**
* @Description: pm_access_control_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
PmAccessControlDeviceMapper
extends
BaseMapper
<
PmAccessControlDevice
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmAccessControlDeviceRecordMapper.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDeviceRecord
;
/**
* @Description: pm_access_control_device_record
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
PmAccessControlDeviceRecordMapper
extends
BaseMapper
<
PmAccessControlDeviceRecord
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/PmMonitoringDeviceMapper.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.demo.pm.entity.PmMonitoringDevice
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
PmMonitoringDeviceMapper
extends
BaseMapper
<
PmMonitoringDevice
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmAccessControlDeviceMapper.xml
0 → 100644
View file @
14fb87be
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.demo.pm.mapper.PmAccessControlDeviceMapper"
>
</mapper>
\ No newline at end of file
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmAccessControlDeviceRecordMapper.xml
0 → 100644
View file @
14fb87be
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.demo.pm.mapper.PmAccessControlDeviceRecordMapper"
>
</mapper>
\ No newline at end of file
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/mapper/xml/PmMonitoringDeviceMapper.xml
0 → 100644
View file @
14fb87be
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.demo.pm.mapper.PmMonitoringDeviceMapper"
>
</mapper>
\ No newline at end of file
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmAccessControlDeviceRecordService.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDeviceRecord
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* @Description: pm_access_control_device_record
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
IPmAccessControlDeviceRecordService
extends
IService
<
PmAccessControlDeviceRecord
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmAccessControlDeviceService.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDevice
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* @Description: pm_access_control_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
IPmAccessControlDeviceService
extends
IService
<
PmAccessControlDevice
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/IPmMonitoringDeviceService.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
;
import
org.jeecg.modules.demo.pm.entity.PmMonitoringDevice
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
public
interface
IPmMonitoringDeviceService
extends
IService
<
PmMonitoringDevice
>
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmAccessControlDeviceRecordServiceImpl.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
.
impl
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDeviceRecord
;
import
org.jeecg.modules.demo.pm.mapper.PmAccessControlDeviceRecordMapper
;
import
org.jeecg.modules.demo.pm.service.IPmAccessControlDeviceRecordService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: pm_access_control_device_record
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Service
public
class
PmAccessControlDeviceRecordServiceImpl
extends
ServiceImpl
<
PmAccessControlDeviceRecordMapper
,
PmAccessControlDeviceRecord
>
implements
IPmAccessControlDeviceRecordService
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmAccessControlDeviceServiceImpl.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
.
impl
;
import
org.jeecg.modules.demo.pm.entity.PmAccessControlDevice
;
import
org.jeecg.modules.demo.pm.mapper.PmAccessControlDeviceMapper
;
import
org.jeecg.modules.demo.pm.service.IPmAccessControlDeviceService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: pm_access_control_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Service
public
class
PmAccessControlDeviceServiceImpl
extends
ServiceImpl
<
PmAccessControlDeviceMapper
,
PmAccessControlDevice
>
implements
IPmAccessControlDeviceService
{
}
jeecg-boot-parent/jeecg-boot-module-demo/src/main/java/org/jeecg/modules/demo/pm/service/impl/PmMonitoringDeviceServiceImpl.java
0 → 100644
View file @
14fb87be
package
org
.
jeecg
.
modules
.
demo
.
pm
.
service
.
impl
;
import
org.jeecg.modules.demo.pm.entity.PmMonitoringDevice
;
import
org.jeecg.modules.demo.pm.mapper.PmMonitoringDeviceMapper
;
import
org.jeecg.modules.demo.pm.service.IPmMonitoringDeviceService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date: 2022-03-15
* @Version: V1.0
*/
@Service
public
class
PmMonitoringDeviceServiceImpl
extends
ServiceImpl
<
PmMonitoringDeviceMapper
,
PmMonitoringDevice
>
implements
IPmMonitoringDeviceService
{
}
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