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
53403672
Commit
53403672
authored
Jan 14, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg): 添加装置报废查询功能并修复流程状态判断逻辑
- 新增 selectAllScrapedProIds 方法用于查询所有已报废装置ID - 修复了流程中装置查询时对空集合的判断逻辑
parent
fef0c61f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
JgUseRegistrationMapper.java
...os/boot/module/jg/api/mapper/JgUseRegistrationMapper.java
+2
-0
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+13
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+2
-2
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/JgUseRegistrationMapper.java
View file @
53403672
...
...
@@ -151,4 +151,6 @@ public interface JgUseRegistrationMapper extends BaseMapper<JgUseRegistration> {
List
<
JgUseRegistrationEq
>
selectListForInstallNoticeDiscard
(
@Param
(
"records"
)
List
<
String
>
records
);
List
<
JgUseRegistrationEq
>
selectListForSelfDiscard
(
@Param
(
"records"
)
List
<
String
>
records
);
List
<
String
>
selectAllScrapedProIds
(
Set
<
String
>
proIds
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
53403672
...
...
@@ -2135,4 +2135,17 @@
and (a.notice_status
<![CDATA[ <> ]]>
'6617')
and a.is_delete = 0
</select>
<select
id=
"selectAllScrapedProIds"
resultType=
"java.lang.String"
>
SELECT
ui."PROJECT_CONTRAPTION_ID" as projectContractionId
FROM idx_biz_jg_use_info ui
INNER JOIN idx_biz_jg_project_contraption pc
ON ui."PROJECT_CONTRAPTION_ID" = pc.sequence_nbr
WHERE pc.use_unit_credit_code = #{useUnitCreditCode}
AND (pc.use_registration_code IS NOT NULL OR pc.is_first_merge = true)
GROUP BY ui."PROJECT_CONTRAPTION_ID"
HAVING COUNT(*) = SUM(CASE WHEN ui."EQU_STATE" = '3' THEN 1 ELSE 0 END)
AND COUNT(*) > 0
</select>
</mapper>
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 @
53403672
...
...
@@ -5011,7 +5011,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 查询流程中的装置
List
<
JgUseRegistration
>
flowIngPros
=
this
.
list
(
new
LambdaQueryWrapper
<
JgUseRegistration
>().
notIn
(
JgUseRegistration:
:
getStatus
,
NOT_FLOWING_STATE
).
select
(
BaseEntity:
:
getSequenceNbr
,
JgUseRegistration:
:
getProjectContraptionId
));
Set
<
String
>
proIds
=
flowIngPros
.
stream
().
map
(
JgUseRegistration:
:
getProjectContraptionId
).
collect
(
toSet
());
if
(
ValidationUtil
.
isEmpty
(
proIds
))
{
if
(
!
ValidationUtil
.
isEmpty
(
proIds
))
{
proIds
.
remove
(
null
);
proIds
.
remove
(
""
);
}
...
...
@@ -5052,7 +5052,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
collect
(
toSet
());
if
(!
ValidationUtil
.
isEmpty
(
proIds
))
{
// 同时需排除所有管道都已报废的装置id
List
<
String
>
allScrapedProIds
=
Lists
.
newArrayList
(
);
List
<
String
>
allScrapedProIds
=
this
.
baseMapper
.
selectAllScrapedProIds
(
proIds
);
proIds
.
addAll
(
allScrapedProIds
);
proIds
.
remove
(
null
);
proIds
.
remove
(
""
);
...
...
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