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
d4c8c650
Commit
d4c8c650
authored
May 25, 2022
by
416409548@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug优化,视频安防模块优化
parent
cb12baa3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
112 additions
and
407 deletions
+112
-407
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceOverview.vue
+2
-6
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceForm.vue
+16
-15
ant-design-vue-jeecg/src/views/pm/advertising_screen_announce/modules/AdvertisingScreenAnnounceForm.vue
+0
-0
ant-design-vue-jeecg/src/views/pm/event-center/PmEventInfoList.vue
+2
-2
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceList.vue
+0
-0
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceOverview.vue
+0
-170
ant-design-vue-jeecg/src/views/pm/monitoring-device/modules/PmMonitoringDeviceForm.vue
+0
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmAccessControlDeviceController.java
+1
-1
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmAccessControlDeviceRecordController.java
+0
-4
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmMonitoringDeviceController.java
+29
-34
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/AlarmQuery.java
+0
-1
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/PmAccessControlDeviceRecord.java
+1
-2
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/PmMonitoringDevice.java
+56
-122
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/PmMonitoringDeviceMapper.java
+1
-1
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/IPmMonitoringDeviceService.java
+2
-4
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/impl/PmMonitoringDeviceServiceImpl.java
+2
-45
No files found.
ant-design-vue-jeecg/src/views/pm/access-control-device/PmAccessControlDeviceOverview.vue
View file @
d4c8c650
...
...
@@ -4,15 +4,14 @@
<div
class=
"table-page-search-wrapper"
>
<a-form
layout=
"inline"
@
keyup
.
enter
.
native=
"searchQuery"
>
<a-row
:gutter=
"24"
>
<a-col
:
xl=
"4"
:lg=
"4"
:md=
"5"
:sm=
"24
"
>
<a-col
:
md=
"4"
:sm=
"8
"
>
<a-form-item
label=
"设备类型"
>
<j-dict-select-tag
v-model=
"queryParam.type"
placeholder=
"请选择设备类型"
dict-code=
"alarm_query_equipmentType"
/>
</a-form-item>
</a-col>
<a-col
:
xl=
"4"
:lg=
"4"
:md=
"5"
:sm=
"24
"
>
<a-col
:
md=
"4"
:sm=
"8
"
>
<a-space
style=
"float: left"
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-button
type=
"default"
@
click=
"searchReset"
>
重置
</a-button>
</a-space>
</a-col>
</a-row>
...
...
@@ -141,9 +140,6 @@ export default {
})
});
},
searchReset
()
{
this
.
searchQuery
();
},
floorImgLoadComplete
()
{
this
.
searchQuery
();
}
...
...
ant-design-vue-jeecg/src/views/pm/access-control-device/modules/PmAccessControlDeviceForm.vue
View file @
d4c8c650
...
...
@@ -143,19 +143,23 @@ export default {
},
confirmLoading
:
false
,
validatorRules
:
{
code
:
[
{
required
:
true
,
message
:
'请输入设备编码'
,
trigger
:
'blur'
}
},
{
min
:
0
,
max
:
50
,
message
:
'长度不超过50个字符'
,
trigger
:
'blur'
}
],
name
:
[
{
required
:
true
,
message
:
'请输入设备名称'
,
trigger
:
'blur'
}
},
{
min
:
0
,
max
:
50
,
message
:
'长度不超过50个字符'
,
trigger
:
'blur'
}
],
ip
:
[
{
...
...
@@ -164,24 +168,19 @@ export default {
trigger
:
'blur'
}
],
type
:
[
{
required
:
true
,
message
:
'选择设备类型'
,
trigger
:
'change'
}
],
buildingName
:
[
place
:
[
{
required
:
true
,
message
:
'选择
楼栋
'
,
message
:
'选择
设备位置
'
,
trigger
:
'change'
}
},
{
min
:
0
,
max
:
50
,
message
:
'长度不超过50个字符'
,
trigger
:
'blur'
}
],
floor
:
[
type
:
[
{
required
:
true
,
message
:
'选择
楼层
'
,
message
:
'选择
设备类型
'
,
trigger
:
'change'
}
],
...
...
@@ -218,7 +217,9 @@ export default {
required
:
true
,
message
:
'请输入生产厂商'
,
trigger
:
'blur'
}
},
{
min
:
0
,
max
:
50
,
message
:
'长度不超过50个字符'
,
trigger
:
'blur'
}
],
warrantyPeriod
:
[
{
...
...
ant-design-vue-jeecg/src/views/pm/advertising_screen_announce/modules/AdvertisingScreenAnnounceForm.vue
View file @
d4c8c650
ant-design-vue-jeecg/src/views/pm/event-center/PmEventInfoList.vue
View file @
d4c8c650
...
...
@@ -15,12 +15,12 @@
<a-col
:span=
"4"
>
<a-form-model-item
label=
"开始时间"
prop=
"createTime"
>
<j-date
v-model=
"queryParam.createTime"
:showTime=
"true"
dateFormat=
"YYYY-MM-DD HH:mm:ss"
/>
<j-date
v-model=
"queryParam.createTime"
placeholder=
"请选择开始时间"
:showTime=
"true"
dateFormat=
"YYYY-MM-DD HH:mm:ss"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"4"
>
<a-form-model-item
label=
"结束时间"
prop=
"stopTime"
>
<j-date
v-model=
"queryParam.stopTime"
:showTime=
"true"
dateFormat=
"YYYY-MM-DD HH:mm:ss"
/>
<j-date
v-model=
"queryParam.stopTime"
placeholder=
"请选择结束时间"
:showTime=
"true"
dateFormat=
"YYYY-MM-DD HH:mm:ss"
/>
</a-form-model-item>
</a-col>
...
...
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceList.vue
View file @
d4c8c650
This diff is collapsed.
Click to expand it.
ant-design-vue-jeecg/src/views/pm/monitoring-device/PmMonitoringDeviceOverview.vue
deleted
100644 → 0
View file @
cb12baa3
<
template
>
<a-card
:bordered=
"false"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<a-form
layout=
"inline"
@
keyup
.
enter
.
native=
"searchQuery"
>
<a-row
:gutter=
"24"
>
<a-col
:xl=
"4"
:lg=
"4"
:md=
"5"
:sm=
"24"
>
<a-form-item
label=
"选择楼栋"
>
<a-select
placeholder=
"选择楼栋"
v-model=
"queryParam.buildingName"
@
change=
"buildingChange"
>
<a-select-option
v-for=
"buildingInfo in buildingInfos"
:key=
"buildingInfo.name"
>
{{
buildingInfo
.
name
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"4"
:md=
"5"
:sm=
"24"
>
<a-form-item
label=
"选择楼层"
>
<a-select
placeholder=
"选择楼层"
v-model=
"queryParam.floor"
>
<a-select-option
v-for=
"floor in targetFloorList"
:key=
"floor"
>
{{
floor
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:xl=
"4"
:lg=
"4"
:md=
"5"
:sm=
"24"
>
<a-space
style=
"float: left"
>
<a-button
type=
"primary"
@
click=
"searchQuery"
>
查询
</a-button>
<a-button
type=
"default"
@
click=
"searchReset"
>
重置
</a-button>
</a-space>
</a-col>
</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>
<a-row>
<a-col
:span=
"24"
>
<div
style=
"position: relative"
>
<img
ref=
"floorImg"
src=
"@/assets/floor.png"
alt=
"floor"
width=
"100%"
height=
"100%"
@
load=
"floorImgLoadComplete()"
/>
<img
v-for=
"(item, index) in list"
ref=
"icon"
:src=
"item.status === 'NORMAL'
? statusList[0].imgPath
: (item.status === 'OFFLINE' ? statusList[1].imgPath : statusList[2].imgPath)"
:alt=
"item.name + ':' + item.ip"
/>
</div>
</a-col>
</a-row>
</div>
</a-card>
</
template
>
<
script
>
import
'@/assets/less/TableExpand.less'
import
{
getAction
}
from
'@/api/manage'
export
default
{
name
:
'PmMonitoringDeviceOverview'
,
components
:
{},
data
()
{
return
{
queryParam
:
{
deleted
:
false
},
description
:
'pm_monitoring_device管理页面'
,
url
:
{
list
:
"/pm/pmMonitoringDevice/list"
,
delete
:
"/pm/pmMonitoringDevice/delete"
,
deleteBatch
:
"/pm/pmMonitoringDevice/deleteBatch"
,
exportXlsUrl
:
"/pm/pmMonitoringDevice/exportXls"
,
importExcelUrl
:
"pm/pmMonitoringDevice/importExcel"
,
},
list
:
[],
dictOptions
:
{},
superFieldList
:
[],
buildingInfos
:
[],
targetFloorList
:
[],
types
:
[],
statusList
:
[
{
name
:
'正常'
,
value
:
'NORMAL'
,
imgPath
:
require
(
'@/assets/door-close.png'
)},
{
name
:
'离线'
,
value
:
'OFFLINE'
,
imgPath
:
require
(
'@/assets/door-offline.png'
)},
{
name
:
'损坏'
,
value
:
'BREAKDOWN'
,
imgPath
:
require
(
'@/assets/door-warning.png'
)}],
}
},
created
()
{
getAction
(
'/pm/pmBuildingInfo/list'
)
.
then
(
value
=>
this
.
buildingInfos
=
value
.
result
);
getAction
(
'/pm/pmAccessControlDevice/types'
)
.
then
(
value
=>
this
.
types
=
value
.
result
);
},
computed
:
{
importExcelUrl
:
function
()
{
return
`
${
window
.
_CONFIG
[
'domianURL'
]}
/
${
this
.
url
.
importExcelUrl
}
`
;
},
},
methods
:
{
initDictConfig
()
{
},
buildingChange
(
value
)
{
let
targetList
=
this
.
buildingInfos
.
filter
(
buildingInfo
=>
buildingInfo
.
name
===
value
);
if
(
targetList
!=
null
&&
targetList
.
length
>
0
)
{
this
.
targetFloorList
=
targetList
[
0
].
floorList
;
}
else
{
this
.
targetFloorList
=
[];
}
},
loadComplete
()
{
if
(
this
.
list
.
length
>
0
)
{
this
.
list
.
forEach
((
item
,
index
)
=>
{
console
.
log
(
item
);
let
fixX
=
20
;
let
fixY
=
20
;
let
offsetWidth
=
this
.
$refs
.
floorImg
.
offsetWidth
;
let
offsetHeight
=
this
.
$refs
.
floorImg
.
offsetHeight
;
this
.
$refs
.
icon
[
index
].
style
.
position
=
'absolute'
;
this
.
$refs
.
icon
[
index
].
style
.
width
=
'40px'
;
this
.
$refs
.
icon
[
index
].
style
.
top
=
item
.
coordinate
.
y
*
offsetHeight
-
fixY
+
'px'
;
this
.
$refs
.
icon
[
index
].
style
.
left
=
item
.
coordinate
.
x
*
offsetWidth
-
fixX
+
'px'
;
});
}
},
searchQuery
()
{
getAction
(
this
.
url
.
list
,
this
.
queryParam
)
.
then
(
value
=>
{
this
.
list
=
value
.
result
.
records
;
this
.
$nextTick
(()
=>
{
this
.
loadComplete
();
})
});
},
searchReset
()
{
this
.
searchQuery
();
},
floorImgLoadComplete
()
{
this
.
searchQuery
();
}
}
}
</
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
View file @
d4c8c650
This diff is collapsed.
Click to expand it.
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmAccessControlDeviceController.java
View file @
d4c8c650
...
...
@@ -141,7 +141,7 @@ public class PmAccessControlDeviceController extends JeecgController<PmAccessCon
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
PmAccessControlDevice
pmAccessControlDevice
)
{
return
super
.
exportXls
(
request
,
pmAccessControlDevice
,
PmAccessControlDevice
.
class
,
"
pm_access_control_device
"
);
return
super
.
exportXls
(
request
,
pmAccessControlDevice
,
PmAccessControlDevice
.
class
,
"
门禁设备
"
);
}
/**
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmAccessControlDeviceRecordController.java
View file @
d4c8c650
package
org
.
jeecg
.
pm
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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
;
...
...
@@ -10,9 +8,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.shiro.SecurityUtils
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.constant.CommonConstant
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.common.util.oConvertUtils
;
import
org.jeecg.pm.entity.PmAccessControlDeviceRecord
;
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/PmMonitoringDeviceController.java
View file @
d4c8c650
package
org
.
jeecg
.
pm
.
controller
;
import
java.util.Arrays
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.system.query.QueryGenerator
;
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.pm.entity.PmMonitoringDevice
;
import
org.jeecg.pm.service.IPmMonitoringDeviceService
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.servlet.ModelAndView
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Arrays
;
import
java.util.List
;
/**
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date:
2022-03-1
5
* @Date:
2022-05-2
5
* @Version: V1.0
*/
@Api
(
tags
=
"pm_monitoring_device"
)
@Api
(
tags
=
"pm_monitoring_device"
)
@RestController
@RequestMapping
(
"/pm/pmMonitoringDevice"
)
@Slf4j
...
...
@@ -45,11 +45,11 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
//@AutoLog(value = "pm_monitoring_device-分页列表查询")
@ApiOperation
(
value
=
"pm_monitoring_device-分页列表查询"
,
notes
=
"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
,
@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
);
...
...
@@ -57,11 +57,6 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
return
Result
.
OK
(
pageList
);
}
@GetMapping
(
"/listByFloorId"
)
public
Result
<
List
<
PmMonitoringDevice
>>
listByFloorId
(
Long
floorId
)
{
return
null
;
}
/**
* 添加
*
...
...
@@ -69,7 +64,7 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-添加"
)
@ApiOperation
(
value
=
"pm_monitoring_device-添加"
,
notes
=
"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
);
...
...
@@ -83,8 +78,8 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-编辑"
)
@ApiOperation
(
value
=
"pm_monitoring_device-编辑"
,
notes
=
"pm_monitoring_device-编辑"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
@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
(
"编辑成功!"
);
...
...
@@ -97,9 +92,9 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-通过id删除"
)
@ApiOperation
(
value
=
"pm_monitoring_device-通过id删除"
,
notes
=
"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
)
{
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
pmMonitoringDeviceService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
...
...
@@ -111,9 +106,9 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
@AutoLog
(
value
=
"pm_monitoring_device-批量删除"
)
@ApiOperation
(
value
=
"pm_monitoring_device-批量删除"
,
notes
=
"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
)
{
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
pmMonitoringDeviceService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
...
...
@@ -125,12 +120,12 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
* @return
*/
//@AutoLog(value = "pm_monitoring_device-通过id查询")
@ApiOperation
(
value
=
"pm_monitoring_device-通过id查询"
,
notes
=
"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
)
{
public
Result
<
PmMonitoringDevice
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
PmMonitoringDevice
pmMonitoringDevice
=
pmMonitoringDeviceService
.
getById
(
id
);
if
(
pmMonitoringDevice
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
if
(
pmMonitoringDevice
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
}
return
Result
.
OK
(
pmMonitoringDevice
);
}
...
...
@@ -143,7 +138,7 @@ public class PmMonitoringDeviceController extends JeecgController<PmMonitoringDe
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
PmMonitoringDevice
pmMonitoringDevice
)
{
return
super
.
exportXls
(
request
,
pmMonitoringDevice
,
PmMonitoringDevice
.
class
,
"
pm_monitoring_device
"
);
return
super
.
exportXls
(
request
,
pmMonitoringDevice
,
PmMonitoringDevice
.
class
,
"
视频安防
"
);
}
/**
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/AlarmQuery.java
View file @
d4c8c650
...
...
@@ -72,7 +72,6 @@ public class AlarmQuery implements Serializable {
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
/**删除状态*/
@Excel
(
name
=
"删除状态"
,
width
=
15
)
@ApiModelProperty
(
value
=
"删除状态"
)
private
Boolean
deleted
;
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/PmAccessControlDeviceRecord.java
View file @
d4c8c650
...
...
@@ -39,7 +39,6 @@ public class PmAccessControlDeviceRecord implements Serializable {
/**
* 门禁设备Id
*/
@Excel
(
name
=
"门禁设备Id"
,
width
=
15
)
@ApiModelProperty
(
value
=
"门禁设备Id"
)
private
Long
pmAccessControlDeviceId
;
...
...
@@ -59,7 +58,7 @@ public class PmAccessControlDeviceRecord implements Serializable {
/**
* 状态
*/
@Excel
(
name
=
"
状态
"
,
width
=
15
,
dicCode
=
"access_control_classify"
)
@Excel
(
name
=
"
员工归类
"
,
width
=
15
,
dicCode
=
"access_control_classify"
)
@Dict
(
dicCode
=
"access_control_classify"
)
@ApiModelProperty
(
value
=
"员工归类 1:员工 2:访客 3:租户"
)
private
Integer
classify
;
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/PmMonitoringDevice.java
View file @
d4c8c650
package
org
.
jeecg
.
pm
.
entity
;
import
java.io.Serializable
;
import
java.io.UnsupportedEncodingException
;
import
java.util.Date
;
import
java.math.BigDecimal
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.jeecg.common.aspect.annotation.Dict
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.jeecg.common.aspect.annotation.Dict
;
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-1
5
* @Date:
2022-05-2
5
* @Version: V1.0
*/
@Data
@TableName
(
value
=
"pm_monitoring_device"
,
autoResultMap
=
true
)
@TableName
(
"pm_monitoring_device"
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@ApiModel
(
value
=
"pm_monitoring_device对象"
,
description
=
"pm_monitoring_device"
)
@ApiModel
(
value
=
"pm_monitoring_device对象"
,
description
=
"pm_monitoring_device"
)
public
class
PmMonitoringDevice
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* id
*/
/**id*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
value
=
"id"
)
private
Long
id
;
/**
* 设备编码
*/
/**区域名称*/
@Excel
(
name
=
"区域名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"区域名称"
)
private
String
districtName
;
/**设备名称*/
@Excel
(
name
=
"设备名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
/**设备编码*/
@Excel
(
name
=
"设备编码"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备编码"
)
private
String
code
;
/**
* 设备类型
*/
@Excel
(
name
=
"设备类型"
,
width
=
15
)
/**设备类型*/
@Excel
(
name
=
"设备类型"
,
width
=
15
,
dicCode
=
"monitoring_type"
)
@ApiModelProperty
(
value
=
"设备类型"
)
@Dict
(
dicCode
=
"monitoring_type"
)
private
String
type
;
/**
* 设备名称
*/
@Excel
(
name
=
"设备名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备名称"
)
private
String
name
;
/**
* 设备ip
*/
/**设备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
String
floor
;
/**
* 设备位置
*/
@Excel
(
name
=
"设备位置"
,
width
=
15
)
@ApiModelProperty
(
value
=
"设备位置"
)
private
String
place
;
/**
* xy值
*/
/**所属设备*/
@Excel
(
name
=
"所属设备"
,
width
=
15
)
@ApiModelProperty
(
value
=
"所属设备"
)
private
String
theirEquipment
;
/**xy值*/
@Excel
(
name
=
"xy值"
,
width
=
15
)
@ApiModelProperty
(
value
=
"xy值"
)
@TableField
(
typeHandler
=
Coordinate
.
TypeHandler
.
class
)
private
Coordinate
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
)
@ApiModelProperty
(
value
=
"生产厂商"
)
private
String
manufacturer
;
/**
* 状态
*/
@Excel
(
name
=
"状态"
,
width
=
15
)
@ApiModelProperty
(
value
=
"状态"
)
private
Status
status
;
/**
* 创建人Id(sys_user)
*/
@Excel
(
name
=
"创建人Id(sys_user)"
,
width
=
15
)
private
String
coordinate
;
/**状态 1:正常 2:离线 3:维修*/
@Excel
(
name
=
"状态"
,
width
=
15
,
dicCode
=
"access_control_status"
)
@ApiModelProperty
(
value
=
"状态 1:正常 2:离线 3:维修"
)
@Dict
(
dicCode
=
"access_control_status"
)
private
String
status
;
/**端口*/
@Excel
(
name
=
"端口"
,
width
=
15
)
@ApiModelProperty
(
value
=
"端口"
)
private
String
port
;
/**通道号*/
@Excel
(
name
=
"通道号"
,
width
=
15
)
@ApiModelProperty
(
value
=
"通道号"
)
private
String
chanelNum
;
/**创建人Id(sys_user)*/
@Excel
(
name
=
"创建人"
,
width
=
15
,
dictTable
=
"sys_user"
,
dicText
=
"realname"
,
dicCode
=
"id"
)
@ApiModelProperty
(
value
=
"创建人Id(sys_user)"
)
@Dict
(
dictTable
=
"sys_user"
,
dicText
=
"realname"
,
dicCode
=
"id"
)
private
String
createUserId
;
/**
* 修改人Id(sys_user)
*/
@Excel
(
name
=
"修改人Id(sys_user)"
,
width
=
15
)
/**修改人Id(sys_user)*/
@ApiModelProperty
(
value
=
"修改人Id(sys_user)"
)
@Dict
(
dictTable
=
"sys_user"
,
dicText
=
"realname"
,
dicCode
=
"id"
)
private
String
modifyUserId
;
/**
* 删除状态
*/
@Excel
(
name
=
"删除状态"
,
width
=
15
)
@ApiModelProperty
(
value
=
"删除状态"
)
private
Boolean
deleted
;
/**
* 创建时间
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd hh:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
/**创建时间*/
@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 hh:mm:ss"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd hh:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
/**修改时间*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
public
enum
Status
{
NORMAL
,
OFFLINE
,
BREAKDOWN
}
/**删除状态*/
@ApiModelProperty
(
value
=
"删除状态"
)
private
Boolean
deleted
;
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/PmMonitoringDeviceMapper.java
View file @
d4c8c650
...
...
@@ -6,7 +6,7 @@ import org.jeecg.pm.entity.PmMonitoringDevice;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date:
2022-03-1
5
* @Date:
2022-05-2
5
* @Version: V1.0
*/
public
interface
PmMonitoringDeviceMapper
extends
BaseMapper
<
PmMonitoringDevice
>
{
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/IPmMonitoringDeviceService.java
View file @
d4c8c650
...
...
@@ -3,14 +3,12 @@ package org.jeecg.pm.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.pm.entity.PmMonitoringDevice
;
import
java.util.List
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date:
2022-03-1
5
* @Date:
2022-05-2
5
* @Version: V1.0
*/
public
interface
IPmMonitoringDeviceService
extends
IService
<
PmMonitoringDevice
>
{
List
<
PmMonitoringDevice
>
listByFloorId
(
Long
floorId
);
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/impl/PmMonitoringDeviceServiceImpl.java
View file @
d4c8c650
package
org
.
jeecg
.
pm
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.pm.entity.PmMonitoringDevice
;
import
org.jeecg.pm.hikvision.sdk.client.HikvisionClient
;
import
org.jeecg.pm.mapper.PmMonitoringDeviceMapper
;
import
org.jeecg.pm.service.IPmMonitoringDeviceService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: pm_monitoring_device
* @Author: jeecg-boot
* @Date:
2022-03-1
5
* @Date:
2022-05-2
5
* @Version: V1.0
*/
@Service
public
class
PmMonitoringDeviceServiceImpl
extends
ServiceImpl
<
PmMonitoringDeviceMapper
,
PmMonitoringDevice
>
implements
IPmMonitoringDeviceService
{
@Autowired
private
HikvisionClient
hikvisionClient
;
@Override
public
boolean
save
(
PmMonitoringDevice
entity
)
{
entity
.
setId
(
IdWorker
.
getId
())
.
setDeleted
(
false
)
.
setCreateTime
(
new
Date
())
.
setModifyTime
(
new
Date
());
return
super
.
save
(
entity
);
}
@Override
public
boolean
updateById
(
PmMonitoringDevice
entity
)
{
entity
.
setModifyTime
(
new
Date
());
return
super
.
updateById
(
entity
);
}
@Override
public
boolean
removeById
(
Serializable
id
)
{
return
update
(
new
UpdateWrapper
<
PmMonitoringDevice
>()
.
lambda
()
.
eq
(
PmMonitoringDevice:
:
getId
,
id
)
.
set
(
PmMonitoringDevice:
:
getDeleted
,
true
)
.
set
(
PmMonitoringDevice:
:
getModifyTime
,
new
Date
()));
}
@Override
public
List
<
PmMonitoringDevice
>
listByFloorId
(
Long
floorId
)
{
new
QueryWrapper
<
PmMonitoringDevice
>()
.
lambda
()
.
eq
(
PmMonitoringDevice:
:
getFloor
,
floorId
);
return
null
;
}
}
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