|
@@ -235,7 +235,7 @@
|
|
inner join u_archive_file b on b.node_id = a.id and b.is_deleted = a.is_deleted and b.project_id = a.project_id and (b.is_auto_file is null or b.is_auto_file != 1)
|
|
inner join u_archive_file b on b.node_id = a.id and b.is_deleted = a.is_deleted and b.project_id = a.project_id and (b.is_auto_file is null or b.is_auto_file != 1)
|
|
WHERE a.is_deleted = 0
|
|
WHERE a.is_deleted = 0
|
|
and a.project_id = #{projectId}
|
|
and a.project_id = #{projectId}
|
|
- and a.ancestors like CONCAT('%',d.id,'%')
|
|
|
|
|
|
+ and (FIND_IN_SET(d.id,a.ancestors) or a.id = d.id)
|
|
<if test="code!=null and code!=''">
|
|
<if test="code!=null and code!=''">
|
|
AND (a.tree_code = #{code} or a.tree_code = #{contractId} or a.parent_id = 0)
|
|
AND (a.tree_code = #{code} or a.tree_code = #{contractId} or a.parent_id = 0)
|
|
</if>
|
|
</if>
|