feat: add controlled aggregation task deletion

This commit is contained in:
lu7213 committed 2026-10-15 10:42:05 -04:00
1 parent 2a85724613
commit 79f829c12e
4 files changed
+54 -4

No files matched your search

@@ -25,7 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUsdtAggregationTaskList" parameterType="UsdtAggregationTask" resultMap="UsdtAggregationTaskResult">
<include refid="selectUsdtAggregationTaskVo"/>
<where>
<where>
and deleted_at is null
<if test="taskName != null and taskName != ''"> and task_name like concat('%', #{taskName}, '%')</if>
<if test="appId != null "> and app_id = #{appId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
@@ -37,7 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUsdtAggregationTaskById" parameterType="Long" resultMap="UsdtAggregationTaskResult">
<include refid="selectUsdtAggregationTaskVo"/>
where id = #{id}
where id = #{id} and deleted_at is null
</select>
<select id="selectUsdtAggregationTaskByIdForUpdate" resultMap="UsdtAggregationTaskResult">
<include refid="selectUsdtAggregationTaskVo"/>
where id = #{id} and deleted_at is null for update
</select>
<select id="selectPendingTaskByAppId" resultMap="UsdtAggregationTaskResult">