|
|
@ -10,14 +10,8 @@ import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
|
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
|
|
|
import org.springframework.data.mongodb.core.index.Indexed;
|
|
|
|
|
|
|
|
import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description : 系统日志表
|
|
|
|
* @Description : 系统日志表
|
|
|
@ -27,17 +21,11 @@ import javax.persistence.Table;
|
|
|
|
* @Modify :
|
|
|
|
* @Modify :
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
@Data
|
|
|
|
@Data
|
|
|
|
@Document
|
|
|
|
|
|
|
|
@DynamicInsert
|
|
|
|
|
|
|
|
@DynamicUpdate
|
|
|
|
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
|
@Table(name="SYS_LOG_SYSTEM")
|
|
|
|
|
|
|
|
@Api(value="系统日志表",description = "系统日志表")
|
|
|
|
@Api(value="系统日志表",description = "系统日志表")
|
|
|
|
public class SysLogSystem extends BaseBean {
|
|
|
|
public class SysLogSystem extends BaseBean {
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -2209777442410263684L;
|
|
|
|
private static final long serialVersionUID = -2209777442410263684L;
|
|
|
|
@Indexed
|
|
|
|
|
|
|
|
@Column(name="LOG_LEVEL")
|
|
|
|
|
|
|
|
@ApiParam(value ="日志级别" , example ="1")
|
|
|
|
@ApiParam(value ="日志级别" , example ="1")
|
|
|
|
@AnnoOutputColumn(refClass = ImppEnumUtil.LOG_LEVEL.class,refForeignKey = "value",value = "name")
|
|
|
|
@AnnoOutputColumn(refClass = ImppEnumUtil.LOG_LEVEL.class,refForeignKey = "value",value = "name")
|
|
|
|
private Integer logLevel;
|
|
|
|
private Integer logLevel;
|
|
|
@ -45,8 +33,6 @@ public class SysLogSystem extends BaseBean {
|
|
|
|
return logLevel == null ? null : ImppEnumUtil.LOG_LEVEL.valueOfDescription(logLevel);
|
|
|
|
return logLevel == null ? null : ImppEnumUtil.LOG_LEVEL.valueOfDescription(logLevel);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Indexed
|
|
|
|
|
|
|
|
@Column(name="SOFT_TYPE")
|
|
|
|
|
|
|
|
@ApiParam(value ="系统模块(枚举)", example = "1")
|
|
|
|
@ApiParam(value ="系统模块(枚举)", example = "1")
|
|
|
|
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
|
|
|
|
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
|
|
|
|
private Integer softType;
|
|
|
|
private Integer softType;
|
|
|
@ -54,8 +40,6 @@ public class SysLogSystem extends BaseBean {
|
|
|
|
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
|
|
|
|
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Indexed
|
|
|
|
|
|
|
|
@Column(name="LOG_MODULE_ID")
|
|
|
|
|
|
|
|
@ApiParam(value ="系统模块(枚举)", example = "1")
|
|
|
|
@ApiParam(value ="系统模块(枚举)", example = "1")
|
|
|
|
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
|
|
|
|
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class,refForeignKey = "value",value = "description")
|
|
|
|
private Integer logModuleId;
|
|
|
|
private Integer logModuleId;
|
|
|
@ -63,48 +47,37 @@ public class SysLogSystem extends BaseBean {
|
|
|
|
return logModuleId == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(logModuleId);
|
|
|
|
return logModuleId == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(logModuleId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="REMOTE_IP")
|
|
|
|
|
|
|
|
@ApiParam(value ="请求IP" , access ="请求IP")
|
|
|
|
@ApiParam(value ="请求IP" , access ="请求IP")
|
|
|
|
private String remoteIp;
|
|
|
|
private String remoteIp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="REQUEST_URL")
|
|
|
|
|
|
|
|
@ApiParam(value ="请求路径" , access ="请求路径")
|
|
|
|
@ApiParam(value ="请求路径" , access ="请求路径")
|
|
|
|
private String requestUrl;
|
|
|
|
private String requestUrl;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="HTTP_METHOD")
|
|
|
|
|
|
|
|
@ApiParam(value ="http请求方法" , access ="http请求方法")
|
|
|
|
@ApiParam(value ="http请求方法" , access ="http请求方法")
|
|
|
|
private String httpMethod;
|
|
|
|
private String httpMethod;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LOG_CLASS")
|
|
|
|
|
|
|
|
@ApiParam(value ="触发类路径" , access ="触发类路径")
|
|
|
|
@ApiParam(value ="触发类路径" , access ="触发类路径")
|
|
|
|
private String logClass;
|
|
|
|
private String logClass;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LOG_METHOD")
|
|
|
|
|
|
|
|
@ApiParam(value ="触发方法" , access ="触发方法")
|
|
|
|
@ApiParam(value ="触发方法" , access ="触发方法")
|
|
|
|
private String logMethod;
|
|
|
|
private String logMethod;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="ARGS_COUNT")
|
|
|
|
|
|
|
|
@ApiParam(value ="入参数量" , access ="入参数量", example = "0")
|
|
|
|
@ApiParam(value ="入参数量" , access ="入参数量", example = "0")
|
|
|
|
private Integer argsCount;
|
|
|
|
private Integer argsCount;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LOG_ARGS")
|
|
|
|
|
|
|
|
@ApiParam(value ="方法入参" , access ="方法入参")
|
|
|
|
@ApiParam(value ="方法入参" , access ="方法入参")
|
|
|
|
private String logArgs;
|
|
|
|
private String logArgs;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LOG_TITLE")
|
|
|
|
|
|
|
|
@ApiParam(value ="日志标题")
|
|
|
|
@ApiParam(value ="日志标题")
|
|
|
|
private String logTitle;
|
|
|
|
private String logTitle;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="LOG_DETAIL")
|
|
|
|
|
|
|
|
@ApiParam(value ="日志详情")
|
|
|
|
@ApiParam(value ="日志详情")
|
|
|
|
private String logDetail;
|
|
|
|
private String logDetail;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="SERVER_HOST")
|
|
|
|
|
|
|
|
@ApiParam(value ="服务器")
|
|
|
|
@ApiParam(value ="服务器")
|
|
|
|
private String serverHost;
|
|
|
|
private String serverHost;
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="EXECUTE_TIME")
|
|
|
|
|
|
|
|
@ApiParam(value ="执行耗时")
|
|
|
|
@ApiParam(value ="执行耗时")
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
private Long executeTime;
|
|
|
|
private Long executeTime;
|
|
|
|