Browse Source

预警通知下发弹窗接口优化

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
4204d3402f
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentNoticeService.java

+ 3
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentNoticeService.java View File

@@ -9,6 +9,7 @@ import com.tuoheng.admin.enums.FlagEnum;
import com.tuoheng.admin.enums.MarkEnum;
import com.tuoheng.admin.mapper.AccidentMapper;
import com.tuoheng.admin.mapper.AccidentReadMapper;
import com.tuoheng.admin.utils.CurrentUserUtil;
import com.tuoheng.common.core.exception.ServiceException;
import com.tuoheng.common.core.utils.JsonResult;
import com.tuoheng.common.core.utils.StringUtils;
@@ -40,10 +41,8 @@ public class AccidentNoticeService {
*/
public JsonResult notice() {
//当前登录用户
//String tenantId = CurrentUserUtil.getTenantId();
String tenantId = "0";
//String userId = CurrentUserUtil.getUserId();
String userId = "e1df76387f28b93a523c97a3e0cf27f9";
String tenantId = CurrentUserUtil.getTenantId();
String userId = CurrentUserUtil.getUserId();
if(StringUtils.isEmpty(userId)){
throw new ServiceException("当前用户id为空");
}

Loading…
Cancel
Save