123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675 |
- <?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.DailyRecordGlandNewFileMapper" >
- <resultMap id="BaseResultMap" type="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewFile" >
- <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="material" property="material" jdbcType="VARCHAR" />
- <result column="gland_type" property="glandType" jdbcType="VARCHAR" />
- <result column="gland_start" property="glandStart" jdbcType="VARCHAR" />
- <result column="gland_end" property="glandEnd" jdbcType="VARCHAR" />
- <result column="gland_time_total" property="glandTimeTotal" 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="house_temperature_max" property="houseTemperatureMax" jdbcType="VARCHAR" />
- <result column="house_temperature_min" property="houseTemperatureMin" jdbcType="VARCHAR" />
- <result column="house_temperature_avg" property="houseTemperatureAvg" jdbcType="VARCHAR" />
- <result column="temperature_gland_front" property="temperatureGlandFront" jdbcType="VARCHAR" />
- <result column="temperature_gland_after" property="temperatureGlandAfter" jdbcType="VARCHAR" />
- <result column="house_water_max" property="houseWaterMax" jdbcType="VARCHAR" />
- <result column="house_water_min" property="houseWaterMin" jdbcType="VARCHAR" />
- <result column="house_water_avg" property="houseWaterAvg" jdbcType="VARCHAR" />
- <result column="water_after_max" property="waterAfterMax" jdbcType="VARCHAR" />
- <result column="water_gland_front" property="waterGlandFront" jdbcType="VARCHAR" />
- <result column="water_gland_after" property="waterGlandAfter" jdbcType="VARCHAR" />
- <result column="gland_bug" property="glandBug" jdbcType="VARCHAR" />
- <result column="work_user" property="workUser" jdbcType="VARCHAR" />
- <result column="approve_user" property="approveUser" jdbcType="VARCHAR" />
- <result column="uuid" property="uuid" 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" />
- <result column="remark" property="remark" 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, file_uuid,house_id, grain_id, type, number, house_type, keep_warm, material, gland_type,
- gland_start, gland_end, gland_time_total, air_temperature_max, air_temperature_min,
- air_temperature_avg, house_temperature_max, house_temperature_min, house_temperature_avg,
- temperature_gland_front, temperature_gland_after, house_water_max, house_water_min,
- house_water_avg, water_after_max, water_gland_front, water_gland_after, gland_bug,
- work_user, approve_user, c_id, c_time, u_id, u_time, remark
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from daily_record_gland_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_gland_new_file
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from daily_record_gland_new_file
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewExample" >
- delete from daily_record_gland_new_file
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewFile" >
- insert into daily_record_gland_new_file (id,file_uuid, house_id, grain_id,
- type, number, house_type,
- keep_warm, material, gland_type,
- gland_start, gland_end, gland_time_total,
- air_temperature_max, air_temperature_min, air_temperature_avg,
- house_temperature_max, house_temperature_min,
- house_temperature_avg, temperature_gland_front,
- temperature_gland_after, house_water_max, house_water_min,
- house_water_avg, water_after_max, water_gland_front,
- water_gland_after, gland_bug, work_user,
- approve_user, c_id, c_time,
- u_id, u_time, remark
- )
- 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}, #{material,jdbcType=VARCHAR}, #{glandType,jdbcType=VARCHAR},
- #{glandStart,jdbcType=VARCHAR}, #{glandEnd,jdbcType=VARCHAR}, #{glandTimeTotal,jdbcType=VARCHAR},
- #{airTemperatureMax,jdbcType=VARCHAR}, #{airTemperatureMin,jdbcType=VARCHAR}, #{airTemperatureAvg,jdbcType=VARCHAR},
- #{houseTemperatureMax,jdbcType=VARCHAR}, #{houseTemperatureMin,jdbcType=VARCHAR},
- #{houseTemperatureAvg,jdbcType=VARCHAR}, #{temperatureGlandFront,jdbcType=VARCHAR},
- #{temperatureGlandAfter,jdbcType=VARCHAR}, #{houseWaterMax,jdbcType=VARCHAR}, #{houseWaterMin,jdbcType=VARCHAR},
- #{houseWaterAvg,jdbcType=VARCHAR}, #{waterAfterMax,jdbcType=VARCHAR}, #{waterGlandFront,jdbcType=VARCHAR},
- #{waterGlandAfter,jdbcType=VARCHAR}, #{glandBug,jdbcType=VARCHAR}, #{workUser,jdbcType=VARCHAR},
- #{approveUser,jdbcType=VARCHAR}, #{cId,jdbcType=INTEGER}, #{cTime,jdbcType=TIMESTAMP},
- #{uId,jdbcType=INTEGER}, #{uTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewFile" >
- insert into daily_record_gland_new_file
- <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="material != null" >
- material,
- </if>
- <if test="glandType != null" >
- gland_type,
- </if>
- <if test="glandStart != null" >
- gland_start,
- </if>
- <if test="glandEnd != null" >
- gland_end,
- </if>
- <if test="glandTimeTotal != null" >
- gland_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="houseTemperatureMax != null" >
- house_temperature_max,
- </if>
- <if test="houseTemperatureMin != null" >
- house_temperature_min,
- </if>
- <if test="houseTemperatureAvg != null" >
- house_temperature_avg,
- </if>
- <if test="temperatureGlandFront != null" >
- temperature_gland_front,
- </if>
- <if test="temperatureGlandAfter != null" >
- temperature_gland_after,
- </if>
- <if test="houseWaterMax != null" >
- house_water_max,
- </if>
- <if test="houseWaterMin != null" >
- house_water_min,
- </if>
- <if test="houseWaterAvg != null" >
- house_water_avg,
- </if>
- <if test="waterAfterMax != null" >
- water_after_max,
- </if>
- <if test="waterGlandFront != null" >
- water_gland_front,
- </if>
- <if test="waterGlandAfter != null" >
- water_gland_after,
- </if>
- <if test="glandBug != null" >
- gland_bug,
- </if>
- <if test="workUser != null" >
- work_user,
- </if>
- <if test="approveUser != null" >
- approve_user,
- </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>
- <if test="remark != null" >
- remark,
- </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="material != null" >
- #{material,jdbcType=VARCHAR},
- </if>
- <if test="glandType != null" >
- #{glandType,jdbcType=VARCHAR},
- </if>
- <if test="glandStart != null" >
- #{glandStart,jdbcType=VARCHAR},
- </if>
- <if test="glandEnd != null" >
- #{glandEnd,jdbcType=VARCHAR},
- </if>
- <if test="glandTimeTotal != null" >
- #{glandTimeTotal,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="houseTemperatureMax != null" >
- #{houseTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="houseTemperatureMin != null" >
- #{houseTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="houseTemperatureAvg != null" >
- #{houseTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureGlandFront != null" >
- #{temperatureGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="temperatureGlandAfter != null" >
- #{temperatureGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterMax != null" >
- #{houseWaterMax,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterMin != null" >
- #{houseWaterMin,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterAvg != null" >
- #{houseWaterAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMax != null" >
- #{waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="waterGlandFront != null" >
- #{waterGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="waterGlandAfter != null" >
- #{waterGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="glandBug != null" >
- #{glandBug,jdbcType=VARCHAR},
- </if>
- <if test="workUser != null" >
- #{workUser,jdbcType=VARCHAR},
- </if>
- <if test="approveUser != null" >
- #{approveUser,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>
- <if test="remark != null" >
- #{remark,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewExample" resultType="java.lang.Integer" >
- select count(*) from daily_record_gland_new_file
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update daily_record_gland_new_file
- <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.material != null" >
- material = #{record.material,jdbcType=VARCHAR},
- </if>
- <if test="record.glandType != null" >
- gland_type = #{record.glandType,jdbcType=VARCHAR},
- </if>
- <if test="record.glandStart != null" >
- gland_start = #{record.glandStart,jdbcType=VARCHAR},
- </if>
- <if test="record.glandEnd != null" >
- gland_end = #{record.glandEnd,jdbcType=VARCHAR},
- </if>
- <if test="record.glandTimeTotal != null" >
- gland_time_total = #{record.glandTimeTotal,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.houseTemperatureMax != null" >
- house_temperature_max = #{record.houseTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="record.houseTemperatureMin != null" >
- house_temperature_min = #{record.houseTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="record.houseTemperatureAvg != null" >
- house_temperature_avg = #{record.houseTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureGlandFront != null" >
- temperature_gland_front = #{record.temperatureGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="record.temperatureGlandAfter != null" >
- temperature_gland_after = #{record.temperatureGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="record.houseWaterMax != null" >
- house_water_max = #{record.houseWaterMax,jdbcType=VARCHAR},
- </if>
- <if test="record.houseWaterMin != null" >
- house_water_min = #{record.houseWaterMin,jdbcType=VARCHAR},
- </if>
- <if test="record.houseWaterAvg != null" >
- house_water_avg = #{record.houseWaterAvg,jdbcType=VARCHAR},
- </if>
- <if test="record.waterAfterMax != null" >
- water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="record.waterGlandFront != null" >
- water_gland_front = #{record.waterGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="record.waterGlandAfter != null" >
- water_gland_after = #{record.waterGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="record.glandBug != null" >
- gland_bug = #{record.glandBug,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.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>
- <if test="record.remark != null" >
- remark = #{record.remark,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- update daily_record_gland_new_file
- 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},
- material = #{record.material,jdbcType=VARCHAR},
- gland_type = #{record.glandType,jdbcType=VARCHAR},
- gland_start = #{record.glandStart,jdbcType=VARCHAR},
- gland_end = #{record.glandEnd,jdbcType=VARCHAR},
- gland_time_total = #{record.glandTimeTotal,jdbcType=VARCHAR},
- air_temperature_max = #{record.airTemperatureMax,jdbcType=VARCHAR},
- air_temperature_min = #{record.airTemperatureMin,jdbcType=VARCHAR},
- air_temperature_avg = #{record.airTemperatureAvg,jdbcType=VARCHAR},
- house_temperature_max = #{record.houseTemperatureMax,jdbcType=VARCHAR},
- house_temperature_min = #{record.houseTemperatureMin,jdbcType=VARCHAR},
- house_temperature_avg = #{record.houseTemperatureAvg,jdbcType=VARCHAR},
- temperature_gland_front = #{record.temperatureGlandFront,jdbcType=VARCHAR},
- temperature_gland_after = #{record.temperatureGlandAfter,jdbcType=VARCHAR},
- house_water_max = #{record.houseWaterMax,jdbcType=VARCHAR},
- house_water_min = #{record.houseWaterMin,jdbcType=VARCHAR},
- house_water_avg = #{record.houseWaterAvg,jdbcType=VARCHAR},
- water_after_max = #{record.waterAfterMax,jdbcType=VARCHAR},
- water_gland_front = #{record.waterGlandFront,jdbcType=VARCHAR},
- water_gland_after = #{record.waterGlandAfter,jdbcType=VARCHAR},
- gland_bug = #{record.glandBug,jdbcType=VARCHAR},
- work_user = #{record.workUser,jdbcType=VARCHAR},
- approve_user = #{record.approveUser,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},
- remark = #{record.remark,jdbcType=VARCHAR}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewFile" >
- update daily_record_gland_new_file
- <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="material != null" >
- material = #{material,jdbcType=VARCHAR},
- </if>
- <if test="glandType != null" >
- gland_type = #{glandType,jdbcType=VARCHAR},
- </if>
- <if test="glandStart != null" >
- gland_start = #{glandStart,jdbcType=VARCHAR},
- </if>
- <if test="glandEnd != null" >
- gland_end = #{glandEnd,jdbcType=VARCHAR},
- </if>
- <if test="glandTimeTotal != null" >
- gland_time_total = #{glandTimeTotal,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="houseTemperatureMax != null" >
- house_temperature_max = #{houseTemperatureMax,jdbcType=VARCHAR},
- </if>
- <if test="houseTemperatureMin != null" >
- house_temperature_min = #{houseTemperatureMin,jdbcType=VARCHAR},
- </if>
- <if test="houseTemperatureAvg != null" >
- house_temperature_avg = #{houseTemperatureAvg,jdbcType=VARCHAR},
- </if>
- <if test="temperatureGlandFront != null" >
- temperature_gland_front = #{temperatureGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="temperatureGlandAfter != null" >
- temperature_gland_after = #{temperatureGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterMax != null" >
- house_water_max = #{houseWaterMax,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterMin != null" >
- house_water_min = #{houseWaterMin,jdbcType=VARCHAR},
- </if>
- <if test="houseWaterAvg != null" >
- house_water_avg = #{houseWaterAvg,jdbcType=VARCHAR},
- </if>
- <if test="waterAfterMax != null" >
- water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
- </if>
- <if test="waterGlandFront != null" >
- water_gland_front = #{waterGlandFront,jdbcType=VARCHAR},
- </if>
- <if test="waterGlandAfter != null" >
- water_gland_after = #{waterGlandAfter,jdbcType=VARCHAR},
- </if>
- <if test="glandBug != null" >
- gland_bug = #{glandBug,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="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>
- <if test="remark != null" >
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordGlandNewFile" >
- update daily_record_gland_new_file
- 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},
- material = #{material,jdbcType=VARCHAR},
- gland_type = #{glandType,jdbcType=VARCHAR},
- gland_start = #{glandStart,jdbcType=VARCHAR},
- gland_end = #{glandEnd,jdbcType=VARCHAR},
- gland_time_total = #{glandTimeTotal,jdbcType=VARCHAR},
- air_temperature_max = #{airTemperatureMax,jdbcType=VARCHAR},
- air_temperature_min = #{airTemperatureMin,jdbcType=VARCHAR},
- air_temperature_avg = #{airTemperatureAvg,jdbcType=VARCHAR},
- house_temperature_max = #{houseTemperatureMax,jdbcType=VARCHAR},
- house_temperature_min = #{houseTemperatureMin,jdbcType=VARCHAR},
- house_temperature_avg = #{houseTemperatureAvg,jdbcType=VARCHAR},
- temperature_gland_front = #{temperatureGlandFront,jdbcType=VARCHAR},
- temperature_gland_after = #{temperatureGlandAfter,jdbcType=VARCHAR},
- house_water_max = #{houseWaterMax,jdbcType=VARCHAR},
- house_water_min = #{houseWaterMin,jdbcType=VARCHAR},
- house_water_avg = #{houseWaterAvg,jdbcType=VARCHAR},
- water_after_max = #{waterAfterMax,jdbcType=VARCHAR},
- water_gland_front = #{waterGlandFront,jdbcType=VARCHAR},
- water_gland_after = #{waterGlandAfter,jdbcType=VARCHAR},
- gland_bug = #{glandBug,jdbcType=VARCHAR},
- work_user = #{workUser,jdbcType=VARCHAR},
- approve_user = #{approveUser,jdbcType=VARCHAR},
- c_id = #{cId,jdbcType=INTEGER},
- c_time = #{cTime,jdbcType=TIMESTAMP},
- u_id = #{uId,jdbcType=INTEGER},
- u_time = #{uTime,jdbcType=TIMESTAMP},
- remark = #{remark,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|