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
b0a11e98
Commit
b0a11e98
authored
Apr 18, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):车用出厂编号/产品编码 在编辑时不校验唯一性
parent
d60eb398
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
b0a11e98
...
@@ -848,7 +848,7 @@
...
@@ -848,7 +848,7 @@
AND "WHETHER_VEHICLE_CYLINDER" = '1' )
AND "WHETHER_VEHICLE_CYLINDER" = '1' )
AND "FACTORY_NUM" = #{factoryNum}
AND "FACTORY_NUM" = #{factoryNum}
<if
test=
"sequenceNbr != null and sequenceNbr !=''"
>
<if
test=
"sequenceNbr != null and sequenceNbr !=''"
>
AND "
SEQUENCE_NBR
"
<![CDATA[ <> ]]>
#{sequenceNbr}
AND "
RECORD
"
<![CDATA[ <> ]]>
#{sequenceNbr}
</if>
</if>
</select>
</select>
</mapper>
</mapper>
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 @
b0a11e98
...
@@ -246,7 +246,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -246,7 +246,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
private
void
checkFactoryNumUniqueness
(
LinkedHashMap
equipmentInfoForm
)
{
private
void
checkFactoryNumUniqueness
(
LinkedHashMap
equipmentInfoForm
)
{
// 车用气瓶业务里面的 出厂编号/产品编码 校验唯一性(产品编号在车用气瓶范围内全局唯一)
// 车用气瓶业务里面的 出厂编号/产品编码 校验唯一性(产品编号在车用气瓶范围内全局唯一)
Integer
factoryNum
=
commonMapper
.
checkFactoryNumUniquenessForVehicleCylinder
((
String
)
equipmentInfoForm
.
get
(
FACTORY_NUM
),
(
String
)
equipmentInfoForm
.
get
(
SEQUENCE_NBR
));
Integer
factoryNum
=
commonMapper
.
checkFactoryNumUniquenessForVehicleCylinder
((
String
)
equipmentInfoForm
.
get
(
FACTORY_NUM
),
(
String
)
equipmentInfoForm
.
get
(
RECORD
));
if
(
factoryNum
>
0
)
{
if
(
factoryNum
>
0
)
{
throw
new
BadRequest
(
"出厂编号/产品编码 已存在,请重新输入!"
);
throw
new
BadRequest
(
"出厂编号/产品编码 已存在,请重新输入!"
);
}
}
...
...
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