feat: 天气增加createTime

dev
huangfeng 7 months ago
parent 7d6c7af68d
commit e80cff32bb

@ -72,8 +72,7 @@ public class SecurityConfig {
urlWhiteList.add("/xymanager/cmaUserLogin"); urlWhiteList.add("/xymanager/cmaUserLogin");
urlWhiteList.add("/xymanager/leadpulls/export"); urlWhiteList.add("/xymanager/leadpulls/export");
urlWhiteList.add("/xymanager/weather/export"); urlWhiteList.add("/xymanager/weather/export");
urlWhiteList.add("/xymanager/upload/uploadLog"); urlWhiteList.add("/xymanager/upload/upload**");
urlWhiteList.add("/xymanager/upload/uploadFile");
urlWhiteList.add("/xymanager/henan/**"); urlWhiteList.add("/xymanager/henan/**");
urlWhiteList.add("/xymanager/kaptcha"); urlWhiteList.add("/xymanager/kaptcha");
urlWhiteList.add("/xymanager/test/**"); urlWhiteList.add("/xymanager/test/**");

@ -203,6 +203,15 @@ public class Weathers {
@ExcelProperty(value = "光辐射强度单位W/m2)", order = 14) @ExcelProperty(value = "光辐射强度单位W/m2)", order = 14)
private Integer radiationIntensity; private Integer radiationIntensity;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column weathers.create_time
*
* @mbg.generated
*/
private Date createTime;
/** /**
* This method was generated by MyBatis Generator. * This method was generated by MyBatis Generator.
* This method returns the value of the database column weathers.id * This method returns the value of the database column weathers.id
@ -636,6 +645,30 @@ public class Weathers {
this.radiationIntensity = radiationIntensity; this.radiationIntensity = radiationIntensity;
} }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column weathers.create_time
*
* @return the value of weathers.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column weathers.create_time
*
* @param createTime the value for weathers.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@ColumnWidth(15) @ColumnWidth(15)
@ExcelProperty(value = "监测终端编号", order = 1) @ExcelProperty(value = "监测终端编号", order = 1)
private String cmdid; private String cmdid;

@ -1,6 +1,7 @@
package com.shxy.xymanager_common.entity; package com.shxy.xymanager_common.entity;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
public class WeathersExample { public class WeathersExample {
@ -1283,6 +1284,66 @@ public class WeathersExample {
addCriterion("radiation_Intensity not between", value1, value2, "radiationIntensity"); addCriterion("radiation_Intensity not between", value1, value2, "radiationIntensity");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
} }
/** /**

@ -24,6 +24,7 @@
<result column="precipitation" jdbcType="REAL" property="precipitation" /> <result column="precipitation" jdbcType="REAL" property="precipitation" />
<result column="precipitation_Intensity" jdbcType="REAL" property="precipitationIntensity" /> <result column="precipitation_Intensity" jdbcType="REAL" property="precipitationIntensity" />
<result column="radiation_Intensity" jdbcType="INTEGER" property="radiationIntensity" /> <result column="radiation_Intensity" jdbcType="INTEGER" property="radiationIntensity" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<!-- <!--
@ -99,7 +100,7 @@
id, term_id, update_time, comp_id, avg_wind_speed_10min, avg_wind_dir_10min, avg_wind_speed_1min, id, term_id, update_time, comp_id, avg_wind_speed_10min, avg_wind_dir_10min, avg_wind_speed_1min,
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed, standard_wind_speed, wind_direction, avg_wind_dir_1min, max_wind_speed, extreme_wind_speed, standard_wind_speed, wind_direction,
air_temperature, humidity, air_pressure, precipitation, precipitation_Intensity, air_temperature, humidity, air_pressure, precipitation, precipitation_Intensity,
radiation_Intensity radiation_Intensity, create_time
</sql> </sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultMap="BaseResultMap">
<!-- <!--
@ -160,15 +161,15 @@
avg_wind_dir_1min, max_wind_speed, extreme_wind_speed, avg_wind_dir_1min, max_wind_speed, extreme_wind_speed,
standard_wind_speed, wind_direction, air_temperature, standard_wind_speed, wind_direction, air_temperature,
humidity, air_pressure, precipitation, humidity, air_pressure, precipitation,
precipitation_Intensity, radiation_Intensity precipitation_Intensity, radiation_Intensity,
) create_time)
values (#{termId,jdbcType=INTEGER}, #{updateTime,jdbcType=BIGINT}, #{compId,jdbcType=VARCHAR}, values (#{termId,jdbcType=INTEGER}, #{updateTime,jdbcType=BIGINT}, #{compId,jdbcType=VARCHAR},
#{avgWindSpeed10min,jdbcType=REAL}, #{avgWindDir10min,jdbcType=INTEGER}, #{avgWindSpeed1min,jdbcType=REAL}, #{avgWindSpeed10min,jdbcType=REAL}, #{avgWindDir10min,jdbcType=INTEGER}, #{avgWindSpeed1min,jdbcType=REAL},
#{avgWindDir1min,jdbcType=REAL}, #{maxWindSpeed,jdbcType=REAL}, #{extremeWindSpeed,jdbcType=REAL}, #{avgWindDir1min,jdbcType=REAL}, #{maxWindSpeed,jdbcType=REAL}, #{extremeWindSpeed,jdbcType=REAL},
#{standardWindSpeed,jdbcType=REAL}, #{windDirection,jdbcType=REAL}, #{airTemperature,jdbcType=REAL}, #{standardWindSpeed,jdbcType=REAL}, #{windDirection,jdbcType=REAL}, #{airTemperature,jdbcType=REAL},
#{humidity,jdbcType=INTEGER}, #{airPressure,jdbcType=REAL}, #{precipitation,jdbcType=REAL}, #{humidity,jdbcType=INTEGER}, #{airPressure,jdbcType=REAL}, #{precipitation,jdbcType=REAL},
#{precipitationIntensity,jdbcType=REAL}, #{radiationIntensity,jdbcType=INTEGER} #{precipitationIntensity,jdbcType=REAL}, #{radiationIntensity,jdbcType=INTEGER},
) #{createTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.Weathers"> <insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.Weathers">
<!-- <!--
@ -231,6 +232,9 @@
<if test="radiationIntensity != null"> <if test="radiationIntensity != null">
radiation_Intensity, radiation_Intensity,
</if> </if>
<if test="createTime != null">
create_time,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="termId != null"> <if test="termId != null">
@ -284,6 +288,9 @@
<if test="radiationIntensity != null"> <if test="radiationIntensity != null">
#{radiationIntensity,jdbcType=INTEGER}, #{radiationIntensity,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.shxy.xymanager_common.entity.WeathersExample" resultType="java.lang.Long">
@ -357,6 +364,9 @@
<if test="row.radiationIntensity != null"> <if test="row.radiationIntensity != null">
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER}, radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER},
</if> </if>
<if test="row.createTime != null">
create_time = #{row.createTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
<if test="example != null"> <if test="example != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -385,7 +395,8 @@
air_pressure = #{row.airPressure,jdbcType=REAL}, air_pressure = #{row.airPressure,jdbcType=REAL},
precipitation = #{row.precipitation,jdbcType=REAL}, precipitation = #{row.precipitation,jdbcType=REAL},
precipitation_Intensity = #{row.precipitationIntensity,jdbcType=REAL}, precipitation_Intensity = #{row.precipitationIntensity,jdbcType=REAL},
radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER} radiation_Intensity = #{row.radiationIntensity,jdbcType=INTEGER},
create_time = #{row.createTime,jdbcType=TIMESTAMP}
<if test="example != null"> <if test="example != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -448,6 +459,9 @@
<if test="radiationIntensity != null"> <if test="radiationIntensity != null">
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER}, radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER},
</if> </if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
@ -473,7 +487,8 @@
air_pressure = #{airPressure,jdbcType=REAL}, air_pressure = #{airPressure,jdbcType=REAL},
precipitation = #{precipitation,jdbcType=REAL}, precipitation = #{precipitation,jdbcType=REAL},
precipitation_Intensity = #{precipitationIntensity,jdbcType=REAL}, precipitation_Intensity = #{precipitationIntensity,jdbcType=REAL},
radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER} radiation_Intensity = #{radiationIntensity,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
</mapper> </mapper>
Loading…
Cancel
Save