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
6017e703
Commit
6017e703
authored
Jun 30, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(已纳管设备无证时可编辑):已纳管设备调整
1.已纳管设备调整,历史设备流程中,增加车用气瓶
parent
c5359a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
226 additions
and
166 deletions
+226
-166
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+226
-166
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
6017e703
...
...
@@ -2861,105 +2861,151 @@
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.status
<![CDATA[ <> ]]>
'已作废' and a.status
<![CDATA[ <> ]]>
'已完成')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_reform a,
tzs_jg_change_registration_reform_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_transfer a,
tzs_jg_change_registration_transfer_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_unit a,
tzs_jg_change_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_registration_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_scrap_cancel a,
tzs_jg_scrap_cancel_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_enable_disable a,
tzs_jg_enable_disable_eq b
where
a.sequence_nbr = b.enable_disable_apply_id
and a.is_delete = 0
and b.equ_id in
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_reform a,
tzs_jg_change_registration_reform_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'
待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位
待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
ne.record
from
(SELECT
json_array_elements(e.equip_info)->>'SEQUENCE_NBR' AS record
FROM
tzs_jg_change_registration_name_eq e,
tzs_jg_change_registration_name n
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_transfer a,
tzs_jg_change_registration_transfer_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_registration_unit a,
tzs_jg_change_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_registration_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_scrap_cancel a,
tzs_jg_scrap_cancel_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_equip_transfer a,
tzs_jg_equip_transfer_eq b
where
a.sequence_nbr = b.equip_transfer_id
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and a.is_delete = 0
and (a.apply_status
<![CDATA[ <> ]]>
'6617' AND a.apply_status
<![CDATA[ <> ]]>
'6610')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_enable_disable a,
tzs_jg_enable_disable_eq b
where
n.sequence_nbr = e.name_change_registration_id
and n.is_delete = 0
and n.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and n.audit_status
<![CDATA[ <> ]]>
'已作废') ne
where
ne.record in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
group by ne.record
a.sequence_nbr = b.enable_disable_apply_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.audit_status
<![CDATA[ <> ]]>
'待提交' and a.audit_status
<![CDATA[ <> ]]>
'已作废')
group by b.equ_id
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_vehicle_information a,
tzs_jg_vehicle_information_eq b
where
a.sequence_nbr = b.vehicle_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'已作废')
UNION all
select
count(1) as inUseNumber,
b.equ_id as record
from
tzs_jg_change_vehicle_registration_unit a,
tzs_jg_change_vehicle_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_id
and a.is_delete = 0
and b.equ_id in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'已作废')
UNION all
select
count(1) as inUseNumber,
ne.record
from
(SELECT
json_array_elements(e.equip_info)->>'SEQUENCE_NBR' AS record
FROM
tzs_jg_change_registration_name_eq e,
tzs_jg_change_registration_name n
where
n.sequence_nbr = e.name_change_registration_id
and n.is_delete = 0
and n.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and n.audit_status
<![CDATA[ <> ]]>
'已作废') ne
where
ne.record in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach>
group by ne.record
)
group by record
</select>
...
...
@@ -2982,84 +3028,98 @@
and (a.status
<![CDATA[ <> ]]>
'使用单位待提交' and a.status
<![CDATA[ <> ]]>
'一级受理已驳回' and a.status
<![CDATA[ <> ]]>
'使用单位已撤回' and a.status
<![CDATA[ <> ]]>
'已作废' and a.status
<![CDATA[ <> ]]>
'已完成')
group by a.project_contraption_id
union all
select
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_maintain_notice a
where
a.is_delete = 0
and (a.notice_status
<![CDATA[ <> ]]>
'6617' AND a.notice_status
<![CDATA[ <> ]]>
'6610')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
select
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_maintain_notice a
where
a.is_delete = 0
and (a.notice_status
<![CDATA[ <> ]]>
'6617' AND a.notice_status
<![CDATA[ <> ]]>
'6610')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
union all
select
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_reform_notice a
where
a.is_delete = 0
and (a.notice_status
<![CDATA[ <> ]]>
'6617' AND a.notice_status
<![CDATA[ <> ]]>
'6610')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
select
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_reform_notice a
where
a.is_delete = 0
and (a.notice_status
<![CDATA[ <> ]]>
'6617' AND a.notice_status
<![CDATA[ <> ]]>
'6610')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
union all
SELECT
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_change_registration_reform a
SELECT
count(1) as inUseNumber,
a.project_contraption_id as projectContraptionId
from
tzs_jg_change_registration_reform a
where
a.is_delete = 0
and ( a.audit_status
<![CDATA[ <> ]]>
'已作废' AND a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
union all
select
count(1) as inUseNumber,
a.project_contraption_seq as projectContraptionId
from
tzs_jg_equip_transfer a
where
a.is_delete = 0
and ( a.audit_status
<![CDATA[ <> ]]>
'已作废' AND a.audit_status
<![CDATA[ <> ]]>
'使用单位待提交')
and a.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by a.project_contraption_id
and a.project_contraption_seq in
<foreach
collection=
"records"
item=
"record"
separator=
","
open=
"("
close=
")"
>
#{record}
</foreach
>
and a.is_delete = 0
and (a.apply_status
<![CDATA[ <> ]]>
'6617' AND a.apply_status
<![CDATA[ <> ]]>
'6610')
group by a.project_contraption_seq
union all
SELECT
count(1) as inUseNumber,
b.project_contraption_id as projectContraptionId
from
tzs_jg_change_registration_unit a,
tzs_jg_change_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_registration_id
and (a.status
<![CDATA[ <> ]]>
'已作废' AND a.status
<![CDATA[ <> ]]>
'使用单位待提交')
and a.is_delete = 0
and b.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by b.project_contraption_id
SELECT
count(1) as inUseNumber,
b.project_contraption_id as projectContraptionId
from
tzs_jg_change_registration_unit a,
tzs_jg_change_registration_unit_eq b
where
a.sequence_nbr = b.unit_change_registration_id
and (a.status
<![CDATA[ <> ]]>
'已作废' AND a.status
<![CDATA[ <> ]]>
'使用单位待提交')
and a.is_delete = 0
and b.project_contraption_id in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by b.project_contraption_id
union all
SELECT
count(1) as inUseNumber,
pc.sequence_nbr as projectContraptionId
from
tzs_jg_change_registration_name_eq e,
tzs_jg_change_registration_name n,
tzs_jg_use_registration_manage m,
idx_biz_jg_project_contraption pc
where
n.sequence_nbr = e.name_change_registration_id
and e.certificate_seq = m.sequence_nbr
and n.is_delete = 0
and pc.use_registration_code = m.use_registration_code
and m.equ_list_code ='8000'
and n.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and n.audit_status
<![CDATA[ <> ]]>
'已作废'
AND pc.sequence_nbr in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by pc.sequence_nbr
SELECT
count(1) as inUseNumber,
pc.sequence_nbr as projectContraptionId
from
tzs_jg_change_registration_name_eq e,
tzs_jg_change_registration_name n,
tzs_jg_use_registration_manage m,
idx_biz_jg_project_contraption pc
where
n.sequence_nbr = e.name_change_registration_id
and e.certificate_seq = m.sequence_nbr
and n.is_delete = 0
and pc.use_registration_code = m.use_registration_code
and m.equ_list_code ='8000'
and n.audit_status
<![CDATA[ <> ]]>
'使用单位待提交' and n.audit_status
<![CDATA[ <> ]]>
'已作废'
AND pc.sequence_nbr in
<foreach
collection=
"projectContraptionIds"
item=
"projectContraptionId"
separator=
","
open=
"("
close=
")"
>
#{projectContraptionId}
</foreach>
group by pc.sequence_nbr
)
group by projectContraptionId
</select>
...
...
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