package com.xiaopeng.api.model.operation;
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.xiaopeng.common.core.web.domain.BaseModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.time.LocalDateTime;
|
|
/**
|
* 点位现场情况上报
|
*/
|
@Data
|
public class XpPointSituationReport extends BaseModel {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 点位id
|
*/
|
@ApiModelProperty("点位id")
|
@TableField("point_id")
|
private Long pointId;
|
/**
|
* 现场情况(1=正常,2=异常)
|
*/
|
@ApiModelProperty("现场情况(1=正常,2=异常)")
|
@TableField("field_situation")
|
private Integer fieldSituation;
|
|
public String getFieldSituationName() {
|
if(fieldSituation != null){
|
if(fieldSituation == 1){
|
return "正常";
|
}else if(fieldSituation == 2){
|
return "异常";
|
}
|
}
|
return "";
|
}
|
|
/**
|
* 现场照片JSON数组
|
*/
|
@ApiModelProperty("现场照片JSON数组")
|
@TableField("scene_photo")
|
private String scenePhoto;
|
/**
|
* 现场情况说明
|
*/
|
@ApiModelProperty("现场情况说明")
|
@TableField("scene_description")
|
private String sceneDescription;
|
/**
|
* 上报运维id
|
*/
|
@TableField("operations_user_id")
|
private Long operationsUserId;
|
/**
|
* 现场情况上报时间
|
*/
|
@ApiModelProperty("现场情况上报时间")
|
@TableField("reporting_time")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private LocalDateTime reportingTime;
|
}
|