|
|
|
@ -0,0 +1,111 @@
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
|
* 签到文件存档 导出
|
|
|
|
|
*
|
|
|
|
|
* @author: mlx
|
|
|
|
|
* @description:
|
|
|
|
|
* @date: 2022/12/17 3:02
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@ExcelIgnoreUnannotated
|
|
|
|
|
@EqualsAndHashCode(callSuper=false)
|
|
|
|
|
@HeadFontStyle(fontName = "仿宋", fontHeightInPoints = 12)
|
|
|
|
|
public class SigninSettingSummaryVO extends BaseEntity {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 姓名
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "姓名", index = 0)
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户名
|
|
|
|
|
*/
|
|
|
|
|
@ExcelProperty(value = "用户名", index = 1)
|
|
|
|
|
private String code;
|
|
|
|
|
/**
|
|
|
|
|
* 学生学号
|
|
|
|
|
*/
|
|
|
|
|
// @ExcelProperty(value = "学生学号", index = 2)
|
|
|
|
|
// private String studentSn;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 所属院校
|
|
|
|
|
*/
|
|
|
|
|
@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;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登录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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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, "本地局域网"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|