delete from sp_approve where activityId = #{activityId} and approveType = #{approveType} update sp_approve set isActive = 0 where activityId = #{activityId} and approveType = #{approveType}