| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?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.js.kbt.mapper.TbMouldEquipmentMapper">
- <resultMap id="BaseResultMap" type="com.js.kbt.model.TbMouldEquipment">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="equipment_name" jdbcType="VARCHAR" property="equipmentName" />
- <result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
- <result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
- <result column="use_life" jdbcType="INTEGER" property="useLife" />
- <result column="belong_company_id" jdbcType="INTEGER" property="belongCompanyId" />
- <result column="equipment_no" jdbcType="VARCHAR" property="equipmentNo" />
- <result column="is_use" jdbcType="INTEGER" property="isUse" />
- <result column="hill_number" jdbcType="VARCHAR" property="hillNumber" />
- <result column="lng" jdbcType="DOUBLE" property="lng" />
- <result column="lat" jdbcType="DOUBLE" property="lat" />
- <result column="temperature" jdbcType="INTEGER" property="temperature" />
- <result column="agent" jdbcType="VARCHAR" property="agent" />
- <result column="stage" jdbcType="INTEGER" property="stage" />
- <result column="sim" jdbcType="VARCHAR" property="sim" />
- <result column="curhill_number" jdbcType="VARCHAR" property="curhillNumber" />
- <result column="curtemperature" jdbcType="INTEGER" property="curtemperature" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- id, equipment_name, start_time, end_time, use_life, belong_company_id, equipment_no,
- is_use, hill_number, lng, lat, temperature, agent, stage, sim, curhill_number, curtemperature
- </sql>
- <select id="selectByExample" parameterType="com.js.kbt.model.TbMouldEquipmentExample" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from tb_mould_equipment
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- select
- <include refid="Base_Column_List" />
- from tb_mould_equipment
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- delete from tb_mould_equipment
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.js.kbt.model.TbMouldEquipmentExample">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- delete from tb_mould_equipment
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.js.kbt.model.TbMouldEquipment">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into tb_mould_equipment (equipment_name, start_time, end_time,
- use_life, belong_company_id, equipment_no,
- is_use, hill_number, lng,
- lat, temperature, agent,
- stage, sim, curhill_number,
- curtemperature)
- values (#{equipmentName,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
- #{useLife,jdbcType=INTEGER}, #{belongCompanyId,jdbcType=INTEGER}, #{equipmentNo,jdbcType=VARCHAR},
- #{isUse,jdbcType=INTEGER}, #{hillNumber,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE},
- #{lat,jdbcType=DOUBLE}, #{temperature,jdbcType=INTEGER}, #{agent,jdbcType=VARCHAR},
- #{stage,jdbcType=INTEGER}, #{sim,jdbcType=VARCHAR}, #{curhillNumber,jdbcType=VARCHAR},
- #{curtemperature,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.js.kbt.model.TbMouldEquipment">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into tb_mould_equipment
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="equipmentName != null">
- equipment_name,
- </if>
- <if test="startTime != null">
- start_time,
- </if>
- <if test="endTime != null">
- end_time,
- </if>
- <if test="useLife != null">
- use_life,
- </if>
- <if test="belongCompanyId != null">
- belong_company_id,
- </if>
- <if test="equipmentNo != null">
- equipment_no,
- </if>
- <if test="isUse != null">
- is_use,
- </if>
- <if test="hillNumber != null">
- hill_number,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="lat != null">
- lat,
- </if>
- <if test="temperature != null">
- temperature,
- </if>
- <if test="agent != null">
- agent,
- </if>
- <if test="stage != null">
- stage,
- </if>
- <if test="sim != null">
- sim,
- </if>
- <if test="curhillNumber != null">
- curhill_number,
- </if>
- <if test="curtemperature != null">
- curtemperature,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="equipmentName != null">
- #{equipmentName,jdbcType=VARCHAR},
- </if>
- <if test="startTime != null">
- #{startTime,jdbcType=TIMESTAMP},
- </if>
- <if test="endTime != null">
- #{endTime,jdbcType=TIMESTAMP},
- </if>
- <if test="useLife != null">
- #{useLife,jdbcType=INTEGER},
- </if>
- <if test="belongCompanyId != null">
- #{belongCompanyId,jdbcType=INTEGER},
- </if>
- <if test="equipmentNo != null">
- #{equipmentNo,jdbcType=VARCHAR},
- </if>
- <if test="isUse != null">
- #{isUse,jdbcType=INTEGER},
- </if>
- <if test="hillNumber != null">
- #{hillNumber,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=DOUBLE},
- </if>
- <if test="lat != null">
- #{lat,jdbcType=DOUBLE},
- </if>
- <if test="temperature != null">
- #{temperature,jdbcType=INTEGER},
- </if>
- <if test="agent != null">
- #{agent,jdbcType=VARCHAR},
- </if>
- <if test="stage != null">
- #{stage,jdbcType=INTEGER},
- </if>
- <if test="sim != null">
- #{sim,jdbcType=VARCHAR},
- </if>
- <if test="curhillNumber != null">
- #{curhillNumber,jdbcType=VARCHAR},
- </if>
- <if test="curtemperature != null">
- #{curtemperature,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.js.kbt.model.TbMouldEquipmentExample" resultType="java.lang.Long">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- select count(*) from tb_mould_equipment
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- update tb_mould_equipment
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.equipmentName != null">
- equipment_name = #{record.equipmentName,jdbcType=VARCHAR},
- </if>
- <if test="record.startTime != null">
- start_time = #{record.startTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.endTime != null">
- end_time = #{record.endTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.useLife != null">
- use_life = #{record.useLife,jdbcType=INTEGER},
- </if>
- <if test="record.belongCompanyId != null">
- belong_company_id = #{record.belongCompanyId,jdbcType=INTEGER},
- </if>
- <if test="record.equipmentNo != null">
- equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
- </if>
- <if test="record.isUse != null">
- is_use = #{record.isUse,jdbcType=INTEGER},
- </if>
- <if test="record.hillNumber != null">
- hill_number = #{record.hillNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.lng != null">
- lng = #{record.lng,jdbcType=DOUBLE},
- </if>
- <if test="record.lat != null">
- lat = #{record.lat,jdbcType=DOUBLE},
- </if>
- <if test="record.temperature != null">
- temperature = #{record.temperature,jdbcType=INTEGER},
- </if>
- <if test="record.agent != null">
- agent = #{record.agent,jdbcType=VARCHAR},
- </if>
- <if test="record.stage != null">
- stage = #{record.stage,jdbcType=INTEGER},
- </if>
- <if test="record.sim != null">
- sim = #{record.sim,jdbcType=VARCHAR},
- </if>
- <if test="record.curhillNumber != null">
- curhill_number = #{record.curhillNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.curtemperature != null">
- curtemperature = #{record.curtemperature,jdbcType=INTEGER},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- update tb_mould_equipment
- set id = #{record.id,jdbcType=INTEGER},
- equipment_name = #{record.equipmentName,jdbcType=VARCHAR},
- start_time = #{record.startTime,jdbcType=TIMESTAMP},
- end_time = #{record.endTime,jdbcType=TIMESTAMP},
- use_life = #{record.useLife,jdbcType=INTEGER},
- belong_company_id = #{record.belongCompanyId,jdbcType=INTEGER},
- equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
- is_use = #{record.isUse,jdbcType=INTEGER},
- hill_number = #{record.hillNumber,jdbcType=VARCHAR},
- lng = #{record.lng,jdbcType=DOUBLE},
- lat = #{record.lat,jdbcType=DOUBLE},
- temperature = #{record.temperature,jdbcType=INTEGER},
- agent = #{record.agent,jdbcType=VARCHAR},
- stage = #{record.stage,jdbcType=INTEGER},
- sim = #{record.sim,jdbcType=VARCHAR},
- curhill_number = #{record.curhillNumber,jdbcType=VARCHAR},
- curtemperature = #{record.curtemperature,jdbcType=INTEGER}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.TbMouldEquipment">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- update tb_mould_equipment
- <set>
- <if test="equipmentName != null">
- equipment_name = #{equipmentName,jdbcType=VARCHAR},
- </if>
- <if test="startTime != null">
- start_time = #{startTime,jdbcType=TIMESTAMP},
- </if>
- <if test="endTime != null">
- end_time = #{endTime,jdbcType=TIMESTAMP},
- </if>
- <if test="useLife != null">
- use_life = #{useLife,jdbcType=INTEGER},
- </if>
- <if test="belongCompanyId != null">
- belong_company_id = #{belongCompanyId,jdbcType=INTEGER},
- </if>
- <if test="equipmentNo != null">
- equipment_no = #{equipmentNo,jdbcType=VARCHAR},
- </if>
- <if test="isUse != null">
- is_use = #{isUse,jdbcType=INTEGER},
- </if>
- <if test="hillNumber != null">
- hill_number = #{hillNumber,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- lng = #{lng,jdbcType=DOUBLE},
- </if>
- <if test="lat != null">
- lat = #{lat,jdbcType=DOUBLE},
- </if>
- <if test="temperature != null">
- temperature = #{temperature,jdbcType=INTEGER},
- </if>
- <if test="agent != null">
- agent = #{agent,jdbcType=VARCHAR},
- </if>
- <if test="stage != null">
- stage = #{stage,jdbcType=INTEGER},
- </if>
- <if test="sim != null">
- sim = #{sim,jdbcType=VARCHAR},
- </if>
- <if test="curhillNumber != null">
- curhill_number = #{curhillNumber,jdbcType=VARCHAR},
- </if>
- <if test="curtemperature != null">
- curtemperature = #{curtemperature,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.TbMouldEquipment">
- <!--
- WARNING - @mbg.generated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Mon Oct 28 19:24:40 CST 2019.
- -->
- update tb_mould_equipment
- set equipment_name = #{equipmentName,jdbcType=VARCHAR},
- start_time = #{startTime,jdbcType=TIMESTAMP},
- end_time = #{endTime,jdbcType=TIMESTAMP},
- use_life = #{useLife,jdbcType=INTEGER},
- belong_company_id = #{belongCompanyId,jdbcType=INTEGER},
- equipment_no = #{equipmentNo,jdbcType=VARCHAR},
- is_use = #{isUse,jdbcType=INTEGER},
- hill_number = #{hillNumber,jdbcType=VARCHAR},
- lng = #{lng,jdbcType=DOUBLE},
- lat = #{lat,jdbcType=DOUBLE},
- temperature = #{temperature,jdbcType=INTEGER},
- agent = #{agent,jdbcType=VARCHAR},
- stage = #{stage,jdbcType=INTEGER},
- sim = #{sim,jdbcType=VARCHAR},
- curhill_number = #{curhillNumber,jdbcType=VARCHAR},
- curtemperature = #{curtemperature,jdbcType=INTEGER}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|