Skip to content

Commit

Permalink
fix: remove endtime field from client mapper insert method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lambert-Rao committed Feb 19, 2024
1 parent 8ed9a02 commit 055bb6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public interface ClientMapper {
@Insert(
"INSERT INTO `client` (`cluster_id`, `name`, `platform`,"
+ " `language`, `pid`, `host`, `port`, `protocol`,"
+ " `status`, `config_ids`, `description`, `end_time`) "
+ " `status`, `config_ids`, `description`) "
+ "VALUES (#{clusterId}, #{name}, #{platform},"
+ " #{language}, #{pid}, #{host}, #{port}, #{protocol},"
+ " #{status}, #{configIds}, #{description}, #{endTime})")
+ " #{status}, #{configIds}, #{description})")
void insert(ClientEntity clientEntity);

@Update("UPDATE `client` SET status = 0, end_time = NOW() WHERE id = #{id}")
Expand Down

0 comments on commit 055bb6c

Please sign in to comment.