...
This commit is contained in:
parent
49bf48472a
commit
8684700c19
|
@ -45,7 +45,7 @@
|
||||||
select trc.*
|
select trc.*
|
||||||
from tb_resource_car trc
|
from tb_resource_car trc
|
||||||
<if test="(params.type != null and params.type != '') or (params.name != null and params.name != '')">
|
<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>
|
</if>
|
||||||
where 1 = 1
|
where 1 = 1
|
||||||
and trc.del_flag = 0
|
and trc.del_flag = 0
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
SELECT trc.*
|
SELECT trc.*
|
||||||
FROM tb_resource_collection trc
|
FROM tb_resource_collection trc
|
||||||
<if test="(params.type != null and params.type != '') or (params.name != null and params.name != '')">
|
<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>
|
</if>
|
||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
AND trc.del_flag = 0
|
AND trc.del_flag = 0
|
||||||
|
|
Loading…
Reference in New Issue