commandInfoMapper.xml 6.0 KB
<?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.sy.mapper.commandInfoMapper">
  <resultMap id="BaseResultMap" type="com.sy.model.commandInfo">
    <result column="AREA_ID" jdbcType="VARCHAR" property="areaId" />
    <result column="CHNL_NO" jdbcType="VARCHAR" property="chnlNo" />
    <result column="I_E_TYPE" jdbcType="VARCHAR" property="iEType" />
    <result column="SEQ_NO" jdbcType="VARCHAR" property="seqNo" />
    <result column="EXECUTE_RESULT" jdbcType="VARCHAR" property="executeResult" />
    <result column="SOURCE" jdbcType="VARCHAR" property="source" />
    <result column="ACTION" jdbcType="VARCHAR" property="action" />
    <result column="OPEN_TIMES" jdbcType="DECIMAL" property="openTimes" />
    <result column="ESEAL_IC_NO" jdbcType="VARCHAR" property="esealIcNo" />
    <result column="ESEAL_ID" jdbcType="VARCHAR" property="esealId" />
    <result column="ESEAL_STATEHINT" jdbcType="VARCHAR" property="esealStatehint" />
    <result column="ESEAL_STATECODE" jdbcType="VARCHAR" property="esealStatecode" />
    <result column="OLDESEAL_ID" jdbcType="VARCHAR" property="oldesealId" />
    <result column="NEWESEAL_ID" jdbcType="VARCHAR" property="newesealId" />
    <result column="ESEAL_KEY" jdbcType="VARCHAR" property="esealKey" />
    <result column="ACTION_MODEL" jdbcType="VARCHAR" property="actionModel" />
    <result column="CHANGE_CAUSE" jdbcType="VARCHAR" property="changeCause" />
    <result column="CHANGE_TIME" jdbcType="TIMESTAMP" property="changeTime" />
    <result column="OPER_NAME" jdbcType="VARCHAR" property="operName" />
    <result column="OP_HINT" jdbcType="VARCHAR" property="opHint" />
  </resultMap>
  <insert id="insert" parameterType="com.sy.model.commandInfo">
    insert into commandinfo (AREA_ID, CHNL_NO, I_E_TYPE, 
      SEQ_NO, EXECUTE_RESULT, SOURCE, 
      ACTION, OPEN_TIMES, ESEAL_IC_NO, 
      ESEAL_ID, ESEAL_STATEHINT, ESEAL_STATECODE, 
      OLDESEAL_ID, NEWESEAL_ID, ESEAL_KEY, 
      ACTION_MODEL, CHANGE_CAUSE, CHANGE_TIME, 
      OPER_NAME, OP_HINT)
    values (#{areaId,jdbcType=VARCHAR}, #{chnlNo,jdbcType=VARCHAR}, #{iEType,jdbcType=VARCHAR}, 
      #{seqNo,jdbcType=VARCHAR}, #{executeResult,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, 
      #{action,jdbcType=VARCHAR}, #{openTimes,jdbcType=DECIMAL}, #{esealIcNo,jdbcType=VARCHAR}, 
      #{esealId,jdbcType=VARCHAR}, #{esealStatehint,jdbcType=VARCHAR}, #{esealStatecode,jdbcType=VARCHAR}, 
      #{oldesealId,jdbcType=VARCHAR}, #{newesealId,jdbcType=VARCHAR}, #{esealKey,jdbcType=VARCHAR}, 
      #{actionModel,jdbcType=VARCHAR}, #{changeCause,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, 
      #{operName,jdbcType=VARCHAR}, #{opHint,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.sy.model.commandInfo">
    insert into commandinfo
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="areaId != null">
        AREA_ID,
      </if>
      <if test="chnlNo != null">
        CHNL_NO,
      </if>
      <if test="iEType != null">
        I_E_TYPE,
      </if>
      <if test="seqNo != null">
        SEQ_NO,
      </if>
      <if test="executeResult != null">
        EXECUTE_RESULT,
      </if>
      <if test="source != null">
        SOURCE,
      </if>
      <if test="action != null">
        ACTION,
      </if>
      <if test="openTimes != null">
        OPEN_TIMES,
      </if>
      <if test="esealIcNo != null">
        ESEAL_IC_NO,
      </if>
      <if test="esealId != null">
        ESEAL_ID,
      </if>
      <if test="esealStatehint != null">
        ESEAL_STATEHINT,
      </if>
      <if test="esealStatecode != null">
        ESEAL_STATECODE,
      </if>
      <if test="oldesealId != null">
        OLDESEAL_ID,
      </if>
      <if test="newesealId != null">
        NEWESEAL_ID,
      </if>
      <if test="esealKey != null">
        ESEAL_KEY,
      </if>
      <if test="actionModel != null">
        ACTION_MODEL,
      </if>
      <if test="changeCause != null">
        CHANGE_CAUSE,
      </if>
      <if test="changeTime != null">
        CHANGE_TIME,
      </if>
      <if test="operName != null">
        OPER_NAME,
      </if>
      <if test="opHint != null">
        OP_HINT,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="areaId != null">
        #{areaId,jdbcType=VARCHAR},
      </if>
      <if test="chnlNo != null">
        #{chnlNo,jdbcType=VARCHAR},
      </if>
      <if test="iEType != null">
        #{iEType,jdbcType=VARCHAR},
      </if>
      <if test="seqNo != null">
        #{seqNo,jdbcType=VARCHAR},
      </if>
      <if test="executeResult != null">
        #{executeResult,jdbcType=VARCHAR},
      </if>
      <if test="source != null">
        #{source,jdbcType=VARCHAR},
      </if>
      <if test="action != null">
        #{action,jdbcType=VARCHAR},
      </if>
      <if test="openTimes != null">
        #{openTimes,jdbcType=DECIMAL},
      </if>
      <if test="esealIcNo != null">
        #{esealIcNo,jdbcType=VARCHAR},
      </if>
      <if test="esealId != null">
        #{esealId,jdbcType=VARCHAR},
      </if>
      <if test="esealStatehint != null">
        #{esealStatehint,jdbcType=VARCHAR},
      </if>
      <if test="esealStatecode != null">
        #{esealStatecode,jdbcType=VARCHAR},
      </if>
      <if test="oldesealId != null">
        #{oldesealId,jdbcType=VARCHAR},
      </if>
      <if test="newesealId != null">
        #{newesealId,jdbcType=VARCHAR},
      </if>
      <if test="esealKey != null">
        #{esealKey,jdbcType=VARCHAR},
      </if>
      <if test="actionModel != null">
        #{actionModel,jdbcType=VARCHAR},
      </if>
      <if test="changeCause != null">
        #{changeCause,jdbcType=VARCHAR},
      </if>
      <if test="changeTime != null">
        #{changeTime,jdbcType=TIMESTAMP},
      </if>
      <if test="operName != null">
        #{operName,jdbcType=VARCHAR},
      </if>
      <if test="opHint != null">
        #{opHint,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>