xiatian 5 lat temu
rodzic
commit
68213c7fc9

+ 0 - 44
src/main/java/cn/com/qmth/examcloud/reports/commons/bean/LoginStudentReport.java

@@ -1,44 +0,0 @@
-package cn.com.qmth.examcloud.reports.commons.bean;
-
-import java.util.Date;
-
-import cn.com.qmth.examcloud.reports.commons.enums.Topic;
-
-public class LoginStudentReport extends BaseReport {
-	private Long rootOrgId;
-	private Long studentId;
-
-	public Long getRootOrgId() {
-		return rootOrgId;
-	}
-
-	public void setRootOrgId(Long rootOrgId) {
-		this.rootOrgId = rootOrgId;
-	}
-
-
-	public Long getStudentId() {
-		return studentId;
-	}
-
-	public void setStudentId(Long studentId) {
-		this.studentId = studentId;
-	}
-
-
-	public LoginStudentReport(Long rootOrgId, Long studentId) {
-		super();
-		this.rootOrgId = rootOrgId;
-		this.studentId = studentId;
-		this.topic = Topic.STUDENT_LOGIN.getCode();
-	}
-
-	public LoginStudentReport(Boolean reportOnException, Date reportTime, String reportHost, Long rootOrgId,
-			 Long studentId) {
-		super(reportOnException, reportTime, reportHost);
-		this.rootOrgId = rootOrgId;
-		this.studentId = studentId;
-		this.topic = Topic.STUDENT_LOGIN.getCode();
-	}
-
-}

+ 0 - 4
src/main/java/cn/com/qmth/examcloud/reports/commons/enums/Topic.java

@@ -1,10 +1,6 @@
 package cn.com.qmth.examcloud.reports.commons.enums;
 
 public enum Topic {
-	/**
-	 * 学生登录
-	 */
-	STUDENT_LOGIN("STUDENT_LOGIN", "学生登录"),
 
 	/**
 	 * 学生

+ 0 - 7
src/main/java/cn/com/qmth/examcloud/reports/commons/util/ReportsUtil.java

@@ -15,7 +15,6 @@ import com.alibaba.fastjson.JSON;
 
 import cn.com.qmth.examcloud.commons.util.ThreadLocalUtil;
 import cn.com.qmth.examcloud.reports.commons.bean.BaseReport;
-import cn.com.qmth.examcloud.reports.commons.bean.LoginStudentReport;
 import cn.com.qmth.examcloud.reports.commons.bean.OnlineExamStudentReport;
 import cn.com.qmth.examcloud.reports.commons.bean.OnlineStudentReport;
 import cn.com.qmth.examcloud.reports.commons.bean.OnlineUserReport;
@@ -58,15 +57,9 @@ public class ReportsUtil {
 						if (b instanceof OnlineExamStudentReport) {
 							OnlineExamStudentReport ob = (OnlineExamStudentReport) b;
 							kafkaTemplate.send(ob.getTopic(), JSON.toJSONString(b));
-							LoginStudentReport lp = new LoginStudentReport(ob.getRootOrgId(), ob.getStudentId());
-							setReportCommonData(lp);
-							kafkaTemplate.send(lp.getTopic(), JSON.toJSONString(lp));
 						} else if (b instanceof OnlineStudentReport) {
 							OnlineStudentReport ob = (OnlineStudentReport) b;
 							kafkaTemplate.send(ob.getTopic(), JSON.toJSONString(b));
-							LoginStudentReport lp = new LoginStudentReport(ob.getRootOrgId(), ob.getStudentId());
-							setReportCommonData(lp);
-							kafkaTemplate.send(lp.getTopic(), JSON.toJSONString(lp));
 						} else if (b instanceof OnlineUserReport) {
 							OnlineUserReport ob = (OnlineUserReport) b;
 							kafkaTemplate.send(ob.getTopic(), JSON.toJSONString(b));