package com.ruoyi.system.domain; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * 任务操作日志对象 sys_task_log * * @author ruoyi * @date 2024-01-15 */ public class SysTaskLog extends BaseEntity { private static final long serialVersionUID = 1L; /** 日志ID */ private Long logId; /** 任务ID */ @Excel(name = "任务ID") private Long taskId; /** 操作类型 */ @Excel(name = "操作类型", readConverterExp = "CREATE=创建,UPDATE=更新,ASSIGN=分配,STATUS_CHANGE=状态变更,DELETE=删除") private String operationType; /** 操作描述 */ @Excel(name = "操作描述") private String operationDesc; /** 操作前值 */ @Excel(name = "操作前值") private String oldValue; /** 操作后值 */ @Excel(name = "操作后值") private String newValue; /** 操作人ID */ @Excel(name = "操作人ID") private Long operatorId; /** 操作人姓名 */ @Excel(name = "操作人姓名") private String operatorName; /** 操作时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date operationTime; /** IP地址 */ @Excel(name = "IP地址") private String ipAddress; /** 纬度 */ @Excel(name = "纬度") private Double latitude; /** 经度 */ @Excel(name = "经度") private Double longitude; /** 位置地址 */ @Excel(name = "位置地址") private String locationAddress; /** 省份 */ @Excel(name = "省份") private String locationProvince; /** 城市 */ @Excel(name = "城市") private String locationCity; /** 区县 */ @Excel(name = "区县") private String locationDistrict; /** GPS精度(米) */ @Excel(name = "GPS精度") private Double gpsAccuracy; /** 海拔高度(米) */ @Excel(name = "海拔高度") private Double altitude; /** 速度(米/秒) */ @Excel(name = "速度") private Double speed; /** 方向角度(0-360) */ @Excel(name = "方向角度") private Double heading; public void setLogId(Long logId) { this.logId = logId; } public Long getLogId() { return logId; } public void setTaskId(Long taskId) { this.taskId = taskId; } public Long getTaskId() { return taskId; } public void setOperationType(String operationType) { this.operationType = operationType; } public String getOperationType() { return operationType; } public void setOperationDesc(String operationDesc) { this.operationDesc = operationDesc; } public String getOperationDesc() { return operationDesc; } public void setOldValue(String oldValue) { this.oldValue = oldValue; } public String getOldValue() { return oldValue; } public void setNewValue(String newValue) { this.newValue = newValue; } public String getNewValue() { return newValue; } public void setOperatorId(Long operatorId) { this.operatorId = operatorId; } public Long getOperatorId() { return operatorId; } public void setOperatorName(String operatorName) { this.operatorName = operatorName; } public String getOperatorName() { return operatorName; } public void setOperationTime(Date operationTime) { this.operationTime = operationTime; } public Date getOperationTime() { return operationTime; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public String getIpAddress() { return ipAddress; } public void setLatitude(Double latitude) { this.latitude = latitude; } public Double getLatitude() { return latitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } public Double getLongitude() { return longitude; } public void setLocationAddress(String locationAddress) { this.locationAddress = locationAddress; } public String getLocationAddress() { return locationAddress; } public void setLocationProvince(String locationProvince) { this.locationProvince = locationProvince; } public String getLocationProvince() { return locationProvince; } public void setLocationCity(String locationCity) { this.locationCity = locationCity; } public String getLocationCity() { return locationCity; } public void setLocationDistrict(String locationDistrict) { this.locationDistrict = locationDistrict; } public String getLocationDistrict() { return locationDistrict; } public void setGpsAccuracy(Double gpsAccuracy) { this.gpsAccuracy = gpsAccuracy; } public Double getGpsAccuracy() { return gpsAccuracy; } public void setAltitude(Double altitude) { this.altitude = altitude; } public Double getAltitude() { return altitude; } public void setSpeed(Double speed) { this.speed = speed; } public Double getSpeed() { return speed; } public void setHeading(Double heading) { this.heading = heading; } public Double getHeading() { return heading; } @Override public String toString() { return "SysTaskLog{" + "logId=" + logId + ", taskId=" + taskId + ", operationType='" + operationType + '\'' + ", operationDesc='" + operationDesc + '\'' + ", oldValue='" + oldValue + '\'' + ", newValue='" + newValue + '\'' + ", operatorId=" + operatorId + ", operatorName='" + operatorName + '\'' + ", operationTime=" + operationTime + ", ipAddress='" + ipAddress + '\'' + ", latitude=" + latitude + ", longitude=" + longitude + ", locationAddress='" + locationAddress + '\'' + ", locationProvince='" + locationProvince + '\'' + ", locationCity='" + locationCity + '\'' + ", locationDistrict='" + locationDistrict + '\'' + ", gpsAccuracy=" + gpsAccuracy + ", altitude=" + altitude + ", speed=" + speed + ", heading=" + heading + '}'; } }