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
5b0beef4
Commit
5b0beef4
authored
Aug 18, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jyjc): 报检开发调整
1.报检规则4.0开发
parent
61e12da9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+7
-11
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/JyjcInspectionResultServiceImpl.java
View file @
5b0beef4
...
...
@@ -123,9 +123,6 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
UseInfoMapper
useInfoMapper
;
@Autowired
IdxBizJgInspectionDetectionInfoMapper
inspectionDetectionInfoMapper
;
@Autowired
private
SnowflakeIdUtil
sequence
;
@Autowired
...
...
@@ -349,22 +346,21 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
// 2.检验信息更新或者插入
IdxBizJgInspectionDetectionInfo
info
=
new
IdxBizJgInspectionDetectionInfo
();
LambdaQueryWrapper
<
IdxBizJgInspectionDetectionInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
IdxBizJgInspectionDetectionInfo:
:
get
InspectReportNo
,
model
.
getResultNo
());
wrapper
.
eq
(
IdxBizJgInspectionDetectionInfo:
:
get
ResultSeq
,
model
.
getSequenceNbr
());
wrapper
.
eq
(
IdxBizJgInspectionDetectionInfo:
:
getRecord
,
record
);
wrapper
.
eq
(
IdxBizJgInspectionDetectionInfo:
:
getInspectOrgCode
,
model
.
getInspectionUnitCode
());
List
<
IdxBizJgInspectionDetectionInfo
>
list
=
inspectionDetectionInfoMapper
.
selectList
(
wrapper
);
List
<
IdxBizJgInspectionDetectionInfo
>
list
=
idxBizJgInspectionDetectionInfoMapper
.
selectList
(
wrapper
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
// 无则插入
commonService
.
buildInspectInfo
(
model
,
info
,
jybgFile
,
record
);
info
.
setSequenceNbr
(
sequence
.
nextId
()
+
""
);
inspectionDetectionInfoMapper
.
insert
(
info
);
i
dxBizJgI
nspectionDetectionInfoMapper
.
insert
(
info
);
// 对方不查询库 所以无事务操作
bizEmqPublisher
.
sendInspectionMsgAfterSave
(
info
,
"insert"
);
}
else
{
// 已经维护过则更新
info
=
list
.
get
(
0
);
commonService
.
buildInspectInfo
(
model
,
info
,
jybgFile
,
record
);
inspectionDetectionInfoMapper
.
updateById
(
info
);
i
dxBizJgI
nspectionDetectionInfoMapper
.
updateById
(
info
);
// 对方不查询库 所以无事务操作
bizEmqPublisher
.
sendInspectionMsgAfterSave
(
info
,
"update"
);
}
...
...
@@ -399,17 +395,17 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
IdxBizJgInspectionDetectionInfo
info
=
new
IdxBizJgInspectionDetectionInfo
();
QueryWrapper
<
IdxBizJgInspectionDetectionInfo
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
lambda
().
eq
(
IdxBizJgInspectionDetectionInfo:
:
getResultSeq
,
model
.
getSequenceNbr
());
List
<
IdxBizJgInspectionDetectionInfo
>
list
=
inspectionDetectionInfoMapper
.
selectList
(
wrapper
);
List
<
IdxBizJgInspectionDetectionInfo
>
list
=
i
dxBizJgI
nspectionDetectionInfoMapper
.
selectList
(
wrapper
);
if
(
CollectionUtils
.
isEmpty
(
list
))
{
commonService
.
buildInspectInfo
(
model
,
info
,
jybgFile
,
model
.
getEquipUnicode
());
info
.
setSequenceNbr
(
sequence
.
nextId
()
+
""
);
inspectionDetectionInfoMapper
.
insert
(
info
);
i
dxBizJgI
nspectionDetectionInfoMapper
.
insert
(
info
);
// 对方不查询库 所以无事务操作
bizEmqPublisher
.
sendInspectionMsgAfterSave
(
info
,
"insert"
);
}
else
{
info
=
list
.
get
(
0
);
commonService
.
buildInspectInfo
(
model
,
info
,
jybgFile
,
model
.
getEquipUnicode
());
inspectionDetectionInfoMapper
.
updateById
(
info
);
i
dxBizJgI
nspectionDetectionInfoMapper
.
updateById
(
info
);
// 对方不查询库 所以无事务操作
bizEmqPublisher
.
sendInspectionMsgAfterSave
(
info
,
"update"
);
}
...
...
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