|
|
|
@ -1,16 +1,12 @@
|
|
|
|
|
package com.ibeetl.jlw.entity.vo;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
|
|
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
|
|
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
|
|
import com.ibeetl.jlw.entity.IpAddress;
|
|
|
|
|
import com.ibeetl.jlw.web.IpAddressController;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
|
|
|
|
import static cn.hutool.core.util.ObjectUtil.defaultIfBlank;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
@ -25,87 +21,39 @@ import static cn.hutool.core.util.ObjectUtil.defaultIfBlank;
|
|
|
|
|
@ExcelIgnoreUnannotated
|
|
|
|
|
@EqualsAndHashCode(callSuper=false)
|
|
|
|
|
@HeadFontStyle(fontName = "仿宋", fontHeightInPoints = 12)
|
|
|
|
|
public class SigninSettingSummaryVO extends BaseEntity {
|
|
|
|
|
public class SigninSettingSummaryVO {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 姓名
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "姓名", index = 0)
|
|
|
|
|
private String name;
|
|
|
|
|
// 签到场次(时间)
|
|
|
|
|
@ExcelProperty("签到日期")
|
|
|
|
|
private Date teacherOpenCourseStudentSigninSettingSessionTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户名
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "用户名", index = 1)
|
|
|
|
|
private String code;
|
|
|
|
|
/**
|
|
|
|
|
* 学生学号
|
|
|
|
|
*/
|
|
|
|
|
// @ExcelProperty(value = "学生学号", index = 2)
|
|
|
|
|
// private String studentSn;
|
|
|
|
|
//开课ID
|
|
|
|
|
@ExcelProperty("开课名称")
|
|
|
|
|
private String teacherOpenCourseIdText ;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 所属院校
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "所属院校", index = 2)
|
|
|
|
|
private String universitiesCollegesName;
|
|
|
|
|
/**
|
|
|
|
|
* 所属省份
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "所属省份", index = 3)
|
|
|
|
|
private String universitiesCollegesProvince;
|
|
|
|
|
/**
|
|
|
|
|
* 班级名称
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "班级名称", index = 4)
|
|
|
|
|
private String className;
|
|
|
|
|
/**
|
|
|
|
|
* 登入时间
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "登入时间", index = 5)
|
|
|
|
|
private String loginTime;
|
|
|
|
|
/**
|
|
|
|
|
* 登出时间
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "登出时间", index = 6)
|
|
|
|
|
private String logoutTime;
|
|
|
|
|
/**
|
|
|
|
|
* 指定时间内的,在线时长
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "在线时长", index = 7)
|
|
|
|
|
private String onlineDuration;
|
|
|
|
|
/**
|
|
|
|
|
* 是否在线
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "是否在线", index = 8)
|
|
|
|
|
private Boolean isOnLine;
|
|
|
|
|
// 班级ID集合
|
|
|
|
|
@ExcelProperty("班级")
|
|
|
|
|
private String schoolClassIdsText;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登录IP
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "登录IP", index = 9)
|
|
|
|
|
private String ip;
|
|
|
|
|
/**
|
|
|
|
|
* IP所属地
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "IP所属地", index = 10)
|
|
|
|
|
private String ipAddress;
|
|
|
|
|
/**
|
|
|
|
|
* 登录次数
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "登录次数", index = 11)
|
|
|
|
|
private Integer loginCount;
|
|
|
|
|
//签到方式 (数据字典 student_signin_type)
|
|
|
|
|
@ExcelProperty("签到方式")
|
|
|
|
|
private String teacherOpenCourseStudentSigninSettingTypeText ;
|
|
|
|
|
|
|
|
|
|
// 学生总人数
|
|
|
|
|
@ExcelProperty("学生总人数")
|
|
|
|
|
private Integer signinStudentTotalCount;
|
|
|
|
|
|
|
|
|
|
// 签到总人数
|
|
|
|
|
@ExcelProperty("签到数")
|
|
|
|
|
// teacher_open_course_student_signin_log_tag:10签到 20缺勤
|
|
|
|
|
private Integer signinTotalCount;
|
|
|
|
|
|
|
|
|
|
// 缺勤数
|
|
|
|
|
@ExcelProperty("缺勤数")
|
|
|
|
|
private Integer unsigninCount;
|
|
|
|
|
|
|
|
|
|
public void setIp(String ip) {
|
|
|
|
|
this.ip = ip;
|
|
|
|
|
if(StrUtil.isNotBlank(ip)) {
|
|
|
|
|
IpAddress tempIpAddress = IpAddressController.ipAddressMap.get(ip);
|
|
|
|
|
if (null != tempIpAddress) {
|
|
|
|
|
String ipAddressAppend = tempIpAddress.getProvince() + tempIpAddress.getCity() + tempIpAddress.getDistrict();
|
|
|
|
|
setIpAddress(defaultIfBlank(ipAddressAppend, "本地局域网"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 合计到课率 100为单位
|
|
|
|
|
@ExcelProperty("到课率")
|
|
|
|
|
private Float signinTotalRate;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|