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
55fddbff
Commit
55fddbff
authored
Sep 26, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):监管业务系统,历史设备导入气瓶,校验重复是错误使用了使用单位统一代码+产品编号,预期结果是制造单位的统一代码+产品编号在全局唯一
parent
19c03574
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+1
-1
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+1
-2
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+3
-3
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
View file @
55fddbff
...
...
@@ -130,7 +130,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
*/
Integer
checkFactoryNumUnique
(
@Param
(
"factoryNum"
)
String
factoryNum
,
@Param
(
"sequenceNbr"
)
String
sequenceNbr
,
@Param
(
"
useUnitCreditCode"
)
String
us
eUnitCreditCode
);
@Param
(
"
produceUnitCreditCode"
)
String
produc
eUnitCreditCode
);
/**
* 使用登记证编号全库唯一校验
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
55fddbff
...
...
@@ -909,12 +909,11 @@
FROM
"idx_biz_jg_factory_info" ibjfi
JOIN idx_biz_jg_register_info ibjri ON ibjfi."RECORD" = ibjri."RECORD"
LEFT JOIN idx_biz_jg_use_info ibjui ON ibjri."RECORD" = ibjui."RECORD"
WHERE
ibjri."EQU_LIST" = '2000'
AND ibjri."EQU_CATEGORY" = '2300'
AND ibjfi."FACTORY_NUM" = #{factoryNum}
AND ibj
ui."USE_UNIT_CREDIT_CODE" = #{us
eUnitCreditCode}
AND ibj
fi."PRODUCE_UNIT_CREDIT_CODE" = #{produc
eUnitCreditCode}
</select>
<select
id=
"useRegistrationCertificateAccountUnique"
resultType=
"java.lang.Integer"
>
...
...
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 @
55fddbff
...
...
@@ -450,9 +450,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
private
void
checkFactoryNumUnique
(
String
factoryNum
,
String
us
eUnitCreditCode
,
StringBuilder
result
)
{
private
void
checkFactoryNumUnique
(
String
factoryNum
,
String
produc
eUnitCreditCode
,
StringBuilder
result
)
{
// 车用气瓶业务里面的 出厂编号/产品编码 校验唯一性(产品编号在车用气瓶范围内全局唯一)
if
(
commonMapper
.
checkFactoryNumUnique
(
factoryNum
,
null
,
us
eUnitCreditCode
)
>
0
)
{
if
(
commonMapper
.
checkFactoryNumUnique
(
factoryNum
,
null
,
produc
eUnitCreditCode
)
>
0
)
{
result
.
append
(
"出厂编号/产品编码在该企业中已存在!"
);
}
}
...
...
@@ -3348,7 +3348,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
result
.
append
(
"出厂编号/产品编码不能重复;"
);
}
checkNotBlank
(
data
.
getCylinderCategory
(),
"气瓶分类不能为空;"
,
result
);
checkFactoryNumUnique
(
data
.
getFactoryNum
(),
company
.
getCompany
Code
(),
result
);
checkFactoryNumUnique
(
data
.
getFactoryNum
(),
data
.
getProduceUnitCredit
Code
(),
result
);
}
else
{
checkFactoryNumUniquenessForVehicleCylinder
(
data
.
getFactoryNum
(),
result
);
}
...
...
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