package com.example.demo.model;/*
|
* Copyright © 2020-2035 erupt.xyz All rights reserved.
|
* Author: YuePeng (erupts@126.com)
|
*/
|
|
import javax.persistence.*;
|
import xyz.erupt.annotation.*;
|
import xyz.erupt.annotation.sub_erupt.*;
|
import xyz.erupt.annotation.sub_field.*;
|
import xyz.erupt.annotation.sub_field.sub_edit.*;
|
import xyz.erupt.upms.model.base.HyperModel;
|
import xyz.erupt.jpa.model.BaseModel;
|
import java.util.Set;
|
import java.util.Date;
|
|
@Erupt(name = "天气",
|
// power = @Power(importable = true, export = true),
|
orderBy = "id desc"
|
)
|
@Table(name = "t_weather")
|
@Entity
|
public class Weather extends BaseModel {
|
|
@EruptField(
|
views = @View(
|
title = "天气"
|
),
|
edit = @Edit(
|
title = "天气",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String weather;
|
|
@EruptField(
|
views = @View(
|
title = "温度"
|
),
|
edit = @Edit(
|
title = "温度",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String temperature;
|
|
@EruptField(
|
views = @View(
|
title = "湿度"
|
),
|
edit = @Edit(
|
title = "湿度",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String humidity;
|
|
@EruptField(
|
views = @View(
|
title = "风向"
|
),
|
edit = @Edit(
|
title = "风向",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String winddirection;
|
|
@EruptField(
|
views = @View(
|
title = "风力"
|
),
|
edit = @Edit(
|
title = "风力",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String windpower;
|
|
@EruptField(
|
views = @View(
|
title = "省份"
|
),
|
edit = @Edit(
|
title = "省份",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String province;
|
|
@EruptField(
|
views = @View(
|
title = "城市"
|
),
|
edit = @Edit(
|
title = "城市",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String city;
|
|
@EruptField(
|
views = @View(
|
title = "城市编码"
|
),
|
edit = @Edit(
|
title = "城市编码",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String adcode;
|
|
@EruptField(
|
views = @View(
|
title = "上报时间"
|
),
|
edit = @Edit(
|
title = "上报时间",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String reporttime;
|
|
@EruptField(
|
views = @View(
|
title = "日期"
|
),
|
edit = @Edit(
|
title = "日期",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String wdate;
|
|
@EruptField(
|
views = @View(
|
title = "小时"
|
),
|
edit = @Edit(
|
title = "小时",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String whour;
|
|
@EruptField(
|
views = @View(
|
title = "json"
|
),
|
edit = @Edit(
|
title = "json",
|
type = EditType.INPUT, search = @Search, notNull = true,
|
inputType = @InputType
|
)
|
)
|
private String weatherjson;
|
|
|
public String getWeather() {
|
return weather;
|
}
|
|
public void setWeather(String weather) {
|
this.weather = weather;
|
}
|
|
public String getTemperature() {
|
return temperature;
|
}
|
|
public void setTemperature(String temperature) {
|
this.temperature = temperature;
|
}
|
|
public String getHumidity() {
|
return humidity;
|
}
|
|
public void setHumidity(String humidity) {
|
this.humidity = humidity;
|
}
|
|
public String getWinddirection() {
|
return winddirection;
|
}
|
|
public void setWinddirection(String winddirection) {
|
this.winddirection = winddirection;
|
}
|
|
public String getWindpower() {
|
return windpower;
|
}
|
|
public void setWindpower(String windpower) {
|
this.windpower = windpower;
|
}
|
|
public String getProvince() {
|
return province;
|
}
|
|
public void setProvince(String province) {
|
this.province = province;
|
}
|
|
public String getCity() {
|
return city;
|
}
|
|
public void setCity(String city) {
|
this.city = city;
|
}
|
|
public String getAdcode() {
|
return adcode;
|
}
|
|
public void setAdcode(String adcode) {
|
this.adcode = adcode;
|
}
|
|
public String getReporttime() {
|
return reporttime;
|
}
|
|
public void setReporttime(String reporttime) {
|
this.reporttime = reporttime;
|
}
|
|
public String getWdate() {
|
return wdate;
|
}
|
|
public void setWdate(String wdate) {
|
this.wdate = wdate;
|
}
|
|
public String getWhour() {
|
return whour;
|
}
|
|
public void setWhour(String whour) {
|
this.whour = whour;
|
}
|
|
public String getWeatherjson() {
|
return weatherjson;
|
}
|
|
public void setWeatherjson(String weatherjson) {
|
this.weatherjson = weatherjson;
|
}
|
}
|