From 091e18e6c4b9bd9b38f99f6cc38b3fb0b20f27e8 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 30 Nov 2022 18:31:09 +0800 Subject: [PATCH] =?UTF-8?q?npe=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/reminders/controller/TRemindersController.java | 2 +- .../modules/reminders/service/impl/TRemindersServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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());