大屏
This commit is contained in:
+108
@@ -0,0 +1,108 @@
|
||||
package com.renkang.emergency.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class EmergencyHealthRoom {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@Schema(title = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 建设地点名称
|
||||
*/
|
||||
@Schema(title = "建设地点名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 单位code
|
||||
*/
|
||||
@Schema(title = "单位code")
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 单位名称(冗余字段更新orgCode记得同步更新)
|
||||
*/
|
||||
@Schema(title = "单位名称(冗余字段更新orgCode记得同步更新)")
|
||||
private String orgName;
|
||||
|
||||
/**
|
||||
* 在岗人数
|
||||
*/
|
||||
@Schema(title = "在岗人数")
|
||||
private Integer jobNum;
|
||||
|
||||
/**
|
||||
* 运转时间(分钟)
|
||||
*/
|
||||
@Schema(title = "运转时间(分钟)")
|
||||
private Integer runTime;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@Schema(title = "经度")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@Schema(title = "纬度")
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 状态(1-正常,2-冻结)
|
||||
*/
|
||||
@Schema(title = "状态(1-正常,2-冻结)")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 删除状态(0-正常,1-已删除)
|
||||
*/
|
||||
@Schema(title = "删除状态(0-正常,1-已删除)")
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Schema(title = "创建人")
|
||||
private String createBy;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(title = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Schema(title = "更新人")
|
||||
private String updateBy;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Schema(title = "更新时间")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Schema(title = "备注")
|
||||
private String memo;
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.renkang.emergency.entity.vo;
|
||||
|
||||
import com.renkang.emergency.entity.EmergencyHealthRoom;
|
||||
import com.renkang.emergency.entity.Resource;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class LargeScreenMap {
|
||||
private String id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String orgName;
|
||||
|
||||
private String type;
|
||||
|
||||
private String loveNum;
|
||||
|
||||
private String longitude;
|
||||
|
||||
private String latitude;
|
||||
|
||||
public LargeScreenMap() {}
|
||||
|
||||
public LargeScreenMap(Resource resource) {
|
||||
this.id = resource.getId();
|
||||
this.name = resource.getName();
|
||||
this.orgName = "";
|
||||
this.type = resource.getType();
|
||||
this.latitude = String.valueOf(resource.getLatitude());
|
||||
this.longitude = String.valueOf(resource.getLongitude());
|
||||
}
|
||||
|
||||
public LargeScreenMap(EmergencyHealthRoom room) {
|
||||
this.id = room.getId();
|
||||
this.name = room.getName();
|
||||
this.orgName = room.getOrgName();
|
||||
this.type = "2";
|
||||
this.latitude = room.getLatitude();
|
||||
this.longitude = room.getLongitude();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user