|
@@ -289,7 +289,13 @@
|
|
|
where project_id = #{vo.projectId} and ancestors like concat('%', #{vo.nodeId}, '%') or id = #{vo.nodeId}
|
|
|
) matc
|
|
|
left join u_archives_auto uaa on matc.id = uaa.node_id
|
|
|
- where uaa.is_deleted = #{vo.isDeleted}
|
|
|
+ where
|
|
|
+ <if test="vo.isDeleted == 0">
|
|
|
+ uaa.is_deleted = 0 and uaa.is_destroy = 0
|
|
|
+ </if>
|
|
|
+ <if test="vo.isDeleted == 1">
|
|
|
+ uaa.is_deleted = 1 and uaa.is_destroy = 1
|
|
|
+ </if>
|
|
|
<if test="vo.storageTime != null and vo.storageTime != ''">
|
|
|
and uaa.storage_time = #{vo.storageTime}
|
|
|
</if>
|
|
@@ -314,6 +320,13 @@
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
+ <update id="batchDestroyByIds">
|
|
|
+ update u_archives_auto set is_deleted = 1 ,is_destroy = 1 where
|
|
|
+ id in
|
|
|
+ <foreach collection="ids" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
|
|
|
|
|
|
</mapper>
|