Commit 78e33a49 authored by suhuiguang's avatar suhuiguang

feat(jg): 压力管道后续业务

1.改造变更登记压力管道装置只能选择状态为已登记的证
parent 753869a7
......@@ -317,16 +317,19 @@
tzs_jg_change_registration_reform_eq b
where
a.sequence_nbr = b.equip_transfer_id
and a.status not in('使用单位待提交','一级受理已驳回','使用单位已撤回','已作废','已完成')
and a.status not in('使用单位待提交','一级受理已驳回','使用单位已撤回','已作废','已完成')
</select>
<select id="queryJgProjectContraptionPage"
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption">
select
pc.*
from
idx_biz_jg_project_contraption pc
idx_biz_jg_project_contraption pc,
tzs_jg_use_registration_manage m
where
1=1
pc.use_registration_code = m.use_registration_code
and m.certificate_status = '已登记'
and m.is_delete = '0'
and pc.use_registration_code <![CDATA[<>]]> ''
and pc.is_into_management = true
and pc.use_unit_credit_code=#{companyCode}
......@@ -338,7 +341,7 @@
#{projectContraptionId}
</foreach>
</if>
and EXISTS (SELECt 1 FROM tzs_jg_reform_notice a where a.notice_status='6616' and a.project_contraption_id = pc.sequence_nbr)
and EXISTS (SELECt count(1) FROM tzs_jg_reform_notice a where a.notice_status='6616' and a.project_contraption_id = pc.sequence_nbr)
order by pc.sequence_nbr desc
</select>
<sql id="page-list-pipeline">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment