|
@@ -1,318 +1,333 @@
|
|
|
-<?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.EquipmentSendCommandMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.js.kbt.model.EquipmentSendCommand">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
- <result column="equipment_no" jdbcType="VARCHAR" property="equipmentNo" />
|
|
|
- <result column="uid" jdbcType="INTEGER" property="uid" />
|
|
|
- <result column="indate" jdbcType="TIMESTAMP" property="indate" />
|
|
|
- <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
|
- <result column="state" jdbcType="INTEGER" property="state" />
|
|
|
- <result column="is_send" jdbcType="INTEGER" property="isSend" />
|
|
|
- </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 Thu Mar 19 13:16:30 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 Thu Mar 19 13:16:30 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 Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- id, equipment_no, uid, indate, send_time, state, is_send
|
|
|
- </sql>
|
|
|
- <select id="selectByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from equipment_send_command
|
|
|
- <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 Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from equipment_send_command
|
|
|
- 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 Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- delete from equipment_send_command
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- delete from equipment_send_command
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
- SELECT LAST_INSERT_ID()
|
|
|
- </selectKey>
|
|
|
- insert into equipment_send_command (equipment_no, uid, indate,
|
|
|
- send_time, state, is_send
|
|
|
- )
|
|
|
- values (#{equipmentNo,jdbcType=VARCHAR}, #{uid,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP},
|
|
|
- #{sendTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{isSend,jdbcType=INTEGER}
|
|
|
- )
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
- SELECT LAST_INSERT_ID()
|
|
|
- </selectKey>
|
|
|
- insert into equipment_send_command
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="equipmentNo != null">
|
|
|
- equipment_no,
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- uid,
|
|
|
- </if>
|
|
|
- <if test="indate != null">
|
|
|
- indate,
|
|
|
- </if>
|
|
|
- <if test="sendTime != null">
|
|
|
- send_time,
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- state,
|
|
|
- </if>
|
|
|
- <if test="isSend != null">
|
|
|
- is_send,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="equipmentNo != null">
|
|
|
- #{equipmentNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- #{uid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="indate != null">
|
|
|
- #{indate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="sendTime != null">
|
|
|
- #{sendTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- #{state,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="isSend != null">
|
|
|
- #{isSend,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <select id="countByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample" resultType="java.lang.Long">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- select count(*) from equipment_send_command
|
|
|
- <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 Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- update equipment_send_command
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.equipmentNo != null">
|
|
|
- equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.uid != null">
|
|
|
- uid = #{record.uid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.indate != null">
|
|
|
- indate = #{record.indate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.sendTime != null">
|
|
|
- send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.state != null">
|
|
|
- state = #{record.state,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.isSend != null">
|
|
|
- is_send = #{record.isSend,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 Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- update equipment_send_command
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
- equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
|
|
|
- uid = #{record.uid,jdbcType=INTEGER},
|
|
|
- indate = #{record.indate,jdbcType=TIMESTAMP},
|
|
|
- send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
|
- state = #{record.state,jdbcType=INTEGER},
|
|
|
- is_send = #{record.isSend,jdbcType=INTEGER}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- update equipment_send_command
|
|
|
- <set>
|
|
|
- <if test="equipmentNo != null">
|
|
|
- equipment_no = #{equipmentNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="uid != null">
|
|
|
- uid = #{uid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="indate != null">
|
|
|
- indate = #{indate,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="sendTime != null">
|
|
|
- send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="state != null">
|
|
|
- state = #{state,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="isSend != null">
|
|
|
- is_send = #{isSend,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Mar 19 13:16:30 CST 2020.
|
|
|
- -->
|
|
|
- update equipment_send_command
|
|
|
- set equipment_no = #{equipmentNo,jdbcType=VARCHAR},
|
|
|
- uid = #{uid,jdbcType=INTEGER},
|
|
|
- indate = #{indate,jdbcType=TIMESTAMP},
|
|
|
- send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
- state = #{state,jdbcType=INTEGER},
|
|
|
- is_send = #{isSend,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.EquipmentSendCommandMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.js.kbt.model.EquipmentSendCommand">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
+ <result column="equipment_no" jdbcType="VARCHAR" property="equipmentNo" />
|
|
|
+ <result column="uid" jdbcType="INTEGER" property="uid" />
|
|
|
+ <result column="indate" jdbcType="TIMESTAMP" property="indate" />
|
|
|
+ <result column="send_time" jdbcType="TIMESTAMP" property="sendTime" />
|
|
|
+ <result column="cmd" jdbcType="VARCHAR" property="cmd" />
|
|
|
+ <result column="is_send" jdbcType="INTEGER" property="isSend" />
|
|
|
+ <result column="param" jdbcType="VARCHAR" property="param" />
|
|
|
+ </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 Fri Apr 10 11:50:44 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 Fri Apr 10 11:50:44 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 Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ id, equipment_no, uid, indate, send_time, cmd, is_send, param
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from equipment_send_command
|
|
|
+ <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 Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from equipment_send_command
|
|
|
+ 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 Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ delete from equipment_send_command
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ delete from equipment_send_command
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into equipment_send_command (equipment_no, uid, indate,
|
|
|
+ send_time, cmd, is_send,
|
|
|
+ param)
|
|
|
+ values (#{equipmentNo,jdbcType=VARCHAR}, #{uid,jdbcType=INTEGER}, #{indate,jdbcType=TIMESTAMP},
|
|
|
+ #{sendTime,jdbcType=TIMESTAMP}, #{cmd,jdbcType=VARCHAR}, #{isSend,jdbcType=INTEGER},
|
|
|
+ #{param,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
+ SELECT LAST_INSERT_ID()
|
|
|
+ </selectKey>
|
|
|
+ insert into equipment_send_command
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="equipmentNo != null">
|
|
|
+ equipment_no,
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ uid,
|
|
|
+ </if>
|
|
|
+ <if test="indate != null">
|
|
|
+ indate,
|
|
|
+ </if>
|
|
|
+ <if test="sendTime != null">
|
|
|
+ send_time,
|
|
|
+ </if>
|
|
|
+ <if test="cmd != null">
|
|
|
+ cmd,
|
|
|
+ </if>
|
|
|
+ <if test="isSend != null">
|
|
|
+ is_send,
|
|
|
+ </if>
|
|
|
+ <if test="param != null">
|
|
|
+ param,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="equipmentNo != null">
|
|
|
+ #{equipmentNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ #{uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="indate != null">
|
|
|
+ #{indate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="sendTime != null">
|
|
|
+ #{sendTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="cmd != null">
|
|
|
+ #{cmd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isSend != null">
|
|
|
+ #{isSend,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="param != null">
|
|
|
+ #{param,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.js.kbt.model.EquipmentSendCommandExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ select count(*) from equipment_send_command
|
|
|
+ <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 Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ update equipment_send_command
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.equipmentNo != null">
|
|
|
+ equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.uid != null">
|
|
|
+ uid = #{record.uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.indate != null">
|
|
|
+ indate = #{record.indate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.sendTime != null">
|
|
|
+ send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.cmd != null">
|
|
|
+ cmd = #{record.cmd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.isSend != null">
|
|
|
+ is_send = #{record.isSend,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.param != null">
|
|
|
+ param = #{record.param,jdbcType=VARCHAR},
|
|
|
+ </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 Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ update equipment_send_command
|
|
|
+ set id = #{record.id,jdbcType=INTEGER},
|
|
|
+ equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
|
|
|
+ uid = #{record.uid,jdbcType=INTEGER},
|
|
|
+ indate = #{record.indate,jdbcType=TIMESTAMP},
|
|
|
+ send_time = #{record.sendTime,jdbcType=TIMESTAMP},
|
|
|
+ cmd = #{record.cmd,jdbcType=VARCHAR},
|
|
|
+ is_send = #{record.isSend,jdbcType=INTEGER},
|
|
|
+ param = #{record.param,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ update equipment_send_command
|
|
|
+ <set>
|
|
|
+ <if test="equipmentNo != null">
|
|
|
+ equipment_no = #{equipmentNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="uid != null">
|
|
|
+ uid = #{uid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="indate != null">
|
|
|
+ indate = #{indate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="sendTime != null">
|
|
|
+ send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="cmd != null">
|
|
|
+ cmd = #{cmd,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="isSend != null">
|
|
|
+ is_send = #{isSend,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="param != null">
|
|
|
+ param = #{param,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.js.kbt.model.EquipmentSendCommand">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Apr 10 11:50:44 CST 2020.
|
|
|
+ -->
|
|
|
+ update equipment_send_command
|
|
|
+ set equipment_no = #{equipmentNo,jdbcType=VARCHAR},
|
|
|
+ uid = #{uid,jdbcType=INTEGER},
|
|
|
+ indate = #{indate,jdbcType=TIMESTAMP},
|
|
|
+ send_time = #{sendTime,jdbcType=TIMESTAMP},
|
|
|
+ cmd = #{cmd,jdbcType=VARCHAR},
|
|
|
+ is_send = #{isSend,jdbcType=INTEGER},
|
|
|
+ param = #{param,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
</mapper>
|