From 19f87e9461148e2fa0428efa872383cb764991ae Mon Sep 17 00:00:00 2001 From: zhaotianfeng <12345678> Date: Fri, 20 Sep 2024 10:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E5=8F=91=E9=80=81BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/sys/controller/SysNotifyController.java | 10 +++++++++- .../sys/service/impl/SysNotifyServiceImpl.java | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/controller/SysNotifyController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/controller/SysNotifyController.java index cc8ef7fc4..4becb9209 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/controller/SysNotifyController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/controller/SysNotifyController.java @@ -62,7 +62,15 @@ public class SysNotifyController extends BaseController { } @GetMapping("/sendNotify") public ResponseObject sendNotify(Integer id) { - return getSuccessResult(this.sysNotifyService.sendNotifyOne(id)); + + boolean b = this.sysNotifyService.sendNotifyOne(id); + if (b) { + return getFailureResult(200, "发送成功"); + } + else { + return getFailureResult(500, "发送失败用户不存在"); + } + } /** diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java index d414aea84..6ca72f880 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/sys/service/impl/SysNotifyServiceImpl.java @@ -310,7 +310,7 @@ public class SysNotifyServiceImpl extends ServiceImpl