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
aebb3573
Commit
aebb3573
authored
Nov 05, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reafact(jg): 批量删除
1.设备批量删除 2.装置批量删除
parent
925fc8f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-1
IdxBizJgProjectContraptionMapper.xml
...ain/resources/mapper/IdxBizJgProjectContraptionMapper.xml
+26
-26
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
aebb3573
...
@@ -1248,7 +1248,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -1248,7 +1248,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
/**
/**
* 删除校验,被引用时不可删除
* 删除校验,被引用时不可删除
*
*
* @param records
* @param records
设备record集合
*/
*/
private
void
checkForDelete
(
List
<
String
>
records
)
{
private
void
checkForDelete
(
List
<
String
>
records
)
{
List
<
CountDto
>
useCounts
=
commonMapper
.
countEquipInUseTimesWithOutZFBatch
(
records
);
List
<
CountDto
>
useCounts
=
commonMapper
.
countEquipInUseTimesWithOutZFBatch
(
records
);
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/IdxBizJgProjectContraptionMapper.xml
View file @
aebb3573
...
@@ -151,33 +151,33 @@
...
@@ -151,33 +151,33 @@
project_contraption_id as keyStr,
project_contraption_id as keyStr,
SUM(inUseNumber) longValue
SUM(inUseNumber) longValue
FROM (
FROM (
SELECT
SELECT
a.project_contraption_id,
a.project_contraption_id,
COUNT(1) AS inUseNumber
COUNT(1) AS inUseNumber
FROM
FROM
tzs_jg_use_registration a
tzs_jg_use_registration a
WHERE a.project_contraption_id = ANY(ARRAY[
<foreach
collection=
"projectContraptionIdList"
item=
"projectContraptionId"
separator=
","
>
#{projectContraptionId}
</foreach>
])
AND a.is_delete = 0
AND ( a.status
<![CDATA[ <> ]]>
'已作废')
group by a.project_contraption_id
UNION all
SELECT
a.project_contraption_id,
COUNT(1) AS inUseNumber
FROM
tzs_jg_installation_notice a
WHERE a.project_contraption_id = ANY(ARRAY[
WHERE a.project_contraption_id = ANY(ARRAY[
<foreach
collection=
"projectContraptionIdList"
item=
"projectContraptionId"
separator=
","
>
<foreach
collection=
"projectContraptionIdList"
item=
"projectContraptionId"
separator=
","
>
#{projectContraptionId}
#{projectContraptionId}
</foreach>
</foreach>
])
])
AND (a.notice_status
<![CDATA[ <> ]]>
'6617')
AND a.is_delete = 0
and a.is_delete = 0
AND ( a.status
<![CDATA[ <> ]]>
'已作废')
group by a.project_contraption_id
group by a.project_contraption_id
UNION all
SELECT
a.project_contraption_id,
COUNT(1) AS inUseNumber
FROM
tzs_jg_installation_notice a
WHERE a.project_contraption_id = ANY(ARRAY[
<foreach
collection=
"projectContraptionIdList"
item=
"projectContraptionId"
separator=
","
>
#{projectContraptionId}
</foreach>
])
AND (a.notice_status
<![CDATA[ <> ]]>
'6617')
and a.is_delete = 0
group by a.project_contraption_id
)
)
GROUP BY
GROUP BY
project_contraption_id
project_contraption_id
...
...
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