<?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_ExtFileSourceMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_ExtFileSource" >
|
<id column="RESOURCEID" property="resourceid" jdbcType="DECIMAL" />
|
<result column="SERVERURL" property="serverurl" jdbcType="OTHER" />
|
<result column="STORAGEMODE" property="storagemode" jdbcType="OTHER" />
|
<result column="GETTYPE" property="gettype" jdbcType="OTHER" />
|
<result column="DOWNLOADMODEL" property="downloadmodel" jdbcType="OTHER" />
|
<result column="FILENAME" property="filename" jdbcType="OTHER" />
|
<result column="FILESIZE" property="filesize" jdbcType="DECIMAL" />
|
<result column="FTPUSERNAME" property="ftpusername" jdbcType="OTHER" />
|
<result column="FTPPWD" property="ftppwd" jdbcType="OTHER" />
|
<result column="FILETYPE" property="filetype" jdbcType="OTHER" />
|
<result column="FILEPAGES" property="filepages" jdbcType="DECIMAL" />
|
<result column="SOURCETYPE" property="sourcetype" jdbcType="OTHER" />
|
<result column="NCCONFIG" property="ncconfig" jdbcType="VARCHAR" />
|
<result column="NCJSONPATH" property="ncjsonpath" jdbcType="VARCHAR" />
|
<result column="NCJSONATTRIBUTE" property="ncjsonattribute" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
RESOURCEID, SERVERURL, STORAGEMODE, GETTYPE, DOWNLOADMODEL, FILENAME, FILESIZE, FTPUSERNAME, NCCONFIG,NCJSONPATH,NCJSONATTRIBUTE,
|
FTPPWD, FILETYPE, FILEPAGES,SOURCETYPE
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
from RES_EXTFILESOURCE
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_EXTFILESOURCE
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtFileSource" >
|
insert into RES_EXTFILESOURCE (RESOURCEID, SERVERURL, STORAGEMODE,
|
GETTYPE, DOWNLOADMODEL, FILENAME,
|
FILESIZE, FTPUSERNAME, FTPPWD,
|
FILETYPE, FILEPAGES,SOURCETYPE,NCCONFIG,NCJSONPATH,NCJSONATTRIBUTE)
|
values (#{resourceid,jdbcType=DECIMAL}, #{serverurl,jdbcType=OTHER}, #{storagemode,jdbcType=OTHER},
|
#{gettype,jdbcType=OTHER}, #{downloadmodel,jdbcType=OTHER}, #{filename,jdbcType=OTHER},
|
#{filesize,jdbcType=DECIMAL}, #{ftpusername,jdbcType=OTHER}, #{ftppwd,jdbcType=OTHER},
|
#{filetype,jdbcType=OTHER}, #{filepages,jdbcType=DECIMAL}),#{sourcetype,jdbcType=OTHER},#{ncconfig,jdbcType=VARCHAR},#{ncjsonpath,jdbcType=VARCHAR},#{ncjsonattribute,jdbcType=VARCHAR}
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtFileSource" >
|
insert into RES_EXTFILESOURCE
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="serverurl != null" >
|
SERVERURL,
|
</if>
|
<if test="storagemode != null" >
|
STORAGEMODE,
|
</if>
|
<if test="gettype != null" >
|
GETTYPE,
|
</if>
|
<if test="downloadmodel != null" >
|
DOWNLOADMODEL,
|
</if>
|
<if test="filename != null" >
|
FILENAME,
|
</if>
|
<if test="filesize != null" >
|
FILESIZE,
|
</if>
|
<if test="ftpusername != null" >
|
FTPUSERNAME,
|
</if>
|
<if test="ftppwd != null" >
|
FTPPWD,
|
</if>
|
<if test="filetype != null" >
|
FILETYPE,
|
</if>
|
<if test="filepages != null" >
|
FILEPAGES,
|
</if>
|
<if test="sourcetype != null" >
|
SOURCETYPE,
|
</if>
|
<if test="ncconfig != null" >
|
NCCONFIG,
|
</if>
|
<if test="ncjsonpath != null" >
|
NCJSONPATH,
|
</if>
|
<if test="ncjsonattribute != null" >
|
NCJSONATTRIBUTE,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="serverurl != null" >
|
#{serverurl,jdbcType=OTHER},
|
</if>
|
<if test="storagemode != null" >
|
#{storagemode,jdbcType=OTHER},
|
</if>
|
<if test="gettype != null" >
|
#{gettype,jdbcType=OTHER},
|
</if>
|
<if test="downloadmodel != null" >
|
#{downloadmodel,jdbcType=OTHER},
|
</if>
|
<if test="filename != null" >
|
#{filename,jdbcType=OTHER},
|
</if>
|
<if test="filesize != null" >
|
#{filesize,jdbcType=DECIMAL},
|
</if>
|
<if test="ftpusername != null" >
|
#{ftpusername,jdbcType=OTHER},
|
</if>
|
<if test="ftppwd != null" >
|
#{ftppwd,jdbcType=OTHER},
|
</if>
|
<if test="filetype != null" >
|
#{filetype,jdbcType=OTHER},
|
</if>
|
<if test="filepages != null" >
|
#{filepages,jdbcType=DECIMAL},
|
</if>
|
<if test="sourcetype != null" >
|
#{sourcetype,jdbcType=OTHER},
|
</if>
|
<if test="ncconfig != null" >
|
#{ncconfig,jdbcType=VARCHAR},
|
</if>
|
<if test="ncjsonpath != null" >
|
#{ncjsonpath,jdbcType=VARCHAR},
|
</if>
|
<if test="ncjsonattribute != null" >
|
#{ncjsonattribute,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtFileSource" >
|
update RES_EXTFILESOURCE
|
<set >
|
<if test="serverurl != null and serverurl != '' " >
|
SERVERURL = #{serverurl,jdbcType=OTHER},
|
</if>
|
<if test="storagemode != null and storagemode !='' " >
|
STORAGEMODE = #{storagemode,jdbcType=OTHER},
|
</if>
|
<if test="gettype != null and gettype != '' " >
|
GETTYPE = #{gettype,jdbcType=OTHER},
|
</if>
|
<if test="downloadmodel != null and downloadmodel != '' " >
|
DOWNLOADMODEL = #{downloadmodel,jdbcType=OTHER},
|
</if>
|
<if test="filename != null and filename !='' " >
|
FILENAME = #{filename,jdbcType=OTHER},
|
</if>
|
<if test="filesize != null and filesize !='' " >
|
FILESIZE = #{filesize,jdbcType=DECIMAL},
|
</if>
|
<if test="ftpusername != null and ftpusername !='' " >
|
FTPUSERNAME = #{ftpusername,jdbcType=OTHER},
|
</if>
|
<if test="ftppwd != null and ftppwd !='' " >
|
FTPPWD = #{ftppwd,jdbcType=OTHER},
|
</if>
|
<if test="filetype != null and filetype !='' " >
|
FILETYPE = #{filetype,jdbcType=OTHER},
|
</if>
|
<if test="filepages != null and filepages != '' " >
|
FILEPAGES = #{filepages,jdbcType=DECIMAL},
|
</if>
|
<if test="sourcetype != null and sourcetype !='' " >
|
SOURCETYPE = #{sourcetype,jdbcType=OTHER},
|
</if>
|
<if test="ncconfig != null and ncconfig!=''" >
|
NCCONFIG = #{ncconfig,jdbcType=VARCHAR},
|
</if>
|
<if test="ncjsonpath != null" >
|
NCJSONPATH = #{ncjsonpath,jdbcType=VARCHAR},
|
</if>
|
<if test="ncjsonattribute != null" >
|
NCJSONATTRIBUTE = #{ncjsonattribute,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtFileSource" >
|
update RES_EXTFILESOURCE
|
set SERVERURL = #{serverurl,jdbcType=OTHER},
|
STORAGEMODE = #{storagemode,jdbcType=OTHER},
|
GETTYPE = #{gettype,jdbcType=OTHER},
|
DOWNLOADMODEL = #{downloadmodel,jdbcType=OTHER},
|
FILENAME = #{filename,jdbcType=OTHER},
|
FILESIZE = #{filesize,jdbcType=DECIMAL},
|
FTPUSERNAME = #{ftpusername,jdbcType=OTHER},
|
FTPPWD = #{ftppwd,jdbcType=OTHER},
|
FILETYPE = #{filetype,jdbcType=OTHER},
|
FILEPAGES = #{filepages,jdbcType=DECIMAL},
|
SOURCETYPE = #{sourcetype,jdbcType=OTHER}
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
</mapper>
|