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
5c85f1f4
Commit
5c85f1f4
authored
Jul 12, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史设备登记车用气瓶提交修改
parent
d25f199a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+8
-7
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/JgVehicleInformationServiceImpl.java
View file @
5c85f1f4
...
...
@@ -1565,9 +1565,10 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
JgVehicleInformation
>
saveOrUpdateHisData
(
JSONObject
map
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()))
+
""
,
ReginParams
.
class
);
JgVehicleInformationDto
vehicleInfoDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
),
JgVehicleInformationDto
.
class
);
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"equipmentLists"
);
JSONObject
firstMap
=
map
.
getJSONObject
(
"first"
);
JSONObject
secondMap
=
map
.
getJSONObject
(
"second"
);
JgVehicleInformationDto
vehicleInfoDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
secondMap
),
JgVehicleInformationDto
.
class
);
List
<
Map
<
String
,
Object
>>
equipmentLists
=
(
List
<
Map
<
String
,
Object
>>)
secondMap
.
get
(
"equipmentLists"
);
if
(
CollectionUtils
.
isEmpty
(
equipmentLists
)
||
equipmentLists
.
stream
().
map
(
v
->
(
String
)
v
.
get
(
"chargingMedium"
)).
distinct
().
count
()
!=
1
)
{
throw
new
BadRequest
(
CollectionUtils
.
isEmpty
(
equipmentLists
)
?
"请选择设备信息!"
:
"请选择相同充装介质设备!"
);
...
...
@@ -1656,7 +1657,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
}
// 安全管理员
Optional
.
ofNullable
(
m
ap
.
getString
(
"safetyManagerId"
))
Optional
.
ofNullable
(
secondM
ap
.
getString
(
"safetyManagerId"
))
.
filter
(
manager
->
manager
.
contains
(
"_"
))
.
map
(
manager
->
manager
.
split
(
"_"
))
.
ifPresent
(
data
->
{
...
...
@@ -1666,14 +1667,14 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
// 产权单位信息
if
(!
StringUtils
.
isEmpty
(
vehicleInfoDto
.
getEstateUnitName
()))
{
String
[]
data
=
String
.
valueOf
(
m
ap
.
getString
(
"estateUnitName"
)).
split
(
"_"
);
String
[]
data
=
String
.
valueOf
(
secondM
ap
.
getString
(
"estateUnitName"
)).
split
(
"_"
);
vehicleInfoDto
.
setEstateUnitCreditCode
(
data
[
0
]);
vehicleInfoDto
.
setEstateUnitName
(
data
[
1
]);
}
// 其他附件
if
(!
ObjectUtils
.
isEmpty
(
m
ap
.
get
(
"otherAccessories"
)))
{
vehicleInfoDto
.
setOtherAccessories
(
JSONObject
.
toJSONString
(
m
ap
.
get
(
"otherAccessories"
)));
if
(!
ObjectUtils
.
isEmpty
(
secondM
ap
.
get
(
"otherAccessories"
)))
{
vehicleInfoDto
.
setOtherAccessories
(
JSONObject
.
toJSONString
(
secondM
ap
.
get
(
"otherAccessories"
)));
}
JgVehicleInformation
vehicleInformation
=
new
JgVehicleInformation
();
...
...
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