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
615ffb2d
Commit
615ffb2d
authored
Jul 25, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.线路bug
parent
ff1e352b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
RailManagement.java
.../org/jeecg/modules/deviceAsset/entity/RailManagement.java
+4
-0
RailManagementMapper.xml
...g/modules/deviceAsset/mapper/xml/RailManagementMapper.xml
+15
-17
RailManagementServiceImpl.java
...s/deviceAsset/service/impl/RailManagementServiceImpl.java
+3
-0
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/entity/RailManagement.java
View file @
615ffb2d
...
...
@@ -60,6 +60,10 @@ public class RailManagement implements Serializable {
@TableField
(
"unit_code"
)
private
String
unitCode
;
@ApiModelProperty
(
"线路id"
)
@TableField
(
"light_rail_id"
)
private
String
lightRailId
;
@ApiModelProperty
(
"区间id"
)
@TableField
(
"section_id"
)
private
String
sectionId
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/mapper/xml/RailManagementMapper.xml
View file @
615ffb2d
...
...
@@ -5,28 +5,26 @@
<select
id=
"queryPageList"
resultType=
"org.jeecg.modules.deviceAsset.vo.RailManagementVO"
>
SELECT
t1.*,
t2.light_rail_name,
t2.light_rail_id,
t3.rail_line_name light_rail_name,
t2.section_name,
( SELECT line_alias_name FROM t_sn_line_alias WHERE id = t1.line_alias_id LIMIT 1 ) line_alias_name
FROM
t_da_rail_management t1
LEFT JOIN t_sn_subway_section t2 ON t1.section_id = t2.id
LEFT JOIN t_sn_light_rail t3 ON t2.light_rail_id = t3.id
<where>
<if
test=
"dto.railCode != null and dto.railCode != ''"
>
AND t1.rail_code like concat('%',#{dto.railCode},'%')
</if>
<if
test=
"dto.sectionId != null and dto.sectionId != ''"
>
AND t1.section_id = #{dto.sectionId}
</if>
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where>
LEFT JOIN t_sn_light_rail t3 ON t1.light_rail_id = t3.id
where t3.status = 1
<if
test=
"dto.railCode != null and dto.railCode != ''"
>
AND t1.rail_code like concat('%',#{dto.railCode},'%')
</if>
<if
test=
"dto.sectionId != null and dto.sectionId != ''"
>
AND t1.section_id = #{dto.sectionId}
</if>
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
AND t1.light_rail_id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</select>
<select
id=
"getLineSpecialRail"
resultType=
"java.util.Map"
>
SELECT
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/service/impl/RailManagementServiceImpl.java
View file @
615ffb2d
...
...
@@ -57,6 +57,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
@Override
public
void
edit
(
RailManagement
railManagement
)
{
if
(
ObjectUtil
.
isEmpty
(
railManagement
.
getId
()))
{
railManagement
.
setId
(
UUIDGenerator
.
generate
());
String
utilCode
=
UnitCodeUtil
.
railUnitCodeUtil
(
railManagement
.
getLineAliasId
());
railManagement
.
setUnitCode
(
utilCode
);
...
...
@@ -91,6 +92,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
railManagement
.
setRailCode
(
railCode
);
String
unitCode
=
"SXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setLightRailId
(
lightRailId
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setUpdateBy
(
"系统生成"
);
...
...
@@ -110,6 +112,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
railManagement
.
setRailCode
(
railCode
);
String
unitCode
=
"DXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setLightRailId
(
lightRailId
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setUpdateBy
(
"系统生成"
);
...
...
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