归集任务删除,只允许删除被拒绝状态的归集任务,删除归集任务,要同时删除归集任务下的明细数据

This commit is contained in:
lu7213 committed 2026-10-21 09:39:50 -04:00
1 parent f6babe9358
commit 33481ab6eb
5 files changed
+25 -26

No files matched your search

@@ -30,13 +30,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUsdtAggregationTaskItemList" parameterType="UsdtAggregationTaskItem" resultMap="UsdtAggregationTaskItemResult">
<include refid="selectUsdtAggregationTaskItemVo"/>
<where>
<where>
deleted_at is null
<if test="tokenAddress != null and tokenAddress != ''"> and token_address = #{tokenAddress}</if>
<if test="status != null "> and status = #{status}</if>
<if test="opeAmount != null "> and ope_amount = #{opeAmount}</if>
<if test="createdAt != null "> and created_at = #{createdAt}</if>
<if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
<if test="deletedAt != null "> and deleted_at = #{deletedAt}</if>
<if test="needEnergyNum != null "> and need_energy_num = #{needEnergyNum}</if>
<if test="needBandwidthNum != null "> and need_bandwidth_num = #{needBandwidthNum}</if>
<if test="gapBandwidthNum != null "> and gap_bandwidth_num = #{gapBandwidthNum}</if>
@@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUsdtAggregationTaskItemById" parameterType="Long" resultMap="UsdtAggregationTaskItemResult">
<include refid="selectUsdtAggregationTaskItemVo"/>
where id = #{id}
where id = #{id} and deleted_at is null
</select>
<insert id="insertUsdtAggregationTaskItem" parameterType="UsdtAggregationTaskItem" useGeneratedKeys="true" keyProperty="id">
@@ -127,4 +127,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
</mapper>
</mapper>