183 lines
7.2 KiB
XML
183 lines
7.2 KiB
XML
<?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.chaozhanggui.system.cashierservice.dao.ToolAlipayConfigMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfig">
|
|
<id column="config_id" jdbcType="BIGINT" property="configId" />
|
|
<result column="app_id" jdbcType="VARCHAR" property="appId" />
|
|
<result column="charset" jdbcType="VARCHAR" property="charset" />
|
|
<result column="format" jdbcType="VARCHAR" property="format" />
|
|
<result column="gateway_url" jdbcType="VARCHAR" property="gatewayUrl" />
|
|
<result column="notify_url" jdbcType="VARCHAR" property="notifyUrl" />
|
|
<result column="return_url" jdbcType="VARCHAR" property="returnUrl" />
|
|
<result column="sign_type" jdbcType="VARCHAR" property="signType" />
|
|
<result column="sys_service_provider_id" jdbcType="VARCHAR" property="sysServiceProviderId" />
|
|
</resultMap>
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs">
|
|
<result column="private_key" jdbcType="LONGVARCHAR" property="privateKey" />
|
|
<result column="public_key" jdbcType="LONGVARCHAR" property="publicKey" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
config_id, app_id, charset, format, gateway_url, notify_url, return_url, sign_type,
|
|
sys_service_provider_id
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
private_key, public_key
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from tool_alipay_config
|
|
where config_id = #{configId,jdbcType=BIGINT}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
delete from tool_alipay_config
|
|
where config_id = #{configId,jdbcType=BIGINT}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs">
|
|
insert into tool_alipay_config (config_id, app_id, charset,
|
|
format, gateway_url, notify_url,
|
|
return_url, sign_type, sys_service_provider_id,
|
|
private_key, public_key)
|
|
values (#{configId,jdbcType=BIGINT}, #{appId,jdbcType=VARCHAR}, #{charset,jdbcType=VARCHAR},
|
|
#{format,jdbcType=VARCHAR}, #{gatewayUrl,jdbcType=VARCHAR}, #{notifyUrl,jdbcType=VARCHAR},
|
|
#{returnUrl,jdbcType=VARCHAR}, #{signType,jdbcType=VARCHAR}, #{sysServiceProviderId,jdbcType=VARCHAR},
|
|
#{privateKey,jdbcType=LONGVARCHAR}, #{publicKey,jdbcType=LONGVARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs">
|
|
insert into tool_alipay_config
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="configId != null">
|
|
config_id,
|
|
</if>
|
|
<if test="appId != null">
|
|
app_id,
|
|
</if>
|
|
<if test="charset != null">
|
|
charset,
|
|
</if>
|
|
<if test="format != null">
|
|
format,
|
|
</if>
|
|
<if test="gatewayUrl != null">
|
|
gateway_url,
|
|
</if>
|
|
<if test="notifyUrl != null">
|
|
notify_url,
|
|
</if>
|
|
<if test="returnUrl != null">
|
|
return_url,
|
|
</if>
|
|
<if test="signType != null">
|
|
sign_type,
|
|
</if>
|
|
<if test="sysServiceProviderId != null">
|
|
sys_service_provider_id,
|
|
</if>
|
|
<if test="privateKey != null">
|
|
private_key,
|
|
</if>
|
|
<if test="publicKey != null">
|
|
public_key,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="configId != null">
|
|
#{configId,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="appId != null">
|
|
#{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="charset != null">
|
|
#{charset,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="format != null">
|
|
#{format,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="gatewayUrl != null">
|
|
#{gatewayUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="notifyUrl != null">
|
|
#{notifyUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="returnUrl != null">
|
|
#{returnUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="signType != null">
|
|
#{signType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sysServiceProviderId != null">
|
|
#{sysServiceProviderId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="privateKey != null">
|
|
#{privateKey,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
<if test="publicKey != null">
|
|
#{publicKey,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs">
|
|
update tool_alipay_config
|
|
<set>
|
|
<if test="appId != null">
|
|
app_id = #{appId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="charset != null">
|
|
charset = #{charset,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="format != null">
|
|
format = #{format,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="gatewayUrl != null">
|
|
gateway_url = #{gatewayUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="notifyUrl != null">
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="returnUrl != null">
|
|
return_url = #{returnUrl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="signType != null">
|
|
sign_type = #{signType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sysServiceProviderId != null">
|
|
sys_service_provider_id = #{sysServiceProviderId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="privateKey != null">
|
|
private_key = #{privateKey,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
<if test="publicKey != null">
|
|
public_key = #{publicKey,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where config_id = #{configId,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfigWithBLOBs">
|
|
update tool_alipay_config
|
|
set app_id = #{appId,jdbcType=VARCHAR},
|
|
charset = #{charset,jdbcType=VARCHAR},
|
|
format = #{format,jdbcType=VARCHAR},
|
|
gateway_url = #{gatewayUrl,jdbcType=VARCHAR},
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR},
|
|
return_url = #{returnUrl,jdbcType=VARCHAR},
|
|
sign_type = #{signType,jdbcType=VARCHAR},
|
|
sys_service_provider_id = #{sysServiceProviderId,jdbcType=VARCHAR},
|
|
private_key = #{privateKey,jdbcType=LONGVARCHAR},
|
|
public_key = #{publicKey,jdbcType=LONGVARCHAR}
|
|
where config_id = #{configId,jdbcType=BIGINT}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.ToolAlipayConfig">
|
|
update tool_alipay_config
|
|
set app_id = #{appId,jdbcType=VARCHAR},
|
|
charset = #{charset,jdbcType=VARCHAR},
|
|
format = #{format,jdbcType=VARCHAR},
|
|
gateway_url = #{gatewayUrl,jdbcType=VARCHAR},
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR},
|
|
return_url = #{returnUrl,jdbcType=VARCHAR},
|
|
sign_type = #{signType,jdbcType=VARCHAR},
|
|
sys_service_provider_id = #{sysServiceProviderId,jdbcType=VARCHAR}
|
|
where config_id = #{configId,jdbcType=BIGINT}
|
|
</update>
|
|
</mapper> |