diff --git a/renren-admin/src/main/java/io/renren/modules/reminders/controller/TRemindersController.java b/renren-admin/src/main/java/io/renren/modules/reminders/controller/TRemindersController.java index b2f7164a..7e0b70fd 100644 --- a/renren-admin/src/main/java/io/renren/modules/reminders/controller/TRemindersController.java +++ b/renren-admin/src/main/java/io/renren/modules/reminders/controller/TRemindersController.java @@ -74,7 +74,7 @@ public class TRemindersController { public Result save(@RequestBody TRemindersDTO dto) { UserDetail user = SecurityUser.getUser(); SysUserDTO userDTO = sysUserService.get(user.getId()); - dto.setRecipient(userDTO); + dto.setSponsor(userDTO); //效验数据 ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); tRemindersService.save(dto); diff --git a/renren-admin/src/main/java/io/renren/modules/reminders/service/impl/TRemindersServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/reminders/service/impl/TRemindersServiceImpl.java index 1a29f791..5277aafe 100644 --- a/renren-admin/src/main/java/io/renren/modules/reminders/service/impl/TRemindersServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/reminders/service/impl/TRemindersServiceImpl.java @@ -83,6 +83,7 @@ public class TRemindersServiceImpl extends CrudServiceImpl assignee = Optional.ofNullable(sysUserService.get(Long.parseLong(task.getAssignee()))); // 获取审批人 dto.setRecipient(assignee.get());