|
@@ -60,7 +60,8 @@
|
|
|
left join biz_tenant t10 on t10.id = t9.from_tenant_id
|
|
|
LEFT JOIN biz_archive_input t11 ON t11.id = t1.contract_id
|
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
|
- t1.deleted = 0 and t11.dissolution = 0
|
|
|
+ t1.deleted = 0 and
|
|
|
+ (t11.dissolution is null or t11.dissolution = 0)
|
|
|
<if test="id != null ">AND t1.id = #{id}</if>
|
|
|
<if test="tenantId != null ">
|
|
|
AND exists (select 1 from biz_entrust eb
|