Commit 4e6f6e9c authored by suhuiguang's avatar suhuiguang

1.非工业管道定期检验增加约束:装置下所有管道都完成检验信息录入后才能定检

2.openapi启动卡住bug
parent 331540b7
...@@ -77,9 +77,4 @@ public class OpenapiApplication { ...@@ -77,9 +77,4 @@ public class OpenapiApplication {
+ "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port + "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port
+ path + "/doc.html\n" + "----------------------------------------------------------"); + path + "/doc.html\n" + "----------------------------------------------------------");
} }
@Bean
public void init() {
startPlatformTokenService.getToken();
}
} }
...@@ -184,36 +184,49 @@ ...@@ -184,36 +184,49 @@
</select> </select>
<select id="queryJgProjectContraptionPage" <select id="queryJgProjectContraptionPage"
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption"> resultType="com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption">
select select
* *
from from
idx_biz_jg_project_contraption pc (
where select
1=1 pc.*,
<choose> (select count(distinct ibjui.record) from idx_biz_jg_use_info ibjui, idx_biz_jg_inspection_detection_info di where ibjui."RECORD" = di."RECORD" and ibjui.project_contraption_id=pc.sequence_nbr and di."INSPECT_TYPE" <![CDATA[<>]]> '') as inspectNum,
<when test="inspectionType == 'AZJDJY'"> (select count(1) from idx_biz_jg_use_info ibjui where ibjui.project_contraption_id= pc.sequence_nbr) as totalNum
and pc.usc_unit_credit_code=#{companyCode} from
and pc.is_into_management = true idx_biz_jg_project_contraption pc
and (pc.use_registration_code is null or pc.use_registration_code = '' ) where
</when> 1=1
<otherwise> <choose>
<choose> <when test="inspectionType == 'AZJDJY'">
<when test="equCategory == '8300'"> and pc.usc_unit_credit_code=#{companyCode}
and pc.use_unit_credit_code=#{companyCode} and pc.is_into_management = true
and pc.is_into_management = true and (pc.use_registration_code is null or pc.use_registration_code = '' )
and pc.use_registration_code <![CDATA[<>]]> '' </when>
</when> <otherwise>
<otherwise> <choose>
and pc.use_unit_credit_code=#{companyCode} <when test="equCategory == '8300'">
and pc.is_into_management = true and pc.use_unit_credit_code=#{companyCode}
and exists (select 1 from idx_biz_jg_use_info ibjui, idx_biz_jg_inspection_detection_info di where ibjui."RECORD" = di."RECORD" and ibjui.project_contraption_id=pc.sequence_nbr and di."INSPECT_TYPE" <![CDATA[<>]]> '' ) and pc.is_into_management = true
</otherwise> and pc.use_registration_code <![CDATA[<>]]> ''
</choose> </when>
</otherwise> <otherwise>
</choose> and pc.use_unit_credit_code=#{companyCode}
and not EXISTS (SELECt 1 FROM tz_jyjc_inspection_application a where a.status='6611' and a.application_unit_code=#{companyCode} and a.project_contraption_id = pc.sequence_nbr) and pc.is_into_management = true
and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '') </otherwise>
and pc.equ_category = #{equCategory} </choose>
</otherwise>
</choose>
and not EXISTS (SELECt 1 FROM tz_jyjc_inspection_application a where a.status='6611' and a.application_unit_code=#{companyCode} and a.project_contraption_id = pc.sequence_nbr)
and (pc.project_contraption_parent_id is null or pc.project_contraption_parent_id = '')
and pc.equ_category = #{equCategory}
) s
<where>
<if test="inspectionType == 'DQJY' and equCategory != '8300'">
s.inspectNum = s.totalNum
and s.inspectNum > 0
</if>
</where>
</select> </select>
<select id="selectEquipListByExport" resultType="java.util.Map"> <select id="selectEquipListByExport" resultType="java.util.Map">
......
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