112 lines
4.1 KiB
XML
112 lines
4.1 KiB
XML
|
|
<?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.nis.web.dao.EncryptProtoRandomDao">
|
||
|
|
<resultMap id="BaseResultMap" type="com.nis.domain.restful.EncryptProtoRandom">
|
||
|
|
<id column="ID" jdbcType="BIGINT" property="id" />
|
||
|
|
<result column="RANDOM_VALUE" jdbcType="INTEGER" property="randomValue" />
|
||
|
|
<result column="PROTO" jdbcType="INTEGER" property="proto" />
|
||
|
|
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||
|
|
<result column="IS_VALID" jdbcType="INTEGER" property="isValid" />
|
||
|
|
<result column="PROC_SEQ" jdbcType="INTEGER" property="procSeq" />
|
||
|
|
<result column="LAST_UPDATE" jdbcType="TIMESTAMP" property="lastUpdate" />
|
||
|
|
</resultMap>
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
ID, RANDOM_VALUE, PROTO, OP_TIME, IS_VALID, PROC_SEQ, LAST_UPDATE
|
||
|
|
</sql>
|
||
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||
|
|
select
|
||
|
|
<include refid="Base_Column_List" />
|
||
|
|
from ENCRYPT_PROTO_RANDOM
|
||
|
|
where ID = #{id,jdbcType=BIGINT}
|
||
|
|
</select>
|
||
|
|
<delete id="delete" parameterType="java.lang.Long">
|
||
|
|
delete from ENCRYPT_PROTO_RANDOM
|
||
|
|
where ID = #{id,jdbcType=BIGINT}
|
||
|
|
</delete>
|
||
|
|
<!--
|
||
|
|
<insert id="insert" parameterType="com.nis.domain.restful.EncryptProtoRandom">
|
||
|
|
insert into ENCRYPT_PROTO_RANDOM (ID, RANDOM_VALUE, PROTO,
|
||
|
|
OP_TIME, IS_VALID, PROC_SEQ,
|
||
|
|
LAST_UPDATE)
|
||
|
|
values (#{id,jdbcType=INTEGER}, #{randomValue,jdbcType=INTEGER}, #{proto,jdbcType=INTEGER},
|
||
|
|
#{opTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=INTEGER}, #{procSeq,jdbcType=INTEGER},
|
||
|
|
#{lastUpdate,jdbcType=TIMESTAMP})
|
||
|
|
</insert>
|
||
|
|
-->
|
||
|
|
<insert id="insert" parameterType="com.nis.domain.restful.EncryptProtoRandom">
|
||
|
|
<!--
|
||
|
|
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="id">
|
||
|
|
SELECT SEQ_ENCRYPT_PROTO_RANDOM.Nextval as ID from DUAL
|
||
|
|
</selectKey>
|
||
|
|
-->
|
||
|
|
insert into ENCRYPT_PROTO_RANDOM
|
||
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||
|
|
ID,
|
||
|
|
<if test="randomValue != null">
|
||
|
|
RANDOM_VALUE,
|
||
|
|
</if>
|
||
|
|
<if test="proto != null">
|
||
|
|
PROTO,
|
||
|
|
</if>
|
||
|
|
<if test="opTime != null">
|
||
|
|
OP_TIME,
|
||
|
|
</if>
|
||
|
|
<if test="isValid != null">
|
||
|
|
IS_VALID,
|
||
|
|
</if>
|
||
|
|
<if test="lastUpdate != null">
|
||
|
|
LAST_UPDATE,
|
||
|
|
</if>
|
||
|
|
</trim>
|
||
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||
|
|
#{id,jdbcType=BIGINT},
|
||
|
|
<if test="randomValue != null">
|
||
|
|
#{randomValue,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="proto != null">
|
||
|
|
#{proto,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="opTime != null">
|
||
|
|
#{opTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="isValid != null">
|
||
|
|
#{isValid,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="lastUpdate != null">
|
||
|
|
#{lastUpdate,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
</trim>
|
||
|
|
</insert>
|
||
|
|
<update id="update" parameterType="com.nis.domain.restful.EncryptProtoRandom">
|
||
|
|
update ENCRYPT_PROTO_RANDOM
|
||
|
|
<set>
|
||
|
|
<if test="randomValue != null">
|
||
|
|
RANDOM_VALUE = #{randomValue,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="proto != null">
|
||
|
|
PROTO = #{proto,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="opTime != null">
|
||
|
|
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
<if test="isValid != null">
|
||
|
|
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||
|
|
</if>
|
||
|
|
<if test="lastUpdate != null">
|
||
|
|
LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP},
|
||
|
|
</if>
|
||
|
|
</set>
|
||
|
|
where ID = #{id,jdbcType=BIGINT}
|
||
|
|
</update>
|
||
|
|
<!--
|
||
|
|
<update id="updateByPrimaryKey" parameterType="com.nis.domain.restful.EncryptProtoRandom">
|
||
|
|
update ENCRYPT_PROTO_RANDOM
|
||
|
|
set RANDOM_VALUE = #{randomValue,jdbcType=INTEGER},
|
||
|
|
PROTO = #{proto,jdbcType=INTEGER},
|
||
|
|
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||
|
|
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||
|
|
LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP}
|
||
|
|
where ID = #{id,jdbcType=INTEGER}
|
||
|
|
</update>
|
||
|
|
-->
|
||
|
|
</mapper>
|