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
8b71478b
Commit
8b71478b
authored
Jun 30, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):历史有证设备暂存添加使用登记编号校验
parent
c1d8cfad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+9
-3
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
8b71478b
...
...
@@ -815,8 +815,14 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
String
record
=
(
String
)
equipmentInfoForm
.
get
(
RECORD
);
String
dataSource
=
(
String
)
equipmentInfoForm
.
get
(
DATA_SOURCE
);
if
(
dataSource
.
contains
(
"his"
)
&&
equipmentInfoForm
.
get
(
"useRegistrationCode"
)
!=
null
)
{
String
useRegistrationCode
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"useRegistrationCode"
)).
trim
();
if
(
dataSource
.
contains
(
"his"
))
{
String
useRegistrationCode
=
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"useRegistrationCode"
))
.
map
(
String:
:
valueOf
)
.
map
(
String:
:
trim
)
.
orElse
(
null
);
if
(
dataSource
.
equals
(
"jg_his"
)
&&
useRegistrationCode
==
null
||
Objects
.
requireNonNull
(
useRegistrationCode
).
isEmpty
())
{
throw
new
BadRequest
(
"请填写使用登记证编号后进行暂存!"
);
}
String
equipId
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"RECORD"
));
// 校验使用登记证编号的唯一性
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equipmentInfoForm
.
get
(
"EQU_CATEGORY"
))
&&
commonService
.
useRegistrationCertificateAccountUnique
(
useRegistrationCode
,
equipId
))
{
...
...
@@ -3797,7 +3803,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForEquipUsedByVehiclePageHistory
(
page
,
jsonObject
);
result
.
getRecords
().
forEach
(
i
->
{
i
.
put
(
"chargingMedium"
,
fillingMediumMap
.
get
(
i
.
get
(
"chargingMedium"
)
));
i
.
put
(
"chargingMedium"
,
Optional
.
ofNullable
(
fillingMediumMap
.
get
(
i
.
get
(
"chargingMedium"
))).
orElse
(
""
));
i
.
put
(
"productPhoto"
,
JSONArray
.
parseArray
(
i
.
getString
(
"productPhoto"
)));
i
.
put
(
"cylinderStampAttachment"
,
JSONArray
.
parseArray
(
i
.
getString
(
"cylinderStampAttachment"
)));
i
.
put
(
"informationSituation"
,
InformationManageTypeEnum
.
getName
(
i
.
getString
(
"informationSituation"
)));
...
...
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