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
66308606
Commit
66308606
authored
Oct 20, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jyjc): 报检规则4.0开发
1..机构分类增加到证表,历史数据处理
parent
94fc4620
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
HisDataHandlerController.java
.../module/jyjc/biz/controller/HisDataHandlerController.java
+8
-0
HisDataHandlerServiceImpl.java
...dule/jyjc/biz/service/impl/HisDataHandlerServiceImpl.java
+39
-0
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+1
-1
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/controller/HisDataHandlerController.java
View file @
66308606
...
...
@@ -29,4 +29,12 @@ public class HisDataHandlerController {
hisDataHandlerService
.
pieLineDataHandlerV1
();
return
ResponseHelper
.
buildResponse
(
true
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"开通机构分类历史数据处理,补充机构分类到证表"
)
@PutMapping
(
value
=
"/v1/open/data"
)
public
ResponseModel
<
Boolean
>
openDataHandlerV1
()
{
hisDataHandlerService
.
openDataHandlerV1
();
return
ResponseHelper
.
buildResponse
(
true
);
}
}
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/HisDataHandlerServiceImpl.java
View file @
66308606
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.yeejoin.amos.boot.module.common.api.dto.BaseEnterpriseCertDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.BaseEnterpriseCert
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.BaseEnterpriseCertServiceImpl
;
import
com.yeejoin.amos.boot.module.jyjc.api.common.BizCommonConstant
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplication
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionApplicationEquip
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcInspectionHistory
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcOpeningApplication
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionApplicationEquipMapper
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcInspectionApplicationMapper
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -23,6 +31,15 @@ public class HisDataHandlerServiceImpl {
@Resource
private
JyjcInspectionApplicationMapper
jyjcInspectionApplicationMapper
;
@Resource
private
JyjcInspectionHistoryServiceImpl
inspectionHistoryService
;
@Resource
private
JyjcOpeningApplicationServiceImpl
jyjcOpeningApplicationService
;
@Resource
private
BaseEnterpriseCertServiceImpl
enterpriseCertService
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
pieLineDataHandlerV1
()
{
List
<
JyjcInspectionApplicationEquip
>
applicationEquips
=
jyjcInspectionApplicationEquipMapper
.
queryWaitFlushData
();
...
...
@@ -42,4 +59,26 @@ public class HisDataHandlerServiceImpl {
List
<
JyjcInspectionApplicationEquip
>
applicationEquipAfter
=
jyjcInspectionApplicationEquipMapper
.
queryWaitFlushData
();
log
.
info
(
"处理前:待压力管道数据条数: {}"
,
applicationEquipAfter
.
size
());
}
public
void
openDataHandlerV1
()
{
List
<
JyjcOpeningApplication
>
openingApplications
=
jyjcOpeningApplicationService
.
list
(
new
LambdaQueryWrapper
<
JyjcOpeningApplication
>().
eq
(
JyjcOpeningApplication:
:
getStatus
,
"已完成"
));
openingApplications
.
forEach
(
jyjcOpeningApplication
->
{
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
if
(
history
!=
null
)
{
JSONObject
hisData
=
history
.
getHistoryData
();
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
fillAgencyClassify2Cert
(
jyjcOpeningApplication
,
certDtos
);
}
});
}
private
void
fillAgencyClassify2Cert
(
JyjcOpeningApplication
jyjcOpeningApplication
,
List
<
BaseEnterpriseCertDto
>
certDtos
)
{
certDtos
.
forEach
(
certDto
->
{
List
<
Long
>
certSeqs
=
jyjcOpeningApplicationService
.
getCertFromHisData
(
jyjcOpeningApplication
,
certDto
);
LambdaUpdateWrapper
<
BaseEnterpriseCert
>
updateWrapperCert
=
new
LambdaUpdateWrapper
<>();
updateWrapperCert
.
set
(
BaseEnterpriseCert:
:
getAgencyClassify
,
jyjcOpeningApplication
.
getAgencyClassify
());
updateWrapperCert
.
in
(
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
entity
.
BaseEntity
::
getSequenceNbr
,
certSeqs
);
enterpriseCertService
.
update
(
null
,
updateWrapperCert
);
});
}
}
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/JyjcOpeningApplicationServiceImpl.java
View file @
66308606
...
...
@@ -432,7 +432,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
});
}
p
rivate
List
<
Long
>
getCertFromHisData
(
JyjcOpeningApplication
jyjcOpeningApplication
,
BaseEnterpriseCertDto
certDto
)
{
p
ublic
List
<
Long
>
getCertFromHisData
(
JyjcOpeningApplication
jyjcOpeningApplication
,
BaseEnterpriseCertDto
certDto
)
{
return
enterpriseCertService
.
list
(
new
LambdaQueryWrapper
<
BaseEnterpriseCert
>()
.
eq
(
BaseEnterpriseCert:
:
getUnitCode
,
jyjcOpeningApplication
.
getUnitCode
())
.
eq
(
BaseEnterpriseCert:
:
getUnitType
,
Optional
.
ofNullable
(
OpenBizTypeEnumV2
.
getOneByCode
(
jyjcOpeningApplication
.
getOpenBizType
())).
map
(
OpenBizTypeEnumV2:
:
getUnitType
).
orElse
(
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