Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
hzsomms
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZTGK
hzsomms
Commits
32075b85
Commit
32075b85
authored
Jun 21, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.代码提交
parent
db66b0f6
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
318 additions
and
515 deletions
+318
-515
Swagger2Config.java
...e-core/src/main/java/org/jeecg/config/Swagger2Config.java
+1
-2
LightRailController.java
...modules/subwayNetwork/controller/LightRailController.java
+13
-54
SectionStationMapController.java
...subwayNetwork/controller/SectionStationMapController.java
+0
-164
SubwaySectionController.java
...les/subwayNetwork/controller/SubwaySectionController.java
+5
-79
TrainStationController.java
...ules/subwayNetwork/controller/TrainStationController.java
+55
-141
LightRailQueryDTO.java
...rg/jeecg/modules/subwayNetwork/dto/LightRailQueryDTO.java
+3
-2
SubwaySectionDTO.java
...org/jeecg/modules/subwayNetwork/dto/SubwaySectionDTO.java
+16
-0
SubwaySectionEditDTO.java
...jeecg/modules/subwayNetwork/dto/SubwaySectionEditDTO.java
+10
-0
TrainStationQueryDTO.java
...jeecg/modules/subwayNetwork/dto/TrainStationQueryDTO.java
+21
-0
LightRail.java
...ava/org/jeecg/modules/subwayNetwork/entity/LightRail.java
+15
-34
TrainStation.java
.../org/jeecg/modules/subwayNetwork/entity/TrainStation.java
+14
-33
TrainStationMapper.java
...eecg/modules/subwayNetwork/mapper/TrainStationMapper.java
+5
-0
LightRailMapper.xml
...eecg/modules/subwayNetwork/mapper/xml/LightRailMapper.xml
+9
-2
TrainStationMapper.xml
...g/modules/subwayNetwork/mapper/xml/TrainStationMapper.xml
+40
-0
ISubwaySectionService.java
.../modules/subwayNetwork/service/ISubwaySectionService.java
+2
-0
ITrainStationService.java
...g/modules/subwayNetwork/service/ITrainStationService.java
+7
-1
SubwaySectionServiceImpl.java
.../subwayNetwork/service/impl/SubwaySectionServiceImpl.java
+6
-0
TrainStationServiceImpl.java
...s/subwayNetwork/service/impl/TrainStationServiceImpl.java
+11
-0
LightRailQueryVO.java
.../org/jeecg/modules/subwayNetwork/vo/LightRailQueryVO.java
+7
-1
SubwaySectionVO.java
...a/org/jeecg/modules/subwayNetwork/vo/SubwaySectionVO.java
+9
-0
TrainStationVO.java
...va/org/jeecg/modules/subwayNetwork/vo/TrainStationVO.java
+67
-0
application-test.yml
...eecg-system-start/src/main/resources/application-test.yml
+2
-2
No files found.
jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java
View file @
32075b85
...
...
@@ -112,11 +112,10 @@ public class Swagger2Config implements WebMvcConfigurer {
.
title
(
"JeecgBoot 后台服务API接口文档"
)
// 版本号
.
version
(
"1.0"
)
// .termsOfServiceUrl("NO terms of service")
// 描述
.
description
(
"后台API接口"
)
// 作者
.
contact
(
new
Contact
(
"
北京敲敲云科技有限公司"
,
"www.jeccg.com"
,
"jeecgos@163.com
"
))
.
contact
(
new
Contact
(
"
"
,
" "
,
"
"
))
.
license
(
"The Apache License, Version 2.0"
)
.
licenseUrl
(
"http://www.apache.org/licenses/LICENSE-2.0.html"
)
.
build
();
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/controller/LightRailController.java
View file @
32075b85
...
...
@@ -4,6 +4,7 @@ import java.util.Arrays;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
cn.hutool.core.util.ObjectUtil
;
import
org.jeecg.common.api.dto.PageSearch
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.system.query.QueryGenerator
;
...
...
@@ -45,41 +46,26 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
*
* @return
*/
//
@AutoLog(value = "线路车站-轻轨线路-分页列表查询")
@AutoLog
(
value
=
"线路车站-轻轨线路-分页列表查询"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-分页列表查询"
,
notes
=
"线路车站-轻轨线路-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
LightRailQueryVO
>>
queryPageList
(
PageSearch
<
LightRailQueryDTO
>
dto
)
{
@PostMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
LightRailQueryVO
>>
queryPageList
(
@RequestBody
PageSearch
<
LightRailQueryDTO
>
dto
)
{
IPage
<
LightRailQueryVO
>
pageList
=
lightRailService
.
queryPageList
(
dto
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param lightRail
* @return
*/
@AutoLog
(
value
=
"线路车站-轻轨线路-添加"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-添加"
,
notes
=
"线路车站-轻轨线路-添加"
)
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:add")
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
LightRail
lightRail
)
{
lightRailService
.
save
(
lightRail
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param lightRail
* @return
*/
@AutoLog
(
value
=
"线路车站-轻轨线路-编辑"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-编辑"
,
notes
=
"线路车站-轻轨线路-编辑"
)
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:edit")
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
@PostMapping
(
value
=
"/edit"
)
public
Result
<
String
>
edit
(
@RequestBody
LightRail
lightRail
)
{
if
(
ObjectUtil
.
isEmpty
(
lightRail
.
getId
()))
{
lightRailService
.
save
(
lightRail
);
}
else
{
lightRailService
.
updateById
(
lightRail
);
}
return
Result
.
OK
(
"编辑成功!"
);
}
...
...
@@ -91,7 +77,6 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
*/
@AutoLog
(
value
=
"线路车站-轻轨线路-通过id删除"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id删除"
,
notes
=
"线路车站-轻轨线路-通过id删除"
)
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:delete")
@GetMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
lightRailService
.
removeById
(
id
);
...
...
@@ -106,7 +91,6 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
*/
@AutoLog
(
value
=
"线路车站-轻轨线路-批量删除"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-批量删除"
,
notes
=
"线路车站-轻轨线路-批量删除"
)
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:deleteBatch")
@GetMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
lightRailService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
...
...
@@ -119,7 +103,7 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
* @param id
* @return
*/
//
@AutoLog(value = "线路车站-轻轨线路-通过id查询")
@AutoLog
(
value
=
"线路车站-轻轨线路-通过id查询"
)
@ApiOperation
(
value
=
"线路车站-轻轨线路-通过id查询"
,
notes
=
"线路车站-轻轨线路-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
public
Result
<
LightRail
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
...
...
@@ -130,29 +114,4 @@ public class LightRailController extends JeecgController<LightRail, ILightRailSe
return
Result
.
OK
(
lightRail
);
}
/**
* 导出excel
*
* @param request
* @param lightRail
*/
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:exportXls")
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
LightRail
lightRail
)
{
return
super
.
exportXls
(
request
,
lightRail
,
LightRail
.
class
,
"线路车站-轻轨线路"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
// @RequiresPermissions("subwayNetwork:t_sn_light_rail:importExcel")
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
LightRail
.
class
);
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/controller/SectionStationMapController.java
deleted
100644 → 0
View file @
db66b0f6
package
org
.
jeecg
.
modules
.
subwayNetwork
.
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
org.jeecg.modules.subwayNetwork.entity.SectionStationMap
;
import
org.jeecg.modules.subwayNetwork.service.ISectionStationMapService
;
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.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
org.apache.shiro.authz.annotation.RequiresPermissions
;
/**
* @Description: 线路车站-区间站点映射
* @Author: jeecg-boot
* @Date: 2023-06-15
* @Version: V1.0
*/
@Api
(
tags
=
"线路车站-区间站点映射"
)
@RestController
@RequestMapping
(
"/subwayNetwork/sectionStationMap"
)
@Slf4j
public
class
SectionStationMapController
extends
JeecgController
<
SectionStationMap
,
ISectionStationMapService
>
{
@Autowired
private
ISectionStationMapService
sectionStationMapService
;
/**
* 分页列表查询
*
* @param sectionStationMap
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "线路车站-区间站点映射-分页列表查询")
@ApiOperation
(
value
=
"线路车站-区间站点映射-分页列表查询"
,
notes
=
"线路车站-区间站点映射-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
SectionStationMap
>>
queryPageList
(
SectionStationMap
sectionStationMap
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
SectionStationMap
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
sectionStationMap
,
req
.
getParameterMap
());
Page
<
SectionStationMap
>
page
=
new
Page
<
SectionStationMap
>(
pageNo
,
pageSize
);
IPage
<
SectionStationMap
>
pageList
=
sectionStationMapService
.
page
(
page
,
queryWrapper
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param sectionStationMap
* @return
*/
@AutoLog
(
value
=
"线路车站-区间站点映射-添加"
)
@ApiOperation
(
value
=
"线路车站-区间站点映射-添加"
,
notes
=
"线路车站-区间站点映射-添加"
)
// @RequiresPermissions("subwayNetwork:t_sn_section_station_map:add")
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
SectionStationMap
sectionStationMap
)
{
sectionStationMapService
.
save
(
sectionStationMap
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param sectionStationMap
* @return
*/
@AutoLog
(
value
=
"线路车站-区间站点映射-编辑"
)
@ApiOperation
(
value
=
"线路车站-区间站点映射-编辑"
,
notes
=
"线路车站-区间站点映射-编辑"
)
// @RequiresPermissions("subwayNetwork:t_sn_section_station_map:edit")
@RequestMapping
(
value
=
"/edit"
,
method
=
RequestMethod
.
POST
)
public
Result
<
String
>
edit
(
@RequestBody
SectionStationMap
sectionStationMap
)
{
sectionStationMapService
.
updateById
(
sectionStationMap
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"线路车站-区间站点映射-通过id删除"
)
@ApiOperation
(
value
=
"线路车站-区间站点映射-通过id删除"
,
notes
=
"线路车站-区间站点映射-通过id删除"
)
// @RequiresPermissions("subwayNetwork:t_sn_section_station_map:delete")
@GetMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
sectionStationMapService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"线路车站-区间站点映射-批量删除"
)
@ApiOperation
(
value
=
"线路车站-区间站点映射-批量删除"
,
notes
=
"线路车站-区间站点映射-批量删除"
)
@RequiresPermissions
(
"subwayNetwork:t_sn_section_station_map:deleteBatch"
)
@GetMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
sectionStationMapService
.
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
<
SectionStationMap
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
SectionStationMap
sectionStationMap
=
sectionStationMapService
.
getById
(
id
);
if
(
sectionStationMap
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
);
}
return
Result
.
OK
(
sectionStationMap
);
}
/**
* 导出excel
*
* @param request
* @param sectionStationMap
*/
// @RequiresPermissions("subwayNetwork:t_sn_section_station_map:exportXls")
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
SectionStationMap
sectionStationMap
)
{
return
super
.
exportXls
(
request
,
sectionStationMap
,
SectionStationMap
.
class
,
"线路车站-区间站点映射"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
// @RequiresPermissions("subwayNetwork:t_sn_section_station_map:importExcel")
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
SectionStationMap
.
class
);
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/controller/SubwaySectionController.java
View file @
32075b85
...
...
@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.system.query.QueryGenerator
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionEditDTO
;
import
org.jeecg.modules.subwayNetwork.entity.SubwaySection
;
import
org.jeecg.modules.subwayNetwork.service.ISubwaySectionService
;
...
...
@@ -37,16 +38,7 @@ public class SubwaySectionController extends JeecgController<SubwaySection, ISub
@Autowired
private
ISubwaySectionService
subwaySectionService
;
/**
* 分页列表查询
*
* @param subwaySection
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "线路车站-地铁区间-分页列表查询")
@AutoLog
(
value
=
"线路车站-地铁区间-分页列表查询"
)
@ApiOperation
(
value
=
"线路车站-地铁区间-分页列表查询"
,
notes
=
"线路车站-地铁区间-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
SubwaySection
>>
queryPageList
(
SubwaySection
subwaySection
,
...
...
@@ -59,72 +51,31 @@ public class SubwaySectionController extends JeecgController<SubwaySection, ISub
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param subwaySection
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁区间-添加"
)
@ApiOperation
(
value
=
"线路车站-地铁区间-添加"
,
notes
=
"线路车站-地铁区间-添加"
)
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:add"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
SubwaySection
subwaySection
)
{
subwaySectionService
.
save
(
subwaySection
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param subwaySection
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁区间-编辑"
)
@ApiOperation
(
value
=
"线路车站-地铁区间-编辑"
,
notes
=
"线路车站-地铁区间-编辑"
)
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:edit"
)
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
public
Result
<
String
>
edit
(
@RequestBody
SubwaySection
subwaySection
)
{
subwaySectionService
.
updateById
(
subwaySection
);
@PostMapping
(
value
=
"/edit"
)
public
Result
<
String
>
edit
(
@RequestBody
SubwaySectionEditDTO
dto
)
{
subwaySectionService
.
edit
(
dto
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁区间-通过id删除"
)
@ApiOperation
(
value
=
"线路车站-地铁区间-通过id删除"
,
notes
=
"线路车站-地铁区间-通过id删除"
)
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:delete"
)
@DeleteMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
subwaySectionService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁区间-批量删除"
)
@ApiOperation
(
value
=
"线路车站-地铁区间-批量删除"
,
notes
=
"线路车站-地铁区间-批量删除"
)
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:deleteBatch"
)
@DeleteMapping
(
value
=
"/deleteBatch"
)
public
Result
<
String
>
deleteBatch
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
this
.
subwaySectionService
.
removeByIds
(
Arrays
.
asList
(
ids
.
split
(
","
)));
return
Result
.
OK
(
"批量删除成功!"
);
}
/**
* 通过id查询
*
* @param id
* @return
*/
//@AutoLog(value = "线路车站-地铁区间-通过id查询")
@ApiOperation
(
value
=
"线路车站-地铁区间-通过id查询"
,
notes
=
"线路车站-地铁区间-通过id查询"
)
@GetMapping
(
value
=
"/queryById"
)
...
...
@@ -136,29 +87,4 @@ public class SubwaySectionController extends JeecgController<SubwaySection, ISub
return
Result
.
OK
(
subwaySection
);
}
/**
* 导出excel
*
* @param request
* @param subwaySection
*/
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:exportXls"
)
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
SubwaySection
subwaySection
)
{
return
super
.
exportXls
(
request
,
subwaySection
,
SubwaySection
.
class
,
"线路车站-地铁区间"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequiresPermissions
(
"subwayNetwork:t_sn_subway_section:importExcel"
)
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
SubwaySection
.
class
);
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/controller/TrainStationController.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
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
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.service.ITrainStationService
;
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.dto.PageSearch
;
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.modules.subwayNetwork.dto.TrainStationQueryDTO
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.service.ITrainStationService
;
import
org.jeecg.modules.subwayNetwork.vo.TrainStationVO
;
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
org.apache.shiro.authz.annotation.RequiresPermissions
;
/**
import
java.util.Arrays
;
/**
* @Description: 线路车站-地铁站
* @Author: jeecg-boot
* @Date: 2023-06-14
* @Version: V1.0
*/
@Api
(
tags
=
"线路车站-地铁站"
)
@Api
(
tags
=
"线路车站-地铁站"
)
@RestController
@RequestMapping
(
"/subwayNetwork/trainStation"
)
@Slf4j
...
...
@@ -36,128 +31,47 @@ public class TrainStationController extends JeecgController<TrainStation, ITrain
@Autowired
private
ITrainStationService
trainStationService
;
/**
* 分页列表查询
*
* @param trainStation
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "线路车站-地铁站-分页列表查询")
@ApiOperation
(
value
=
"线路车站-地铁站-分页列表查询"
,
notes
=
"线路车站-地铁站-分页列表查询"
)
@AutoLog
(
value
=
"线路车站-地铁站-分页列表查询"
)
@ApiOperation
(
value
=
"线路车站-地铁站-分页列表查询"
,
notes
=
"线路车站-地铁站-分页列表查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
TrainStation
>>
queryPageList
(
TrainStation
trainStation
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
HttpServletRequest
req
)
{
QueryWrapper
<
TrainStation
>
queryWrapper
=
QueryGenerator
.
initQueryWrapper
(
trainStation
,
req
.
getParameterMap
());
Page
<
TrainStation
>
page
=
new
Page
<
TrainStation
>(
pageNo
,
pageSize
);
IPage
<
TrainStation
>
pageList
=
trainStationService
.
page
(
page
,
queryWrapper
);
public
Result
<
IPage
<
TrainStationVO
>>
queryPageList
(
@RequestBody
PageSearch
<
TrainStationQueryDTO
>
dto
)
{
IPage
<
TrainStationVO
>
pageList
=
trainStationService
.
queryPageList
(
dto
);
return
Result
.
OK
(
pageList
);
}
/**
* 添加
*
* @param trainStation
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁站-添加"
)
@ApiOperation
(
value
=
"线路车站-地铁站-添加"
,
notes
=
"线路车站-地铁站-添加"
)
// @RequiresPermissions("subwayNetwork:t_sn_train_station:add")
@ApiOperation
(
value
=
"线路车站-地铁站-添加"
,
notes
=
"线路车站-地铁站-添加"
)
@PostMapping
(
value
=
"/add"
)
public
Result
<
String
>
add
(
@RequestBody
TrainStation
trainStation
)
{
trainStationService
.
save
(
trainStation
);
return
Result
.
OK
(
"添加成功!"
);
}
/**
* 编辑
*
* @param trainStation
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁站-编辑"
)
@ApiOperation
(
value
=
"线路车站-地铁站-编辑"
,
notes
=
"线路车站-地铁站-编辑"
)
// @RequiresPermissions("subwayNetwork:t_sn_train_station:edit")
@RequestMapping
(
value
=
"/edit"
,
method
=
{
RequestMethod
.
PUT
,
RequestMethod
.
POST
})
@ApiOperation
(
value
=
"线路车站-地铁站-编辑"
,
notes
=
"线路车站-地铁站-编辑"
)
@PostMapping
(
value
=
"/edit"
)
public
Result
<
String
>
edit
(
@RequestBody
TrainStation
trainStation
)
{
trainStationService
.
updateById
(
trainStation
);
return
Result
.
OK
(
"编辑成功!"
);
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁站-通过id删除"
)
@ApiOperation
(
value
=
"线路车站-地铁站-通过id删除"
,
notes
=
"线路车站-地铁站-通过id删除"
)
// @RequiresPermissions("subwayNetwork:t_sn_train_station:delete")
@ApiOperation
(
value
=
"线路车站-地铁站-通过id删除"
,
notes
=
"线路车站-地铁站-通过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
)
{
trainStationService
.
removeById
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"线路车站-地铁站-批量删除"
)
@ApiOperation
(
value
=
"线路车站-地铁站-批量删除"
,
notes
=
"线路车站-地铁站-批量删除"
)
// @RequiresPermissions("subwayNetwork:t_sn_train_station:deleteBatch")
@ApiOperation
(
value
=
"线路车站-地铁站-批量删除"
,
notes
=
"线路车站-地铁站-批量删除"
)
@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
.
trainStationService
.
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
<
TrainStation
>
queryById
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
TrainStation
trainStation
=
trainStationService
.
getById
(
id
);
if
(
trainStation
==
null
)
{
return
Result
.
error
(
"未找到对应数据"
);
}
return
Result
.
OK
(
trainStation
);
}
/**
* 导出excel
*
* @param request
* @param trainStation
*/
// @RequiresPermissions("subwayNetwork:t_sn_train_station:exportXls")
@RequestMapping
(
value
=
"/exportXls"
)
public
ModelAndView
exportXls
(
HttpServletRequest
request
,
TrainStation
trainStation
)
{
return
super
.
exportXls
(
request
,
trainStation
,
TrainStation
.
class
,
"线路车站-地铁站"
);
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
// @RequiresPermissions("subwayNetwork:t_sn_train_station:importExcel")
@RequestMapping
(
value
=
"/importExcel"
,
method
=
RequestMethod
.
POST
)
public
Result
<?>
importExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
super
.
importExcel
(
request
,
response
,
TrainStation
.
class
);
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/dto/LightRailQueryDTO.java
View file @
32075b85
...
...
@@ -7,8 +7,9 @@ import lombok.Data;
@Data
@ApiModel
(
value
=
"线路DTO"
)
public
class
LightRailQueryDTO
{
@ApiModelProperty
(
value
=
"线路code"
)
private
String
railLineCode
;
@ApiModelProperty
(
value
=
"线路name"
)
private
String
railLineName
;
@ApiModelProperty
(
value
=
"状态"
)
private
String
status
;
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/dto/SubwaySectionDTO.java
0 → 100644
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
@Data
@ApiModel
(
value
=
"区间DTO"
)
public
class
SubwaySectionDTO
{
@ApiModelProperty
(
value
=
"线路id"
)
private
java
.
lang
.
String
railId
;
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/dto/SubwaySectionEditDTO.java
0 → 100644
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"SubwaySectionEditDTO编辑"
)
public
class
SubwaySectionEditDTO
{
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/dto/TrainStationQueryDTO.java
0 → 100644
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
dto
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
@Data
@ApiModel
(
value
=
"地铁站DTO"
)
public
class
TrainStationQueryDTO
{
@ApiModelProperty
(
value
=
"车站名"
)
private
String
stationName
;
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/entity/LightRail.java
View file @
32075b85
...
...
@@ -30,53 +30,34 @@ import lombok.experimental.Accessors;
public
class
LightRail
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@ApiModelProperty
(
value
=
"主键"
)
private
java
.
lang
.
String
id
;
/**
* 创建人
*/
@ApiModelProperty
(
value
=
"创建人"
)
private
java
.
lang
.
String
createBy
;
/**
* 创建日期
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"创建日期"
)
private
java
.
util
.
Date
createTime
;
/**
* 更新人
*/
@ApiModelProperty
(
value
=
"更新人"
)
private
java
.
lang
.
String
updateBy
;
/**
* 更新日期
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
String
updateBy
;
@ApiModelProperty
(
value
=
"更新日期"
)
private
java
.
util
.
Date
updateTime
;
/**
* 线路名称
*/
@Excel
(
name
=
"线路名称"
,
width
=
15
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"线路名称"
)
private
java
.
lang
.
String
railLineName
;
/**
* 线路code
*/
@Excel
(
name
=
"线路code"
,
width
=
15
)
private
String
railLineName
;
@ApiModelProperty
(
value
=
"线路code"
)
private
java
.
lang
.
String
railLineCode
;
/**
* 状态
*/
@Excel
(
name
=
"状态"
,
width
=
15
)
private
String
railLineCode
;
@ApiModelProperty
(
value
=
"状态"
)
private
java
.
lang
.
String
status
;
private
Integer
status
;
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/entity/TrainStation.java
View file @
32075b85
...
...
@@ -53,71 +53,52 @@ public class TrainStation implements Serializable {
*/
@ApiModelProperty
(
value
=
"更新人"
)
private
String
updateBy
;
/**
* 更新日期
*/
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"更新日期"
)
private
Date
updateTime
;
/**
* 轻轨线路ID
*/
@Excel
(
name
=
"轻轨线路ID"
,
width
=
15
)
@ApiModelProperty
(
value
=
"轻轨线路ID"
)
private
String
lightRailId
;
/**
* 车站名
*/
@Excel
(
name
=
"车站名"
,
width
=
15
)
@ApiModelProperty
(
value
=
"车站名"
)
private
String
stationName
;
/**
* 车站编码
*/
@Excel
(
name
=
"车站编码"
,
width
=
15
)
@ApiModelProperty
(
value
=
"车站编码"
)
private
String
stationCode
;
/**
* 线别
*/
@Excel
(
name
=
"线别"
,
width
=
15
)
@ApiModelProperty
(
value
=
"线别"
)
private
String
lineAlias
;
/**
* 起始里程前缀
*/
@Excel
(
name
=
"起始里程前缀"
,
width
=
15
)
@ApiModelProperty
(
value
=
"起始里程前缀"
)
private
String
startingMileagePrefix
;
/**
* 起始里程
*/
@Excel
(
name
=
"起始里程"
,
width
=
15
)
@ApiModelProperty
(
value
=
"起始里程"
)
private
BigDecimal
startingMileage
;
/**
* 中心里程前缀
*/
@Excel
(
name
=
"中心里程前缀"
,
width
=
15
)
@ApiModelProperty
(
value
=
"中心里程前缀"
)
private
String
centerMileagePrefix
;
/**
* 中心里程
*/
@Excel
(
name
=
"中心里程"
,
width
=
15
)
@ApiModelProperty
(
value
=
"中心里程"
)
private
BigDecimal
centerMileage
;
/**
* 结束里程前缀
*/
@Excel
(
name
=
"结束里程前缀"
,
width
=
15
)
@ApiModelProperty
(
value
=
"结束里程前缀"
)
private
String
endMileagePrefix
;
/**
* 结束里程
*/
@Excel
(
name
=
"结束里程"
,
width
=
15
)
@ApiModelProperty
(
value
=
"结束里程"
)
private
BigDecimal
endMileage
;
@ApiModelProperty
(
value
=
"序号"
)
private
Integer
seq
;
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/TrainStationMapper.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.jeecg.modules.subwayNetwork.dto.TrainStationQueryDTO
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO
;
import
org.jeecg.modules.subwayNetwork.vo.TrainStationVO
;
/**
* @Description: 线路车站-地铁站
...
...
@@ -11,4 +15,5 @@ import org.jeecg.modules.subwayNetwork.entity.TrainStation;
*/
public
interface
TrainStationMapper
extends
BaseMapper
<
TrainStation
>
{
IPage
<
TrainStationVO
>
queryPageList
(
IPage
<
LightRailQueryVO
>
page
,
TrainStationQueryDTO
query
);
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/LightRailMapper.xml
View file @
32075b85
...
...
@@ -14,12 +14,19 @@
t1.update_time,
count(t2.id) subwaySectionNum,
count(t3.id) trainStationNum,
sum(t3.end_mileage
) lineMileage
ifnull(sum(t3.end_mileage),0
) lineMileage
FROM
t_sn_light_rail t1
LEFT JOIN t_sn_subway_section t2 ON t1.id = t2.rail_id
LEFT JOIN t_sn_train_station t3 ON t1.id = t3.light_rail_id
WHERE 1=1
<where>
<if
test=
"query.railLineName != null and query.railLineName != ''"
>
AND t1.rail_line_name like concat('%',#{query.railLineName},'%')
</if>
<if
test=
"query.status != null and query.status != ''"
>
AND t1.status = #{query.status}
</if>
</where>
GROUP BY t1.id
</select>
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/TrainStationMapper.xml
View file @
32075b85
...
...
@@ -2,4 +2,44 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.subwayNetwork.mapper.TrainStationMapper"
>
<select
id=
"queryPageList"
resultType=
"org.jeecg.modules.subwayNetwork.vo.TrainStationVO"
>
SELECT
t1.center_mileage,
t1.center_mileage_prefix,
t1.create_by,
t1.create_time,
t1.end_mileage,
t1.end_mileage_prefix,
t1.id,
t1.light_rail_id,
t1.line_alias,
t1.starting_mileage,
t1.starting_mileage_prefix,
t1.station_code,
t1.station_name,
t1.update_by,
t1.update_time,
t1.center_mileage,
t1.center_mileage_prefix,
t1.create_by,
t1.create_time,
t1.end_mileage,
t1.end_mileage_prefix,
t1.id,
t1.light_rail_id,
t1.line_alias,
t1.starting_mileage,
t1.starting_mileage_prefix,
t1.station_code,
t1.station_name,
t1.update_by,
t1.update_time
FROM
t_sn_train_station t1
<where>
<if
test=
"query.stationName !=null and query.stationName!=''"
>
AND t1.station_name like concat('%',#{query.stationName},'%')
</if>
</where>
</select>
</mapper>
\ No newline at end of file
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/ISubwaySectionService.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionEditDTO
;
import
org.jeecg.modules.subwayNetwork.entity.SubwaySection
;
import
com.baomidou.mybatisplus.extension.service.IService
;
...
...
@@ -11,4 +12,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public
interface
ISubwaySectionService
extends
IService
<
SubwaySection
>
{
void
edit
(
SubwaySectionEditDTO
dto
);
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/ITrainStationService.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.common.api.dto.PageSearch
;
import
org.jeecg.modules.subwayNetwork.dto.TrainStationQueryDTO
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.vo.TrainStationVO
;
/**
* @Description: 线路车站-地铁站
...
...
@@ -11,4 +15,6 @@ import org.jeecg.modules.subwayNetwork.entity.TrainStation;
*/
public
interface
ITrainStationService
extends
IService
<
TrainStation
>
{
IPage
<
TrainStationVO
>
queryPageList
(
PageSearch
<
TrainStationQueryDTO
>
dto
);
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/SubwaySectionServiceImpl.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
.
impl
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionEditDTO
;
import
org.jeecg.modules.subwayNetwork.entity.SubwaySection
;
import
org.jeecg.modules.subwayNetwork.mapper.SubwaySectionMapper
;
import
org.jeecg.modules.subwayNetwork.service.ISubwaySectionService
;
...
...
@@ -16,4 +17,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public
class
SubwaySectionServiceImpl
extends
ServiceImpl
<
SubwaySectionMapper
,
SubwaySection
>
implements
ISubwaySectionService
{
@Override
public
void
edit
(
SubwaySectionEditDTO
dto
)
{
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/TrainStationServiceImpl.java
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.common.api.dto.PageSearch
;
import
org.jeecg.modules.subwayNetwork.dto.TrainStationQueryDTO
;
import
org.jeecg.modules.subwayNetwork.mapper.TrainStationMapper
;
import
org.jeecg.modules.subwayNetwork.service.ITrainStationService
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO
;
import
org.jeecg.modules.subwayNetwork.vo.TrainStationVO
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
...
@@ -15,4 +21,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public
class
TrainStationServiceImpl
extends
ServiceImpl
<
TrainStationMapper
,
TrainStation
>
implements
ITrainStationService
{
@Override
public
IPage
<
TrainStationVO
>
queryPageList
(
PageSearch
<
TrainStationQueryDTO
>
dto
)
{
IPage
<
LightRailQueryVO
>
page
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
return
this
.
baseMapper
.
queryPageList
(
page
,
dto
.
getQuery
());
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/vo/LightRailQueryVO.java
View file @
32075b85
...
...
@@ -15,25 +15,31 @@ public class LightRailQueryVO {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"主键"
)
private
String
id
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createBy
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"创建日期"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新人"
)
private
String
updateBy
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"更新日期"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"线路名称"
)
private
java
.
lang
.
String
railLineName
;
@ApiModelProperty
(
value
=
"线路code"
)
private
java
.
lang
.
String
railLineCode
;
@ApiModelProperty
(
value
=
"状态"
)
private
java
.
lang
.
String
status
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"区间数量"
)
private
Integer
subwaySectionNum
;
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/vo/SubwaySectionVO.java
0 → 100644
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"区间VO"
)
public
class
SubwaySectionVO
{
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/vo/TrainStationVO.java
0 → 100644
View file @
32075b85
package
org
.
jeecg
.
modules
.
subwayNetwork
.
vo
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
@Data
@ApiModel
(
value
=
"地铁站VO"
)
public
class
TrainStationVO
{
@ApiModelProperty
(
value
=
"主键"
)
private
String
id
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createBy
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"创建日期"
)
private
Date
createTime
;
@ApiModelProperty
(
value
=
"更新人"
)
private
String
updateBy
;
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty
(
value
=
"更新日期"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"轻轨线路ID"
)
private
String
lightRailId
;
@ApiModelProperty
(
value
=
"车站名"
)
private
String
stationName
;
@ApiModelProperty
(
value
=
"车站编码"
)
private
String
stationCode
;
@ApiModelProperty
(
value
=
"线别"
)
private
String
lineAlias
;
@ApiModelProperty
(
value
=
"起始里程前缀"
)
private
String
startingMileagePrefix
;
@ApiModelProperty
(
value
=
"起始里程"
)
private
BigDecimal
startingMileage
;
@ApiModelProperty
(
value
=
"中心里程前缀"
)
private
String
centerMileagePrefix
;
@ApiModelProperty
(
value
=
"中心里程"
)
private
BigDecimal
centerMileage
;
@ApiModelProperty
(
value
=
"结束里程前缀"
)
private
String
endMileagePrefix
;
@ApiModelProperty
(
value
=
"结束里程"
)
private
BigDecimal
endMileage
;
}
jeecg-module-system/jeecg-system-start/src/main/resources/application-test.yml
View file @
32075b85
...
...
@@ -131,7 +131,7 @@ spring:
connectionProperties
:
druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
datasource
:
master
:
url
:
jdbc:mysql://
127.0.0.1:3306/hzsomms
?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&zeroDateTimeBehavior=convertToNull
url
:
jdbc:mysql://
47.94.207.62:3306/hzsomms2
?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&zeroDateTimeBehavior=convertToNull
username
:
root
password
:
superAdmin&321
driver-class-name
:
com.mysql.jdbc.Driver
...
...
@@ -144,7 +144,7 @@ spring:
#redis 配置
redis
:
database
:
0
host
:
127.0.0.1
host
:
47.94.207.62
lettuce
:
pool
:
max-active
:
8
#最大连接数据库连接数,设 0 为没有限制
...
...
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