Commit 752b66e1 authored by suhuiguang's avatar suhuiguang

fix(jg): 最新维保信息

1.bug31436 证列表查询慢
parent cffe3fa9
......@@ -590,6 +590,17 @@
FROM idx_biz_jg_register_info ri
JOIN idx_biz_jg_use_info ui ON ui.record = ri.record
JOIN tz_base_enterprise_info ei ON ei.use_unit_code = ui.ESTATE_UNIT_CREDIT_CODE
<where>
<if test="dto.equListCode != null and dto.equListCode != ''">
and ri.EQU_LIST = #{dto.equListCode}
</if>
<if test="dto.equCategoryCode != null and dto.equCategoryCode != ''">
and ri."EQU_CATEGORY" = #{dto.equCategoryCode}
</if>
<if test="dto.dataType == 'company' ">
AND ui."USE_UNIT_CREDIT_CODE" = #{dto.useUnitCreditCode}
</if>
</where>
ORDER BY ri.use_org_code, ui.rec_date DESC
) estate ON estate.use_org_code = tjurm.use_registration_code
<where>
......
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