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
5e856ef1
Commit
5e856ef1
authored
Oct 30, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):气瓶导入解决出厂编号重复问题,解决设备代码为空报错问题
parent
58231f32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+13
-18
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 @
5e856ef1
...
@@ -3358,21 +3358,19 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3358,21 +3358,19 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
checkNotBlank
(
data
.
getEquCodeType
(),
"是否有设备代码不能为空;"
,
result
);
checkNotBlank
(
data
.
getEquCodeType
(),
"是否有设备代码不能为空;"
,
result
);
if
(
"1"
.
equals
(
data
.
getEquCodeType
()))
{
if
(
"1"
.
equals
(
data
.
getEquCodeType
()))
{
checkNotBlank
(
data
.
getEquCode
(),
"设备代码不能为空;"
,
result
);
checkNotBlank
(
data
.
getEquCode
(),
"设备代码不能为空;"
,
result
);
String
equCode
=
data
.
getEquCode
();
Optional
.
ofNullable
(
data
.
getEquCode
())
if
(
equCode
.
matches
(
"[a-zA-Z0-9]+"
))
{
.
ifPresent
(
equCode
->
{
if
(
equCode
.
length
()
<=
17
)
{
if
(!
equCode
.
matches
(
"[a-zA-Z0-9]+"
))
{
result
.
append
(
"设备代码不能小于17位;"
);
result
.
append
(
"设备代码不能包含特殊字符;"
);
}
}
else
{
if
(
equCode
.
length
()
>=
20
)
{
Stream
.
of
(
equCode
.
length
()
<=
17
?
"设备代码不能小于17位;"
:
""
,
result
.
append
(
"设备代码不能大于20位;"
);
equCode
.
length
()
>=
20
?
"设备代码不能大于20位;"
:
""
,
}
equCodeList
.
contains
(
equCode
)
?
"设备代码不能重复;"
:
""
}
else
{
).
filter
(
msg
->
!
msg
.
isEmpty
())
result
.
append
(
"设备代码不能包含特殊字符;"
);
.
forEach
(
result:
:
append
);
}
this
.
checkEquCodeUniqueness
(
equCode
,
result
);
if
(
equCodeList
.
contains
(
data
.
getEquCode
()))
{
}
result
.
append
(
"设备代码不能重复;"
);
});
}
this
.
checkEquCodeUniqueness
(
data
.
getEquCode
(),
result
);
}
else
{
}
else
{
data
.
setEquCode
(
""
);
data
.
setEquCode
(
""
);
}
}
...
@@ -3385,9 +3383,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3385,9 +3383,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
checkNotBlank
(
data
.
getProduceLicenseNum
(),
"制造许可编号不能为空;"
,
result
);
checkNotBlank
(
data
.
getProduceLicenseNum
(),
"制造许可编号不能为空;"
,
result
);
checkNotBlank
(
data
.
getFactoryNum
(),
"出厂编号/产品编码不能为空;"
,
result
);
checkNotBlank
(
data
.
getFactoryNum
(),
"出厂编号/产品编码不能为空;"
,
result
);
if
(
"0"
.
equals
(
data
.
getWhetherVehicleCylinder
()))
{
if
(
"0"
.
equals
(
data
.
getWhetherVehicleCylinder
()))
{
if
(
factoryNumList
.
contains
(
data
.
getFactoryNum
()))
{
result
.
append
(
"出厂编号/产品编码不能重复;"
);
}
checkNotBlank
(
data
.
getCylinderCategory
(),
"气瓶分类不能为空;"
,
result
);
checkNotBlank
(
data
.
getCylinderCategory
(),
"气瓶分类不能为空;"
,
result
);
checkFactoryNumUnique
(
data
.
getFactoryNum
(),
data
.
getProduceUnitCreditCode
(),
result
);
checkFactoryNumUnique
(
data
.
getFactoryNum
(),
data
.
getProduceUnitCreditCode
(),
result
);
}
else
{
}
else
{
...
...
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