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
Show 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 {
...
@@ -60,6 +60,10 @@ public class RailManagement implements Serializable {
@TableField
(
"unit_code"
)
@TableField
(
"unit_code"
)
private
String
unitCode
;
private
String
unitCode
;
@ApiModelProperty
(
"线路id"
)
@TableField
(
"light_rail_id"
)
private
String
lightRailId
;
@ApiModelProperty
(
"区间id"
)
@ApiModelProperty
(
"区间id"
)
@TableField
(
"section_id"
)
@TableField
(
"section_id"
)
private
String
sectionId
;
private
String
sectionId
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/mapper/xml/RailManagementMapper.xml
View file @
615ffb2d
...
@@ -5,15 +5,14 @@
...
@@ -5,15 +5,14 @@
<select
id=
"queryPageList"
resultType=
"org.jeecg.modules.deviceAsset.vo.RailManagementVO"
>
<select
id=
"queryPageList"
resultType=
"org.jeecg.modules.deviceAsset.vo.RailManagementVO"
>
SELECT
SELECT
t1.*,
t1.*,
t2.light_rail_name,
t3.rail_line_name light_rail_name,
t2.light_rail_id,
t2.section_name,
t2.section_name,
( SELECT line_alias_name FROM t_sn_line_alias WHERE id = t1.line_alias_id LIMIT 1 ) line_alias_name
( SELECT line_alias_name FROM t_sn_line_alias WHERE id = t1.line_alias_id LIMIT 1 ) line_alias_name
FROM
FROM
t_da_rail_management t1
t_da_rail_management t1
LEFT JOIN t_sn_subway_section t2 ON t1.section_id = t2.id
LEFT JOIN t_sn_subway_section t2 ON t1.section_id = t2.id
LEFT JOIN t_sn_light_rail t3 ON t
2
.light_rail_id = t3.id
LEFT JOIN t_sn_light_rail t3 ON t
1
.light_rail_id = t3.id
<where>
where t3.status = 1
<if
test=
"dto.railCode != null and dto.railCode != ''"
>
<if
test=
"dto.railCode != null and dto.railCode != ''"
>
AND t1.rail_code like concat('%',#{dto.railCode},'%')
AND t1.rail_code like concat('%',#{dto.railCode},'%')
</if>
</if>
...
@@ -21,12 +20,11 @@
...
@@ -21,12 +20,11 @@
AND t1.section_id = #{dto.sectionId}
AND t1.section_id = #{dto.sectionId}
</if>
</if>
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
AND t2
.light_rail_id = #{dto.lightRailId}
AND t1
.light_rail_id = #{dto.lightRailId}
</if>
</if>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
AND t1.line_alias_id = #{dto.lineAliasId}
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</if>
</where>
</select>
</select>
<select
id=
"getLineSpecialRail"
resultType=
"java.util.Map"
>
<select
id=
"getLineSpecialRail"
resultType=
"java.util.Map"
>
SELECT
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,
...
@@ -57,6 +57,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
@Override
@Override
public
void
edit
(
RailManagement
railManagement
)
{
public
void
edit
(
RailManagement
railManagement
)
{
if
(
ObjectUtil
.
isEmpty
(
railManagement
.
getId
()))
{
if
(
ObjectUtil
.
isEmpty
(
railManagement
.
getId
()))
{
railManagement
.
setId
(
UUIDGenerator
.
generate
());
String
utilCode
=
UnitCodeUtil
.
railUnitCodeUtil
(
railManagement
.
getLineAliasId
());
String
utilCode
=
UnitCodeUtil
.
railUnitCodeUtil
(
railManagement
.
getLineAliasId
());
railManagement
.
setUnitCode
(
utilCode
);
railManagement
.
setUnitCode
(
utilCode
);
...
@@ -91,6 +92,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
...
@@ -91,6 +92,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
railManagement
.
setRailCode
(
railCode
);
railManagement
.
setRailCode
(
railCode
);
String
unitCode
=
"SXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
String
unitCode
=
"SXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setLightRailId
(
lightRailId
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setUpdateBy
(
"系统生成"
);
railManagement
.
setUpdateBy
(
"系统生成"
);
...
@@ -110,6 +112,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
...
@@ -110,6 +112,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
railManagement
.
setRailCode
(
railCode
);
railManagement
.
setRailCode
(
railCode
);
String
unitCode
=
"DXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
String
unitCode
=
"DXXGG"
+
UnitCodeUtil
.
supplementZero
(
4
,
i
+
1
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setUnitCode
(
unitCode
);
railManagement
.
setLightRailId
(
lightRailId
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setRailOrderNum
(
i
+
1
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setCreateBy
(
"系统生成"
);
railManagement
.
setUpdateBy
(
"系统生成"
);
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