Browse Source

消息已读

sunhh 1 year ago
parent
commit
f07f86f6b1

+ 1 - 1
hazard-admin/src/main/java/com/ozs/web/controller/accountmanagment/MsgAlarmController.java

@@ -146,7 +146,7 @@ public class MsgAlarmController extends BaseController {
     @ApiOperation(value = "web消息已读")
     @Log(title = "报警信息管理", businessType = BusinessType.SELECT)
     public AjaxResult read(@RequestBody MsgWebPush msgWebPush) {
-        if (StringUtils.isEmpty(msgWebPush) || StringUtils.isEmpty(msgWebPush.getPushId())) {
+        if (StringUtils.isEmpty(msgWebPush) || ObjectUtils.isEmpty(msgWebPush.getPushId())) {
             return AjaxResult.error("PushId不能为空!");
         }
         return toAjax(msgWebPushService.read(msgWebPush));