<?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_ExtInterFaceServiceMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_ExtInterFaceService" >
|
<id column="RESOURCEID" property="resourceid" jdbcType="INTEGER" />
|
<result column="SERVERTYPE" property="servertype" jdbcType="VARCHAR" />
|
<result column="SERVERURL" property="serverurl" jdbcType="VARCHAR" />
|
<result column="HELPURL" property="helpurl" jdbcType="VARCHAR" />
|
<result column="ESBID" property="esbid" jdbcType="DECIMAL" />
|
<result column="OLDSERVERURL" property="oldserverurl" jdbcType="OTHER" />
|
<result column="CONTEXTPATH" property="contextpath" jdbcType="OTHER" />
|
<result column="AGENTSERVERURL" property="agentserverurl" jdbcType="OTHER" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
RESOURCEID, SERVERTYPE, SERVERURL, HELPURL,ESBID,OLDSERVERURL,CONTEXTPATH,AGENTSERVERURL
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
from RES_EXTINTERFACESERVICE
|
where RESOURCEID = #{resourceid,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_EXTINTERFACESERVICE
|
where RESOURCEID = #{resourceid,jdbcType=INTEGER}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtInterFaceService" >
|
insert into RES_EXTINTERFACESERVICE (RESOURCEID, SERVERTYPE, SERVERURL,
|
HELPURL,ESBID,OLDSERVERURL,CONTEXTPATH,AGENTSERVERURL)
|
values (#{resourceid,jdbcType=INTEGER}, #{servertype,jdbcType=VARCHAR}, #{serverurl,jdbcType=VARCHAR},
|
#{helpurl,jdbcType=VARCHAR},#{esbid,jdbcType=INTEGER}, #{oldserverurl,jdbcType=VARCHAR}
|
,#{contextpath,jdbcType=OTHER},#{agentserverurl,jdbcType=OTHER})
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtInterFaceService" >
|
insert into RES_EXTINTERFACESERVICE
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="servertype != null" >
|
SERVERTYPE,
|
</if>
|
<if test="serverurl != null" >
|
SERVERURL,
|
</if>
|
<if test="helpurl != null" >
|
HELPURL,
|
</if>
|
<if test="esbid != null" >
|
ESBID,
|
</if>
|
<if test="oldserverurl != null" >
|
OLDSERVERURL,
|
</if>
|
<if test="contextpath != null" >
|
CONTEXTPATH,
|
</if>
|
<if test="agentserverurl != null" >
|
AGENTSERVERURL,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=INTEGER},
|
</if>
|
<if test="servertype != null" >
|
#{servertype,jdbcType=VARCHAR},
|
</if>
|
<if test="serverurl != null" >
|
#{serverurl,jdbcType=VARCHAR},
|
</if>
|
<if test="helpurl != null" >
|
#{helpurl,jdbcType=VARCHAR},
|
</if>
|
<if test="esbid != null" >
|
#{esbid,jdbcType=DECIMAL},
|
</if>
|
<if test="oldserverurl != null" >
|
#{oldserverurl,jdbcType=OTHER},
|
</if>
|
<if test="contextpath != null" >
|
#{contextpath,jdbcType=OTHER},
|
</if>
|
<if test="agentserverurl != null" >
|
#{agentserverurl,jdbcType=OTHER},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtInterFaceService" >
|
update RES_EXTINTERFACESERVICE
|
<set >
|
<if test="servertype != null" >
|
SERVERTYPE = #{servertype,jdbcType=VARCHAR},
|
</if>
|
<if test="serverurl != null" >
|
SERVERURL = #{serverurl,jdbcType=VARCHAR},
|
</if>
|
<if test="helpurl != null" >
|
HELPURL = #{helpurl,jdbcType=VARCHAR},
|
</if>
|
<if test="esbid != null" >
|
ESBID = #{esbid,jdbcType=DECIMAL},
|
</if>
|
<if test="oldserverurl != null" >
|
OLDSERVERURL = #{oldserverurl,jdbcType=OTHER},
|
</if>
|
<if test="contextpath != null" >
|
CONTEXTPATH = #{contextpath,jdbcType=OTHER},
|
</if>
|
<if test="agentserverurl != null" >
|
AGENTSERVERURL = #{agentserverurl,jdbcType=OTHER},
|
</if>
|
</set>
|
where RESOURCEID = #{resourceid,jdbcType=INTEGER}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtInterFaceService" >
|
update RES_EXTINTERFACESERVICE
|
set SERVERTYPE = #{servertype,jdbcType=VARCHAR},
|
SERVERURL = #{serverurl,jdbcType=VARCHAR},
|
HELPURL = #{helpurl,jdbcType=VARCHAR},
|
ESBID = #{esbid,jdbcType=DECIMAL},
|
OLDSERVERURL = #{oldserverurl,jdbcType=OTHER},
|
CONTEXTPATH = #{contextpath,jdbcType=OTHER},
|
AGENTSERVERURL = #{agentserverurl,jdbcType=OTHER}
|
where RESOURCEID = #{resourceid,jdbcType=INTEGER}
|
</update>
|
|
<select id="isExistContextPath" parameterType="java.lang.String" resultType="java.lang.Integer">
|
SELECT count(*) from RES_EXTINTERFACESERVICE where CONTEXTPATH = #{contextpath}
|
</select>
|
</mapper>
|