|
@@ -3,12 +3,14 @@ package com.ozs.web.controller.websocket;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.ozs.common.core.controller.BaseController;
|
|
|
+import com.ozs.common.core.domain.AjaxResult;
|
|
|
import com.ozs.common.core.domain.entity.SysUser;
|
|
|
import com.ozs.common.utils.AppendUtils;
|
|
|
import com.ozs.common.utils.StringUtils;
|
|
|
import com.ozs.service.entity.*;
|
|
|
import com.ozs.service.entity.vo.MsgAlarmResp;
|
|
|
import com.ozs.service.service.*;
|
|
|
+import com.ozs.system.service.ISysDictDataService;
|
|
|
import com.ozs.system.service.ISysUserService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -48,6 +50,20 @@ public class WebSocketConteoller extends BaseController {
|
|
|
private MsgWebPushService msgWebPushService;
|
|
|
@Autowired
|
|
|
private MsgAppPushService msgAppPushService;
|
|
|
+ @Autowired
|
|
|
+ private ISysDictDataService dictDataService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取项目名称
|
|
|
+ */
|
|
|
+ @ResponseBody
|
|
|
+ @GetMapping("/projectName")
|
|
|
+ public String projectName() {
|
|
|
+ String projectName = dictDataService.selectDictLabel("sys_name", "name");
|
|
|
+// HashMap<String, Object> map = new HashMap<>();
|
|
|
+// map.put("name", projectName);
|
|
|
+ return projectName;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* web 登陆时查询 未登陆时推送的消息 重新推送
|