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
6069faab
Commit
6069faab
authored
Jun 25, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.代码提交
parent
767210b9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
63 deletions
+24
-63
TrainStationController.java
...ules/subwayNetwork/controller/TrainStationController.java
+1
-0
SubwaySectionEditDTO.java
...jeecg/modules/subwayNetwork/dto/SubwaySectionEditDTO.java
+3
-0
SubwaySection.java
...org/jeecg/modules/subwayNetwork/entity/SubwaySection.java
+2
-0
SectionStationMapMapper.java
...modules/subwayNetwork/mapper/SectionStationMapMapper.java
+0
-14
SectionStationMapMapper.xml
...ules/subwayNetwork/mapper/xml/SectionStationMapMapper.xml
+0
-5
SubwaySectionMapper.xml
.../modules/subwayNetwork/mapper/xml/SubwaySectionMapper.xml
+2
-1
ISectionStationMapService.java
...ules/subwayNetwork/service/ISectionStationMapService.java
+0
-14
SectionStationMapServiceImpl.java
...wayNetwork/service/impl/SectionStationMapServiceImpl.java
+0
-19
SubwaySectionServiceImpl.java
.../subwayNetwork/service/impl/SubwaySectionServiceImpl.java
+13
-10
SubwaySectionVO.java
...a/org/jeecg/modules/subwayNetwork/vo/SubwaySectionVO.java
+3
-0
No files found.
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/controller/TrainStationController.java
View file @
6069faab
...
@@ -83,6 +83,7 @@ public class TrainStationController extends JeecgController<TrainStation, ITrain
...
@@ -83,6 +83,7 @@ public class TrainStationController extends JeecgController<TrainStation, ITrain
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"label"
,
trainStation
.
getStationName
());
map
.
put
(
"label"
,
trainStation
.
getStationName
());
map
.
put
(
"value"
,
trainStation
.
getId
());
map
.
put
(
"value"
,
trainStation
.
getId
());
map
.
put
(
"lineAliasCode"
,
trainStation
.
getLineAliasCode
());
map
.
put
(
"lightRailId"
,
trainStation
.
getLightRailId
());
map
.
put
(
"lightRailId"
,
trainStation
.
getLightRailId
());
list
.
add
(
map
);
list
.
add
(
map
);
}
}
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/dto/SubwaySectionEditDTO.java
View file @
6069faab
...
@@ -21,4 +21,7 @@ public class SubwaySectionEditDTO {
...
@@ -21,4 +21,7 @@ public class SubwaySectionEditDTO {
@ApiModelProperty
(
value
=
"区间名"
)
@ApiModelProperty
(
value
=
"区间名"
)
private
String
sectionName
;
private
String
sectionName
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/entity/SubwaySection.java
View file @
6069faab
...
@@ -67,4 +67,6 @@ public class SubwaySection implements Serializable {
...
@@ -67,4 +67,6 @@ public class SubwaySection implements Serializable {
@ApiModelProperty
(
value
=
"结束车站Id"
)
@ApiModelProperty
(
value
=
"结束车站Id"
)
private
String
endTrainStationId
;
private
String
endTrainStationId
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/SectionStationMapMapper.java
deleted
100644 → 0
View file @
767210b9
package
org
.
jeecg
.
modules
.
subwayNetwork
.
mapper
;
import
org.jeecg.modules.subwayNetwork.entity.SectionStationMap
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @Description: 线路车站-区间站点映射
* @Author: jeecg-boot
* @Date: 2023-06-15
* @Version: V1.0
*/
public
interface
SectionStationMapMapper
extends
BaseMapper
<
SectionStationMap
>
{
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/SectionStationMapMapper.xml
deleted
100644 → 0
View file @
767210b9
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"org.jeecg.modules.subwayNetwork.mapper.SectionStationMapMapper"
>
</mapper>
\ No newline at end of file
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/SubwaySectionMapper.xml
View file @
6069faab
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
t2.rail_line_name light_rail_name,
t2.rail_line_name light_rail_name,
t1.light_rail_id,
t1.light_rail_id,
t1.start_train_station_id,
t1.start_train_station_id,
t1.end_train_station_id
t1.end_train_station_id,
t1.remark
FROM
FROM
t_sn_subway_section t1 LEFT JOIN t_sn_light_rail t2 ON t1.light_rail_id = t2.id
t_sn_subway_section t1 LEFT JOIN t_sn_light_rail t2 ON t1.light_rail_id = t2.id
<where>
<where>
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/ISectionStationMapService.java
deleted
100644 → 0
View file @
767210b9
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
;
import
org.jeecg.modules.subwayNetwork.entity.SectionStationMap
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* @Description: 线路车站-区间站点映射
* @Author: jeecg-boot
* @Date: 2023-06-15
* @Version: V1.0
*/
public
interface
ISectionStationMapService
extends
IService
<
SectionStationMap
>
{
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/SectionStationMapServiceImpl.java
deleted
100644 → 0
View file @
767210b9
package
org
.
jeecg
.
modules
.
subwayNetwork
.
service
.
impl
;
import
org.jeecg.modules.subwayNetwork.entity.SectionStationMap
;
import
org.jeecg.modules.subwayNetwork.mapper.SectionStationMapMapper
;
import
org.jeecg.modules.subwayNetwork.service.ISectionStationMapService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
/**
* @Description: 线路车站-区间站点映射
* @Author: jeecg-boot
* @Date: 2023-06-15
* @Version: V1.0
*/
@Service
public
class
SectionStationMapServiceImpl
extends
ServiceImpl
<
SectionStationMapMapper
,
SectionStationMap
>
implements
ISectionStationMapService
{
}
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/service/impl/SubwaySectionServiceImpl.java
View file @
6069faab
...
@@ -2,29 +2,23 @@ package org.jeecg.modules.subwayNetwork.service.impl;
...
@@ -2,29 +2,23 @@ package org.jeecg.modules.subwayNetwork.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.common.api.dto.PageSearch
;
import
org.jeecg.common.api.dto.PageSearch
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionEditDTO
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionEditDTO
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionQueryDTO
;
import
org.jeecg.modules.subwayNetwork.dto.SubwaySectionQueryDTO
;
import
org.jeecg.modules.subwayNetwork.entity.LightRail
;
import
org.jeecg.modules.subwayNetwork.entity.SubwaySection
;
import
org.jeecg.modules.subwayNetwork.entity.SubwaySection
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.entity.TrainStation
;
import
org.jeecg.modules.subwayNetwork.mapper.LightRailMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.SubwaySectionMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.SubwaySectionMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.TrainStationMapper
;
import
org.jeecg.modules.subwayNetwork.mapper.TrainStationMapper
;
import
org.jeecg.modules.subwayNetwork.service.ISubwaySectionService
;
import
org.jeecg.modules.subwayNetwork.service.ISubwaySectionService
;
import
org.jeecg.modules.subwayNetwork.vo.LightRailQueryVO
;
import
org.jeecg.modules.subwayNetwork.vo.SubwaySectionVO
;
import
org.jeecg.modules.subwayNetwork.vo.SubwaySectionVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
/**
* @Description: 线路车站-地铁区间
* @Description: 线路车站-地铁区间
...
@@ -35,9 +29,6 @@ import java.util.List;
...
@@ -35,9 +29,6 @@ import java.util.List;
@Service
@Service
public
class
SubwaySectionServiceImpl
extends
ServiceImpl
<
SubwaySectionMapper
,
SubwaySection
>
implements
ISubwaySectionService
{
public
class
SubwaySectionServiceImpl
extends
ServiceImpl
<
SubwaySectionMapper
,
SubwaySection
>
implements
ISubwaySectionService
{
@Resource
private
LightRailMapper
lightRailMapper
;
@Resource
@Resource
private
TrainStationMapper
trainStationMapper
;
private
TrainStationMapper
trainStationMapper
;
...
@@ -60,6 +51,18 @@ public class SubwaySectionServiceImpl extends ServiceImpl<SubwaySectionMapper, S
...
@@ -60,6 +51,18 @@ public class SubwaySectionServiceImpl extends ServiceImpl<SubwaySectionMapper, S
IPage
<
SubwaySectionVO
>
page
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
IPage
<
SubwaySectionVO
>
page
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
page
=
this
.
baseMapper
.
queryPageList
(
page
,
dto
.
getQuery
());
page
=
this
.
baseMapper
.
queryPageList
(
page
,
dto
.
getQuery
());
for
(
SubwaySectionVO
record
:
page
.
getRecords
())
{
// 计算区间里程
TrainStation
startTrainStation
=
trainStationMapper
.
selectById
(
record
.
getStartTrainStationId
());
TrainStation
endTrainStation
=
trainStationMapper
.
selectById
(
record
.
getEndTrainStationId
());
BigDecimal
sectionMileage
=
endTrainStation
.
getEndMileage
().
subtract
(
startTrainStation
.
getEndMileage
());
record
.
setSectionMileage
(
sectionMileage
);
// 车站数量
int
trainStationNum
=
endTrainStation
.
getSeq
()
-
startTrainStation
.
getSeq
();
record
.
setTrainStationNum
(
trainStationNum
);
}
return
page
;
return
page
;
...
...
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/subwayNetwork/vo/SubwaySectionVO.java
View file @
6069faab
...
@@ -53,4 +53,7 @@ public class SubwaySectionVO {
...
@@ -53,4 +53,7 @@ public class SubwaySectionVO {
@ApiModelProperty
(
value
=
"车站数量"
)
@ApiModelProperty
(
value
=
"车站数量"
)
private
Integer
trainStationNum
;
private
Integer
trainStationNum
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
}
}
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