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
39a64267
Commit
39a64267
authored
Aug 06, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):个人气瓶登记单监管业务登记管理不显示单子,工作台撤回后在提交报错设备设备正在流程中
parent
a6d7c4c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+7
-4
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/JgUseRegistrationServiceImpl.java
View file @
39a64267
...
...
@@ -631,11 +631,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
private
void
checkForRepeatUsedEquip
(
JSONObject
map
,
List
<
Map
<
String
,
Object
>>
equList
,
ReginParams
reginParams
)
{
private
void
checkForRepeatUsedEquip
(
JSONObject
map
,
List
<
Map
<
String
,
Object
>>
equList
,
CompanyBo
company
)
{
// 个人主体的身份证(6600_620422199903010258) 特殊处理 只取_后的身份证号码
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
equList
.
forEach
(
equip
->
{
// 流程中或已完成
EquipUsedCheckStrategyContext
.
getUsedStrategy
(
DEFINITION_KEY
).
equipRepeatUsedCheck
(
equip
.
get
(
"record"
).
toString
(),
reginParams
.
getCompany
().
getCompanyCode
());
EquipUsedCheckStrategyContext
.
getUsedStrategy
(
DEFINITION_KEY
).
equipRepeatUsedCheck
(
equip
.
get
(
"record"
).
toString
(),
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
company
.
getCompanyCode
().
split
(
"_"
)[
1
]
:
company
.
getCompanyCode
());
});
}
}
...
...
@@ -684,7 +686,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
// 提交时进行校验设备是否在流程中使用(并发及同时打开多个相同的页面时才会出现此种情况)
checkForRepeatUsedEquip
(
map
,
equipmentLists
,
reginParams
);
CompanyBo
company
=
reginParams
.
getCompany
();
checkForRepeatUsedEquip
(
map
,
equipmentLists
,
company
);
List
<
IdxBizJgInspectionDetectionInfo
>
inspectionDetectionInfoList
=
idxBizJgInspectionDetectionInfoService
.
checkInspectionInfo
(
equipmentLists
.
stream
()
.
map
(
v
->
(
String
)
v
.
get
(
"record"
))
...
...
@@ -1789,7 +1792,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
wrapper
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
().
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
record
);
IdxBizJgRegisterInfo
registerInfo
=
idxBizJgRegisterInfoMapper
.
selectOne
(
wrapper
);
List
<
String
>
permissionInspectTypes
=
getInspectInfoByEquDefine
(
registerInfo
.
getEquList
(),
registerInfo
.
getEquCategory
(),
registerInfo
.
getEquDefine
());
if
(
permissionInspectTypes
.
size
()
>
0
)
{
if
(
!
permissionInspectTypes
.
isEmpty
()
)
{
return
this
.
baseMapper
.
getInspectDetail
(
record
,
permissionInspectTypes
);
}
else
{
return
null
;
...
...
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