123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989 |
- <?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="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewMapper" >
- <resultMap id="BaseResultMap" type="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNew" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="house_id" property="houseId" jdbcType="INTEGER" />
- <result column="grain_id" property="grainId" jdbcType="INTEGER" />
- <result column="type" property="type" jdbcType="VARCHAR" />
- <result column="number" property="number" jdbcType="INTEGER" />
- <result column="house_type" property="houseType" jdbcType="VARCHAR" />
- <result column="keep_warm" property="keepWarm" jdbcType="VARCHAR" />
- <result column="cool_type" property="coolType" jdbcType="VARCHAR" />
- <result column="aeration_type" property="aerationType" jdbcType="VARCHAR" />
- <result column="fan_style" property="fanStyle" jdbcType="VARCHAR" />
- <result column="fan_power" property="fanPower" jdbcType="VARCHAR" />
- <result column="temperature_end" property="temperatureEnd" jdbcType="VARCHAR" />
- <result column="fan_num" property="fanNum" jdbcType="VARCHAR" />
- <result column="food_width" property="foodWidth" jdbcType="VARCHAR" />
- <result column="temperature_start" property="temperatureStart" jdbcType="VARCHAR" />
- <result column="fan_total" property="fanTotal" jdbcType="VARCHAR" />
- <result column="fan_unit" property="fanUnit" jdbcType="VARCHAR" />
- <result column="fan_start" property="fanStart" jdbcType="VARCHAR" />
- <result column="uuid" property="uuid" jdbcType="VARCHAR" />
- <result column="fan_end" property="fanEnd" jdbcType="VARCHAR" />
- <result column="fan_time_total" property="fanTimeTotal" jdbcType="VARCHAR" />
- <result column="air_temperature_max" property="airTemperatureMax" jdbcType="VARCHAR" />
- <result column="air_temperature_min" property="airTemperatureMin" jdbcType="VARCHAR" />
- <result column="air_temperature_avg" property="airTemperatureAvg" jdbcType="VARCHAR" />
- <result column="temperature_front_max" property="temperatureFrontMax" jdbcType="VARCHAR" />
- <result column="temperature_front_min" property="temperatureFrontMin" jdbcType="VARCHAR" />
- <result column="temperature_front_avg" property="temperatureFrontAvg" jdbcType="VARCHAR" />
- <result column="temperature_after_max" property="temperatureAfterMax" jdbcType="VARCHAR" />
- <result column="temperature_after_min" property="temperatureAfterMin" jdbcType="VARCHAR" />
- <result column="temperature_after_avg" property="temperatureAfterAvg" jdbcType="VARCHAR" />
- <result column="water_front_max" property="waterFrontMax" jdbcType="VARCHAR" />
- <result column="water_front_min" property="waterFrontMin" jdbcType="VARCHAR" />
- <result column="water_front_avg" property="waterFrontAvg" jdbcType="VARCHAR" />
- <result column="water_after_max" property="waterAfterMax" jdbcType="VARCHAR" />
- <result column="water_after_min" property="waterAfterMin" jdbcType="VARCHAR" />
- <result column="water_after_avg" property="waterAfterAvg" jdbcType="VARCHAR" />
- <result column="temperature_width" property="temperatureWidth" jdbcType="VARCHAR" />
- <result column="water_width" property="waterWidth" jdbcType="VARCHAR" />
- <result column="total_elect" property="totalElect" jdbcType="VARCHAR" />
- <result column="elect_unit" property="electUnit" jdbcType="VARCHAR" />
- <result column="aeration_bug" property="aerationBug" jdbcType="VARCHAR" />
- <result column="work_user" property="workUser" jdbcType="VARCHAR" />
- <result column="approve_user" property="approveUser" jdbcType="VARCHAR" />
- <result column="remark" property="remark" jdbcType="VARCHAR" />
- <result column="fan_run" property="fanRun" jdbcType="VARCHAR" />
- <result column="house_humidity_max" property="houseHumidityMax" jdbcType="VARCHAR" />
- <result column="house_humidity_min" property="houseHumidityMin" jdbcType="VARCHAR" />
- <result column="house_humidity_avg" property="houseHumidityAvg" jdbcType="VARCHAR" />
- <result column="fan_run_max" property="fanRunMax" jdbcType="VARCHAR" />
- <result column="fan_run__min" property="fanRunMin" jdbcType="VARCHAR" />
- <result column="fan_run_avg" property="fanRunAvg" jdbcType="VARCHAR" />
- <result column="c_id" property="cId" jdbcType="INTEGER" />
- <result column="c_time" property="cTime" jdbcType="TIMESTAMP" />
- <result column="u_id" property="uId" jdbcType="INTEGER" />
- <result column="u_time" property="uTime" jdbcType="TIMESTAMP" />
- </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, house_id, grain_id, type, number, house_type, keep_warm, cool_type, aeration_type,
- fan_style, fan_power, temperature_end, fan_num, food_width, temperature_start, fan_total,
- fan_unit, fan_start, fan_end, fan_time_total, air_temperature_max, air_temperature_min,
- air_temperature_avg, temperature_front_max, temperature_front_min, temperature_front_avg,
- temperature_after_max, temperature_after_min, temperature_after_avg, water_front_max,
- water_front_min, water_front_avg, water_after_max, water_after_min, water_after_avg,
- temperature_width, water_width, total_elect, elect_unit, aeration_bug, work_user,
- approve_user, remark, fan_run, house_humidity_max, house_humidity_min, house_humidity_avg,
- fan_run_max, fan_run__min, fan_run_avg, c_id, c_time, u_id, u_time
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from daily_record_conditioner_new
- <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.Integer" >
- select
- <include refid="Base_Column_List" />
- from daily_record_conditioner_new
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from daily_record_conditioner_new
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewExample" >
- delete from daily_record_conditioner_new
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNew" >
- insert into daily_record_conditioner_new (id, house_id, grain_id,
- type, number, house_type,
- keep_warm, cool_type, aeration_type,
- fan_style, fan_power, temperature_end,
- fan_num, food_width, temperature_start,
- fan_total, fan_unit, fan_start,
- fan_end, fan_time_total, air_temperature_max,
- air_temperature_min, air_temperature_avg, temperature_front_max,
- temperature_front_min, temperature_front_avg,
- temperature_after_max, temperature_after_min,
- temperature_after_avg, water_front_max, water_front_min,
- water_front_avg, water_after_max, water_after_min,
- water_after_avg, temperature_width, water_width,
- total_elect, elect_unit, aeration_bug,
- work_user, approve_user, remark,
- fan_run, house_humidity_max, house_humidity_min,
- house_humidity_avg, fan_run_max, fan_run__min,
- fan_run_avg, c_id, c_time,
- u_id, u_time)
- values (#{id,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER}, #{grainId,jdbcType=INTEGER},
- #{type,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER}, #{houseType,jdbcType=VARCHAR},
- #{keepWarm,jdbcType=VARCHAR}, #{coolType,jdbcType=VARCHAR}, #{aerationType,jdbcType=VARCHAR},
- #{fanStyle,jdbcType=VARCHAR}, #{fanPower,jdbcType=VARCHAR}, #{temperatureEnd,jdbcType=VARCHAR},
- #{fanNum,jdbcType=VARCHAR}, #{foodWidth,jdbcType=VARCHAR}, #{temperatureStart,jdbcType=VARCHAR},
- #{fanTotal,jdbcType=VARCHAR}, #{fanUnit,jdbcType=VARCHAR}, #{fanStart,jdbcType=VARCHAR},
- #{fanEnd,jdbcType=VARCHAR}, #{fanTimeTotal,jdbcType=VARCHAR}, #{airTemperatureMax,jdbcType=VARCHAR},
- #{airTemperatureMin,jdbcType=VARCHAR}, #{airTemperatureAvg,jdbcType=VARCHAR}, #{temperatureFrontMax,jdbcType=VARCHAR},
- #{temperatureFrontMin,jdbcType=VARCHAR}, #{temperatureFrontAvg,jdbcType=VARCHAR},
- #{temperatureAfterMax,jdbcType=VARCHAR}, #{temperatureAfterMin,jdbcType=VARCHAR},
- #{temperatureAfterAvg,jdbcType=VARCHAR}, #{waterFrontMax,jdbcType=VARCHAR}, #{waterFrontMin,jdbcType=VARCHAR},
- #{waterFrontAvg,jdbcType=VARCHAR}, #{waterAfterMax,jdbcType=VARCHAR}, #{waterAfterMin,jdbcType=VARCHAR},
- #{waterAfterAvg,jdbcType=VARCHAR}, #{temperatureWidth,jdbcType=VARCHAR}, #{waterWidth,jdbcType=VARCHAR},
- #{totalElect,jdbcType=VARCHAR}, #{electUnit,jdbcType=VARCHAR}, #{aerationBug,jdbcType=VARCHAR},
- #{workUser,jdbcType=VARCHAR}, #{approveUser,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
- #{fanRun,jdbcType=VARCHAR}, #{houseHumidityMax,jdbcType=VARCHAR}, #{houseHumidityMin,jdbcType=VARCHAR},
- #{houseHumidityAvg,jdbcType=VARCHAR}, #{fanRunMax,jdbcType=VARCHAR}, #{fanRunMin,jdbcType=VARCHAR},
- #{fanRunAvg,jdbcType=VARCHAR}, #{cId,jdbcType=INTEGER}, #{cTime,jdbcType=TIMESTAMP},
- #{uId,jdbcType=INTEGER}, #{uTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNew" >
- insert into daily_record_conditioner_new
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="houseId != null" >
- house_id,
- </if>
- <if test="grainId != null" >
- grain_id,
- </if>
- <if test="type != null" >
- type,
- </if>
- <if test="number != null" >
- number,
- </if>
- <if test="houseType != null" >
- house_type,
- </if>
- <if test="keepWarm != null" >
- keep_warm,
- </if>
- <if test="coolType != null" >
- cool_type,
- </if>
- <if test="aerationType != null" >
- aeration_type,
- </if>
- <if test="fanStyle != null" >
- fan_style,
- </if>
- <if test="fanPower != null" >
- fan_power,
- </if>
- <if test="temperatureEnd != null" >
- temperature_end,
- </if>
- <if test="fanNum != null" >
- fan_num,
- </if>
- <if test="foodWidth != null" >
- food_width,
- </if>
- <if test="temperatureStart != null" >
- temperature_start,
- </if>
- <if test="fanTotal != null" >
- fan_total,
- </if>
- <if test="fanUnit != null" >
- fan_unit,
- </if>
- <if test="fanStart != null" >
- fan_start,
- </if>
- <if test="fanEnd != null" >
- fan_end,
- </if>
- <if test="fanTimeTotal != null" >
- fan_time_total,
- </if>
- <if test="airTemperatureMax != null" >
- air_temperature_max,
- </if>
- <if test="airTemperatureMin != null" >
- air_temperature_min,
- </if>
- <if test="airTemperatureAvg != null" >
- air_temperature_avg,
- </if>
- <if test="temperatureFrontMax != null" >
- temperature_front_max,
- </if>
- <if test="temperatureFrontMin != null" >
- temperature_front_min,
- </if>
- <if test="temperatureFrontAvg != null" >
- temperature_front_avg,
- </if>
- <if test="temperatureAfterMax != null" >
- temperature_after_max,
- </if>
- <if test="temperatureAfterMin != null" >
- temperature_after_min,
- </if>
- <if test="temperatureAfterAvg != null" >
- temperature_after_avg,
- </if>
- <if test="waterFrontMax != null" >
- water_front_max,
- </if>
- <if test="waterFrontMin != null" >
- water_front_min,
- </if>
- <if test="waterFrontAvg != null" >
- water_front_avg,
- </if>
- <if test="waterAfterMax != null" >
- water_after_max,
- </if>
- <if test="waterAfterMin != null" >
- water_after_min,
- </if>
- <if test="waterAfterAvg != null" >
- water_after_avg,
- </if>
- <if test="temperatureWidth != null" >
- temperature_width,
- </if>
- <if test="waterWidth != null" >
- water_width,
- </if>
- <if test="totalElect != null" >
- total_elect,
- </if>
- <if test="electUnit != null" >
- elect_unit,
- </if>
- <if test="aerationBug != null" >
- aeration_bug,
- </if>
- <if test="workUser != null" >
- work_user,
- </if>
- <if test="approveUser != null" >
- approve_user,
- </if>
- <if test="remark != null" >
- remark,
- </if>
- <if test="fanRun != null" >
- fan_run,
- </if>
- <if test="houseHumidityMax != null" >
- house_humidity_max,
- </if>
- <if test="houseHumidityMin != null" >
- house_humidity_min,
- </if>
- <if test="houseHumidityAvg != null" >
- house_humidity_avg,
- </if>
- <if test="fanRunMax != null" >
- fan_run_max,
- </if>
- <if test="fanRunMin != null" >
- fan_run__min,
- </if>
- <if test="fanRunAvg != null" >
- fan_run_avg,
- </if>
- <if test="cId != null" >
- c_id,
- </if>
- <if test="cTime != null" >
- c_time,
- </if>
- <if test="uId != null" >
- u_id,
- </if>
- <if test="uTime != null" >
- u_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="houseId != null" >
- #{houseId,jdbcType=INTEGER},
- </if>
- <if test="grainId != null" >
- #{grainId,jdbcType=INTEGER},
- </if>
- <if test="type != null" >
- #{type,jdbcType=VARCHAR},
- </if>
- <if test="number != null" >
- #{number,jdbcType=INTEGER},
- </if>
- <if test="houseType != null" >
- #{houseType,jdbcType=VARCHAR},
- </if>
- <if test="keepWarm != null" >
- #{keepWarm,jdbcType=VARCHAR},
- </if>
- <if test="coolType != null" >
- #{coolType,jdbcType=VARCHAR},
- </if>
- <if test="aerationType != null" >
- #{aerationType,jdbcType=VARCHAR},
- </if>
- <if test="fanStyle != null" >
- #{fanStyle,jdbcType=VARCHAR},
- </if>
- <if test="fanPower != null" >
- #{fanPower,jdbcType=VARCHAR},
- </if>
- <if test="temperatureEnd != null" >
- #{temperatureEnd,jdbcType=VARCHAR},
- </if>
- <if test="fanNum != null" >
- #{fanNum,jdbcType=VARCHAR},
- </if>
- <if test="foodWidth != null" >
- #{foodWidth,jdbcType=VARCHAR},
- </if>
- <if test="temperatureStart != null" >
- #{temperatureStart,jdbcType=VARCHAR},
- </if>
- <if test="fanTotal != null" >
- #{fanTotal,jdbcType=VARCHAR},
- </if>
- <if test="fanUnit != null" >
- #{fanUnit,jdbcType=VARCHAR},
- </if>
- <if test="fanStart != null" >
- #{fanStart,jdbcType=VARCHAR},
- </if>
- <if test="fanEnd != null" >
- #{fanEnd,jdbcType=VARCHAR},
- </if>
- <if test="fanTimeTotal != null" >
- #{fanTimeTotal,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureMax != null" >
- #{airTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureMin != null" >
- #{airTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureAvg != null" >
- #{airTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontMax != null" >
- #{temperatureFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontMin != null" >
- #{temperatureFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontAvg != null" >
- #{temperatureFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterMax != null" >
- #{temperatureAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterMin != null" >
- #{temperatureAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterAvg != null" >
- #{temperatureAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontMax != null" >
- #{waterFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontMin != null" >
- #{waterFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontAvg != null" >
- #{waterFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMax != null" >
- #{waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMin != null" >
- #{waterAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterAvg != null" >
- #{waterAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureWidth != null" >
- #{temperatureWidth,jdbcType=VARCHAR},
- </if>
- <if test="waterWidth != null" >
- #{waterWidth,jdbcType=VARCHAR},
- </if>
- <if test="totalElect != null" >
- #{totalElect,jdbcType=VARCHAR},
- </if>
- <if test="electUnit != null" >
- #{electUnit,jdbcType=VARCHAR},
- </if>
- <if test="aerationBug != null" >
- #{aerationBug,jdbcType=VARCHAR},
- </if>
- <if test="workUser != null" >
- #{workUser,jdbcType=VARCHAR},
- </if>
- <if test="approveUser != null" >
- #{approveUser,jdbcType=VARCHAR},
- </if>
- <if test="remark != null" >
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="fanRun != null" >
- #{fanRun,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityMax != null" >
- #{houseHumidityMax,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityMin != null" >
- #{houseHumidityMin,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityAvg != null" >
- #{houseHumidityAvg,jdbcType=VARCHAR},
- </if>
- <if test="fanRunMax != null" >
- #{fanRunMax,jdbcType=VARCHAR},
- </if>
- <if test="fanRunMin != null" >
- #{fanRunMin,jdbcType=VARCHAR},
- </if>
- <if test="fanRunAvg != null" >
- #{fanRunAvg,jdbcType=VARCHAR},
- </if>
- <if test="cId != null" >
- #{cId,jdbcType=INTEGER},
- </if>
- <if test="cTime != null" >
- #{cTime,jdbcType=TIMESTAMP},
- </if>
- <if test="uId != null" >
- #{uId,jdbcType=INTEGER},
- </if>
- <if test="uTime != null" >
- #{uTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewExample" resultType="java.lang.Integer" >
- select count(*) from daily_record_conditioner_new
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update daily_record_conditioner_new
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.houseId != null" >
- house_id = #{record.houseId,jdbcType=INTEGER},
- </if>
- <if test="record.grainId != null" >
- grain_id = #{record.grainId,jdbcType=INTEGER},
- </if>
- <if test="record.type != null" >
- type = #{record.type,jdbcType=VARCHAR},
- </if>
- <if test="record.number != null" >
- number = #{record.number,jdbcType=INTEGER},
- </if>
- <if test="record.houseType != null" >
- house_type = #{record.houseType,jdbcType=VARCHAR},
- </if>
- <if test="record.keepWarm != null" >
- keep_warm = #{record.keepWarm,jdbcType=VARCHAR},
- </if>
- <if test="record.coolType != null" >
- cool_type = #{record.coolType,jdbcType=VARCHAR},
- </if>
- <if test="record.aerationType != null" >
- aeration_type = #{record.aerationType,jdbcType=VARCHAR},
- </if>
- <if test="record.fanStyle != null" >
- fan_style = #{record.fanStyle,jdbcType=VARCHAR},
- </if>
- <if test="record.fanPower != null" >
- fan_power = #{record.fanPower,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureEnd != null" >
- temperature_end = #{record.temperatureEnd,jdbcType=VARCHAR},
- </if>
- <if test="record.fanNum != null" >
- fan_num = #{record.fanNum,jdbcType=VARCHAR},
- </if>
- <if test="record.foodWidth != null" >
- food_width = #{record.foodWidth,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureStart != null" >
- temperature_start = #{record.temperatureStart,jdbcType=VARCHAR},
- </if>
- <if test="record.fanTotal != null" >
- fan_total = #{record.fanTotal,jdbcType=VARCHAR},
- </if>
- <if test="record.fanUnit != null" >
- fan_unit = #{record.fanUnit,jdbcType=VARCHAR},
- </if>
- <if test="record.fanStart != null" >
- fan_start = #{record.fanStart,jdbcType=VARCHAR},
- </if>
- <if test="record.fanEnd != null" >
- fan_end = #{record.fanEnd,jdbcType=VARCHAR},
- </if>
- <if test="record.fanTimeTotal != null" >
- fan_time_total = #{record.fanTimeTotal,jdbcType=VARCHAR},
- </if>
- <if test="record.airTemperatureMax != null" >
- air_temperature_max = #{record.airTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="record.airTemperatureMin != null" >
- air_temperature_min = #{record.airTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="record.airTemperatureAvg != null" >
- air_temperature_avg = #{record.airTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureFrontMax != null" >
- temperature_front_max = #{record.temperatureFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureFrontMin != null" >
- temperature_front_min = #{record.temperatureFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureFrontAvg != null" >
- temperature_front_avg = #{record.temperatureFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureAfterMax != null" >
- temperature_after_max = #{record.temperatureAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureAfterMin != null" >
- temperature_after_min = #{record.temperatureAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureAfterAvg != null" >
- temperature_after_avg = #{record.temperatureAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.waterFrontMax != null" >
- water_front_max = #{record.waterFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="record.waterFrontMin != null" >
- water_front_min = #{record.waterFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="record.waterFrontAvg != null" >
- water_front_avg = #{record.waterFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.waterAfterMax != null" >
- water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="record.waterAfterMin != null" >
- water_after_min = #{record.waterAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="record.waterAfterAvg != null" >
- water_after_avg = #{record.waterAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureWidth != null" >
- temperature_width = #{record.temperatureWidth,jdbcType=VARCHAR},
- </if>
- <if test="record.waterWidth != null" >
- water_width = #{record.waterWidth,jdbcType=VARCHAR},
- </if>
- <if test="record.totalElect != null" >
- total_elect = #{record.totalElect,jdbcType=VARCHAR},
- </if>
- <if test="record.electUnit != null" >
- elect_unit = #{record.electUnit,jdbcType=VARCHAR},
- </if>
- <if test="record.aerationBug != null" >
- aeration_bug = #{record.aerationBug,jdbcType=VARCHAR},
- </if>
- <if test="record.workUser != null" >
- work_user = #{record.workUser,jdbcType=VARCHAR},
- </if>
- <if test="record.approveUser != null" >
- approve_user = #{record.approveUser,jdbcType=VARCHAR},
- </if>
- <if test="record.remark != null" >
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- <if test="record.fanRun != null" >
- fan_run = #{record.fanRun,jdbcType=VARCHAR},
- </if>
- <if test="record.houseHumidityMax != null" >
- house_humidity_max = #{record.houseHumidityMax,jdbcType=VARCHAR},
- </if>
- <if test="record.houseHumidityMin != null" >
- house_humidity_min = #{record.houseHumidityMin,jdbcType=VARCHAR},
- </if>
- <if test="record.houseHumidityAvg != null" >
- house_humidity_avg = #{record.houseHumidityAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.fanRunMax != null" >
- fan_run_max = #{record.fanRunMax,jdbcType=VARCHAR},
- </if>
- <if test="record.fanRunMin != null" >
- fan_run__min = #{record.fanRunMin,jdbcType=VARCHAR},
- </if>
- <if test="record.fanRunAvg != null" >
- fan_run_avg = #{record.fanRunAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.cId != null" >
- c_id = #{record.cId,jdbcType=INTEGER},
- </if>
- <if test="record.cTime != null" >
- c_time = #{record.cTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.uId != null" >
- u_id = #{record.uId,jdbcType=INTEGER},
- </if>
- <if test="record.uTime != null" >
- u_time = #{record.uTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- update daily_record_conditioner_new
- set id = #{record.id,jdbcType=INTEGER},
- house_id = #{record.houseId,jdbcType=INTEGER},
- grain_id = #{record.grainId,jdbcType=INTEGER},
- type = #{record.type,jdbcType=VARCHAR},
- number = #{record.number,jdbcType=INTEGER},
- house_type = #{record.houseType,jdbcType=VARCHAR},
- keep_warm = #{record.keepWarm,jdbcType=VARCHAR},
- cool_type = #{record.coolType,jdbcType=VARCHAR},
- aeration_type = #{record.aerationType,jdbcType=VARCHAR},
- fan_style = #{record.fanStyle,jdbcType=VARCHAR},
- fan_power = #{record.fanPower,jdbcType=VARCHAR},
- temperature_end = #{record.temperatureEnd,jdbcType=VARCHAR},
- fan_num = #{record.fanNum,jdbcType=VARCHAR},
- food_width = #{record.foodWidth,jdbcType=VARCHAR},
- temperature_start = #{record.temperatureStart,jdbcType=VARCHAR},
- fan_total = #{record.fanTotal,jdbcType=VARCHAR},
- fan_unit = #{record.fanUnit,jdbcType=VARCHAR},
- fan_start = #{record.fanStart,jdbcType=VARCHAR},
- fan_end = #{record.fanEnd,jdbcType=VARCHAR},
- fan_time_total = #{record.fanTimeTotal,jdbcType=VARCHAR},
- air_temperature_max = #{record.airTemperatureMax,jdbcType=VARCHAR},
- air_temperature_min = #{record.airTemperatureMin,jdbcType=VARCHAR},
- air_temperature_avg = #{record.airTemperatureAvg,jdbcType=VARCHAR},
- temperature_front_max = #{record.temperatureFrontMax,jdbcType=VARCHAR},
- temperature_front_min = #{record.temperatureFrontMin,jdbcType=VARCHAR},
- temperature_front_avg = #{record.temperatureFrontAvg,jdbcType=VARCHAR},
- temperature_after_max = #{record.temperatureAfterMax,jdbcType=VARCHAR},
- temperature_after_min = #{record.temperatureAfterMin,jdbcType=VARCHAR},
- temperature_after_avg = #{record.temperatureAfterAvg,jdbcType=VARCHAR},
- water_front_max = #{record.waterFrontMax,jdbcType=VARCHAR},
- water_front_min = #{record.waterFrontMin,jdbcType=VARCHAR},
- water_front_avg = #{record.waterFrontAvg,jdbcType=VARCHAR},
- water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
- water_after_min = #{record.waterAfterMin,jdbcType=VARCHAR},
- water_after_avg = #{record.waterAfterAvg,jdbcType=VARCHAR},
- temperature_width = #{record.temperatureWidth,jdbcType=VARCHAR},
- water_width = #{record.waterWidth,jdbcType=VARCHAR},
- total_elect = #{record.totalElect,jdbcType=VARCHAR},
- elect_unit = #{record.electUnit,jdbcType=VARCHAR},
- aeration_bug = #{record.aerationBug,jdbcType=VARCHAR},
- work_user = #{record.workUser,jdbcType=VARCHAR},
- approve_user = #{record.approveUser,jdbcType=VARCHAR},
- remark = #{record.remark,jdbcType=VARCHAR},
- fan_run = #{record.fanRun,jdbcType=VARCHAR},
- house_humidity_max = #{record.houseHumidityMax,jdbcType=VARCHAR},
- house_humidity_min = #{record.houseHumidityMin,jdbcType=VARCHAR},
- house_humidity_avg = #{record.houseHumidityAvg,jdbcType=VARCHAR},
- fan_run_max = #{record.fanRunMax,jdbcType=VARCHAR},
- fan_run__min = #{record.fanRunMin,jdbcType=VARCHAR},
- fan_run_avg = #{record.fanRunAvg,jdbcType=VARCHAR},
- c_id = #{record.cId,jdbcType=INTEGER},
- c_time = #{record.cTime,jdbcType=TIMESTAMP},
- u_id = #{record.uId,jdbcType=INTEGER},
- u_time = #{record.uTime,jdbcType=TIMESTAMP}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNew" >
- update daily_record_conditioner_new
- <set >
- <if test="houseId != null" >
- house_id = #{houseId,jdbcType=INTEGER},
- </if>
- <if test="grainId != null" >
- grain_id = #{grainId,jdbcType=INTEGER},
- </if>
- <if test="type != null" >
- type = #{type,jdbcType=VARCHAR},
- </if>
- <if test="number != null" >
- number = #{number,jdbcType=INTEGER},
- </if>
- <if test="houseType != null" >
- house_type = #{houseType,jdbcType=VARCHAR},
- </if>
- <if test="keepWarm != null" >
- keep_warm = #{keepWarm,jdbcType=VARCHAR},
- </if>
- <if test="coolType != null" >
- cool_type = #{coolType,jdbcType=VARCHAR},
- </if>
- <if test="aerationType != null" >
- aeration_type = #{aerationType,jdbcType=VARCHAR},
- </if>
- <if test="fanStyle != null" >
- fan_style = #{fanStyle,jdbcType=VARCHAR},
- </if>
- <if test="fanPower != null" >
- fan_power = #{fanPower,jdbcType=VARCHAR},
- </if>
- <if test="temperatureEnd != null" >
- temperature_end = #{temperatureEnd,jdbcType=VARCHAR},
- </if>
- <if test="fanNum != null" >
- fan_num = #{fanNum,jdbcType=VARCHAR},
- </if>
- <if test="foodWidth != null" >
- food_width = #{foodWidth,jdbcType=VARCHAR},
- </if>
- <if test="temperatureStart != null" >
- temperature_start = #{temperatureStart,jdbcType=VARCHAR},
- </if>
- <if test="fanTotal != null" >
- fan_total = #{fanTotal,jdbcType=VARCHAR},
- </if>
- <if test="fanUnit != null" >
- fan_unit = #{fanUnit,jdbcType=VARCHAR},
- </if>
- <if test="fanStart != null" >
- fan_start = #{fanStart,jdbcType=VARCHAR},
- </if>
- <if test="fanEnd != null" >
- fan_end = #{fanEnd,jdbcType=VARCHAR},
- </if>
- <if test="fanTimeTotal != null" >
- fan_time_total = #{fanTimeTotal,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureMax != null" >
- air_temperature_max = #{airTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureMin != null" >
- air_temperature_min = #{airTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="airTemperatureAvg != null" >
- air_temperature_avg = #{airTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontMax != null" >
- temperature_front_max = #{temperatureFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontMin != null" >
- temperature_front_min = #{temperatureFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="temperatureFrontAvg != null" >
- temperature_front_avg = #{temperatureFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterMax != null" >
- temperature_after_max = #{temperatureAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterMin != null" >
- temperature_after_min = #{temperatureAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="temperatureAfterAvg != null" >
- temperature_after_avg = #{temperatureAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontMax != null" >
- water_front_max = #{waterFrontMax,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontMin != null" >
- water_front_min = #{waterFrontMin,jdbcType=VARCHAR},
- </if>
- <if test="waterFrontAvg != null" >
- water_front_avg = #{waterFrontAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMax != null" >
- water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMin != null" >
- water_after_min = #{waterAfterMin,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterAvg != null" >
- water_after_avg = #{waterAfterAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureWidth != null" >
- temperature_width = #{temperatureWidth,jdbcType=VARCHAR},
- </if>
- <if test="waterWidth != null" >
- water_width = #{waterWidth,jdbcType=VARCHAR},
- </if>
- <if test="totalElect != null" >
- total_elect = #{totalElect,jdbcType=VARCHAR},
- </if>
- <if test="electUnit != null" >
- elect_unit = #{electUnit,jdbcType=VARCHAR},
- </if>
- <if test="aerationBug != null" >
- aeration_bug = #{aerationBug,jdbcType=VARCHAR},
- </if>
- <if test="workUser != null" >
- work_user = #{workUser,jdbcType=VARCHAR},
- </if>
- <if test="approveUser != null" >
- approve_user = #{approveUser,jdbcType=VARCHAR},
- </if>
- <if test="remark != null" >
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="fanRun != null" >
- fan_run = #{fanRun,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityMax != null" >
- house_humidity_max = #{houseHumidityMax,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityMin != null" >
- house_humidity_min = #{houseHumidityMin,jdbcType=VARCHAR},
- </if>
- <if test="houseHumidityAvg != null" >
- house_humidity_avg = #{houseHumidityAvg,jdbcType=VARCHAR},
- </if>
- <if test="fanRunMax != null" >
- fan_run_max = #{fanRunMax,jdbcType=VARCHAR},
- </if>
- <if test="fanRunMin != null" >
- fan_run__min = #{fanRunMin,jdbcType=VARCHAR},
- </if>
- <if test="fanRunAvg != null" >
- fan_run_avg = #{fanRunAvg,jdbcType=VARCHAR},
- </if>
- <if test="cId != null" >
- c_id = #{cId,jdbcType=INTEGER},
- </if>
- <if test="cTime != null" >
- c_time = #{cTime,jdbcType=TIMESTAMP},
- </if>
- <if test="uId != null" >
- u_id = #{uId,jdbcType=INTEGER},
- </if>
- <if test="uTime != null" >
- u_time = #{uTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNew" >
- update daily_record_conditioner_new
- set house_id = #{houseId,jdbcType=INTEGER},
- grain_id = #{grainId,jdbcType=INTEGER},
- type = #{type,jdbcType=VARCHAR},
- number = #{number,jdbcType=INTEGER},
- house_type = #{houseType,jdbcType=VARCHAR},
- keep_warm = #{keepWarm,jdbcType=VARCHAR},
- cool_type = #{coolType,jdbcType=VARCHAR},
- aeration_type = #{aerationType,jdbcType=VARCHAR},
- fan_style = #{fanStyle,jdbcType=VARCHAR},
- fan_power = #{fanPower,jdbcType=VARCHAR},
- temperature_end = #{temperatureEnd,jdbcType=VARCHAR},
- fan_num = #{fanNum,jdbcType=VARCHAR},
- food_width = #{foodWidth,jdbcType=VARCHAR},
- temperature_start = #{temperatureStart,jdbcType=VARCHAR},
- fan_total = #{fanTotal,jdbcType=VARCHAR},
- fan_unit = #{fanUnit,jdbcType=VARCHAR},
- fan_start = #{fanStart,jdbcType=VARCHAR},
- fan_end = #{fanEnd,jdbcType=VARCHAR},
- fan_time_total = #{fanTimeTotal,jdbcType=VARCHAR},
- air_temperature_max = #{airTemperatureMax,jdbcType=VARCHAR},
- air_temperature_min = #{airTemperatureMin,jdbcType=VARCHAR},
- air_temperature_avg = #{airTemperatureAvg,jdbcType=VARCHAR},
- temperature_front_max = #{temperatureFrontMax,jdbcType=VARCHAR},
- temperature_front_min = #{temperatureFrontMin,jdbcType=VARCHAR},
- temperature_front_avg = #{temperatureFrontAvg,jdbcType=VARCHAR},
- temperature_after_max = #{temperatureAfterMax,jdbcType=VARCHAR},
- temperature_after_min = #{temperatureAfterMin,jdbcType=VARCHAR},
- temperature_after_avg = #{temperatureAfterAvg,jdbcType=VARCHAR},
- water_front_max = #{waterFrontMax,jdbcType=VARCHAR},
- water_front_min = #{waterFrontMin,jdbcType=VARCHAR},
- water_front_avg = #{waterFrontAvg,jdbcType=VARCHAR},
- water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
- water_after_min = #{waterAfterMin,jdbcType=VARCHAR},
- water_after_avg = #{waterAfterAvg,jdbcType=VARCHAR},
- temperature_width = #{temperatureWidth,jdbcType=VARCHAR},
- water_width = #{waterWidth,jdbcType=VARCHAR},
- total_elect = #{totalElect,jdbcType=VARCHAR},
- elect_unit = #{electUnit,jdbcType=VARCHAR},
- aeration_bug = #{aerationBug,jdbcType=VARCHAR},
- work_user = #{workUser,jdbcType=VARCHAR},
- approve_user = #{approveUser,jdbcType=VARCHAR},
- remark = #{remark,jdbcType=VARCHAR},
- fan_run = #{fanRun,jdbcType=VARCHAR},
- house_humidity_max = #{houseHumidityMax,jdbcType=VARCHAR},
- house_humidity_min = #{houseHumidityMin,jdbcType=VARCHAR},
- house_humidity_avg = #{houseHumidityAvg,jdbcType=VARCHAR},
- fan_run_max = #{fanRunMax,jdbcType=VARCHAR},
- fan_run__min = #{fanRunMin,jdbcType=VARCHAR},
- fan_run_avg = #{fanRunAvg,jdbcType=VARCHAR},
- c_id = #{cId,jdbcType=INTEGER},
- c_time = #{cTime,jdbcType=TIMESTAMP},
- u_id = #{uId,jdbcType=INTEGER},
- u_time = #{uTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|