|  | @@ -17,13 +17,14 @@
 | 
											
												
													
														|  |          <result column="close_status_" jdbcType="TIMESTAMP" property="closeStatus" />
 |  |          <result column="close_status_" jdbcType="TIMESTAMP" property="closeStatus" />
 | 
											
												
													
														|  |          <result column="close_fail_msg_" jdbcType="TIMESTAMP" property="closeFailMsg" />
 |  |          <result column="close_fail_msg_" jdbcType="TIMESTAMP" property="closeFailMsg" />
 | 
											
												
													
														|  |          <result column="close_time_" jdbcType="TIMESTAMP" property="closeTime" />
 |  |          <result column="close_time_" jdbcType="TIMESTAMP" property="closeTime" />
 | 
											
												
													
														|  | 
 |  | +        <result column="adapay_no_" jdbcType="TIMESTAMP" property="adapayNo" />
 | 
											
												
													
														|  |          <result column="create_time_" jdbcType="TIMESTAMP" property="createTime" />
 |  |          <result column="create_time_" jdbcType="TIMESTAMP" property="createTime" />
 | 
											
												
													
														|  |          <result column="update_time_" jdbcType="TIMESTAMP" property="updateTime" />
 |  |          <result column="update_time_" jdbcType="TIMESTAMP" property="updateTime" />
 | 
											
												
													
														|  |      </resultMap>
 |  |      </resultMap>
 | 
											
												
													
														|  |      <sql id="Base_Column_List">
 |  |      <sql id="Base_Column_List">
 | 
											
												
													
														|  |          <!--@mbg.generated-->
 |  |          <!--@mbg.generated-->
 | 
											
												
													
														|  |          id_, order_no_, trans_no_, pay_channel_, pay_amt_, fee_amt_, pay_info_, status_,
 |  |          id_, order_no_, trans_no_, pay_channel_, pay_amt_, fee_amt_, pay_info_, status_,
 | 
											
												
													
														|  | -        pay_fail_msg_, arrival_time_,close_status_,close_fail_msg_,close_time_,create_time_, update_time_
 |  | 
 | 
											
												
													
														|  | 
 |  | +        pay_fail_msg_, arrival_time_,close_status_,close_fail_msg_,close_time_,create_time_, update_time_,adapay_no_
 | 
											
												
													
														|  |      </sql>
 |  |      </sql>
 | 
											
												
													
														|  |      <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
 |  |      <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
 | 
											
												
													
														|  |          <!--@mbg.generated-->
 |  |          <!--@mbg.generated-->
 | 
											
										
											
												
													
														|  | @@ -42,12 +43,12 @@
 | 
											
												
													
														|  |          insert into user_order_payment (order_no_, trans_no_, pay_channel_,
 |  |          insert into user_order_payment (order_no_, trans_no_, pay_channel_,
 | 
											
												
													
														|  |          pay_amt_, fee_amt_, pay_info_,
 |  |          pay_amt_, fee_amt_, pay_info_,
 | 
											
												
													
														|  |          status_, pay_fail_msg_, arrival_time_,
 |  |          status_, pay_fail_msg_, arrival_time_,
 | 
											
												
													
														|  | -        create_time_, update_time_,close_status_,close_fail_msg_,close_time_)
 |  | 
 | 
											
												
													
														|  | 
 |  | +        create_time_, update_time_,close_status_,close_fail_msg_,close_time_,adapay_no_)
 | 
											
												
													
														|  |          values (#{orderNo,jdbcType=VARCHAR}, #{transNo,jdbcType=VARCHAR}, #{payChannel,jdbcType=VARCHAR},
 |  |          values (#{orderNo,jdbcType=VARCHAR}, #{transNo,jdbcType=VARCHAR}, #{payChannel,jdbcType=VARCHAR},
 | 
											
												
													
														|  |          #{payAmt,jdbcType=DECIMAL}, #{feeAmt,jdbcType=DECIMAL}, #{payInfo,jdbcType=VARCHAR},
 |  |          #{payAmt,jdbcType=DECIMAL}, #{feeAmt,jdbcType=DECIMAL}, #{payInfo,jdbcType=VARCHAR},
 | 
											
												
													
														|  |          #{status,jdbcType=VARCHAR}, #{payFailMsg,jdbcType=VARCHAR}, #{arrivalTime,jdbcType=TIMESTAMP},
 |  |          #{status,jdbcType=VARCHAR}, #{payFailMsg,jdbcType=VARCHAR}, #{arrivalTime,jdbcType=TIMESTAMP},
 | 
											
												
													
														|  |          #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},#{closeStatus},#{closeFailMsg}
 |  |          #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},#{closeStatus},#{closeFailMsg}
 | 
											
												
													
														|  | -        ,#{closeTime})
 |  | 
 | 
											
												
													
														|  | 
 |  | +        ,#{closeTime},#{adapayNo})
 | 
											
												
													
														|  |      </insert>
 |  |      </insert>
 | 
											
												
													
														|  |      <insert id="insertSelective" keyColumn="id_" keyProperty="id" parameterType="com.yonge.cooleshow.mbg.model.UserOrderPayment" useGeneratedKeys="true">
 |  |      <insert id="insertSelective" keyColumn="id_" keyProperty="id" parameterType="com.yonge.cooleshow.mbg.model.UserOrderPayment" useGeneratedKeys="true">
 | 
											
												
													
														|  |          <!--@mbg.generated-->
 |  |          <!--@mbg.generated-->
 | 
											
										
											
												
													
														|  | @@ -95,6 +96,9 @@
 | 
											
												
													
														|  |              <if test="closeTime != null">
 |  |              <if test="closeTime != null">
 | 
											
												
													
														|  |                  close_time_,
 |  |                  close_time_,
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="adapayNo != null">
 | 
											
												
													
														|  | 
 |  | +                adapay_no_,
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </trim>
 |  |          </trim>
 | 
											
												
													
														|  |          <trim prefix="values (" suffix=")" suffixOverrides=",">
 |  |          <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
											
												
													
														|  |              <if test="orderNo != null">
 |  |              <if test="orderNo != null">
 | 
											
										
											
												
													
														|  | @@ -139,6 +143,9 @@
 | 
											
												
													
														|  |              <if test="closeTime != null">
 |  |              <if test="closeTime != null">
 | 
											
												
													
														|  |                  #{closeTime},
 |  |                  #{closeTime},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="adapayNo != null">
 | 
											
												
													
														|  | 
 |  | +                #{adapayNo},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </trim>
 |  |          </trim>
 | 
											
												
													
														|  |      </insert>
 |  |      </insert>
 | 
											
												
													
														|  |      <update id="updateByPrimaryKeySelective" parameterType="com.yonge.cooleshow.mbg.model.UserOrderPayment">
 |  |      <update id="updateByPrimaryKeySelective" parameterType="com.yonge.cooleshow.mbg.model.UserOrderPayment">
 | 
											
										
											
												
													
														|  | @@ -187,6 +194,9 @@
 | 
											
												
													
														|  |              <if test="closeTime != null">
 |  |              <if test="closeTime != null">
 | 
											
												
													
														|  |                  close_time_ = #{closeTime,jdbcType=TIMESTAMP},
 |  |                  close_time_ = #{closeTime,jdbcType=TIMESTAMP},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="adapayNo != null">
 | 
											
												
													
														|  | 
 |  | +                adapay_no_ = #{closeTime,jdbcType=TIMESTAMP},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </set>
 |  |          </set>
 | 
											
												
													
														|  |          where id_ = #{id,jdbcType=BIGINT}
 |  |          where id_ = #{id,jdbcType=BIGINT}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 | 
											
										
											
												
													
														|  | @@ -207,12 +217,13 @@
 | 
											
												
													
														|  |          close_status_ = #{closeStatus},
 |  |          close_status_ = #{closeStatus},
 | 
											
												
													
														|  |          close_fail_msg_ = #{closeFailMsg},
 |  |          close_fail_msg_ = #{closeFailMsg},
 | 
											
												
													
														|  |          close_time_ = #{closeTime,jdbcType=TIMESTAMP},
 |  |          close_time_ = #{closeTime,jdbcType=TIMESTAMP},
 | 
											
												
													
														|  | 
 |  | +        adapay_no_ = #{adapayNo,jdbcType=TIMESTAMP},
 | 
											
												
													
														|  |          where id_ = #{id,jdbcType=BIGINT}
 |  |          where id_ = #{id,jdbcType=BIGINT}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    <select id="selectByOrderNo" resultMap="BaseResultMap">
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <select id="selectByTranNo" resultMap="BaseResultMap">
 | 
											
												
													
														|  |          select
 |  |          select
 | 
											
												
													
														|  |          <include refid="Base_Column_List" />
 |  |          <include refid="Base_Column_List" />
 | 
											
												
													
														|  | -      from user_order_payment where order_no_ = #{orderNo} limit 1
 |  | 
 | 
											
												
													
														|  | 
 |  | +      from user_order_payment where trans_no_ = #{orderNo} limit 1
 | 
											
												
													
														|  |      </select>
 |  |      </select>
 | 
											
												
													
														|  |  </mapper>
 |  |  </mapper>
 |