package com.hivekion.scenario.entity; 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 com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.time.LocalDateTime; import lombok.Data; /** *
* *
* * @author liDongYu * @since 2025-09-13 */ @TableName("TBL_SCENARIO_TASK") @ApiModel(value = "ScenarioTask对象", description = "") @Data public class ScenarioTask implements Serializable { private static final long serialVersionUID = 1L; @TableId(type = IdType.INPUT) private String id; private String name; @TableField(value = "start_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime startTime; @TableField(value = "end_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime endTime; @TableField(value = "room_id") private String roomId; @TableField(value = "scenario_id") private Integer scenarioId; @ApiModelProperty("红(0)") private Integer type; @TableField(value = "from_lng") private String fromLng; @TableField(value = "from_lat") private String fromLat; @TableField(value = "to_lng") private String toLng; @TableField(value = "to_lat") private String toLat; @ApiModelProperty("分队") @TableField(value = "resource_id") private String resourceId; //1:移动2:战斗 3:整备; 4:弹药5: 水 6:油 7:食品 @TableField(value = "task_type") private String taskType; @TableField(exist = false) private String status = "init"; }