|
@@ -1,475 +1,491 @@
|
|
|
-<?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>
|
|
|
+<?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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ <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" />
|
|
|
+ <result column="lastopentime" jdbcType="TIMESTAMP" property="lastopentime" />
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ <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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ <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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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,
|
|
|
+ lastopentime
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ <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, lastopentime)
|
|
|
+ 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}, #{lastopentime,jdbcType=TIMESTAMP})
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ <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>
|
|
|
+ <if test="lastopentime != null">
|
|
|
+ lastopentime,
|
|
|
+ </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>
|
|
|
+ <if test="lastopentime != null">
|
|
|
+ #{lastopentime,jdbcType=TIMESTAMP},
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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>
|
|
|
+ <if test="record.lastopentime != null">
|
|
|
+ lastopentime = #{record.lastopentime,jdbcType=TIMESTAMP},
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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},
|
|
|
+ lastopentime = #{record.lastopentime,jdbcType=TIMESTAMP}
|
|
|
+ <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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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>
|
|
|
+ <if test="lastopentime != null">
|
|
|
+ lastopentime = #{lastopentime,jdbcType=TIMESTAMP},
|
|
|
+ </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 Sun Mar 29 17:48:51 CST 2020.
|
|
|
+ -->
|
|
|
+ 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},
|
|
|
+ lastopentime = #{lastopentime,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
</mapper>
|