|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
@@ -92,7 +93,7 @@ public class NotifyMessageController {
|
|
|
Long loginUserId = getLoginUserId();
|
|
|
EmployeeRespDTO loginEmployee = employeeApi.getEmployeeByUserId(loginUserId);
|
|
|
if (loginEmployee == null) {
|
|
|
- throw exception(EMPLOYEE_INFO_NOT_EXISTS);
|
|
|
+ return success(Collections.emptyList());
|
|
|
}
|
|
|
List<NotifyMessageDO> list = notifyMessageService.getUnreadNotifyMessageList(
|
|
|
loginEmployee.getId(), UserTypeEnum.MEMBER.getValue(), size);
|