|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.taauav.admin.entity; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
import com.taauav.common.domain.Entity; |
|
|
|
import lombok.Data; |
|
|
@@ -9,6 +10,8 @@ import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
|
|
|
import java.math.BigInteger; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 水质预警对象 tauv_water_warn |
|
|
@@ -69,4 +72,38 @@ public class TauvWaterWarn extends Entity { |
|
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd") |
|
|
|
private Date warnTime; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String warnTypeText; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String warnLevelText; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String statusText; |
|
|
|
|
|
|
|
public Map<String, String> typeList() { |
|
|
|
Map<String, String> map = new HashMap<>(); |
|
|
|
map.put("1", "水质富营养化"); |
|
|
|
map.put("2", "水生藻类植物"); |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, String> levelList() { |
|
|
|
Map<String, String> map = new HashMap<>(); |
|
|
|
map.put("1", "一级"); |
|
|
|
map.put("2", "二级"); |
|
|
|
map.put("3", "三级"); |
|
|
|
map.put("4", "四级"); |
|
|
|
map.put("5", "五级"); |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
public Map<String, String> statusList() { |
|
|
|
Map<String, String> map = new HashMap<>(); |
|
|
|
map.put("1", "待预警"); |
|
|
|
map.put("2", "已预警"); |
|
|
|
map.put("3", "已取消"); |
|
|
|
return map; |
|
|
|
} |
|
|
|
} |