Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
669a29ca
Commit
669a29ca
authored
Sep 01, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):场车单位变更bug修改
parent
e44d26d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
View file @
669a29ca
...
@@ -839,6 +839,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -839,6 +839,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
String
city
=
Objects
.
toString
(
tableData
.
get
(
"city"
),
""
);
String
city
=
Objects
.
toString
(
tableData
.
get
(
"city"
),
""
);
String
userCity
=
Optional
.
ofNullable
(
city
).
map
(
c
->
c
.
split
(
"_"
)[
0
]).
orElseThrow
(()
->
new
BadRequest
(
"请选择地市后暂存!"
));
String
userCity
=
Optional
.
ofNullable
(
city
).
map
(
c
->
c
.
split
(
"_"
)[
0
]).
orElseThrow
(()
->
new
BadRequest
(
"请选择地市后暂存!"
));
this
.
validateDeviceCity
(
deviceList
,
userCity
,
"0"
.
equals
(
model
.
getChangeType
()));
this
.
validateDeviceCity
(
deviceList
,
userCity
,
"0"
.
equals
(
model
.
getChangeType
()));
this
.
setEquAddress
(
model
);
}
}
// 获取单位变更单号
// 获取单位变更单号
...
@@ -914,7 +915,6 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -914,7 +915,6 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
model
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
model
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
model
.
setUseRegistCode
(
String
.
join
(
","
,
registrationNoList
));
model
.
setUseRegistCode
(
String
.
join
(
","
,
registrationNoList
));
model
.
setEquList
(
registrationList
.
get
(
0
).
get
(
"equList"
).
toString
());
model
.
setEquList
(
registrationList
.
get
(
0
).
get
(
"equList"
).
toString
());
this
.
setEquAddress
(
model
);
JgChangeRegistrationUnit
registrationUnit
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
registrationUnit
=
new
JgChangeRegistrationUnit
();
BeanUtils
.
copyProperties
(
model
,
registrationUnit
);
BeanUtils
.
copyProperties
(
model
,
registrationUnit
);
setNewUnitInfo
(
reginParams
,
registrationUnit
);
setNewUnitInfo
(
reginParams
,
registrationUnit
);
...
@@ -1018,7 +1018,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
...
@@ -1018,7 +1018,7 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
private
String
getRegionNameByCode
(
String
type
,
String
code
)
{
private
String
getRegionNameByCode
(
String
type
,
String
code
)
{
List
<
LinkedHashMap
<
String
,
Object
>>
regions
=
(
List
<
LinkedHashMap
<
String
,
Object
>>)
redisUtils
.
get
(
type
.
toUpperCase
());
List
<
LinkedHashMap
<
String
,
Object
>>
regions
=
(
List
<
LinkedHashMap
<
String
,
Object
>>)
redisUtils
.
get
(
type
.
toUpperCase
());
return
regions
.
stream
()
return
regions
.
stream
()
.
filter
(
item
->
code
.
equals
(
String
.
valueOf
(
item
.
get
(
"regionCode"
))
))
.
filter
(
item
->
String
.
valueOf
(
item
.
get
(
"regionCode"
)).
equals
(
code
))
.
map
(
item
->
(
String
)
item
.
get
(
"regionName"
))
.
map
(
item
->
(
String
)
item
.
get
(
"regionName"
))
.
findFirst
()
.
findFirst
()
.
orElse
(
""
);
.
orElse
(
""
);
...
...
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