|
|
@ -1,37 +1,37 @@ |
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
<?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"> |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.base.springcloud.dao.MerchantConfigMapper"> |
|
|
<mapper namespace="com.base.springcloud.dao.MerchantConfigMapper"> |
|
|
<resultMap id="BaseResultMap" type="com.base.springcloud.entity.MerchantConfig"> |
|
|
<resultMap id="BaseResultMap" type="com.base.springcloud.entity.MerchantConfig"> |
|
|
<id column="id" jdbcType="VARCHAR" property="id" /> |
|
|
<id column="id" jdbcType="VARCHAR" property="id"/> |
|
|
<result column="app_id" jdbcType="VARCHAR" property="appId" /> |
|
|
<result column="app_id" jdbcType="VARCHAR" property="appId"/> |
|
|
<result column="api_key" jdbcType="VARCHAR" property="appKey" /> |
|
|
<result column="api_key" jdbcType="VARCHAR" property="appKey"/> |
|
|
<result column="cert_path" jdbcType="VARCHAR" property="certPath" /> |
|
|
<result column="cert_path" jdbcType="VARCHAR" property="certPath"/> |
|
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" /> |
|
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId"/> |
|
|
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName" /> |
|
|
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName"/> |
|
|
<result column="city_store_name" jdbcType="VARCHAR" property="cityStoreName" /> |
|
|
<result column="city_store_name" jdbcType="VARCHAR" property="cityStoreName"/> |
|
|
<result column="store_brand_name" jdbcType="VARCHAR" property="storeBrandName" /> |
|
|
<result column="store_brand_name" jdbcType="VARCHAR" property="storeBrandName"/> |
|
|
<result column="sign_type" jdbcType="VARCHAR" property="signType" /> |
|
|
<result column="sign_type" jdbcType="VARCHAR" property="signType"/> |
|
|
<result column="private_key" jdbcType="VARCHAR" property="privateKey" /> |
|
|
<result column="private_key" jdbcType="VARCHAR" property="privateKey"/> |
|
|
<result column="device_info" jdbcType="VARCHAR" property="deviceInfo" /> |
|
|
<result column="device_info" jdbcType="VARCHAR" property="deviceInfo"/> |
|
|
<result column="spbill_create_ip" jdbcType="VARCHAR" property="spbillCreateIp" /> |
|
|
<result column="spbill_create_ip" jdbcType="VARCHAR" property="spbillCreateIp"/> |
|
|
<result column="notify_url" jdbcType="VARCHAR" property="notifyUrl" /> |
|
|
<result column="notify_url" jdbcType="VARCHAR" property="notifyUrl"/> |
|
|
<result column="time_stamp" jdbcType="TIMESTAMP" property="timeStamp" /> |
|
|
<result column="time_stamp" jdbcType="TIMESTAMP" property="timeStamp"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, app_id, api_key, cert_path, merchant_id, merchant_name, city_store_name, store_brand_name, |
|
|
id, app_id, api_key, cert_path, merchant_id, merchant_name, city_store_name, store_brand_name, |
|
|
sign_type, private_key, device_info, spbill_create_ip, notify_url, time_stamp |
|
|
sign_type, private_key, device_info, spbill_create_ip, notify_url, time_stamp |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
<include refid="Base_Column_List" /> |
|
|
<include refid="Base_Column_List"/> |
|
|
from pay_merchant_config |
|
|
from pay_merchant_config |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</select> |
|
|
</select> |
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
|
|
delete from pay_merchant_config |
|
|
delete from pay_merchant_config |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
<insert id="insert" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
insert into pay_merchant_config (id, app_id, api_key, |
|
|
insert into pay_merchant_config (id, app_id, api_key, |
|
|
cert_path, merchant_id, merchant_name, |
|
|
cert_path, merchant_id, merchant_name, |
|
|
city_store_name, store_brand_name, sign_type, |
|
|
city_store_name, store_brand_name, sign_type, |
|
|
@ -43,143 +43,143 @@ |
|
|
#{privateKey,jdbcType=VARCHAR}, #{deviceInfo,jdbcType=VARCHAR}, #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
#{privateKey,jdbcType=VARCHAR}, #{deviceInfo,jdbcType=VARCHAR}, #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
#{notifyUrl,jdbcType=VARCHAR}, #{timeStamp,jdbcType=TIMESTAMP}) |
|
|
#{notifyUrl,jdbcType=VARCHAR}, #{timeStamp,jdbcType=TIMESTAMP}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
<insert id="insertSelective" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
insert into pay_merchant_config |
|
|
insert into pay_merchant_config |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
id, |
|
|
id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="appId != null"> |
|
|
<if test="appId != null"> |
|
|
app_id, |
|
|
app_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="appKey != null"> |
|
|
<if test="appKey != null"> |
|
|
api_key, |
|
|
api_key, |
|
|
</if> |
|
|
</if> |
|
|
<if test="certPath != null"> |
|
|
<if test="certPath != null"> |
|
|
cert_path, |
|
|
cert_path, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantId != null"> |
|
|
<if test="merchantId != null"> |
|
|
merchant_id, |
|
|
merchant_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantName != null"> |
|
|
<if test="merchantName != null"> |
|
|
merchant_name, |
|
|
merchant_name, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cityStoreName != null"> |
|
|
<if test="cityStoreName != null"> |
|
|
city_store_name, |
|
|
city_store_name, |
|
|
</if> |
|
|
</if> |
|
|
<if test="storeBrandName != null"> |
|
|
<if test="storeBrandName != null"> |
|
|
store_brand_name, |
|
|
store_brand_name, |
|
|
</if> |
|
|
</if> |
|
|
<if test="signType != null"> |
|
|
<if test="signType != null"> |
|
|
sign_type, |
|
|
sign_type, |
|
|
</if> |
|
|
</if> |
|
|
<if test="privateKey != null"> |
|
|
<if test="privateKey != null"> |
|
|
private_key, |
|
|
private_key, |
|
|
</if> |
|
|
</if> |
|
|
<if test="deviceInfo != null"> |
|
|
<if test="deviceInfo != null"> |
|
|
device_info, |
|
|
device_info, |
|
|
</if> |
|
|
</if> |
|
|
<if test="spbillCreateIp != null"> |
|
|
<if test="spbillCreateIp != null"> |
|
|
spbill_create_ip, |
|
|
spbill_create_ip, |
|
|
</if> |
|
|
</if> |
|
|
<if test="notifyUrl != null"> |
|
|
<if test="notifyUrl != null"> |
|
|
notify_url, |
|
|
notify_url, |
|
|
</if> |
|
|
</if> |
|
|
<if test="timeStamp != null"> |
|
|
<if test="timeStamp != null"> |
|
|
time_stamp, |
|
|
time_stamp, |
|
|
</if> |
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
#{id,jdbcType=VARCHAR}, |
|
|
#{id,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="appId != null"> |
|
|
<if test="appId != null"> |
|
|
#{appId,jdbcType=VARCHAR}, |
|
|
#{appId,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="appKey != null"> |
|
|
<if test="appKey != null"> |
|
|
#{appKey,jdbcType=VARCHAR}, |
|
|
#{appKey,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="certPath != null"> |
|
|
<if test="certPath != null"> |
|
|
#{certPath,jdbcType=VARCHAR}, |
|
|
#{certPath,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantId != null"> |
|
|
<if test="merchantId != null"> |
|
|
#{merchantId,jdbcType=VARCHAR}, |
|
|
#{merchantId,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantName != null"> |
|
|
<if test="merchantName != null"> |
|
|
#{merchantName,jdbcType=VARCHAR}, |
|
|
#{merchantName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cityStoreName != null"> |
|
|
<if test="cityStoreName != null"> |
|
|
#{cityStoreName,jdbcType=VARCHAR}, |
|
|
#{cityStoreName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="storeBrandName != null"> |
|
|
<if test="storeBrandName != null"> |
|
|
#{storeBrandName,jdbcType=VARCHAR}, |
|
|
#{storeBrandName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="signType != null"> |
|
|
<if test="signType != null"> |
|
|
#{signType,jdbcType=VARCHAR}, |
|
|
#{signType,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="privateKey != null"> |
|
|
<if test="privateKey != null"> |
|
|
#{privateKey,jdbcType=VARCHAR}, |
|
|
#{privateKey,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="deviceInfo != null"> |
|
|
<if test="deviceInfo != null"> |
|
|
#{deviceInfo,jdbcType=VARCHAR}, |
|
|
#{deviceInfo,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="spbillCreateIp != null"> |
|
|
<if test="spbillCreateIp != null"> |
|
|
#{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
#{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="notifyUrl != null"> |
|
|
<if test="notifyUrl != null"> |
|
|
#{notifyUrl,jdbcType=VARCHAR}, |
|
|
#{notifyUrl,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="timeStamp != null"> |
|
|
<if test="timeStamp != null"> |
|
|
#{timeStamp,jdbcType=TIMESTAMP}, |
|
|
#{timeStamp,jdbcType=TIMESTAMP}, |
|
|
</if> |
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
update pay_merchant_config |
|
|
update pay_merchant_config |
|
|
<set> |
|
|
<set> |
|
|
<if test="appId != null"> |
|
|
<if test="appId != null"> |
|
|
app_id = #{appId,jdbcType=VARCHAR}, |
|
|
app_id = #{appId,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="appKey != null"> |
|
|
<if test="appKey != null"> |
|
|
api_key = #{appKey,jdbcType=VARCHAR}, |
|
|
api_key = #{appKey,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="certPath != null"> |
|
|
<if test="certPath != null"> |
|
|
cert_path = #{certPath,jdbcType=VARCHAR}, |
|
|
cert_path = #{certPath,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantId != null"> |
|
|
<if test="merchantId != null"> |
|
|
merchant_id = #{merchantId,jdbcType=VARCHAR}, |
|
|
merchant_id = #{merchantId,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="merchantName != null"> |
|
|
<if test="merchantName != null"> |
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR}, |
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="cityStoreName != null"> |
|
|
<if test="cityStoreName != null"> |
|
|
city_store_name = #{cityStoreName,jdbcType=VARCHAR}, |
|
|
city_store_name = #{cityStoreName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="storeBrandName != null"> |
|
|
<if test="storeBrandName != null"> |
|
|
store_brand_name = #{storeBrandName,jdbcType=VARCHAR}, |
|
|
store_brand_name = #{storeBrandName,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="signType != null"> |
|
|
<if test="signType != null"> |
|
|
sign_type = #{signType,jdbcType=VARCHAR}, |
|
|
sign_type = #{signType,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="privateKey != null"> |
|
|
<if test="privateKey != null"> |
|
|
private_key = #{privateKey,jdbcType=VARCHAR}, |
|
|
private_key = #{privateKey,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="deviceInfo != null"> |
|
|
<if test="deviceInfo != null"> |
|
|
device_info = #{deviceInfo,jdbcType=VARCHAR}, |
|
|
device_info = #{deviceInfo,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="spbillCreateIp != null"> |
|
|
<if test="spbillCreateIp != null"> |
|
|
spbill_create_ip = #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
spbill_create_ip = #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="notifyUrl != null"> |
|
|
<if test="notifyUrl != null"> |
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR}, |
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="timeStamp != null"> |
|
|
<if test="timeStamp != null"> |
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP}, |
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP}, |
|
|
</if> |
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateByPrimaryKey" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.base.springcloud.entity.MerchantConfig"> |
|
|
update pay_merchant_config |
|
|
update pay_merchant_config |
|
|
set app_id = #{appId,jdbcType=VARCHAR}, |
|
|
set app_id = #{appId,jdbcType=VARCHAR}, |
|
|
api_key = #{appKey,jdbcType=VARCHAR}, |
|
|
api_key = #{appKey,jdbcType=VARCHAR}, |
|
|
@ -196,4 +196,56 @@ |
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP} |
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<delete id="removeMerchantConfig" parameterType="java.lang.String"> |
|
|
|
|
|
delete from pay_merchant_config |
|
|
|
|
|
where merchant_id = #{merchantId,jdbcType=VARCHAR} |
|
|
|
|
|
</delete> |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryMerchantConfig" parameterType="com.base.springcloud.entity.MerchantConfig" resultMap="BaseResultMap"> |
|
|
|
|
|
select |
|
|
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
|
|
from pay_merchant_config |
|
|
|
|
|
<where> |
|
|
|
|
|
<if test="appId != null"> |
|
|
|
|
|
app_id = #{appId,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="appKey != null"> |
|
|
|
|
|
api_key = #{appKey,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="certPath != null"> |
|
|
|
|
|
cert_path = #{certPath,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantId != null"> |
|
|
|
|
|
merchant_id = #{merchantId,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantName != null"> |
|
|
|
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityStoreName != null"> |
|
|
|
|
|
city_store_name = #{cityStoreName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="storeBrandName != null"> |
|
|
|
|
|
store_brand_name = #{storeBrandName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="signType != null"> |
|
|
|
|
|
sign_type = #{signType,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="privateKey != null"> |
|
|
|
|
|
private_key = #{privateKey,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="deviceInfo != null"> |
|
|
|
|
|
device_info = #{deviceInfo,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="spbillCreateIp != null"> |
|
|
|
|
|
spbill_create_ip = #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="notifyUrl != null"> |
|
|
|
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="timeStamp != null"> |
|
|
|
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP}, |
|
|
|
|
|
</if> |
|
|
|
|
|
</where> |
|
|
|
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |