|
@@ -37,6 +37,7 @@ import cn.com.qmth.examcloud.api.commons.enums.NoticeReceiverRuleType;
|
|
|
import cn.com.qmth.examcloud.api.commons.enums.NoticeStatus;
|
|
|
import cn.com.qmth.examcloud.api.commons.exchange.PageInfo;
|
|
|
import cn.com.qmth.examcloud.api.commons.security.bean.User;
|
|
|
+import cn.com.qmth.examcloud.api.commons.security.bean.UserType;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.core.examwork.api.controller.bean.AddNoticeDomain;
|
|
|
import cn.com.qmth.examcloud.core.examwork.api.controller.bean.NoticeDomain;
|
|
@@ -54,6 +55,9 @@ import cn.com.qmth.examcloud.core.examwork.service.bean.NoticeInfoQuery;
|
|
|
import cn.com.qmth.examcloud.core.examwork.service.bean.UpdateNoticeInfo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.service.bean.UserNoticeInfo;
|
|
|
import cn.com.qmth.examcloud.core.examwork.service.bean.UserNoticeInfoQuery;
|
|
|
+import cn.com.qmth.examcloud.reports.commons.bean.OnlineStudentReport;
|
|
|
+import cn.com.qmth.examcloud.reports.commons.bean.OnlineUserReport;
|
|
|
+import cn.com.qmth.examcloud.reports.commons.util.ReportsUtil;
|
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.web.support.Naked;
|
|
@@ -129,6 +133,16 @@ public class NoticeController extends ControllerSupport {
|
|
|
if (null != noticeInfoList && !noticeInfoList.isEmpty()) {
|
|
|
resultList = getNoticeDomainListFrom(noticeInfoList);
|
|
|
}
|
|
|
+
|
|
|
+ User user = this.getAccessUser();
|
|
|
+ //在线数据打点 start
|
|
|
+ if(UserType.STUDENT.equals(user.getUserType())) {
|
|
|
+ //在线学生登录打点
|
|
|
+ ReportsUtil.report(new OnlineStudentReport(user.getRootOrgId(),user.getUserId()));
|
|
|
+ }else if(UserType.COMMON.equals(user.getUserType())) {
|
|
|
+ //在线用户登录打点
|
|
|
+ ReportsUtil.report(new OnlineUserReport(user.getRootOrgId(),user.getUserId()));
|
|
|
+ }
|
|
|
return resultList;
|
|
|
}
|
|
|
|