Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
28e4f699
Commit
28e4f699
authored
Dec 15, 2020
by
zhengjiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
9525c2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
StationMaintenServiceImp.java
...s/fas/business/service/impl/StationMaintenServiceImp.java
+13
-5
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/StationMaintenServiceImp.java
View file @
28e4f699
...
...
@@ -20,12 +20,20 @@ public class StationMaintenServiceImp implements IStationMaintenService {
@Override
public
void
save
(
StationInfo
stationInfo
){
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
stationInfo
.
getUseType
());
stringBuilder
.
append
(
stationInfo
.
getRegionCode
());
stringBuilder
.
append
(
stationInfo
.
getCode
());
stationInfo
.
setStationCode
(
stringBuilder
.
toString
());
Integer
useType
=
stationInfo
.
getUseType
();
String
regionCode
=
stationInfo
.
getRegionCode
();
String
code
=
stationInfo
.
getCode
();
if
(
regionCode
==
null
||
""
.
equals
(
regionCode
)
){
StationInfo
station
=
detail
();
stationInfo
.
setStationCode
(
station
.
getStationCode
());
}
else
{
stringBuilder
.
append
(
useType
);
stringBuilder
.
append
(
regionCode
);
stringBuilder
.
append
(
code
);
stationInfo
.
setStationCode
(
stringBuilder
.
toString
());
}
// // 状态为启用(0)下只能修改换流站名称
// if(stationInfo.getId() == 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