2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?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>