<?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.landtool.lanbase.modules.res.dao.Res_FileSource_WayMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
<id column="ID" property="id" jdbcType="INTEGER" />
|
<result column="RESOURCEID" property="resourceid" jdbcType="INTEGER" />
|
<result column="SHOWWAY" property="showway" jdbcType="VARCHAR" />
|
<result column="URL" property="url" jdbcType="VARCHAR" />
|
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
|
</resultMap>
|
<resultMap id="ResultMapWithBLOBs" type="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" extends="BaseResultMap" >
|
<result column="REMARK" property="remark" jdbcType="LONGVARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
ID, RESOURCEID, SHOWWAY, URL, CREATEDATE
|
</sql>
|
<sql id="Blob_Column_List" >
|
REMARK
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
,
|
<include refid="Blob_Column_List" />
|
from RES_FILESOURCE_WAY
|
where ID = #{id,jdbcType=INTEGER}
|
</select>
|
|
<select id="selectById" resultType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
,
|
<include refid="Blob_Column_List" />
|
from RES_FILESOURCE_WAY
|
where RESOURCEID = #{id,jdbcType=INTEGER}
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_FILESOURCE_WAY
|
where RESOURCEID = #{RESOURCEID,jdbcType=INTEGER}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
insert into RES_FILESOURCE_WAY (ID, RESOURCEID, SHOWWAY,
|
URL, CREATEDATE, REMARK
|
)
|
values (#{id,jdbcType=INTEGER}, #{resourceid,jdbcType=INTEGER}, #{showway,jdbcType=VARCHAR},
|
#{url,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{remark,jdbcType=LONGVARCHAR}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
insert into RES_FILESOURCE_WAY
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="showway != null" >
|
SHOWWAY,
|
</if>
|
<if test="url != null" >
|
URL,
|
</if>
|
<if test="createdate != null" >
|
CREATEDATE,
|
</if>
|
<if test="remark != null" >
|
REMARK,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=INTEGER},
|
</if>
|
<if test="showway != null" >
|
#{showway,jdbcType=VARCHAR},
|
</if>
|
<if test="url != null" >
|
#{url,jdbcType=VARCHAR},
|
</if>
|
<if test="createdate != null" >
|
#{createdate,jdbcType=TIMESTAMP},
|
</if>
|
<if test="remark != null" >
|
#{remark,jdbcType=LONGVARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
update RES_FILESOURCE_WAY
|
<set >
|
<if test="resourceid != null" >
|
RESOURCEID = #{resourceid,jdbcType=INTEGER},
|
</if>
|
<if test="showway != null" >
|
SHOWWAY = #{showway,jdbcType=VARCHAR},
|
</if>
|
<if test="url != null" >
|
URL = #{url,jdbcType=VARCHAR},
|
</if>
|
<if test="createdate != null" >
|
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
|
</if>
|
<if test="remark != null" >
|
REMARK = #{remark,jdbcType=LONGVARCHAR},
|
</if>
|
</set>
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
update RES_FILESOURCE_WAY
|
set RESOURCEID = #{resourceid,jdbcType=INTEGER},
|
SHOWWAY = #{showway,jdbcType=VARCHAR},
|
URL = #{url,jdbcType=VARCHAR},
|
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
|
REMARK = #{remark,jdbcType=LONGVARCHAR}
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_FileSource_Way" >
|
update RES_FILESOURCE_WAY
|
set RESOURCEID = #{resourceid,jdbcType=INTEGER},
|
SHOWWAY = #{showway,jdbcType=VARCHAR},
|
URL = #{url,jdbcType=VARCHAR},
|
CREATEDATE = #{createdate,jdbcType=TIMESTAMP}
|
where ID = #{id,jdbcType=INTEGER}
|
</update>
|
</mapper>
|