123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.chinaitop.depot.intelligent.weather.mapper.TWeatherhsitoryMapper" >
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitory" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="org_id" property="orgId" jdbcType="VARCHAR" />
- <result column="sitecode" property="sitecode" jdbcType="VARCHAR" />
- <result column="vqxzcode" property="vqxzcode" jdbcType="VARCHAR" />
- <result column="vqxzname" property="vqxzname" jdbcType="VARCHAR" />
- <result column="ftemp" property="ftemp" jdbcType="DECIMAL" />
- <result column="fhumi" property="fhumi" jdbcType="DECIMAL" />
- <result column="fwinds" property="fwinds" jdbcType="DECIMAL" />
- <result column="fwindd" property="fwindd" jdbcType="DECIMAL" />
- <result column="fpressure" property="fpressure" jdbcType="DECIMAL" />
- <result column="frain" property="frain" jdbcType="DECIMAL" />
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
- <result column="remark" property="remark" jdbcType="VARCHAR" />
- <result column="data_source" property="dataSource" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Example_Where_Clause" >
- <where >
- <foreach collection="oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <foreach collection="criteria.criteria" item="criterion" >
- <choose >
- <when test="criterion.noValue" >
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue" >
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue" >
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue" >
- and ${criterion.condition}
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause" >
- <where >
- <foreach collection="example.oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <foreach collection="criteria.criteria" item="criterion" >
- <choose >
- <when test="criterion.noValue" >
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue" >
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue" >
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue" >
- and ${criterion.condition}
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List" >
- id, org_id, sitecode, vqxzcode, vqxzname, ftemp, fhumi, fwinds, fwindd, fpressure,
- frain, update_time, remark, data_source
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitoryExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from t_weatherhsitory
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null" >
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from t_weatherhsitory
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from t_weatherhsitory
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitoryExample" >
- delete from t_weatherhsitory
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitory" >
- insert into t_weatherhsitory (id, org_id, sitecode,
- vqxzcode, vqxzname, ftemp,
- fhumi, fwinds, fwindd,
- fpressure, frain, update_time,
- remark, data_source)
- values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{sitecode,jdbcType=VARCHAR},
- #{vqxzcode,jdbcType=VARCHAR}, #{vqxzname,jdbcType=VARCHAR}, #{ftemp,jdbcType=DECIMAL},
- #{fhumi,jdbcType=DECIMAL}, #{fwinds,jdbcType=DECIMAL}, #{fwindd,jdbcType=DECIMAL},
- #{fpressure,jdbcType=DECIMAL}, #{frain,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP},
- #{remark,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitory" >
- insert into t_weatherhsitory
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="orgId != null" >
- org_id,
- </if>
- <if test="sitecode != null" >
- sitecode,
- </if>
- <if test="vqxzcode != null" >
- vqxzcode,
- </if>
- <if test="vqxzname != null" >
- vqxzname,
- </if>
- <if test="ftemp != null" >
- ftemp,
- </if>
- <if test="fhumi != null" >
- fhumi,
- </if>
- <if test="fwinds != null" >
- fwinds,
- </if>
- <if test="fwindd != null" >
- fwindd,
- </if>
- <if test="fpressure != null" >
- fpressure,
- </if>
- <if test="frain != null" >
- frain,
- </if>
- <if test="updateTime != null" >
- update_time,
- </if>
- <if test="remark != null" >
- remark,
- </if>
- <if test="dataSource != null" >
- data_source,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="orgId != null" >
- #{orgId,jdbcType=VARCHAR},
- </if>
- <if test="sitecode != null" >
- #{sitecode,jdbcType=VARCHAR},
- </if>
- <if test="vqxzcode != null" >
- #{vqxzcode,jdbcType=VARCHAR},
- </if>
- <if test="vqxzname != null" >
- #{vqxzname,jdbcType=VARCHAR},
- </if>
- <if test="ftemp != null" >
- #{ftemp,jdbcType=DECIMAL},
- </if>
- <if test="fhumi != null" >
- #{fhumi,jdbcType=DECIMAL},
- </if>
- <if test="fwinds != null" >
- #{fwinds,jdbcType=DECIMAL},
- </if>
- <if test="fwindd != null" >
- #{fwindd,jdbcType=DECIMAL},
- </if>
- <if test="fpressure != null" >
- #{fpressure,jdbcType=DECIMAL},
- </if>
- <if test="frain != null" >
- #{frain,jdbcType=DECIMAL},
- </if>
- <if test="updateTime != null" >
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null" >
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="dataSource != null" >
- #{dataSource,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitoryExample" resultType="java.lang.Integer" >
- select count(*) from t_weatherhsitory
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update t_weatherhsitory
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.orgId != null" >
- org_id = #{record.orgId,jdbcType=VARCHAR},
- </if>
- <if test="record.sitecode != null" >
- sitecode = #{record.sitecode,jdbcType=VARCHAR},
- </if>
- <if test="record.vqxzcode != null" >
- vqxzcode = #{record.vqxzcode,jdbcType=VARCHAR},
- </if>
- <if test="record.vqxzname != null" >
- vqxzname = #{record.vqxzname,jdbcType=VARCHAR},
- </if>
- <if test="record.ftemp != null" >
- ftemp = #{record.ftemp,jdbcType=DECIMAL},
- </if>
- <if test="record.fhumi != null" >
- fhumi = #{record.fhumi,jdbcType=DECIMAL},
- </if>
- <if test="record.fwinds != null" >
- fwinds = #{record.fwinds,jdbcType=DECIMAL},
- </if>
- <if test="record.fwindd != null" >
- fwindd = #{record.fwindd,jdbcType=DECIMAL},
- </if>
- <if test="record.fpressure != null" >
- fpressure = #{record.fpressure,jdbcType=DECIMAL},
- </if>
- <if test="record.frain != null" >
- frain = #{record.frain,jdbcType=DECIMAL},
- </if>
- <if test="record.updateTime != null" >
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.remark != null" >
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- <if test="record.dataSource != null" >
- data_source = #{record.dataSource,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- update t_weatherhsitory
- set id = #{record.id,jdbcType=VARCHAR},
- org_id = #{record.orgId,jdbcType=VARCHAR},
- sitecode = #{record.sitecode,jdbcType=VARCHAR},
- vqxzcode = #{record.vqxzcode,jdbcType=VARCHAR},
- vqxzname = #{record.vqxzname,jdbcType=VARCHAR},
- ftemp = #{record.ftemp,jdbcType=DECIMAL},
- fhumi = #{record.fhumi,jdbcType=DECIMAL},
- fwinds = #{record.fwinds,jdbcType=DECIMAL},
- fwindd = #{record.fwindd,jdbcType=DECIMAL},
- fpressure = #{record.fpressure,jdbcType=DECIMAL},
- frain = #{record.frain,jdbcType=DECIMAL},
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- remark = #{record.remark,jdbcType=VARCHAR},
- data_source = #{record.dataSource,jdbcType=VARCHAR}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitory" >
- update t_weatherhsitory
- <set >
- <if test="orgId != null" >
- org_id = #{orgId,jdbcType=VARCHAR},
- </if>
- <if test="sitecode != null" >
- sitecode = #{sitecode,jdbcType=VARCHAR},
- </if>
- <if test="vqxzcode != null" >
- vqxzcode = #{vqxzcode,jdbcType=VARCHAR},
- </if>
- <if test="vqxzname != null" >
- vqxzname = #{vqxzname,jdbcType=VARCHAR},
- </if>
- <if test="ftemp != null" >
- ftemp = #{ftemp,jdbcType=DECIMAL},
- </if>
- <if test="fhumi != null" >
- fhumi = #{fhumi,jdbcType=DECIMAL},
- </if>
- <if test="fwinds != null" >
- fwinds = #{fwinds,jdbcType=DECIMAL},
- </if>
- <if test="fwindd != null" >
- fwindd = #{fwindd,jdbcType=DECIMAL},
- </if>
- <if test="fpressure != null" >
- fpressure = #{fpressure,jdbcType=DECIMAL},
- </if>
- <if test="frain != null" >
- frain = #{frain,jdbcType=DECIMAL},
- </if>
- <if test="updateTime != null" >
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="remark != null" >
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="dataSource != null" >
- data_source = #{dataSource,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.weather.model.TWeatherhsitory" >
- update t_weatherhsitory
- set org_id = #{orgId,jdbcType=VARCHAR},
- sitecode = #{sitecode,jdbcType=VARCHAR},
- vqxzcode = #{vqxzcode,jdbcType=VARCHAR},
- vqxzname = #{vqxzname,jdbcType=VARCHAR},
- ftemp = #{ftemp,jdbcType=DECIMAL},
- fhumi = #{fhumi,jdbcType=DECIMAL},
- fwinds = #{fwinds,jdbcType=DECIMAL},
- fwindd = #{fwindd,jdbcType=DECIMAL},
- fpressure = #{fpressure,jdbcType=DECIMAL},
- frain = #{frain,jdbcType=DECIMAL},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- remark = #{remark,jdbcType=VARCHAR},
- data_source = #{dataSource,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <insert id="insertBatch" parameterType="java.util.List">
- insert into t_weatherhsitory (id, org_id, sitecode,
- vqxzcode, vqxzname, ftemp,
- fhumi, fwinds, fwindd,
- fpressure, frain, update_time,
- remark, data_source)
- values
- <foreach collection="list" item="w" index="index" separator=",">
- (#{w.id,jdbcType=VARCHAR}, #{w.orgId,jdbcType=VARCHAR}, #{w.sitecode,jdbcType=VARCHAR},
- #{w.vqxzcode,jdbcType=VARCHAR}, #{w.vqxzname,jdbcType=VARCHAR}, #{w.ftemp,jdbcType=DECIMAL},
- #{w.fhumi,jdbcType=DECIMAL}, #{w.fwinds,jdbcType=DECIMAL}, #{w.fwindd,jdbcType=DECIMAL},
- #{w.fpressure,jdbcType=DECIMAL}, #{w.frain,jdbcType=DECIMAL}, #{w.updateTime,jdbcType=TIMESTAMP},
- #{w.remark,jdbcType=VARCHAR}, #{w.dataSource,jdbcType=VARCHAR})
- </foreach>
- </insert>
- </mapper>
|