This commit is contained in:
wangliwen 2022-05-11 10:45:03 +08:00
parent 49bf48472a
commit 8684700c19
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
select trc.*
from tb_resource_car trc
<if test="(params.type != null and params.type != '') or (params.name != null and params.name != '')">
left join tb_data_resource tdr on trc.resource_id = tdr.id and tdr.del_flag = 0
left join tb_data_resource tdr on trc.resource_id = tdr.id and tdr.del_flag != 1
</if>
where 1 = 1
and trc.del_flag = 0

View File

@ -57,7 +57,7 @@
SELECT trc.*
FROM tb_resource_collection trc
<if test="(params.type != null and params.type != '') or (params.name != null and params.name != '')">
LEFT JOIN tb_data_resource tdr ON trc.resource_id = tdr.id AND tdr.del_flag = 0
LEFT JOIN tb_data_resource tdr ON trc.resource_id = tdr.id AND tdr.del_flag != 1
</if>
WHERE 1 = 1
AND trc.del_flag = 0