|
|
@@ -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为空"); |
|
|
|
} |