Commit 87a92a11 authored by 韩桐桐's avatar 韩桐桐

bugfix:27586

parent b653381e
......@@ -39,9 +39,6 @@
<select id="queryByUseUnitCreditCode" resultType="com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto">
<include refid="page_list"/>
from tzs_jg_use_registration_manage tjurm
<if test="dto.regType != null and dto.regType != '' ">
LEFT JOIN tzs_jg_use_registration ur on ur.use_registration_code = tjurm.use_registration_code
</if>
<where>
tjurm.is_delete = 0
<if test="dto.useUnitCreditCode != null and dto.useUnitCreditCode != ''">
......@@ -66,7 +63,12 @@
AND tjurm.reg_type != '车用气瓶登记'
</if>
<if test="dto.regType != null and dto.regType != '' ">
AND ur.reg_type in (0,2)
AND EXISTS (
SELECT 1
FROM tzs_jg_use_registration ur
WHERE ur.use_registration_code = tjurm.use_registration_code
AND ur.reg_type IN (0, 2)
)
</if>
ORDER BY tjurm.rec_date DESC
</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