123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558 |
- <?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.DailyRecordFoodsafeNewMapper" >
- <resultMap id="BaseResultMap" type="cn.ourwill.module.house.entity.new_entity.DailyRecordLsxzfaNew" >
- <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="fumigation_time" property="fumigationTime" jdbcType="VARCHAR" />
- <result column="house_length" property="houseLength" jdbcType="REAL" />
- <result column="house_height" property="houseHeight" jdbcType="REAL" />
- <result column="house_width" property="houseWidth" jdbcType="REAL" />
- <result column="house_volume" property="houseVolume" jdbcType="REAL" />
- <result column="house_space" property="houseSpace" jdbcType="REAL" />
- <result column="type" property="type" jdbcType="VARCHAR" />
- <result column="number" property="number" jdbcType="INTEGER" />
- <result column="water" property="water" jdbcType="VARCHAR" />
- <result column="impurity" property="impurity" jdbcType="VARCHAR" />
- <result column="temperature" property="temperature" jdbcType="VARCHAR" />
- <result column="worm_type" property="wormType" jdbcType="VARCHAR" />
- <result column="density" property="density" jdbcType="VARCHAR" />
- <result column="medicament" property="medicament" jdbcType="VARCHAR" />
- <result column="fumigation_method" property="fumigationMethod" jdbcType="VARCHAR" />
- <result column="fumigation_date" property="fumigationDate" jdbcType="VARCHAR" />
- <result column="command_people" property="commandPeople" jdbcType="VARCHAR" />
- <result column="charge_people" property="chargePeople" jdbcType="VARCHAR" />
- <result column="applying_people" property="applyingPeople" jdbcType="VARCHAR" />
- <result column="security_people" property="securityPeople" jdbcType="VARCHAR" />
- <result column="opinion" property="opinion" 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" />
- </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`,
- `fumigation_time`,
- `house_length`,
- `house_height`,
- `house_width`,
- `house_volume`,
- `house_space`,
- `type`,
- `number`,
- `water`,
- `impurity`,
- `temperature`,
- `worm_type`,
- `density`,
- `medicament`,
- `fumigation_method`,
- `fumigation_date`,
- `command_people`,
- `charge_people`,
- `applying_people`,
- `security_people`,
- `opinion`,
- `uuid`,
- `c_id`,
- `c_time`,
- `u_id`,
- `u_time`,
- `sync_flag`
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordFoodsafeNewExample" >
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from daily_record_foodsafe_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_foodsafe_new
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from daily_record_foodsafe_new
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordFoodsafeNewExample" >
- delete from daily_record_foodsafe_new
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="cn.ourwill.module.house.entity.new_entity.DailyRecordFoodsafeNew" >
- insert into daily_record_foodsafe_new (id, house_id, grain_id,
- safe_date, house_length, house_height,
- house_width, house_volume, house_space,
- type, number, water,
- impurity, temperature, worm_type,
- density, medicament, safe_method,
- safe_effect, safe_people, charge,
- c_id, c_time, u_id,
- u_time)
- values (#{id,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER}, #{grainId,jdbcType=INTEGER},
- #{safeDate,jdbcType=VARCHAR}, #{houseLength,jdbcType=REAL}, #{houseHeight,jdbcType=REAL},
- #{houseWidth,jdbcType=REAL}, #{houseVolume,jdbcType=REAL}, #{houseSpace,jdbcType=REAL},
- #{type,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER}, #{water,jdbcType=VARCHAR},
- #{impurity,jdbcType=VARCHAR}, #{temperature,jdbcType=VARCHAR}, #{wormType,jdbcType=VARCHAR},
- #{density,jdbcType=VARCHAR}, #{medicament,jdbcType=VARCHAR}, #{safeMethod,jdbcType=VARCHAR},
- #{safeEffect,jdbcType=VARCHAR}, #{safePeople,jdbcType=VARCHAR}, #{charge,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.DailyRecordFoodsafeNew" >
- insert into daily_record_foodsafe_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="safeDate != null" >
- safe_date,
- </if>
- <if test="houseLength != null" >
- house_length,
- </if>
- <if test="houseHeight != null" >
- house_height,
- </if>
- <if test="houseWidth != null" >
- house_width,
- </if>
- <if test="houseVolume != null" >
- house_volume,
- </if>
- <if test="houseSpace != null" >
- house_space,
- </if>
- <if test="type != null" >
- type,
- </if>
- <if test="number != null" >
- number,
- </if>
- <if test="water != null" >
- water,
- </if>
- <if test="impurity != null" >
- impurity,
- </if>
- <if test="temperature != null" >
- temperature,
- </if>
- <if test="wormType != null" >
- worm_type,
- </if>
- <if test="density != null" >
- density,
- </if>
- <if test="medicament != null" >
- medicament,
- </if>
- <if test="safeMethod != null" >
- safe_method,
- </if>
- <if test="safeEffect != null" >
- safe_effect,
- </if>
- <if test="safePeople != null" >
- safe_people,
- </if>
- <if test="charge != null" >
- charge,
- </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="safeDate != null" >
- #{safeDate,jdbcType=VARCHAR},
- </if>
- <if test="houseLength != null" >
- #{houseLength,jdbcType=REAL},
- </if>
- <if test="houseHeight != null" >
- #{houseHeight,jdbcType=REAL},
- </if>
- <if test="houseWidth != null" >
- #{houseWidth,jdbcType=REAL},
- </if>
- <if test="houseVolume != null" >
- #{houseVolume,jdbcType=REAL},
- </if>
- <if test="houseSpace != null" >
- #{houseSpace,jdbcType=REAL},
- </if>
- <if test="type != null" >
- #{type,jdbcType=VARCHAR},
- </if>
- <if test="number != null" >
- #{number,jdbcType=INTEGER},
- </if>
- <if test="water != null" >
- #{water,jdbcType=VARCHAR},
- </if>
- <if test="impurity != null" >
- #{impurity,jdbcType=VARCHAR},
- </if>
- <if test="temperature != null" >
- #{temperature,jdbcType=VARCHAR},
- </if>
- <if test="wormType != null" >
- #{wormType,jdbcType=VARCHAR},
- </if>
- <if test="density != null" >
- #{density,jdbcType=VARCHAR},
- </if>
- <if test="medicament != null" >
- #{medicament,jdbcType=VARCHAR},
- </if>
- <if test="safeMethod != null" >
- #{safeMethod,jdbcType=VARCHAR},
- </if>
- <if test="safeEffect != null" >
- #{safeEffect,jdbcType=VARCHAR},
- </if>
- <if test="safePeople != null" >
- #{safePeople,jdbcType=VARCHAR},
- </if>
- <if test="charge != null" >
- #{charge,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.DailyRecordFoodsafeNewExample" resultType="java.lang.Integer" >
- select count(*) from daily_record_foodsafe_new
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- update daily_record_foodsafe_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.safeDate != null" >
- safe_date = #{record.safeDate,jdbcType=VARCHAR},
- </if>
- <if test="record.houseLength != null" >
- house_length = #{record.houseLength,jdbcType=REAL},
- </if>
- <if test="record.houseHeight != null" >
- house_height = #{record.houseHeight,jdbcType=REAL},
- </if>
- <if test="record.houseWidth != null" >
- house_width = #{record.houseWidth,jdbcType=REAL},
- </if>
- <if test="record.houseVolume != null" >
- house_volume = #{record.houseVolume,jdbcType=REAL},
- </if>
- <if test="record.houseSpace != null" >
- house_space = #{record.houseSpace,jdbcType=REAL},
- </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.water != null" >
- water = #{record.water,jdbcType=VARCHAR},
- </if>
- <if test="record.impurity != null" >
- impurity = #{record.impurity,jdbcType=VARCHAR},
- </if>
- <if test="record.temperature != null" >
- temperature = #{record.temperature,jdbcType=VARCHAR},
- </if>
- <if test="record.wormType != null" >
- worm_type = #{record.wormType,jdbcType=VARCHAR},
- </if>
- <if test="record.density != null" >
- density = #{record.density,jdbcType=VARCHAR},
- </if>
- <if test="record.medicament != null" >
- medicament = #{record.medicament,jdbcType=VARCHAR},
- </if>
- <if test="record.safeMethod != null" >
- safe_method = #{record.safeMethod,jdbcType=VARCHAR},
- </if>
- <if test="record.safeEffect != null" >
- safe_effect = #{record.safeEffect,jdbcType=VARCHAR},
- </if>
- <if test="record.safePeople != null" >
- safe_people = #{record.safePeople,jdbcType=VARCHAR},
- </if>
- <if test="record.charge != null" >
- charge = #{record.charge,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_foodsafe_new
- set id = #{record.id,jdbcType=INTEGER},
- house_id = #{record.houseId,jdbcType=INTEGER},
- grain_id = #{record.grainId,jdbcType=INTEGER},
- safe_date = #{record.safeDate,jdbcType=VARCHAR},
- house_length = #{record.houseLength,jdbcType=REAL},
- house_height = #{record.houseHeight,jdbcType=REAL},
- house_width = #{record.houseWidth,jdbcType=REAL},
- house_volume = #{record.houseVolume,jdbcType=REAL},
- house_space = #{record.houseSpace,jdbcType=REAL},
- type = #{record.type,jdbcType=VARCHAR},
- number = #{record.number,jdbcType=INTEGER},
- water = #{record.water,jdbcType=VARCHAR},
- impurity = #{record.impurity,jdbcType=VARCHAR},
- temperature = #{record.temperature,jdbcType=VARCHAR},
- worm_type = #{record.wormType,jdbcType=VARCHAR},
- density = #{record.density,jdbcType=VARCHAR},
- medicament = #{record.medicament,jdbcType=VARCHAR},
- safe_method = #{record.safeMethod,jdbcType=VARCHAR},
- safe_effect = #{record.safeEffect,jdbcType=VARCHAR},
- safe_people = #{record.safePeople,jdbcType=VARCHAR},
- charge = #{record.charge,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.DailyRecordFoodsafeNew" >
- update daily_record_foodsafe_new
- <set >
- <if test="houseId != null" >
- house_id = #{houseId,jdbcType=INTEGER},
- </if>
- <if test="grainId != null" >
- grain_id = #{grainId,jdbcType=INTEGER},
- </if>
- <if test="safeDate != null" >
- safe_date = #{safeDate,jdbcType=VARCHAR},
- </if>
- <if test="houseLength != null" >
- house_length = #{houseLength,jdbcType=REAL},
- </if>
- <if test="houseHeight != null" >
- house_height = #{houseHeight,jdbcType=REAL},
- </if>
- <if test="houseWidth != null" >
- house_width = #{houseWidth,jdbcType=REAL},
- </if>
- <if test="houseVolume != null" >
- house_volume = #{houseVolume,jdbcType=REAL},
- </if>
- <if test="houseSpace != null" >
- house_space = #{houseSpace,jdbcType=REAL},
- </if>
- <if test="type != null" >
- type = #{type,jdbcType=VARCHAR},
- </if>
- <if test="number != null" >
- number = #{number,jdbcType=INTEGER},
- </if>
- <if test="water != null" >
- water = #{water,jdbcType=VARCHAR},
- </if>
- <if test="impurity != null" >
- impurity = #{impurity,jdbcType=VARCHAR},
- </if>
- <if test="temperature != null" >
- temperature = #{temperature,jdbcType=VARCHAR},
- </if>
- <if test="wormType != null" >
- worm_type = #{wormType,jdbcType=VARCHAR},
- </if>
- <if test="density != null" >
- density = #{density,jdbcType=VARCHAR},
- </if>
- <if test="medicament != null" >
- medicament = #{medicament,jdbcType=VARCHAR},
- </if>
- <if test="safeMethod != null" >
- safe_method = #{safeMethod,jdbcType=VARCHAR},
- </if>
- <if test="safeEffect != null" >
- safe_effect = #{safeEffect,jdbcType=VARCHAR},
- </if>
- <if test="safePeople != null" >
- safe_people = #{safePeople,jdbcType=VARCHAR},
- </if>
- <if test="charge != null" >
- charge = #{charge,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.DailyRecordFoodsafeNew" >
- update daily_record_foodsafe_new
- set house_id = #{houseId,jdbcType=INTEGER},
- grain_id = #{grainId,jdbcType=INTEGER},
- safe_date = #{safeDate,jdbcType=VARCHAR},
- house_length = #{houseLength,jdbcType=REAL},
- house_height = #{houseHeight,jdbcType=REAL},
- house_width = #{houseWidth,jdbcType=REAL},
- house_volume = #{houseVolume,jdbcType=REAL},
- house_space = #{houseSpace,jdbcType=REAL},
- type = #{type,jdbcType=VARCHAR},
- number = #{number,jdbcType=INTEGER},
- water = #{water,jdbcType=VARCHAR},
- impurity = #{impurity,jdbcType=VARCHAR},
- temperature = #{temperature,jdbcType=VARCHAR},
- worm_type = #{wormType,jdbcType=VARCHAR},
- density = #{density,jdbcType=VARCHAR},
- medicament = #{medicament,jdbcType=VARCHAR},
- safe_method = #{safeMethod,jdbcType=VARCHAR},
- safe_effect = #{safeEffect,jdbcType=VARCHAR},
- safe_people = #{safePeople,jdbcType=VARCHAR},
- charge = #{charge,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>
|