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
3fb61c16
Commit
3fb61c16
authored
Aug 20, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jyjc): 报检开发调整
1.报检规则4.0开发,联调自测bug修改
parent
5cd34162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
20 deletions
+34
-20
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+34
-20
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
3fb61c16
...
@@ -683,7 +683,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -683,7 +683,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
// 流程执行时,状态及权限校验
// 流程执行时,状态及权限校验
commonService
.
checkForExecuteFlow
(
nextTaskId
,
instanceId
);
commonService
.
checkForExecuteFlow
(
nextTaskId
,
instanceId
);
Long
sequenceNbr
=
Long
.
parseLong
(
params
.
get
(
"sequenceNbr"
)
+
""
);
Long
sequenceNbr
=
Long
.
parseLong
(
params
.
get
(
"sequenceNbr"
)
+
""
);
JyjcInspectionApplication
entity
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
JyjcInspectionApplication
jyjcInspectionApplication
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
//组装信息
//组装信息
TaskResultDTO
task
=
new
TaskResultDTO
();
TaskResultDTO
task
=
new
TaskResultDTO
();
task
.
setResultCode
(
"approvalStatus"
);
task
.
setResultCode
(
"approvalStatus"
);
...
@@ -693,23 +693,23 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -693,23 +693,23 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
map
.
put
(
"approvalStatus"
,
"0"
);
map
.
put
(
"approvalStatus"
,
"0"
);
task
.
setVariable
(
map
);
task
.
setVariable
(
map
);
//执行流程
//执行流程
task
.
setNextExecuteUserCompanyCode
(
entity
.
getInspectionUnitCode
());
task
.
setNextExecuteUserCompanyCode
(
jyjcInspectionApplication
.
getInspectionUnitCode
());
cmWorkflowService
.
complete
(
nextTaskId
,
task
);
cmWorkflowService
.
complete
(
nextTaskId
,
task
);
entity
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
jyjcInspectionApplication
.
setStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
JyjcInspectionApplicationModel
model
=
new
JyjcInspectionApplicationModel
();
JyjcInspectionApplicationModel
model
=
new
JyjcInspectionApplicationModel
();
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
model
.
setStatusName
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
entity
.
setAcceptDate
(
new
Date
());
jyjcInspectionApplication
.
setAcceptDate
(
new
Date
());
entity
.
setInnerPersonCode
(
params
.
getOrDefault
(
"innerPersonCode"
,
""
).
toString
());
jyjcInspectionApplication
.
setInnerPersonCode
(
params
.
getOrDefault
(
"innerPersonCode"
,
""
).
toString
());
String
processDescription
=
(
String
)
params
.
get
(
"comments"
);
String
processDescription
=
(
String
)
params
.
get
(
"comments"
);
if
(
StringUtils
.
isNotBlank
(
processDescription
))
{
if
(
StringUtils
.
isNotBlank
(
processDescription
))
{
entity
.
setProcessDescription
(
processDescription
);
jyjcInspectionApplication
.
setProcessDescription
(
processDescription
);
}
}
entity
.
setNextExecuteUserIds
(
""
);
jyjcInspectionApplication
.
setNextExecuteUserIds
(
""
);
entity
.
setPromoter
(
""
);
jyjcInspectionApplication
.
setPromoter
(
""
);
entity
.
setNextExecuteIds
(
""
);
jyjcInspectionApplication
.
setNextExecuteIds
(
""
);
entity
.
setNextTaskId
(
""
);
jyjcInspectionApplication
.
setNextTaskId
(
""
);
this
.
updateById
(
entity
);
this
.
updateById
(
jyjcInspectionApplication
);
BeanUtils
.
copyProperties
(
entity
,
model
);
BeanUtils
.
copyProperties
(
jyjcInspectionApplication
,
model
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
model
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
model
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
...
@@ -755,6 +755,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -755,6 +755,15 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultParam
.
setParamType
(
"IdxBizJgTechParamsPipeline"
);
resultParam
.
setParamType
(
"IdxBizJgTechParamsPipeline"
);
resultParam
.
setRecDate
(
new
Date
());
resultParam
.
setRecDate
(
new
Date
());
jyjcInspectionResultParamServiceImpl
.
save
(
resultParam
);
jyjcInspectionResultParamServiceImpl
.
save
(
resultParam
);
jgResumeInfoDtoList
.
add
(
JgResumeInfoDto
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
equId
(
resultModel
.
getEquipUnicode
())
.
approvalUnit
(
model
.
getInspectionUnitName
())
.
approvalUnitCode
(
model
.
getInspectionUnitCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
}
else
{
}
else
{
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
JG
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
JG
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
for
(
int
i
=
0
;
i
<
applicationEquipModels
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
applicationEquipModels
.
size
();
i
++)
{
...
@@ -785,22 +794,27 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -785,22 +794,27 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModels
.
add
(
resultModel
);
resultModels
.
add
(
resultModel
);
// TODO 暂存json,在结果录入后,将数据更新技术参数-检验详情使用 考虑兼容老数据
// TODO 暂存json,在结果录入后,将数据更新技术参数-检验详情使用 考虑兼容老数据
// 新增设备履历信息
// 新增设备履历信息
jgResumeInfoDtoList
.
add
(
JgResumeInfoDto
.
builder
().
applyNo
(
entity
.
getApplicationNo
())
jgResumeInfoDtoList
.
add
(
JgResumeInfoDto
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
entity
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
()).
approvalUnit
(
model
.
getInspectionUnitName
()).
approvalUnitCode
(
model
.
getInspectionUnitCode
()).
status
(
"正常"
).
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
.
approvalUnit
(
model
.
getInspectionUnitName
())
.
approvalUnitCode
(
model
.
getInspectionUnitCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
}
}
}
}
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
// 报检信息推送
TODO
// 报检信息推送
this
.
pushInspectionApplication
(
model
);
this
.
pushInspectionApplication
(
model
);
this
.
saveBatchResume
(
jgResumeInfoDtoList
);
this
.
createHisAfterReceive
(
model
);
this
.
createHisAfterReceive
(
model
);
// 设备检验履历
this
.
saveBatchResume
(
jgResumeInfoDtoList
);
// 更新流程中的流程数据
// 更新流程中的流程数据
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
entity
));
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
jyjcInspectionApplication
));
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
(),
e
);
}
finally
{
}
finally
{
if
(
lock
.
isHeldByCurrentThread
())
{
if
(
lock
.
isHeldByCurrentThread
())
{
lock
.
unlock
();
lock
.
unlock
();
...
@@ -840,7 +854,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -840,7 +854,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
try
{
try
{
jgFeignClient
.
saveBatchResume
(
jgResumeInfoDtoList
);
jgFeignClient
.
saveBatchResume
(
jgResumeInfoDtoList
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
e
.
getMessage
(),
e
);
}
}
}
}
...
...
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