package com.se.nsl.domain.po;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.netty.util.internal.StringUtil;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
|
import java.sql.Timestamp;
|
|
@TableName("nsl.simu")
|
@SuppressWarnings("ALL")
|
@ApiModel(value = "推演模拟", description = "推演模拟")
|
public class Simu {
|
@TableId(type = IdType.AUTO)
|
@ApiModelProperty("主键ID")
|
private Long id;
|
|
@ApiModelProperty("名称")
|
private String name;
|
|
@ApiModelProperty("区域名称")
|
private String areaName;
|
|
@ApiModelProperty("服务名称")
|
private String serviceName;
|
|
@ApiModelProperty("类别:1-预测模拟,2-实时模拟,3-历史模拟")
|
private Short type;
|
|
@ApiModelProperty("区域类别:0-自定义,1-行政区划,2-重点区域,3-重点沟")
|
private Short areaType;
|
|
@ApiModelProperty("数据(JSON)")
|
private String data;
|
|
@ApiModelProperty("状态:0-创建仿真,1-预处理,2-分析中,10-完成,20-出错")
|
private Integer status;
|
|
@ApiModelProperty("结果(JSON)")
|
private String result;
|
|
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("创建时间")
|
private Timestamp createTime;
|
|
@ApiModelProperty("创建人")
|
private Timestamp createUser;
|
|
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("更新时间")
|
private Timestamp updateTime;
|
|
@ApiModelProperty("更新人")
|
private Timestamp updateUser;
|
|
@ApiModelProperty("备注")
|
private String bak;
|
|
@ApiModelProperty("空间位置")
|
@TableField(value = "st_astext(geom)", select = true)
|
private String geom;
|
|
public Simu() {
|
}
|
|
public Simu(String name, String serviceName, Short type, Short areaType, String data, Integer status, String geom) {
|
this.name = name;
|
this.serviceName = serviceName;
|
this.type = type;
|
this.areaType = areaType;
|
this.data = data;
|
this.status = status;
|
this.geom = geom;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getAreaName() {
|
return areaName;
|
}
|
|
public void setAreaName(String areaName) {
|
this.areaName = areaName;
|
}
|
|
public String getServiceName() {
|
return serviceName;
|
}
|
|
public void setServiceName(String serviceName) {
|
this.serviceName = serviceName;
|
}
|
|
public Short getType() {
|
return type;
|
}
|
|
public void setType(Short type) {
|
this.type = type;
|
}
|
|
public Short getAreaType() {
|
return areaType;
|
}
|
|
public void setAreaType(Short areaType) {
|
this.areaType = areaType;
|
}
|
|
public String getData() {
|
return data;
|
}
|
|
public void setData(String data) {
|
this.data = data;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
public String getResult() {
|
return result;
|
}
|
|
public void setResult(String result) {
|
this.result = result;
|
}
|
|
public Timestamp getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Timestamp createTime) {
|
this.createTime = createTime;
|
}
|
|
public Timestamp getCreateUser() {
|
return createUser;
|
}
|
|
public void setCreateUser(Timestamp createUser) {
|
this.createUser = createUser;
|
}
|
|
public Timestamp getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Timestamp updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public Timestamp getUpdateUser() {
|
return updateUser;
|
}
|
|
public void setUpdateUser(Timestamp updateUser) {
|
this.updateUser = updateUser;
|
}
|
|
public String getBak() {
|
return bak;
|
}
|
|
public void setBak(String bak) {
|
this.bak = bak;
|
}
|
|
public String getGeom() {
|
return geom;
|
}
|
|
public void setGeom(String geom) {
|
this.geom = geom;
|
}
|
|
public void setGeomText() {
|
this.geom = StringUtil.isNullOrEmpty(this.geom) ? "null" : String.format("ST_GeomFromText('%s')", this.geom.trim());
|
}
|
}
|