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
89e9e4bd
Commit
89e9e4bd
authored
Jul 15, 2025
by
hcing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix:台套认领设备使用登记证编号校验修改
parent
e1978de1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+15
-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 @
89e9e4bd
...
@@ -835,6 +835,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -835,6 +835,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
if
(
dataSource
.
contains
(
"his"
))
{
if
(
dataSource
.
contains
(
"his"
))
{
// 使用登记证编号校验
// 使用登记证编号校验
this
.
checkUseRegistrationCodeIsNotNUll
(
equipmentInfoForm
);
this
.
checkUseRegistrationCode
(
equipmentInfoForm
);
this
.
checkUseRegistrationCode
(
equipmentInfoForm
);
}
}
...
@@ -887,9 +888,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -887,9 +888,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
.
map
(
String:
:
valueOf
)
.
map
(
String:
:
valueOf
)
.
map
(
String:
:
trim
)
.
map
(
String:
:
trim
)
.
orElse
(
null
);
.
orElse
(
null
);
if
(
useRegistrationCode
==
null
)
{
throw
new
BadRequest
(
"请填写使用登记证编号后进行暂存!"
);
}
String
equipId
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"RECORD"
));
String
equipId
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"RECORD"
));
// 校验使用登记证编号的唯一性
// 校验使用登记证编号的唯一性
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equipmentInfoForm
.
get
(
"EQU_CATEGORY"
))
&&
commonService
.
useRegistrationCertificateAccountUnique
(
useRegistrationCode
,
equipId
))
{
if
(!
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equipmentInfoForm
.
get
(
"EQU_CATEGORY"
))
&&
commonService
.
useRegistrationCertificateAccountUnique
(
useRegistrationCode
,
equipId
))
{
...
@@ -913,6 +911,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -913,6 +911,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
idxBizJgRegisterInfoService
.
checkUseRegistrationCode
(
useRegistrationCode
,
regType
);
idxBizJgRegisterInfoService
.
checkUseRegistrationCode
(
useRegistrationCode
,
regType
);
}
}
/**
* 使用登记证编号为空相关校验
* @param equipmentInfoForm
*/
private
void
checkUseRegistrationCodeIsNotNUll
(
LinkedHashMap
equipmentInfoForm
)
{
String
useRegistrationCode
=
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"useRegistrationCode"
))
.
map
(
String:
:
valueOf
)
.
map
(
String:
:
trim
)
.
orElse
(
null
);
if
(
useRegistrationCode
==
null
)
{
throw
new
BadRequest
(
"请填写使用登记证编号后进行暂存!"
);
}
}
private
Object
checkAndCast
(
Object
obj
)
{
private
Object
checkAndCast
(
Object
obj
)
{
if
(
obj
instanceof
LinkedHashMap
)
{
if
(
obj
instanceof
LinkedHashMap
)
{
...
...
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