|
@@ -0,0 +1,513 @@
|
|
|
+<?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.mvc.dao.TaskReviewMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.mvc.entity.TaskReview">
|
|
|
+ <id column="ID" jdbcType="INTEGER" property="id" />
|
|
|
+ <result column="TASK_ID" jdbcType="VARCHAR" property="taskId" />
|
|
|
+ <result column="TASK_DATE" jdbcType="VARCHAR" property="taskDate" />
|
|
|
+ <result column="DEVICE_SN" jdbcType="VARCHAR" property="deviceSn" />
|
|
|
+ <result column="STATION_CODE" jdbcType="VARCHAR" property="stationCode" />
|
|
|
+ <result column="AIREAD_ID" jdbcType="VARCHAR" property="aireadId" />
|
|
|
+ <result column="SERVER_READ_ID" jdbcType="VARCHAR" property="serverReadId" />
|
|
|
+ <result column="SAMPLE_TIME" jdbcType="TIMESTAMP" property="sampleTime" />
|
|
|
+ <result column="IDENT_VALUE" jdbcType="DECIMAL" property="identValue" />
|
|
|
+ <result column="RAW_VALUE" jdbcType="DECIMAL" property="rawValue" />
|
|
|
+ <result column="SERVER_VALUE" jdbcType="DECIMAL" property="serverValue" />
|
|
|
+ <result column="REVIEW_VALUE" jdbcType="DECIMAL" property="reviewValue" />
|
|
|
+ <result column="IDEN_VALID_FLAG" jdbcType="CHAR" property="idenValidFlag" />
|
|
|
+ <result column="SERVER_VALID_FLAG" jdbcType="CHAR" property="serverValidFlag" />
|
|
|
+ <result column="REVIEW_TIME" jdbcType="TIMESTAMP" property="reviewTime" />
|
|
|
+ <result column="REVIEW_MAN" jdbcType="VARCHAR" property="reviewMan" />
|
|
|
+ <result column="FINISHED_FLAG" jdbcType="CHAR" property="finishedFlag" />
|
|
|
+ <result column="FINISHED_TIME" jdbcType="TIMESTAMP" property="finishedTime" />
|
|
|
+ <result column="HISTORY_FLAG" jdbcType="CHAR" property="historyFlag" />
|
|
|
+ <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="MCU_IMAGE_URL" jdbcType="VARCHAR" property="mcuImageUrl" />
|
|
|
+ <result column="SERVER_IMAGE_URL" jdbcType="VARCHAR" property="serverImageUrl" />
|
|
|
+ <result column="SEND_SLS_FLAG" jdbcType="CHAR" property="sendSlsFlag" />
|
|
|
+ <result column="SLS_REPLY_MSG" jdbcType="VARCHAR" property="slsReplyMsg" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <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">
|
|
|
+ <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">
|
|
|
+ ID, TASK_ID, TASK_DATE, DEVICE_SN, STATION_CODE, AIREAD_ID, SERVER_READ_ID, SAMPLE_TIME,
|
|
|
+ IDENT_VALUE, RAW_VALUE, SERVER_VALUE, REVIEW_VALUE, IDEN_VALID_FLAG, SERVER_VALID_FLAG,
|
|
|
+ REVIEW_TIME, REVIEW_MAN, FINISHED_FLAG, FINISHED_TIME, HISTORY_FLAG, CREATE_TIME,
|
|
|
+ MCU_IMAGE_URL, SERVER_IMAGE_URL, SEND_SLS_FLAG, SLS_REPLY_MSG
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.mvc.entity.TaskReviewExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from task_review
|
|
|
+ <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">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from task_review
|
|
|
+ where ID = #{id,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from task_review
|
|
|
+ where ID = #{id,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.mvc.entity.TaskReviewExample">
|
|
|
+ delete from task_review
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.mvc.entity.TaskReview">
|
|
|
+ insert into task_review (ID, TASK_ID, TASK_DATE,
|
|
|
+ DEVICE_SN, STATION_CODE, AIREAD_ID,
|
|
|
+ SERVER_READ_ID, SAMPLE_TIME, IDENT_VALUE,
|
|
|
+ RAW_VALUE, SERVER_VALUE, REVIEW_VALUE,
|
|
|
+ IDEN_VALID_FLAG, SERVER_VALID_FLAG, REVIEW_TIME,
|
|
|
+ REVIEW_MAN, FINISHED_FLAG, FINISHED_TIME,
|
|
|
+ HISTORY_FLAG, CREATE_TIME, MCU_IMAGE_URL,
|
|
|
+ SERVER_IMAGE_URL, SEND_SLS_FLAG, SLS_REPLY_MSG
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=INTEGER}, #{taskId,jdbcType=VARCHAR}, #{taskDate,jdbcType=VARCHAR},
|
|
|
+ #{deviceSn,jdbcType=VARCHAR}, #{stationCode,jdbcType=VARCHAR}, #{aireadId,jdbcType=VARCHAR},
|
|
|
+ #{serverReadId,jdbcType=VARCHAR}, #{sampleTime,jdbcType=TIMESTAMP}, #{identValue,jdbcType=DECIMAL},
|
|
|
+ #{rawValue,jdbcType=DECIMAL}, #{serverValue,jdbcType=DECIMAL}, #{reviewValue,jdbcType=DECIMAL},
|
|
|
+ #{idenValidFlag,jdbcType=CHAR}, #{serverValidFlag,jdbcType=CHAR}, #{reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ #{reviewMan,jdbcType=VARCHAR}, #{finishedFlag,jdbcType=CHAR}, #{finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ #{historyFlag,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ #{serverImageUrl,jdbcType=VARCHAR}, #{sendSlsFlag,jdbcType=CHAR}, #{slsReplyMsg,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.mvc.entity.TaskReview">
|
|
|
+ insert into task_review
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ ID,
|
|
|
+ </if>
|
|
|
+ <if test="taskId != null">
|
|
|
+ TASK_ID,
|
|
|
+ </if>
|
|
|
+ <if test="taskDate != null">
|
|
|
+ TASK_DATE,
|
|
|
+ </if>
|
|
|
+ <if test="deviceSn != null">
|
|
|
+ DEVICE_SN,
|
|
|
+ </if>
|
|
|
+ <if test="stationCode != null">
|
|
|
+ STATION_CODE,
|
|
|
+ </if>
|
|
|
+ <if test="aireadId != null">
|
|
|
+ AIREAD_ID,
|
|
|
+ </if>
|
|
|
+ <if test="serverReadId != null">
|
|
|
+ SERVER_READ_ID,
|
|
|
+ </if>
|
|
|
+ <if test="sampleTime != null">
|
|
|
+ SAMPLE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="identValue != null">
|
|
|
+ IDENT_VALUE,
|
|
|
+ </if>
|
|
|
+ <if test="rawValue != null">
|
|
|
+ RAW_VALUE,
|
|
|
+ </if>
|
|
|
+ <if test="serverValue != null">
|
|
|
+ SERVER_VALUE,
|
|
|
+ </if>
|
|
|
+ <if test="reviewValue != null">
|
|
|
+ REVIEW_VALUE,
|
|
|
+ </if>
|
|
|
+ <if test="idenValidFlag != null">
|
|
|
+ IDEN_VALID_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="serverValidFlag != null">
|
|
|
+ SERVER_VALID_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="reviewTime != null">
|
|
|
+ REVIEW_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="reviewMan != null">
|
|
|
+ REVIEW_MAN,
|
|
|
+ </if>
|
|
|
+ <if test="finishedFlag != null">
|
|
|
+ FINISHED_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="finishedTime != null">
|
|
|
+ FINISHED_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="historyFlag != null">
|
|
|
+ HISTORY_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CREATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="mcuImageUrl != null">
|
|
|
+ MCU_IMAGE_URL,
|
|
|
+ </if>
|
|
|
+ <if test="serverImageUrl != null">
|
|
|
+ SERVER_IMAGE_URL,
|
|
|
+ </if>
|
|
|
+ <if test="sendSlsFlag != null">
|
|
|
+ SEND_SLS_FLAG,
|
|
|
+ </if>
|
|
|
+ <if test="slsReplyMsg != null">
|
|
|
+ SLS_REPLY_MSG,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="taskId != null">
|
|
|
+ #{taskId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taskDate != null">
|
|
|
+ #{taskDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deviceSn != null">
|
|
|
+ #{deviceSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationCode != null">
|
|
|
+ #{stationCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="aireadId != null">
|
|
|
+ #{aireadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverReadId != null">
|
|
|
+ #{serverReadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sampleTime != null">
|
|
|
+ #{sampleTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="identValue != null">
|
|
|
+ #{identValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="rawValue != null">
|
|
|
+ #{rawValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="serverValue != null">
|
|
|
+ #{serverValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="reviewValue != null">
|
|
|
+ #{reviewValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="idenValidFlag != null">
|
|
|
+ #{idenValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverValidFlag != null">
|
|
|
+ #{serverValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reviewTime != null">
|
|
|
+ #{reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="reviewMan != null">
|
|
|
+ #{reviewMan,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="finishedFlag != null">
|
|
|
+ #{finishedFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="finishedTime != null">
|
|
|
+ #{finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="historyFlag != null">
|
|
|
+ #{historyFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="mcuImageUrl != null">
|
|
|
+ #{mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverImageUrl != null">
|
|
|
+ #{serverImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sendSlsFlag != null">
|
|
|
+ #{sendSlsFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="slsReplyMsg != null">
|
|
|
+ #{slsReplyMsg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.mvc.entity.TaskReviewExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from task_review
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update task_review
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ ID = #{record.id,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.taskId != null">
|
|
|
+ TASK_ID = #{record.taskId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.taskDate != null">
|
|
|
+ TASK_DATE = #{record.taskDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.deviceSn != null">
|
|
|
+ DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.stationCode != null">
|
|
|
+ STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.aireadId != null">
|
|
|
+ AIREAD_ID = #{record.aireadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.serverReadId != null">
|
|
|
+ SERVER_READ_ID = #{record.serverReadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.sampleTime != null">
|
|
|
+ SAMPLE_TIME = #{record.sampleTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.identValue != null">
|
|
|
+ IDENT_VALUE = #{record.identValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.rawValue != null">
|
|
|
+ RAW_VALUE = #{record.rawValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.serverValue != null">
|
|
|
+ SERVER_VALUE = #{record.serverValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.reviewValue != null">
|
|
|
+ REVIEW_VALUE = #{record.reviewValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.idenValidFlag != null">
|
|
|
+ IDEN_VALID_FLAG = #{record.idenValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.serverValidFlag != null">
|
|
|
+ SERVER_VALID_FLAG = #{record.serverValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.reviewTime != null">
|
|
|
+ REVIEW_TIME = #{record.reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.reviewMan != null">
|
|
|
+ REVIEW_MAN = #{record.reviewMan,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.finishedFlag != null">
|
|
|
+ FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.finishedTime != null">
|
|
|
+ FINISHED_TIME = #{record.finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.historyFlag != null">
|
|
|
+ HISTORY_FLAG = #{record.historyFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.mcuImageUrl != null">
|
|
|
+ MCU_IMAGE_URL = #{record.mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.serverImageUrl != null">
|
|
|
+ SERVER_IMAGE_URL = #{record.serverImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.sendSlsFlag != null">
|
|
|
+ SEND_SLS_FLAG = #{record.sendSlsFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.slsReplyMsg != null">
|
|
|
+ SLS_REPLY_MSG = #{record.slsReplyMsg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update task_review
|
|
|
+ set ID = #{record.id,jdbcType=INTEGER},
|
|
|
+ TASK_ID = #{record.taskId,jdbcType=VARCHAR},
|
|
|
+ TASK_DATE = #{record.taskDate,jdbcType=VARCHAR},
|
|
|
+ DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
|
|
|
+ STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
|
|
|
+ AIREAD_ID = #{record.aireadId,jdbcType=VARCHAR},
|
|
|
+ SERVER_READ_ID = #{record.serverReadId,jdbcType=VARCHAR},
|
|
|
+ SAMPLE_TIME = #{record.sampleTime,jdbcType=TIMESTAMP},
|
|
|
+ IDENT_VALUE = #{record.identValue,jdbcType=DECIMAL},
|
|
|
+ RAW_VALUE = #{record.rawValue,jdbcType=DECIMAL},
|
|
|
+ SERVER_VALUE = #{record.serverValue,jdbcType=DECIMAL},
|
|
|
+ REVIEW_VALUE = #{record.reviewValue,jdbcType=DECIMAL},
|
|
|
+ IDEN_VALID_FLAG = #{record.idenValidFlag,jdbcType=CHAR},
|
|
|
+ SERVER_VALID_FLAG = #{record.serverValidFlag,jdbcType=CHAR},
|
|
|
+ REVIEW_TIME = #{record.reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ REVIEW_MAN = #{record.reviewMan,jdbcType=VARCHAR},
|
|
|
+ FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
|
|
|
+ FINISHED_TIME = #{record.finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ HISTORY_FLAG = #{record.historyFlag,jdbcType=CHAR},
|
|
|
+ CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ MCU_IMAGE_URL = #{record.mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ SERVER_IMAGE_URL = #{record.serverImageUrl,jdbcType=VARCHAR},
|
|
|
+ SEND_SLS_FLAG = #{record.sendSlsFlag,jdbcType=CHAR},
|
|
|
+ SLS_REPLY_MSG = #{record.slsReplyMsg,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.mvc.entity.TaskReview">
|
|
|
+ update task_review
|
|
|
+ <set>
|
|
|
+ <if test="taskId != null">
|
|
|
+ TASK_ID = #{taskId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taskDate != null">
|
|
|
+ TASK_DATE = #{taskDate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deviceSn != null">
|
|
|
+ DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationCode != null">
|
|
|
+ STATION_CODE = #{stationCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="aireadId != null">
|
|
|
+ AIREAD_ID = #{aireadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverReadId != null">
|
|
|
+ SERVER_READ_ID = #{serverReadId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sampleTime != null">
|
|
|
+ SAMPLE_TIME = #{sampleTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="identValue != null">
|
|
|
+ IDENT_VALUE = #{identValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="rawValue != null">
|
|
|
+ RAW_VALUE = #{rawValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="serverValue != null">
|
|
|
+ SERVER_VALUE = #{serverValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="reviewValue != null">
|
|
|
+ REVIEW_VALUE = #{reviewValue,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="idenValidFlag != null">
|
|
|
+ IDEN_VALID_FLAG = #{idenValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverValidFlag != null">
|
|
|
+ SERVER_VALID_FLAG = #{serverValidFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reviewTime != null">
|
|
|
+ REVIEW_TIME = #{reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="reviewMan != null">
|
|
|
+ REVIEW_MAN = #{reviewMan,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="finishedFlag != null">
|
|
|
+ FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="finishedTime != null">
|
|
|
+ FINISHED_TIME = #{finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="historyFlag != null">
|
|
|
+ HISTORY_FLAG = #{historyFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="mcuImageUrl != null">
|
|
|
+ MCU_IMAGE_URL = #{mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="serverImageUrl != null">
|
|
|
+ SERVER_IMAGE_URL = #{serverImageUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sendSlsFlag != null">
|
|
|
+ SEND_SLS_FLAG = #{sendSlsFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="slsReplyMsg != null">
|
|
|
+ SLS_REPLY_MSG = #{slsReplyMsg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ID = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.mvc.entity.TaskReview">
|
|
|
+ update task_review
|
|
|
+ set TASK_ID = #{taskId,jdbcType=VARCHAR},
|
|
|
+ TASK_DATE = #{taskDate,jdbcType=VARCHAR},
|
|
|
+ DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
|
|
|
+ STATION_CODE = #{stationCode,jdbcType=VARCHAR},
|
|
|
+ AIREAD_ID = #{aireadId,jdbcType=VARCHAR},
|
|
|
+ SERVER_READ_ID = #{serverReadId,jdbcType=VARCHAR},
|
|
|
+ SAMPLE_TIME = #{sampleTime,jdbcType=TIMESTAMP},
|
|
|
+ IDENT_VALUE = #{identValue,jdbcType=DECIMAL},
|
|
|
+ RAW_VALUE = #{rawValue,jdbcType=DECIMAL},
|
|
|
+ SERVER_VALUE = #{serverValue,jdbcType=DECIMAL},
|
|
|
+ REVIEW_VALUE = #{reviewValue,jdbcType=DECIMAL},
|
|
|
+ IDEN_VALID_FLAG = #{idenValidFlag,jdbcType=CHAR},
|
|
|
+ SERVER_VALID_FLAG = #{serverValidFlag,jdbcType=CHAR},
|
|
|
+ REVIEW_TIME = #{reviewTime,jdbcType=TIMESTAMP},
|
|
|
+ REVIEW_MAN = #{reviewMan,jdbcType=VARCHAR},
|
|
|
+ FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
|
|
|
+ FINISHED_TIME = #{finishedTime,jdbcType=TIMESTAMP},
|
|
|
+ HISTORY_FLAG = #{historyFlag,jdbcType=CHAR},
|
|
|
+ CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ MCU_IMAGE_URL = #{mcuImageUrl,jdbcType=VARCHAR},
|
|
|
+ SERVER_IMAGE_URL = #{serverImageUrl,jdbcType=VARCHAR},
|
|
|
+ SEND_SLS_FLAG = #{sendSlsFlag,jdbcType=CHAR},
|
|
|
+ SLS_REPLY_MSG = #{slsReplyMsg,jdbcType=VARCHAR}
|
|
|
+ where ID = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|