...
|
...
|
@@ -9,9 +9,10 @@ |
|
|
<result column="api_data" property="apiData" jdbcType="VARCHAR"/>
|
|
|
<result column="api_toggle" property="apiToggle" jdbcType="INTEGER"/>
|
|
|
<result column="api_req_method" property="apiReqMethod" jdbcType="INTEGER"/>
|
|
|
<result column="api_warn_trigger" property="apiWarnTrigger" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
service_id, service_type, api_name, api_url, api_data, api_toggle, api_req_method
|
|
|
service_id, service_type, api_name, api_url, api_data, api_toggle, api_req_method,api_warn_trigger
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
...
|
...
|
@@ -25,11 +26,11 @@ |
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.model.JavaApiInfo">
|
|
|
insert into java_api_info (service_id, service_type, api_name,
|
|
|
api_url, api_data, api_toggle,
|
|
|
api_req_method)
|
|
|
api_url, api_data, api_toggle,
|
|
|
api_req_method,api_warn_trigger)
|
|
|
values (#{serviceId,jdbcType=INTEGER}, #{serviceType,jdbcType=INTEGER}, #{apiName,jdbcType=VARCHAR},
|
|
|
#{apiUrl,jdbcType=VARCHAR}, #{apiData,jdbcType=VARCHAR}, #{apiToggle,jdbcType=INTEGER},
|
|
|
#{apiReqMethod,jdbcType=INTEGER})
|
|
|
#{apiReqMethod,jdbcType=INTEGER},#{apiWarnTrigger,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.model.JavaApiInfo">
|
|
|
insert into java_api_info
|
...
|
...
|
@@ -55,6 +56,9 @@ |
|
|
<if test="apiReqMethod != null">
|
|
|
api_req_method,
|
|
|
</if>
|
|
|
<if test="apiWarnTrigger != null">
|
|
|
api_warn_trigger,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="serviceId != null">
|
...
|
...
|
@@ -78,6 +82,9 @@ |
|
|
<if test="apiReqMethod != null">
|
|
|
#{apiReqMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="apiWarnTrigger != null">
|
|
|
#{apiWarnTrigger,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.model.JavaApiInfo">
|
...
|
...
|
@@ -101,6 +108,9 @@ |
|
|
<if test="apiReqMethod != null">
|
|
|
api_req_method = #{apiReqMethod,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="apiWarnTrigger != null">
|
|
|
api_warn_trigger= #{apiWarnTrigger,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where service_id = #{serviceId,jdbcType=INTEGER}
|
|
|
</update>
|
...
|
...
|
@@ -111,7 +121,8 @@ |
|
|
api_url = #{apiUrl,jdbcType=VARCHAR},
|
|
|
api_data = #{apiData,jdbcType=VARCHAR},
|
|
|
api_toggle = #{apiToggle,jdbcType=INTEGER},
|
|
|
api_req_method = #{apiReqMethod,jdbcType=INTEGER}
|
|
|
api_req_method = #{apiReqMethod,jdbcType=INTEGER},
|
|
|
api_warn_trigger= #{apiWarnTrigger,jdbcType=INTEGER}
|
|
|
where service_id = #{serviceId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
...
|
...
|
@@ -146,6 +157,9 @@ |
|
|
<if test="params.apiReqMethod != null">
|
|
|
and api_req_method = #{params.apiReqMethod,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="params.apiWarnTrigger != null">
|
|
|
and api_warn_trigger = #{params.apiWarnTrigger,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectJavaInfosByCodition" resultMap="BaseResultMap">
|
...
|
...
|
@@ -172,6 +186,9 @@ |
|
|
<if test="params.apiReqMethod != null">
|
|
|
and api_req_method = #{params.apiReqMethod,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="params.apiWarnTrigger != null">
|
|
|
and api_warn_trigger = #{params.apiWarnTrigger,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
limit #{startIndex},#{pageSize}
|
|
|
</select>
|
|
|
|
...
|
...
|
|