Skip to content

Commit

Permalink
Removed the use of delete annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
周倬贤 committed Apr 7, 2024
1 parent 9c6ac39 commit 25f57f2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import org.apache.eventmesh.dashboard.console.entity.group.GroupEntity;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
Expand Down Expand Up @@ -64,7 +63,7 @@ public interface OprGroupMapper {
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
Integer updateGroup(GroupEntity groupEntity);

@Delete("UPDATE `group` SET status=1 WHERE id=#{id}")
@Update("UPDATE `group` SET status=1 WHERE id=#{id}")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
Integer deleteGroup(GroupEntity groupEntity);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.apache.eventmesh.dashboard.console.entity.groupmember.GroupMemberEntity;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
Expand Down Expand Up @@ -68,7 +67,7 @@ public interface OprGroupMemberMapper {
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
void updateGroupMember(GroupMemberEntity groupMemberEntity);

@Delete("UPDATE group_member SET status=0 WHERE id=#{id} ")
@Update("UPDATE group_member SET status=0 WHERE id=#{id} ")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
GroupMemberEntity deleteGroupMember(GroupMemberEntity groupMemberEntity);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import org.apache.eventmesh.dashboard.console.entity.runtime.RuntimeEntity;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.apache.eventmesh.dashboard.console.entity.topic.TopicEntity;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
Expand Down Expand Up @@ -94,7 +93,7 @@ public interface TopicMapper {
@Update("UPDATE topic SET create_progress=#{createProgress} WHERE id=#{id}")
void updateTopicCreateProgress(TopicEntity topicEntity);

@Delete("UPDATE `topic` SET status=0 WHERE id=#{id}")
@Update("UPDATE `topic` SET status=0 WHERE id=#{id}")
void deleteTopic(TopicEntity topicEntity);

@Select("SELECT * FROM topic WHERE cluster_id=#{clusterId} AND topic_name=#{topicName}")
Expand Down

0 comments on commit 25f57f2

Please sign in to comment.