...
|
...
|
@@ -5,6 +5,7 @@ |
|
|
<id column="service_id" property="serviceId" jdbcType="INTEGER"/>
|
|
|
<result column="service_type" property="serviceType" jdbcType="INTEGER"/>
|
|
|
<result column="api_name" property="apiName" jdbcType="VARCHAR"/>
|
|
|
<result column="request_type" property="requestType" jdbcType="VARCHAR"/>
|
|
|
<result column="api_url" property="apiUrl" jdbcType="VARCHAR"/>
|
|
|
<result column="api_data" property="apiData" jdbcType="VARCHAR"/>
|
|
|
<result column="api_toggle" property="apiToggle" jdbcType="INTEGER"/>
|
...
|
...
|
@@ -15,7 +16,7 @@ |
|
|
<result column="special_deal_type" property="specialDealType" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
service_id, service_type, api_name, api_url, api_data, api_toggle, api_req_method,api_warn_trigger,api_error_check,api_url_custom,special_deal_type
|
|
|
service_id, service_type, api_name,request_type, api_url, api_data, api_toggle, api_req_method,api_warn_trigger,api_error_check,api_url_custom,special_deal_type
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
...
|
...
|
@@ -29,10 +30,10 @@ |
|
|
</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,
|
|
|
request_type,api_url, api_data, api_toggle,
|
|
|
api_req_method,api_warn_trigger,api_error_check,api_url_custom)
|
|
|
values (#{serviceId,jdbcType=INTEGER}, #{serviceType,jdbcType=INTEGER}, #{apiName,jdbcType=VARCHAR},
|
|
|
#{apiUrl,jdbcType=VARCHAR}, #{apiData,jdbcType=VARCHAR}, #{apiToggle,jdbcType=INTEGER},
|
|
|
#{requestType,jdbcType=VARCHAR},#{apiUrl,jdbcType=VARCHAR}, #{apiData,jdbcType=VARCHAR}, #{apiToggle,jdbcType=INTEGER},
|
|
|
#{apiReqMethod,jdbcType=INTEGER},#{apiWarnTrigger,jdbcType=INTEGER},
|
|
|
#{apiErrorCheck,jdbcType=INTEGER},#{apiUrlCustom,jdbcType=INTEGER})
|
|
|
</insert>
|
...
|
...
|
@@ -48,6 +49,9 @@ |
|
|
<if test="apiName != null">
|
|
|
api_name,
|
|
|
</if>
|
|
|
<if test="requestType != null">
|
|
|
request_type,
|
|
|
</if>
|
|
|
<if test="apiUrl != null">
|
|
|
api_url,
|
|
|
</if>
|
...
|
...
|
@@ -80,6 +84,9 @@ |
|
|
<if test="apiName != null">
|
|
|
#{apiName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="requestType != null">
|
|
|
#{requestType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apiUrl != null">
|
|
|
#{apiUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -112,6 +119,9 @@ |
|
|
<if test="apiName != null">
|
|
|
api_name = #{apiName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="requestType != null">
|
|
|
request_type = #{requestType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="apiUrl != null">
|
|
|
api_url = #{apiUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
...
|
...
|
@@ -140,6 +150,7 @@ |
|
|
update java_api_info
|
|
|
set service_type = #{serviceType,jdbcType=INTEGER},
|
|
|
api_name = #{apiName,jdbcType=VARCHAR},
|
|
|
request_type = #{requestType,jdbcType=VARCHAR},
|
|
|
api_url = #{apiUrl,jdbcType=VARCHAR},
|
|
|
api_data = #{apiData,jdbcType=VARCHAR},
|
|
|
api_toggle = #{apiToggle,jdbcType=INTEGER},
|
...
|
...
|
|