|
|
@ -1,6 +1,166 @@ |
|
|
<?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.MerchantMapper"> |
|
|
<mapper namespace="com.base.springcloud.dao.MerchantMapper"> |
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.base.springcloud.entity.Merchant"> |
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" /> |
|
|
|
|
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" /> |
|
|
|
|
|
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName" /> |
|
|
|
|
|
<result column="city_store_name" jdbcType="VARCHAR" property="cityStoreName" /> |
|
|
|
|
|
<result column="store_brand_name" jdbcType="VARCHAR" property="storeBrandName" /> |
|
|
|
|
|
<result column="sign_type" jdbcType="VARCHAR" property="signType" /> |
|
|
|
|
|
<result column="private_key" jdbcType="VARCHAR" property="privateKey" /> |
|
|
|
|
|
<result column="device_info" jdbcType="VARCHAR" property="deviceInfo" /> |
|
|
|
|
|
<result column="spbill_create_ip" jdbcType="VARCHAR" property="spbillCreateIp" /> |
|
|
|
|
|
<result column="notify_url" jdbcType="VARCHAR" property="notifyUrl" /> |
|
|
|
|
|
<result column="time_stamp" jdbcType="TIMESTAMP" property="timeStamp" /> |
|
|
|
|
|
</resultMap> |
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
|
|
id, merchant_id, merchant_name, city_store_name, store_brand_name, sign_type, private_key, |
|
|
|
|
|
device_info, spbill_create_ip, notify_url, time_stamp |
|
|
|
|
|
</sql> |
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|
|
|
|
|
select |
|
|
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
|
|
from pay_merchant |
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
|
|
</select> |
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
|
|
|
|
|
delete from pay_merchant |
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
|
|
</delete> |
|
|
|
|
|
<insert id="insert" parameterType="com.base.springcloud.entity.Merchant"> |
|
|
|
|
|
insert into pay_merchant (id, merchant_id, merchant_name, |
|
|
|
|
|
city_store_name, store_brand_name, sign_type, |
|
|
|
|
|
private_key, device_info, spbill_create_ip, |
|
|
|
|
|
notify_url, time_stamp) |
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR}, |
|
|
|
|
|
#{cityStoreName,jdbcType=VARCHAR}, #{storeBrandName,jdbcType=VARCHAR}, #{signType,jdbcType=VARCHAR}, |
|
|
|
|
|
#{privateKey,jdbcType=VARCHAR}, #{deviceInfo,jdbcType=VARCHAR}, #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
|
|
|
#{notifyUrl,jdbcType=VARCHAR}, #{timeStamp,jdbcType=TIMESTAMP}) |
|
|
|
|
|
</insert> |
|
|
|
|
|
<insert id="insertSelective" parameterType="com.base.springcloud.entity.Merchant"> |
|
|
|
|
|
insert into pay_merchant |
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
|
|
<if test="id != null"> |
|
|
|
|
|
id, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantId != null"> |
|
|
|
|
|
merchant_id, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantName != null"> |
|
|
|
|
|
merchant_name, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityStoreName != null"> |
|
|
|
|
|
city_store_name, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="storeBrandName != null"> |
|
|
|
|
|
store_brand_name, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="signType != null"> |
|
|
|
|
|
sign_type, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="privateKey != null"> |
|
|
|
|
|
private_key, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="deviceInfo != null"> |
|
|
|
|
|
device_info, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="spbillCreateIp != null"> |
|
|
|
|
|
spbill_create_ip, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="notifyUrl != null"> |
|
|
|
|
|
notify_url, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="timeStamp != null"> |
|
|
|
|
|
time_stamp, |
|
|
|
|
|
</if> |
|
|
|
|
|
</trim> |
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
|
|
<if test="id != null"> |
|
|
|
|
|
#{id,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantId != null"> |
|
|
|
|
|
#{merchantId,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="merchantName != null"> |
|
|
|
|
|
#{merchantName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityStoreName != null"> |
|
|
|
|
|
#{cityStoreName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="storeBrandName != null"> |
|
|
|
|
|
#{storeBrandName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="signType != null"> |
|
|
|
|
|
#{signType,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="privateKey != null"> |
|
|
|
|
|
#{privateKey,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="deviceInfo != null"> |
|
|
|
|
|
#{deviceInfo,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="spbillCreateIp != null"> |
|
|
|
|
|
#{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="notifyUrl != null"> |
|
|
|
|
|
#{notifyUrl,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="timeStamp != null"> |
|
|
|
|
|
#{timeStamp,jdbcType=TIMESTAMP}, |
|
|
|
|
|
</if> |
|
|
|
|
|
</trim> |
|
|
|
|
|
</insert> |
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.base.springcloud.entity.Merchant"> |
|
|
|
|
|
update pay_merchant |
|
|
|
|
|
<set> |
|
|
|
|
|
<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> |
|
|
|
|
|
</set> |
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
|
|
</update> |
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.base.springcloud.entity.Merchant"> |
|
|
|
|
|
update pay_merchant |
|
|
|
|
|
set merchant_id = #{merchantId,jdbcType=VARCHAR}, |
|
|
|
|
|
merchant_name = #{merchantName,jdbcType=VARCHAR}, |
|
|
|
|
|
city_store_name = #{cityStoreName,jdbcType=VARCHAR}, |
|
|
|
|
|
store_brand_name = #{storeBrandName,jdbcType=VARCHAR}, |
|
|
|
|
|
sign_type = #{signType,jdbcType=VARCHAR}, |
|
|
|
|
|
private_key = #{privateKey,jdbcType=VARCHAR}, |
|
|
|
|
|
device_info = #{deviceInfo,jdbcType=VARCHAR}, |
|
|
|
|
|
spbill_create_ip = #{spbillCreateIp,jdbcType=VARCHAR}, |
|
|
|
|
|
notify_url = #{notifyUrl,jdbcType=VARCHAR}, |
|
|
|
|
|
time_stamp = #{timeStamp,jdbcType=TIMESTAMP} |
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
|
|
|
</update> |
|
|
<resultMap id="BaseResultMap" type="com.base.springcloud.entity.Merchant"> |
|
|
<resultMap id="BaseResultMap" type="com.base.springcloud.entity.Merchant"> |
|
|
<constructor> |
|
|
<constructor> |
|
|
<idArg column="id" javaType="java.lang.String" jdbcType="VARCHAR" /> |
|
|
<idArg column="id" javaType="java.lang.String" jdbcType="VARCHAR" /> |
|
|
|