12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004 |
- <?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.DailyRecordConditionerNewFileMapper" >
- <resultMap id="BaseResultMap" type="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewFile" >
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="file_uuid" property="fileUuid" 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, file_uuid,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.DailyRecordConditionerNewFileExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from daily_record_conditioner_new_file
- <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_file
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from daily_record_conditioner_new_file
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewFileExample" >
- delete from daily_record_conditioner_new_file
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordConditionerNewFile" >
- insert into daily_record_conditioner_new_file (id,file_uuid, 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}, #{fileUuid,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.DailyRecordConditionerNewFile" >
- insert into daily_record_conditioner_new_file
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="fileUuid != null" >
- file_uuid,
- </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="file_uuid != null" >
- #{fileUuid,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.DailyRecordConditionerNewFileExample" resultType="java.lang.Integer" >
- select count(*) from daily_record_conditioner_new_file
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update daily_record_conditioner_new_file
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.fileUuid != null" >
- id = #{record.fileUuid,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_file
- set id = #{record.id,jdbcType=INTEGER},
- file_uuid = #{record.fileUuid,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.DailyRecordConditionerNewFile" >
- update daily_record_conditioner_new_file
- <set >
- <if test="houseId != null" >
- file_uuid = #{fileUuid,jdbcType=INTEGER},
- </if>
- <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.DailyRecordConditionerNewFile" >
- update daily_record_conditioner_new_file
- set house_id = #{houseId,jdbcType=INTEGER},
- file_uuid = #{fileUuid,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>
|