diff --git a/src/main/java/com/gitlink/softbot/service/user/impl/UserService.java b/src/main/java/com/gitlink/softbot/service/user/impl/UserService.java index 113246c..74d77ea 100644 --- a/src/main/java/com/gitlink/softbot/service/user/impl/UserService.java +++ b/src/main/java/com/gitlink/softbot/service/user/impl/UserService.java @@ -865,10 +865,12 @@ public class UserService extends AbstractUserBot implements IUserService { TransferBot transferBot = new TransferBot(); transferBot.setBotId(transferBotRequest.getBotId()); transferBot.setTransferFromId(transferBotRequest.getUserId()); + transferBot.setFromLogin(transferBotRequest.getLogin()); //待转让状态 transferBot.setIsSuccess(2); transferBot.setTransferTime(new Date()); transferBot.setTransferToId(transferBotRequest.getTransferToUserId()); + transferBot.setToLogin(transferBotRequest.getLogin()); // //修改注册人信息 // RegisterBot registerBot = registerMapper.selectOne(Wrappers.lambdaQuery() // .eq(RegisterBot::getBotId,transferBotRequest.getBotId())); diff --git a/src/main/java/com/gitlink/softbot/vo/TransferBotRequest.java b/src/main/java/com/gitlink/softbot/vo/TransferBotRequest.java index 9d0d458..baf8ce7 100644 --- a/src/main/java/com/gitlink/softbot/vo/TransferBotRequest.java +++ b/src/main/java/com/gitlink/softbot/vo/TransferBotRequest.java @@ -21,8 +21,8 @@ public class TransferBotRequest implements Serializable { @NotNull(message = "userId is required") private Integer userId; private String login; - @NotNull(message = "userName is required") - private String userName; + @NotNull(message = "toLogn is required") + private String toLogn; @NotNull(message = "botId is required") private Integer botId; private Integer transferToUserId;