|
|
<?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.sunyo.energy.location.dao.PayResponseMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.sunyo.energy.location.model.PayResponse" >
|
|
|
<id column="ID" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="POSID" property="posid" jdbcType="VARCHAR" />
|
|
|
<result column="BRANCHID" property="branchid" jdbcType="VARCHAR" />
|
|
|
<result column="ORDERID" property="orderid" jdbcType="VARCHAR" />
|
|
|
<result column="PAYMENT" property="payment" jdbcType="DECIMAL" />
|
|
|
<result column="CURCODE" property="curcode" jdbcType="VARCHAR" />
|
|
|
<result column="REMARK1" property="remark1" jdbcType="VARCHAR" />
|
|
|
<result column="REMARK2" property="remark2" jdbcType="VARCHAR" />
|
|
|
<result column="ACC_TYPE" property="accType" jdbcType="VARCHAR" />
|
|
|
<result column="SUCCESS" property="success" jdbcType="VARCHAR" />
|
|
|
<result column="TYPE" property="type" jdbcType="VARCHAR" />
|
|
|
<result column="REFERER" property="referer" jdbcType="VARCHAR" />
|
|
|
<result column="CLIENTIP" property="clientip" jdbcType="VARCHAR" />
|
|
|
<result column="ACCDATE" property="accdate" jdbcType="TIMESTAMP" />
|
|
|
<result column="USRMSG" property="usrmsg" jdbcType="VARCHAR" />
|
|
|
<result column="USRINFO" property="usrinfo" jdbcType="VARCHAR" />
|
|
|
<result column="PAYTYPE" property="paytype" jdbcType="VARCHAR" />
|
|
|
<result column="SIGN" property="sign" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
ID, POSID, BRANCHID, ORDERID, PAYMENT, CURCODE, REMARK1, REMARK2, ACC_TYPE, SUCCESS,
|
|
|
TYPE, REFERER, CLIENTIP, ACCDATE, USRMSG, USRINFO, PAYTYPE, SIGN
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from pay_response
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from pay_response
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sunyo.energy.location.model.PayResponse" >
|
|
|
insert into pay_response (ID, POSID, BRANCHID,
|
|
|
ORDERID, PAYMENT, CURCODE,
|
|
|
REMARK1, REMARK2, ACC_TYPE,
|
|
|
SUCCESS, TYPE, REFERER,
|
|
|
CLIENTIP, ACCDATE, USRMSG,
|
|
|
USRINFO, PAYTYPE, SIGN
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{posid,jdbcType=VARCHAR}, #{branchid,jdbcType=VARCHAR},
|
|
|
#{orderid,jdbcType=VARCHAR}, #{payment,jdbcType=DECIMAL}, #{curcode,jdbcType=VARCHAR},
|
|
|
#{remark1,jdbcType=VARCHAR}, #{remark2,jdbcType=VARCHAR}, #{accType,jdbcType=VARCHAR},
|
|
|
#{success,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{referer,jdbcType=VARCHAR},
|
|
|
#{clientip,jdbcType=VARCHAR}, #{accdate,jdbcType=TIMESTAMP}, #{usrmsg,jdbcType=VARCHAR},
|
|
|
#{usrinfo,jdbcType=VARCHAR}, #{paytype,jdbcType=VARCHAR}, #{sign,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sunyo.energy.location.model.PayResponse" >
|
|
|
insert into pay_response
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
ID,
|
|
|
</if>
|
|
|
<if test="posid != null" >
|
|
|
POSID,
|
|
|
</if>
|
|
|
<if test="branchid != null" >
|
|
|
BRANCHID,
|
|
|
</if>
|
|
|
<if test="orderid != null" >
|
|
|
ORDERID,
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
PAYMENT,
|
|
|
</if>
|
|
|
<if test="curcode != null" >
|
|
|
CURCODE,
|
|
|
</if>
|
|
|
<if test="remark1 != null" >
|
|
|
REMARK1,
|
|
|
</if>
|
|
|
<if test="remark2 != null" >
|
|
|
REMARK2,
|
|
|
</if>
|
|
|
<if test="accType != null" >
|
|
|
ACC_TYPE,
|
|
|
</if>
|
|
|
<if test="success != null" >
|
|
|
SUCCESS,
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
TYPE,
|
|
|
</if>
|
|
|
<if test="referer != null" >
|
|
|
REFERER,
|
|
|
</if>
|
|
|
<if test="clientip != null" >
|
|
|
CLIENTIP,
|
|
|
</if>
|
|
|
<if test="accdate != null" >
|
|
|
ACCDATE,
|
|
|
</if>
|
|
|
<if test="usrmsg != null" >
|
|
|
USRMSG,
|
|
|
</if>
|
|
|
<if test="usrinfo != null" >
|
|
|
USRINFO,
|
|
|
</if>
|
|
|
<if test="paytype != null" >
|
|
|
PAYTYPE,
|
|
|
</if>
|
|
|
<if test="sign != null" >
|
|
|
SIGN,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="posid != null" >
|
|
|
#{posid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="branchid != null" >
|
|
|
#{branchid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="orderid != null" >
|
|
|
#{orderid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
#{payment,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="curcode != null" >
|
|
|
#{curcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark1 != null" >
|
|
|
#{remark1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark2 != null" >
|
|
|
#{remark2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="accType != null" >
|
|
|
#{accType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="success != null" >
|
|
|
#{success,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
#{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="referer != null" >
|
|
|
#{referer,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="clientip != null" >
|
|
|
#{clientip,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="accdate != null" >
|
|
|
#{accdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="usrmsg != null" >
|
|
|
#{usrmsg,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="usrinfo != null" >
|
|
|
#{usrinfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="paytype != null" >
|
|
|
#{paytype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="sign != null" >
|
|
|
#{sign,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sunyo.energy.location.model.PayResponse" >
|
|
|
update pay_response
|
|
|
<set >
|
|
|
<if test="posid != null" >
|
|
|
POSID = #{posid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="branchid != null" >
|
|
|
BRANCHID = #{branchid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="orderid != null" >
|
|
|
ORDERID = #{orderid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="payment != null" >
|
|
|
PAYMENT = #{payment,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="curcode != null" >
|
|
|
CURCODE = #{curcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark1 != null" >
|
|
|
REMARK1 = #{remark1,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="remark2 != null" >
|
|
|
REMARK2 = #{remark2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="accType != null" >
|
|
|
ACC_TYPE = #{accType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="success != null" >
|
|
|
SUCCESS = #{success,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null" >
|
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="referer != null" >
|
|
|
REFERER = #{referer,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="clientip != null" >
|
|
|
CLIENTIP = #{clientip,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="accdate != null" >
|
|
|
ACCDATE = #{accdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="usrmsg != null" >
|
|
|
USRMSG = #{usrmsg,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="usrinfo != null" >
|
|
|
USRINFO = #{usrinfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="paytype != null" >
|
|
|
PAYTYPE = #{paytype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="sign != null" >
|
|
|
SIGN = #{sign,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sunyo.energy.location.model.PayResponse" >
|
|
|
update pay_response
|
|
|
set POSID = #{posid,jdbcType=VARCHAR},
|
|
|
BRANCHID = #{branchid,jdbcType=VARCHAR},
|
|
|
ORDERID = #{orderid,jdbcType=VARCHAR},
|
|
|
PAYMENT = #{payment,jdbcType=DECIMAL},
|
|
|
CURCODE = #{curcode,jdbcType=VARCHAR},
|
|
|
REMARK1 = #{remark1,jdbcType=VARCHAR},
|
|
|
REMARK2 = #{remark2,jdbcType=VARCHAR},
|
|
|
ACC_TYPE = #{accType,jdbcType=VARCHAR},
|
|
|
SUCCESS = #{success,jdbcType=VARCHAR},
|
|
|
TYPE = #{type,jdbcType=VARCHAR},
|
|
|
REFERER = #{referer,jdbcType=VARCHAR},
|
|
|
CLIENTIP = #{clientip,jdbcType=VARCHAR},
|
|
|
ACCDATE = #{accdate,jdbcType=TIMESTAMP},
|
|
|
USRMSG = #{usrmsg,jdbcType=VARCHAR},
|
|
|
USRINFO = #{usrinfo,jdbcType=VARCHAR},
|
|
|
PAYTYPE = #{paytype,jdbcType=VARCHAR},
|
|
|
SIGN = #{sign,jdbcType=VARCHAR}
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|