|
|
|
@ -3,13 +3,17 @@ package com.xjs.reptileLog.domain;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
import com.ruoyi.common.core.annotation.Excel;
|
|
|
|
|
import com.xjs.validation.group.SelectGroup;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.Max;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 爬虫日志实体类
|
|
|
|
|
*
|
|
|
|
|
* @author xiejs
|
|
|
|
|
* @since 2022-02-17
|
|
|
|
|
*/
|
|
|
|
@ -18,15 +22,23 @@ public class WebmagicLog implements Serializable {
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/** 主键 */
|
|
|
|
|
/**
|
|
|
|
|
* 主键
|
|
|
|
|
*/
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
/** 爬虫名称 */
|
|
|
|
|
/**
|
|
|
|
|
* 爬虫名称
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "爬虫名称")
|
|
|
|
|
@Size(max = 20, message = "请控制爬虫名称长度在20字符", groups = {SelectGroup.class})
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
/** 爬虫地址 */
|
|
|
|
|
/**
|
|
|
|
|
* 爬虫地址
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "爬虫地址")
|
|
|
|
|
@Size(max = 100, message = "请控制爬虫地址长度在20字符", groups = {SelectGroup.class})
|
|
|
|
|
private String url;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -36,14 +48,16 @@ public class WebmagicLog implements Serializable {
|
|
|
|
|
private Long complexRate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Excel(name = "执行结果",readConverterExp = "1=成功,2=失败")
|
|
|
|
|
@Excel(name = "执行结果", readConverterExp = "1=成功,2=失败")
|
|
|
|
|
private Integer status;
|
|
|
|
|
|
|
|
|
|
/** 请求耗费时间(单位毫秒) */
|
|
|
|
|
/**
|
|
|
|
|
* 请求耗费时间(单位毫秒)
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "请求耗费时间")
|
|
|
|
|
private Long requestTime;
|
|
|
|
|
|
|
|
|
|
@Excel(name = "创建时间" ,dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
|
|
private Date createTime;
|
|
|
|
|
|
|
|
|
@ -54,12 +68,14 @@ public class WebmagicLog implements Serializable {
|
|
|
|
|
* 查询条件:耗费时间Start
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Max(message = "beginRequestTime长度太长!", value = 200000000, groups = {SelectGroup.class})
|
|
|
|
|
private Long beginRequestTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询条件:耗费时间End
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Max(message = "endRequestTime长度太长!", value = 200000000, groups = {SelectGroup.class})
|
|
|
|
|
private Long endRequestTime;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|