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
c759a662
Commit
c759a662
authored
Mar 14, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求:35094 第六项
parent
fcaec8e8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
0 deletions
+48
-0
CommonMapper.java
.../yeejoin/amos/boot/module/jg/api/mapper/CommonMapper.java
+2
-0
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+16
-0
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+8
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+12
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+10
-0
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 @
c759a662
...
@@ -135,6 +135,8 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
...
@@ -135,6 +135,8 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
*/
*/
Integer
useRegistrationCertificateAccountUnique
(
@Param
(
"useRegistrationCode"
)
String
useRegistrationCode
,
@Param
(
"equipId"
)
String
equipId
);
Integer
useRegistrationCertificateAccountUnique
(
@Param
(
"useRegistrationCode"
)
String
useRegistrationCode
,
@Param
(
"equipId"
)
String
equipId
);
String
isRegistrationNumberUsedByOtherUnits
(
@Param
(
"useRegistrationCode"
)
String
useRegistrationCode
,
@Param
(
"companyCode"
)
String
companyCode
);
/**
/**
* 查询维保超期的设备
* 查询维保超期的设备
* */
* */
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
c759a662
...
@@ -979,6 +979,22 @@
...
@@ -979,6 +979,22 @@
</where>
</where>
</select>
</select>
<select
id=
"isRegistrationNumberUsedByOtherUnits"
resultType=
"java.lang.String"
>
SELECT jui."USE_UNIT_NAME"
FROM idx_biz_jg_register_info jri
LEFT JOIN idx_biz_jg_other_info joi ON joi."RECORD" = jri."RECORD"
LEFT JOIN idx_biz_jg_use_info jui ON jui."RECORD" = jri."RECORD"
<where>
<if
test=
"useRegistrationCode != null and useRegistrationCode != ''"
>
jri."USE_ORG_CODE" = #{useRegistrationCode}
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
AND jui."USE_UNIT_CREDIT_CODE"
<![CDATA[ <> ]]>
#{companyCode}
</if>
AND joi.CLAIM_STATUS = '已认领'
</where>
</select>
<select
id=
"queryOutOfMaintenanceRecord"
resultType=
"java.util.Map"
>
<select
id=
"queryOutOfMaintenanceRecord"
resultType=
"java.util.Map"
>
SELECT
SELECT
tt."RECORD",
tt."RECORD",
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
c759a662
...
@@ -245,6 +245,14 @@ public interface ICommonService {
...
@@ -245,6 +245,14 @@ public interface ICommonService {
*/
*/
Boolean
useRegistrationCertificateAccountUnique
(
String
useRegistrationCode
,
String
equipId
);
Boolean
useRegistrationCertificateAccountUnique
(
String
useRegistrationCode
,
String
equipId
);
/**
* 判断使用登记证编号是否被其他单位使用
*
* @param useRegistrationCode
* @return 占用的使用单位名称
*/
String
isRegistrationNumberUsedByOtherUnits
(
String
useRegistrationCode
);
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipeline
(
String
type
);
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipeline
(
String
type
);
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipelineByParentCode
(
String
type
,
String
parentCode
);
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipelineByParentCode
(
String
type
,
String
parentCode
);
...
...
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/CommonServiceImpl.java
View file @
c759a662
...
@@ -2755,4 +2755,15 @@ public List<EquipmentClassifyDto> getEquClassifyByCode(String parentCode) {
...
@@ -2755,4 +2755,15 @@ public List<EquipmentClassifyDto> getEquClassifyByCode(String parentCode) {
}
}
return
false
;
return
false
;
}
}
/**
* 判断使用登记证编号是否被其他单位使用
*
* @param useRegistrationCode 使用登记证编号
* @return
*/
public
String
isRegistrationNumberUsedByOtherUnits
(
String
useRegistrationCode
)
{
String
companyCode
=
getSelectedOrgInfo
().
getCompany
().
getCompanyCode
();
return
commonMapper
.
isRegistrationNumberUsedByOtherUnits
(
useRegistrationCode
,
companyCode
);
}
}
}
\ No newline at end of file
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 @
c759a662
...
@@ -780,6 +780,16 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -780,6 +780,16 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// 校验使用登记证编号的唯一性
// 校验使用登记证编号的唯一性
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
))
{
throw
new
BadRequest
(
"使用登记证编号已存在!"
);
throw
new
BadRequest
(
"使用登记证编号已存在!"
);
}
else
{
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equipmentInfoForm
.
get
(
"EQU_CATEGORY"
)))
{
// 需求 35094 历史设备(有使用登记证)需按证录入。录入时先录入使用登记证编号。
// 需验证录入的使用登记证编号平台是否跟当前用户(使用单位类型)一致,如跟当前用户不一致,系统给出提示“该使用登记证编号”已被“单位名称“使用”,请确认后再录入”。
// 历史设备不限制使用登记证编号在一个单位重复录入,但需验证使用登记证编号+单位内编号唯一。(下面方法checkFactoryNumUniqueWithGasCylinder中已经校验)
String
occupiedUseUnitName
=
commonService
.
isRegistrationNumberUsedByOtherUnits
(
useRegistrationCode
);
if
(!
ValidationUtil
.
isEmpty
(
occupiedUseUnitName
))
{
throw
new
BadRequest
(
"该使用登记证编号已被【"
+
occupiedUseUnitName
+
"】使用,请确认后再录入!"
);
}
}
}
}
String
regType
=
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"EQU_LIST"
))
String
regType
=
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"EQU_LIST"
))
.
filter
(
code
->
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
code
))
.
filter
(
code
->
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
code
))
...
...
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