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