123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.chinaitop.depot.intelligent.fumigation.mapper.TFumigationAfterMapper" >
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfter" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="house_id" property="houseId" jdbcType="INTEGER" />
- <result column="fumigation_id" property="fumigationId" jdbcType="VARCHAR" />
- <result column="sampling_culture_temperature" property="samplingCultureTemperature" jdbcType="VARCHAR" />
- <result column="sampling_culture_humidity" property="samplingCultureHumidity" jdbcType="VARCHAR" />
- <result column="sampling_culture_month_survival" property="samplingCultureMonthSurvival" jdbcType="INTEGER" />
- <result column="kill_insect_rate" property="killInsectRate" jdbcType="VARCHAR" />
- <result column="check_insect_cage_time" property="checkInsectCageTime" jdbcType="TIMESTAMP" />
- <result column="insect_cage_kill_rate" property="insectCageKillRate" jdbcType="VARCHAR" />
- <result column="effect_analysis" property="effectAnalysis" jdbcType="VARCHAR" />
- <result column="creater" property="creater" jdbcType="INTEGER" />
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
- <result column="org_id" property="orgId" jdbcType="INTEGER" />
- <result column="czsjzysj" property="czsjzysj" jdbcType="TIMESTAMP" />
- <result column="czsjzyrs" property="czsjzyrs" jdbcType="INTEGER" />
- <result column="czsjff" property="czsjff" jdbcType="VARCHAR" />
- <result column="czsjzypzr" property="czsjzypzr" jdbcType="VARCHAR" />
- <result column="czclcs" property="czclcs" jdbcType="VARCHAR" />
- <result column="czclzyrs" property="czclzyrs" jdbcType="INTEGER" />
- <result column="czclpzr" property="czclpzr" jdbcType="VARCHAR" />
- <result column="xzhhcjcqk" property="xzhhcjcqk" jdbcType="VARCHAR" />
- <result column="xzhckmd" property="xzhckmd" jdbcType="INTEGER" />
- <result column="pyswthhcs" property="pyswthhcs" jdbcType="INTEGER" />
- <result column="pysswthhcs" property="pysswthhcs" jdbcType="INTEGER" />
- <result column="xzxgpj" property="xzxgpj" jdbcType="VARCHAR" />
- <result column="delete_state" property="deleteState" jdbcType="VARCHAR" />
- <result column="updatetime" property="updatetime" 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, fumigation_id, sampling_culture_temperature, sampling_culture_humidity,
- sampling_culture_month_survival, kill_insect_rate, check_insect_cage_time, insect_cage_kill_rate,
- effect_analysis, creater, create_time, update_time, org_id, czsjzysj, czsjzyrs, czsjff,
- czsjzypzr, czclcs, czclzyrs, czclpzr, xzhhcjcqk, xzhckmd, pyswthhcs, pysswthhcs,
- xzxgpj, delete_state, updatetime
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfterExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from t_fumigation_after
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null" >
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from t_fumigation_after
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from t_fumigation_after
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfterExample" >
- delete from t_fumigation_after
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfter" >
- insert into t_fumigation_after (id, house_id, fumigation_id,
- sampling_culture_temperature, sampling_culture_humidity,
- sampling_culture_month_survival, kill_insect_rate,
- check_insect_cage_time, insect_cage_kill_rate,
- effect_analysis, creater, create_time,
- update_time, org_id, czsjzysj,
- czsjzyrs, czsjff, czsjzypzr,
- czclcs, czclzyrs, czclpzr,
- xzhhcjcqk, xzhckmd, pyswthhcs,
- pysswthhcs, xzxgpj, delete_state,
- updatetime)
- values (#{id,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, #{fumigationId,jdbcType=VARCHAR},
- #{samplingCultureTemperature,jdbcType=VARCHAR}, #{samplingCultureHumidity,jdbcType=VARCHAR},
- #{samplingCultureMonthSurvival,jdbcType=INTEGER}, #{killInsectRate,jdbcType=VARCHAR},
- #{checkInsectCageTime,jdbcType=TIMESTAMP}, #{insectCageKillRate,jdbcType=VARCHAR},
- #{effectAnalysis,jdbcType=VARCHAR}, #{creater,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
- #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{czsjzysj,jdbcType=TIMESTAMP},
- #{czsjzyrs,jdbcType=INTEGER}, #{czsjff,jdbcType=VARCHAR}, #{czsjzypzr,jdbcType=VARCHAR},
- #{czclcs,jdbcType=VARCHAR}, #{czclzyrs,jdbcType=INTEGER}, #{czclpzr,jdbcType=VARCHAR},
- #{xzhhcjcqk,jdbcType=VARCHAR}, #{xzhckmd,jdbcType=INTEGER}, #{pyswthhcs,jdbcType=INTEGER},
- #{pysswthhcs,jdbcType=INTEGER}, #{xzxgpj,jdbcType=VARCHAR}, #{deleteState,jdbcType=VARCHAR},
- #{updatetime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfter" >
- insert into t_fumigation_after
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="houseId != null" >
- house_id,
- </if>
- <if test="fumigationId != null" >
- fumigation_id,
- </if>
- <if test="samplingCultureTemperature != null" >
- sampling_culture_temperature,
- </if>
- <if test="samplingCultureHumidity != null" >
- sampling_culture_humidity,
- </if>
- <if test="samplingCultureMonthSurvival != null" >
- sampling_culture_month_survival,
- </if>
- <if test="killInsectRate != null" >
- kill_insect_rate,
- </if>
- <if test="checkInsectCageTime != null" >
- check_insect_cage_time,
- </if>
- <if test="insectCageKillRate != null" >
- insect_cage_kill_rate,
- </if>
- <if test="effectAnalysis != null" >
- effect_analysis,
- </if>
- <if test="creater != null" >
- creater,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="updateTime != null" >
- update_time,
- </if>
- <if test="orgId != null" >
- org_id,
- </if>
- <if test="czsjzysj != null" >
- czsjzysj,
- </if>
- <if test="czsjzyrs != null" >
- czsjzyrs,
- </if>
- <if test="czsjff != null" >
- czsjff,
- </if>
- <if test="czsjzypzr != null" >
- czsjzypzr,
- </if>
- <if test="czclcs != null" >
- czclcs,
- </if>
- <if test="czclzyrs != null" >
- czclzyrs,
- </if>
- <if test="czclpzr != null" >
- czclpzr,
- </if>
- <if test="xzhhcjcqk != null" >
- xzhhcjcqk,
- </if>
- <if test="xzhckmd != null" >
- xzhckmd,
- </if>
- <if test="pyswthhcs != null" >
- pyswthhcs,
- </if>
- <if test="pysswthhcs != null" >
- pysswthhcs,
- </if>
- <if test="xzxgpj != null" >
- xzxgpj,
- </if>
- <if test="deleteState != null" >
- delete_state,
- </if>
- <if test="updatetime != null" >
- updatetime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="houseId != null" >
- #{houseId,jdbcType=INTEGER},
- </if>
- <if test="fumigationId != null" >
- #{fumigationId,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureTemperature != null" >
- #{samplingCultureTemperature,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureHumidity != null" >
- #{samplingCultureHumidity,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureMonthSurvival != null" >
- #{samplingCultureMonthSurvival,jdbcType=INTEGER},
- </if>
- <if test="killInsectRate != null" >
- #{killInsectRate,jdbcType=VARCHAR},
- </if>
- <if test="checkInsectCageTime != null" >
- #{checkInsectCageTime,jdbcType=TIMESTAMP},
- </if>
- <if test="insectCageKillRate != null" >
- #{insectCageKillRate,jdbcType=VARCHAR},
- </if>
- <if test="effectAnalysis != null" >
- #{effectAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="creater != null" >
- #{creater,jdbcType=INTEGER},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateTime != null" >
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="orgId != null" >
- #{orgId,jdbcType=INTEGER},
- </if>
- <if test="czsjzysj != null" >
- #{czsjzysj,jdbcType=TIMESTAMP},
- </if>
- <if test="czsjzyrs != null" >
- #{czsjzyrs,jdbcType=INTEGER},
- </if>
- <if test="czsjff != null" >
- #{czsjff,jdbcType=VARCHAR},
- </if>
- <if test="czsjzypzr != null" >
- #{czsjzypzr,jdbcType=VARCHAR},
- </if>
- <if test="czclcs != null" >
- #{czclcs,jdbcType=VARCHAR},
- </if>
- <if test="czclzyrs != null" >
- #{czclzyrs,jdbcType=INTEGER},
- </if>
- <if test="czclpzr != null" >
- #{czclpzr,jdbcType=VARCHAR},
- </if>
- <if test="xzhhcjcqk != null" >
- #{xzhhcjcqk,jdbcType=VARCHAR},
- </if>
- <if test="xzhckmd != null" >
- #{xzhckmd,jdbcType=INTEGER},
- </if>
- <if test="pyswthhcs != null" >
- #{pyswthhcs,jdbcType=INTEGER},
- </if>
- <if test="pysswthhcs != null" >
- #{pysswthhcs,jdbcType=INTEGER},
- </if>
- <if test="xzxgpj != null" >
- #{xzxgpj,jdbcType=VARCHAR},
- </if>
- <if test="deleteState != null" >
- #{deleteState,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- #{updatetime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfterExample" resultType="java.lang.Integer" >
- select count(*) from t_fumigation_after
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update t_fumigation_after
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=VARCHAR},
- </if>
- <if test="record.houseId != null" >
- house_id = #{record.houseId,jdbcType=INTEGER},
- </if>
- <if test="record.fumigationId != null" >
- fumigation_id = #{record.fumigationId,jdbcType=VARCHAR},
- </if>
- <if test="record.samplingCultureTemperature != null" >
- sampling_culture_temperature = #{record.samplingCultureTemperature,jdbcType=VARCHAR},
- </if>
- <if test="record.samplingCultureHumidity != null" >
- sampling_culture_humidity = #{record.samplingCultureHumidity,jdbcType=VARCHAR},
- </if>
- <if test="record.samplingCultureMonthSurvival != null" >
- sampling_culture_month_survival = #{record.samplingCultureMonthSurvival,jdbcType=INTEGER},
- </if>
- <if test="record.killInsectRate != null" >
- kill_insect_rate = #{record.killInsectRate,jdbcType=VARCHAR},
- </if>
- <if test="record.checkInsectCageTime != null" >
- check_insect_cage_time = #{record.checkInsectCageTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.insectCageKillRate != null" >
- insect_cage_kill_rate = #{record.insectCageKillRate,jdbcType=VARCHAR},
- </if>
- <if test="record.effectAnalysis != null" >
- effect_analysis = #{record.effectAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="record.creater != null" >
- creater = #{record.creater,jdbcType=INTEGER},
- </if>
- <if test="record.createTime != null" >
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.updateTime != null" >
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.orgId != null" >
- org_id = #{record.orgId,jdbcType=INTEGER},
- </if>
- <if test="record.czsjzysj != null" >
- czsjzysj = #{record.czsjzysj,jdbcType=TIMESTAMP},
- </if>
- <if test="record.czsjzyrs != null" >
- czsjzyrs = #{record.czsjzyrs,jdbcType=INTEGER},
- </if>
- <if test="record.czsjff != null" >
- czsjff = #{record.czsjff,jdbcType=VARCHAR},
- </if>
- <if test="record.czsjzypzr != null" >
- czsjzypzr = #{record.czsjzypzr,jdbcType=VARCHAR},
- </if>
- <if test="record.czclcs != null" >
- czclcs = #{record.czclcs,jdbcType=VARCHAR},
- </if>
- <if test="record.czclzyrs != null" >
- czclzyrs = #{record.czclzyrs,jdbcType=INTEGER},
- </if>
- <if test="record.czclpzr != null" >
- czclpzr = #{record.czclpzr,jdbcType=VARCHAR},
- </if>
- <if test="record.xzhhcjcqk != null" >
- xzhhcjcqk = #{record.xzhhcjcqk,jdbcType=VARCHAR},
- </if>
- <if test="record.xzhckmd != null" >
- xzhckmd = #{record.xzhckmd,jdbcType=INTEGER},
- </if>
- <if test="record.pyswthhcs != null" >
- pyswthhcs = #{record.pyswthhcs,jdbcType=INTEGER},
- </if>
- <if test="record.pysswthhcs != null" >
- pysswthhcs = #{record.pysswthhcs,jdbcType=INTEGER},
- </if>
- <if test="record.xzxgpj != null" >
- xzxgpj = #{record.xzxgpj,jdbcType=VARCHAR},
- </if>
- <if test="record.deleteState != null" >
- delete_state = #{record.deleteState,jdbcType=VARCHAR},
- </if>
- <if test="record.updatetime != null" >
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- update t_fumigation_after
- set id = #{record.id,jdbcType=VARCHAR},
- house_id = #{record.houseId,jdbcType=INTEGER},
- fumigation_id = #{record.fumigationId,jdbcType=VARCHAR},
- sampling_culture_temperature = #{record.samplingCultureTemperature,jdbcType=VARCHAR},
- sampling_culture_humidity = #{record.samplingCultureHumidity,jdbcType=VARCHAR},
- sampling_culture_month_survival = #{record.samplingCultureMonthSurvival,jdbcType=INTEGER},
- kill_insect_rate = #{record.killInsectRate,jdbcType=VARCHAR},
- check_insect_cage_time = #{record.checkInsectCageTime,jdbcType=TIMESTAMP},
- insect_cage_kill_rate = #{record.insectCageKillRate,jdbcType=VARCHAR},
- effect_analysis = #{record.effectAnalysis,jdbcType=VARCHAR},
- creater = #{record.creater,jdbcType=INTEGER},
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
- org_id = #{record.orgId,jdbcType=INTEGER},
- czsjzysj = #{record.czsjzysj,jdbcType=TIMESTAMP},
- czsjzyrs = #{record.czsjzyrs,jdbcType=INTEGER},
- czsjff = #{record.czsjff,jdbcType=VARCHAR},
- czsjzypzr = #{record.czsjzypzr,jdbcType=VARCHAR},
- czclcs = #{record.czclcs,jdbcType=VARCHAR},
- czclzyrs = #{record.czclzyrs,jdbcType=INTEGER},
- czclpzr = #{record.czclpzr,jdbcType=VARCHAR},
- xzhhcjcqk = #{record.xzhhcjcqk,jdbcType=VARCHAR},
- xzhckmd = #{record.xzhckmd,jdbcType=INTEGER},
- pyswthhcs = #{record.pyswthhcs,jdbcType=INTEGER},
- pysswthhcs = #{record.pysswthhcs,jdbcType=INTEGER},
- xzxgpj = #{record.xzxgpj,jdbcType=VARCHAR},
- delete_state = #{record.deleteState,jdbcType=VARCHAR},
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfter" >
- update t_fumigation_after
- <set >
- <if test="houseId != null" >
- house_id = #{houseId,jdbcType=INTEGER},
- </if>
- <if test="fumigationId != null" >
- fumigation_id = #{fumigationId,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureTemperature != null" >
- sampling_culture_temperature = #{samplingCultureTemperature,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureHumidity != null" >
- sampling_culture_humidity = #{samplingCultureHumidity,jdbcType=VARCHAR},
- </if>
- <if test="samplingCultureMonthSurvival != null" >
- sampling_culture_month_survival = #{samplingCultureMonthSurvival,jdbcType=INTEGER},
- </if>
- <if test="killInsectRate != null" >
- kill_insect_rate = #{killInsectRate,jdbcType=VARCHAR},
- </if>
- <if test="checkInsectCageTime != null" >
- check_insect_cage_time = #{checkInsectCageTime,jdbcType=TIMESTAMP},
- </if>
- <if test="insectCageKillRate != null" >
- insect_cage_kill_rate = #{insectCageKillRate,jdbcType=VARCHAR},
- </if>
- <if test="effectAnalysis != null" >
- effect_analysis = #{effectAnalysis,jdbcType=VARCHAR},
- </if>
- <if test="creater != null" >
- creater = #{creater,jdbcType=INTEGER},
- </if>
- <if test="createTime != null" >
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateTime != null" >
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="orgId != null" >
- org_id = #{orgId,jdbcType=INTEGER},
- </if>
- <if test="czsjzysj != null" >
- czsjzysj = #{czsjzysj,jdbcType=TIMESTAMP},
- </if>
- <if test="czsjzyrs != null" >
- czsjzyrs = #{czsjzyrs,jdbcType=INTEGER},
- </if>
- <if test="czsjff != null" >
- czsjff = #{czsjff,jdbcType=VARCHAR},
- </if>
- <if test="czsjzypzr != null" >
- czsjzypzr = #{czsjzypzr,jdbcType=VARCHAR},
- </if>
- <if test="czclcs != null" >
- czclcs = #{czclcs,jdbcType=VARCHAR},
- </if>
- <if test="czclzyrs != null" >
- czclzyrs = #{czclzyrs,jdbcType=INTEGER},
- </if>
- <if test="czclpzr != null" >
- czclpzr = #{czclpzr,jdbcType=VARCHAR},
- </if>
- <if test="xzhhcjcqk != null" >
- xzhhcjcqk = #{xzhhcjcqk,jdbcType=VARCHAR},
- </if>
- <if test="xzhckmd != null" >
- xzhckmd = #{xzhckmd,jdbcType=INTEGER},
- </if>
- <if test="pyswthhcs != null" >
- pyswthhcs = #{pyswthhcs,jdbcType=INTEGER},
- </if>
- <if test="pysswthhcs != null" >
- pysswthhcs = #{pysswthhcs,jdbcType=INTEGER},
- </if>
- <if test="xzxgpj != null" >
- xzxgpj = #{xzxgpj,jdbcType=VARCHAR},
- </if>
- <if test="deleteState != null" >
- delete_state = #{deleteState,jdbcType=VARCHAR},
- </if>
- <if test="updatetime != null" >
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.intelligent.fumigation.model.TFumigationAfter" >
- update t_fumigation_after
- set house_id = #{houseId,jdbcType=INTEGER},
- fumigation_id = #{fumigationId,jdbcType=VARCHAR},
- sampling_culture_temperature = #{samplingCultureTemperature,jdbcType=VARCHAR},
- sampling_culture_humidity = #{samplingCultureHumidity,jdbcType=VARCHAR},
- sampling_culture_month_survival = #{samplingCultureMonthSurvival,jdbcType=INTEGER},
- kill_insect_rate = #{killInsectRate,jdbcType=VARCHAR},
- check_insect_cage_time = #{checkInsectCageTime,jdbcType=TIMESTAMP},
- insect_cage_kill_rate = #{insectCageKillRate,jdbcType=VARCHAR},
- effect_analysis = #{effectAnalysis,jdbcType=VARCHAR},
- creater = #{creater,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- org_id = #{orgId,jdbcType=INTEGER},
- czsjzysj = #{czsjzysj,jdbcType=TIMESTAMP},
- czsjzyrs = #{czsjzyrs,jdbcType=INTEGER},
- czsjff = #{czsjff,jdbcType=VARCHAR},
- czsjzypzr = #{czsjzypzr,jdbcType=VARCHAR},
- czclcs = #{czclcs,jdbcType=VARCHAR},
- czclzyrs = #{czclzyrs,jdbcType=INTEGER},
- czclpzr = #{czclpzr,jdbcType=VARCHAR},
- xzhhcjcqk = #{xzhhcjcqk,jdbcType=VARCHAR},
- xzhckmd = #{xzhckmd,jdbcType=INTEGER},
- pyswthhcs = #{pyswthhcs,jdbcType=INTEGER},
- pysswthhcs = #{pysswthhcs,jdbcType=INTEGER},
- xzxgpj = #{xzxgpj,jdbcType=VARCHAR},
- delete_state = #{deleteState,jdbcType=VARCHAR},
- updatetime = #{updatetime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <select id="getFumigationAfterList" parameterType="java.util.Map" resultType="java.util.HashMap">
- SELECT
- af.id,
- plan.id fumigationId,
- plan.house_id houseId,
- plan.fumigation_type fumigationType,
- pes.drug_name drugName,
- af.creater,
- af.create_time createTime
- FROM
- t_fumigation_after af
- INNER JOIN t_fumigation_plan plan ON af.fumigation_id = plan.id
- INNER JOIN t_fumigation_pesticide pes ON pes.fumigation_id = plan.id
- WHERE af.delete_state = 1 AND af.org_id = #{orgId,jdbcType=INTEGER}
- <if test="houseId != null" >
- AND plan.house_id = #{houseId,jdbcType=INTEGER}
- </if>
- GROUP BY af.id
- ORDER BY af.create_time DESC
- </select>
- <select id="selectHomeWorkQueryList" parameterType="java.util.Map" resultType="java.util.HashMap">
- SELECT
- 1 AS planType,
- process.id,
- plan.id AS fumigationId,
- plan.house_id AS houseId,
- process.create_time AS createTime,
- process.creater,
- plan.fumigation_type AS fumigationType,
- pes.drug_name AS drugName
- FROM
- t_fumigation_process process
- INNER JOIN t_fumigation_plan plan ON plan.id = process.fumigation_id
- INNER JOIN t_fumigation_pesticide pes ON pes.fumigation_id = plan.id
- WHERE process.delete_state = 1 AND process.org_id = #{orgId,jdbcType=INTEGER}
- <if test="houseId != null" >
- AND plan.house_id = #{houseId,jdbcType=INTEGER}
- </if>
- GROUP BY process.id
- UNION ALL
- SELECT
- 2 AS planType,
- af.id,
- plan.id AS fumigationId,
- plan.house_id AS houseId,
- af.create_time AS createTime,
- af.creater,
- plan.fumigation_type AS fumigationType,
- pes.drug_name AS drugName
- FROM
- t_fumigation_after af
- INNER JOIN t_fumigation_plan plan ON plan.id = af.fumigation_id
- INNER JOIN t_fumigation_pesticide pes ON pes.fumigation_id = plan.id
- WHERE af.delete_state = 1 AND af.org_id = #{orgId,jdbcType=INTEGER}
- <if test="houseId != null" >
- AND plan.house_id = #{houseId,jdbcType=INTEGER}
- </if>
- GROUP BY af.id
- ORDER BY createTime DESC
- </select>
- </mapper>
|