106 lines
3.6 KiB
XML
106 lines
3.6 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.FwqInfoDao">
|
|
<resultMap id="fwqInfoResultMap" type="com.nis.domain.restful.FwqInfo">
|
|
<id column="ID" jdbcType="BIGINT" property="id" />
|
|
<result column="NAME" jdbcType="VARCHAR" property="name" />
|
|
<result column="ENTRANCE_ID" jdbcType="BIGINT" property="entranceId" />
|
|
<result column="CZYID" jdbcType="BIGINT" property="czyid" />
|
|
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
|
<result property="lastUpdate" jdbcType="TIMESTAMP" column="LAST_UPDATE"/>
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
ID, NAME, ENTRANCE_ID, CZYID, OP_TIME,LAST_UPDATE
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="fwqInfoResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from FWQ_INFO
|
|
where ID = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="delete" parameterType="java.lang.Long">
|
|
delete from FWQ_INFO
|
|
where ID = #{id,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.nis.domain.restful.FwqInfo">
|
|
<!--
|
|
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="id">
|
|
SELECT SEQ_FWQ_INFO.Nextval as ID from DUAL
|
|
</selectKey>
|
|
-->
|
|
insert into FWQ_INFO (ID, NAME, ENTRANCE_ID,
|
|
CZYID, OP_TIME,LAST_UPDATE)
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{entranceId,jdbcType=BIGINT},
|
|
#{czyid,jdbcType=BIGINT}, #{opTime,jdbcType=TIMESTAMP},#{lastUpdate,jdbcType=TIMESTAMP})
|
|
</insert>
|
|
<!--
|
|
<insert id="insertSelective" parameterType="com.nis.domain.restful.FwqInfo">
|
|
insert into FWQ_INFO
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
ID,
|
|
</if>
|
|
<if test="name != null">
|
|
NAME,
|
|
</if>
|
|
<if test="entranceId != null">
|
|
ENTRANCE_ID,
|
|
</if>
|
|
<if test="czyid != null">
|
|
CZYID,
|
|
</if>
|
|
<if test="opTime != null">
|
|
OP_TIME,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="name != null">
|
|
#{name,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="entranceId != null">
|
|
#{entranceId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="czyid != null">
|
|
#{czyid,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="opTime != null">
|
|
#{opTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
-->
|
|
<update id="update" parameterType="com.nis.domain.restful.FwqInfo">
|
|
update FWQ_INFO
|
|
<set>
|
|
<if test="name != null">
|
|
NAME = #{name,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="entranceId != null">
|
|
ENTRANCE_ID = #{entranceId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="czyid != null">
|
|
CZYID = #{czyid,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="opTime != null">
|
|
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
|
</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.FwqInfo">
|
|
update FWQ_INFO
|
|
set NAME = #{name,jdbcType=VARCHAR},
|
|
ENTRANCE_ID = #{entranceId,jdbcType=BIGINT},
|
|
CZYID = #{czyid,jdbcType=BIGINT},
|
|
OP_TIME = #{opTime,jdbcType=TIMESTAMP}
|
|
where ID = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
-->
|
|
</mapper> |