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
401a8ed2
Commit
401a8ed2
authored
Apr 25, 2022
by
416409548@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车位管理
parent
00a8fab2
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
799 additions
and
1 deletions
+799
-1
ant-design-vue-jeecg/src/views/pm/parking_management/ParkingManagementList.vue
+238
-0
ant-design-vue-jeecg/src/views/pm/parking_management/modules/ParkingManagementForm.vue
+135
-0
ant-design-vue-jeecg/src/views/pm/parking_management/modules/ParkingManagementModal.Style#Drawer.vue
+85
-0
ant-design-vue-jeecg/src/views/pm/parking_management/modules/ParkingManagementModal.vue
+61
-0
jeecg-boot-parent/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/aspect/DictAspect.java
+1
-1
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/ParkingManagementController.java
+156
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/ParkingManagement.java
+70
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/ParkingManagementMapper.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/xml/ParkingManagementMapper.xml
+6
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/IParkingManagementService.java
+14
-0
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/impl/ParkingManagementServiceImpl.java
+19
-0
No files found.
ant-design-vue-jeecg/src/views/pm/parking_management/ParkingManagementList.vue
0 → 100644
View file @
401a8ed2
<
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
:md=
"4"
:sm=
"8"
>
<a-form-item
label=
"车位状态"
>
<j-dict-select-tag
v-model=
"queryParam.status"
placeholder=
"请选择车位状态"
dict-code=
"parking_management_status"
/>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"8"
>
<a-form-item
label=
"车位号"
>
<j-input
placeholder=
"请输入车位号"
v-model=
"queryParam.parkingNo"
></j-input>
</a-form-item>
</a-col>
<a-col
:md=
"4"
:sm=
"8"
>
<a-form-item
label=
"车牌号"
>
<j-input
placeholder=
"请输入车牌号"
v-model=
"queryParam.plateNo"
></j-input>
</a-form-item>
</a-col>
<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-col
:md=
"8"
:sm=
"8"
>
<a-space
style=
"float: right"
>
<a-button
@
click=
"handleExportXls('车位管理导出')"
type=
"primary"
>
导出
</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('车位管理')"
>
导出
</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>
<parking-management-modal
ref=
"modalForm"
@
ok=
"modalFormOk"
></parking-management-modal>
</a-card>
</template>
<
script
>
import
'@/assets/less/TableExpand.less'
import
{
mixinDevice
}
from
'@/utils/mixin'
import
{
JeecgListMixin
}
from
'@/mixins/JeecgListMixin'
import
ParkingManagementModal
from
'./modules/ParkingManagementModal'
export
default
{
name
:
'ParkingManagementList'
,
mixins
:[
JeecgListMixin
,
mixinDevice
],
components
:
{
ParkingManagementModal
},
data
()
{
return
{
description
:
'车位管理管理页面'
,
// 表头
columns
:
[
{
title
:
'#'
,
dataIndex
:
''
,
key
:
'rowIndex'
,
width
:
60
,
align
:
"center"
,
customRender
:
function
(
t
,
r
,
index
)
{
return
parseInt
(
index
)
+
1
;
}
},
{
title
:
'车位号'
,
align
:
"center"
,
dataIndex
:
'parkingNo'
},
{
title
:
'停车场区域名称'
,
align
:
"center"
,
dataIndex
:
'districtName'
},
{
title
:
'停车场区域ID'
,
align
:
"center"
,
dataIndex
:
'districtId'
},
{
title
:
'停车车牌号'
,
align
:
"center"
,
dataIndex
:
'plateNo'
},
{
title
:
'车位状态'
,
align
:
"center"
,
dataIndex
:
'status_dictText'
},
// {
// title:'修改时间',
// align:"center",
// dataIndex: 'modifyTime',
// customRender:function (text) {
// return !text?"":(text.length>10?text.substr(0,10):text)
// }
// },
// {
// title:'删除状态',
// align:"center",
// dataIndex: 'deleted'
// },
// {
// title: '操作',
// dataIndex: 'action',
// align:"center",
// fixed:"right",
// width:147,
// scopedSlots: { customRender: 'action' }
// }
],
url
:
{
list
:
"/pm/parkingManagement/list"
,
delete
:
"/pm/parkingManagement/delete"
,
deleteBatch
:
"/pm/parkingManagement/deleteBatch"
,
exportXlsUrl
:
"/pm/parkingManagement/exportXls"
,
importExcelUrl
:
"pm/parkingManagement/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
:
'parkingNo'
,
text
:
'车位号'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'districtName'
,
text
:
'停车场区域名称'
})
fieldList
.
push
({
type
:
'int'
,
value
:
'districtId'
,
text
:
'停车场区域ID'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'plateNo'
,
text
:
'停车车牌号'
})
fieldList
.
push
({
type
:
'string'
,
value
:
'status'
,
text
:
'车位状态'
})
fieldList
.
push
({
type
:
'date'
,
value
:
'modifyTime'
,
text
:
'修改时间'
})
fieldList
.
push
({
type
:
'int'
,
value
:
'deleted'
,
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/parking_management/modules/ParkingManagementForm.vue
0 → 100644
View file @
401a8ed2
<
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=
"parkingNo"
>
<a-input
v-model=
"model.parkingNo"
placeholder=
"请输入车位号"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"停车场区域名称"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"districtName"
>
<a-input
v-model=
"model.districtName"
placeholder=
"请输入停车场区域名称"
></a-input>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"停车场区域ID"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"districtId"
>
<a-input-number
v-model=
"model.districtId"
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=
"plateNo"
>
<a-input
v-model=
"model.plateNo"
placeholder=
"请输入停车车牌号"
></a-input>
</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=
"修改时间"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"modifyTime"
>
<j-date
placeholder=
"请选择修改时间"
v-model=
"model.modifyTime"
style=
"width: 100%"
/>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"删除状态"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"deleted"
>
<a-input-number
v-model=
"model.deleted"
placeholder=
"请输入删除状态"
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
:
'ParkingManagementForm'
,
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
:
"/org.jeecg.pm/parkingManagement/add"
,
edit
:
"/org.jeecg.pm/parkingManagement/edit"
,
queryById
:
"/org.jeecg.pm/parkingManagement/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/parking_management/modules/ParkingManagementModal.Style#Drawer.vue
0 → 100644
View file @
401a8ed2
<
template
>
<a-drawer
:title=
"title"
:width=
"width"
placement=
"right"
:closable=
"false"
@
close=
"close"
destroyOnClose
:visible=
"visible"
>
<parking-management-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
normal
></parking-management-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
ParkingManagementForm
from
'./ParkingManagementForm'
export
default
{
name
:
'ParkingManagementModal'
,
components
:
{
ParkingManagementForm
},
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/parking_management/modules/ParkingManagementModal.vue
0 → 100644
View file @
401a8ed2
<
template
>
<j-modal
:title=
"title"
:width=
"width"
:visible=
"visible"
switchFullscreen
@
ok=
"handleOk"
:okButtonProps=
"
{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<parking-management-form
ref=
"realForm"
@
ok=
"submitCallback"
:disabled=
"disableSubmit"
></parking-management-form>
</j-modal>
</
template
>
<
script
>
import
ParkingManagementForm
from
'./ParkingManagementForm'
export
default
{
name
:
'ParkingManagementModal'
,
components
:
{
ParkingManagementForm
},
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-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/aspect/DictAspect.java
View file @
401a8ed2
...
...
@@ -47,7 +47,7 @@ public class DictAspect {
public
RedisTemplate
redisTemplate
;
// 定义切点Pointcut
@Pointcut
(
"execution(public * org.jeecg.modules..*.*Controller.*(..)) || @annotation(org.jeecg.common.aspect.annotation.AutoDict)"
)
@Pointcut
(
"execution(public * org.jeecg.modules..*.*Controller.*(..)) || @annotation(org.jeecg.common.aspect.annotation.AutoDict)
|| execution(public * org.jeecg.*.controller.*Controller.*(..))
"
)
public
void
excudeService
()
{
}
...
...
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/controller/ParkingManagementController.java
0 → 100644
View file @
401a8ed2
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
lombok.extern.slf4j.Slf4j
;
import
org.jeecg.pm.entity.ParkingManagement
;
import
org.jeecg.pm.service.IParkingManagementService
;
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
;
/**
* @Description: 车位管理
* @Author: jeecg-boot
* @Date: 2022-04-25
* @Version: V1.0
*/
@Api
(
tags
=
"车位管理"
)
@RestController
@RequestMapping
(
"/pm/parkingManagement"
)
@Slf4j
public
class
ParkingManagementController
extends
JeecgController
<
ParkingManagement
,
IParkingManagementService
>
{
@Autowired
private
IParkingManagementService
parkingManagementService
;
/**
* 分页列表查询
*
* @param parkingManagement
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "车位管理-分页列表查询")
@ApiOperation
(
value
=
"车位管理-分页列表查询"
,
notes
=
"车位管理-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
ParkingManagement
>>
queryPageList
(
ParkingManagement
parkingManagement
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
ParkingManagement
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
parkingManagement
,
req
.
getParameterMap
());
Page
<
ParkingManagement
>
page
=
new
Page
<
ParkingManagement
>(
pageNo
,
pageSize
);
IPage
<
ParkingManagement
>
pageList
=
parkingManagementService
.
page
(
page
,
queryWrapper
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param parkingManagement
* @return
*/
@AutoLog
(
value
=
"车位管理-添加"
)
@ApiOperation
(
value
=
"车位管理-添加"
,
notes
=
"车位管理-添加"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
ParkingManagement
parkingManagement
)
{
parkingManagementService
.
save
(
parkingManagement
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param parkingManagement
* @return
*/
@AutoLog
(
value
=
"车位管理-编辑"
)
@ApiOperation
(
value
=
"车位管理-编辑"
,
notes
=
"车位管理-编辑"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
public
Result
<
String
>
edit
(
@RequestBody
ParkingManagement
parkingManagement
)
{
parkingManagementService
.
updateById
(
parkingManagement
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"车位管理-通过id删除"
)
@ApiOperation
(
value
=
"车位管理-通过id删除"
,
notes
=
"车位管理-通过id删除"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
parkingManagementService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"车位管理-批量删除"
)
@ApiOperation
(
value
=
"车位管理-批量删除"
,
notes
=
"车位管理-批量删除"
)
@DeleteMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
parkingManagementService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "车位管理-通过id查询")
@ApiOperation
(
value
=
"车位管理-通过id查询"
,
notes
=
"车位管理-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
ParkingManagement
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
ParkingManagement
parkingManagement
=
parkingManagementService
.
getById
(
id
);
if
(
parkingManagement
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
,
null
);
}
return
Result
.
OK
(
parkingManagement
);
}
/**
* 导出excel
*
* @param request
* @param parkingManagement
*/
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
ParkingManagement
parkingManagement
)
{
return
super
.
exportXls
(
request
,
parkingManagement
,
ParkingManagement
.
class
,
"车位管理"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
ParkingManagement
.
class
);
}
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/entity/ParkingManagement.java
0 → 100644
View file @
401a8ed2
package
org
.
jeecg
.
pm
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.jeecg.common.aspect.annotation.Dict
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
/**
* @Description: 车位管理
* @Author: jeecg-boot
* @Date: 2022-04-25
* @Version: V1.0
*/
@Data
@TableName
(
"parking_management"
)
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
false
)
@ApiModel
(
value
=
"parking_management对象"
,
description
=
"车位管理"
)
public
class
ParkingManagement
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
parkingNo
;
/**停车场区域名称*/
@Excel
(
name
=
"停车场区域名称"
,
width
=
15
)
@ApiModelProperty
(
value
=
"停车场区域名称"
)
private
String
districtName
;
/**停车场区域ID*/
@Excel
(
name
=
"停车场区域ID"
,
width
=
15
)
@ApiModelProperty
(
value
=
"停车场区域ID"
)
private
Integer
districtId
;
/**停车车牌号*/
@Excel
(
name
=
"停车车牌号"
,
width
=
15
)
@ApiModelProperty
(
value
=
"停车车牌号"
)
private
String
plateNo
;
/**车位状态*/
@Excel
(
name
=
"车位状态"
,
width
=
15
,
dicCode
=
"parking_management_status"
)
@Dict
(
dicCode
=
"parking_management_status"
)
@ApiModelProperty
(
value
=
"车位状态"
)
private
Integer
status
;
/**创建时间*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**修改时间*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"修改时间"
)
private
Date
modifyTime
;
/**删除状态*/
@ApiModelProperty
(
value
=
"删除状态"
)
private
Boolean
deleted
;
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/ParkingManagementMapper.java
0 → 100644
View file @
401a8ed2
package
org
.
jeecg
.
pm
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.pm.entity.ParkingManagement
;
/**
* @Description: 车位管理
* @Author: jeecg-boot
* @Date: 2022-04-25
* @Version: V1.0
*/
public
interface
ParkingManagementMapper
extends
BaseMapper
<
ParkingManagement
>
{
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/mapper/xml/ParkingManagementMapper.xml
0 → 100644
View file @
401a8ed2
<?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.pm.mapper.ParkingManagementMapper"
>
</mapper>
\ No newline at end of file
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/IParkingManagementService.java
0 → 100644
View file @
401a8ed2
package
org
.
jeecg
.
pm
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.pm.entity.ParkingManagement
;
/**
* @Description: 车位管理
* @Author: jeecg-boot
* @Date: 2022-04-25
* @Version: V1.0
*/
public
interface
IParkingManagementService
extends
IService
<
ParkingManagement
>
{
}
jeecg-boot-parent/jeecg-boot-module-property/src/main/java/org/jeecg/pm/service/impl/ParkingManagementServiceImpl.java
0 → 100644
View file @
401a8ed2
package
org
.
jeecg
.
pm
.
service
.
impl
;
import
org.jeecg.pm.entity.ParkingManagement
;
import
org.jeecg.pm.mapper.ParkingManagementMapper
;
import
org.jeecg.pm.service.IParkingManagementService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: 车位管理
* @Author: jeecg-boot
* @Date: 2022-04-25
* @Version: V1.0
*/
@Service
public
class
ParkingManagementServiceImpl
extends
ServiceImpl
<
ParkingManagementMapper
,
ParkingManagement
>
implements
IParkingManagementService
{
}
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