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
caf7aefa
Commit
caf7aefa
authored
Dec 20, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):添加历史设备,添加使用登记证编号
parent
0bd312a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+15
-0
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 @
caf7aefa
...
...
@@ -751,6 +751,21 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
String
record
=
(
String
)
equipmentInfoForm
.
get
(
RECORD
);
String
dataSource
=
(
String
)
equipmentInfoForm
.
get
(
DATA_SOURCE
);
if
(
dataSource
.
startsWith
(
"jg_his"
))
{
String
useRegistrationCode
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"USE_ORG_CODE"
)).
trim
();
String
equipId
=
String
.
valueOf
(
equipmentInfoForm
.
get
(
"RECORD"
));
// 校验使用登记证编号的唯一性
if
(
commonService
.
useRegistrationCertificateAccountUnique
(
useRegistrationCode
,
equipId
))
{
throw
new
BadRequest
(
"使用登记证编号已存在!"
);
}
String
regType
=
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"EQU_LIST"
))
.
filter
(
code
->
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
code
))
.
map
(
code
->
"1"
.
equals
(
equipmentInfoForm
.
get
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"vehicle"
:
"cylinder"
)
.
orElse
(
"set"
);
// 判断是否使用未来系统生成编号
idxBizJgRegisterInfoService
.
checkUseRegistrationCode
(
useRegistrationCode
,
regType
);
}
try
{
// 设备代码 字段的唯一性校验
checkEquCodeUniqueness
(
equipmentInfoForm
);
...
...
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