|
@@ -0,0 +1,52 @@
|
|
|
+<?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.zanxiang.mybatis.mapper.OrderMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.zanxiang.mybatis.entity.Order">
|
|
|
+ <id column="id" jdbcType="BIGINT" property="id"/>
|
|
|
+ <result column="cp_id" jdbcType="BIGINT" property="cpId"/>
|
|
|
+ <result column="cp_order_id" jdbcType="VARCHAR" property="cpOrderId"/>
|
|
|
+ <result column="user_id" jdbcType="BIGINT" property="userId"/>
|
|
|
+ <result column="mg_user_id" jdbcType="BIGINT" property="mgUserId"/>
|
|
|
+ <result column="game_id" jdbcType="BIGINT" property="gameId"/>
|
|
|
+ <result column="amount" jdbcType="DECIMAL" property="amount"/>
|
|
|
+ <result column="real_amount" jdbcType="DECIMAL" property="realAmount"/>
|
|
|
+ <result column="product_id" jdbcType="VARCHAR" property="productId"/>
|
|
|
+ <result column="product_cnt" jdbcType="INTEGER" property="productCnt"/>
|
|
|
+ <result column="product_name" jdbcType="VARCHAR" property="productName"/>
|
|
|
+ <result column="coupon_amount" jdbcType="DECIMAL" property="couponAmount"/>
|
|
|
+ <result column="ptb_amount" jdbcType="DECIMAL" property="ptbAmount"/>
|
|
|
+ <result column="gm_amount" jdbcType="DECIMAL" property="gmAmount"/>
|
|
|
+ <result column="integral" jdbcType="INTEGER" property="integral"/>
|
|
|
+ <result column="integral_money" jdbcType="DECIMAL" property="integralMoney"/>
|
|
|
+ <result column="rebate_amount" jdbcType="DECIMAL" property="rebateAmount"/>
|
|
|
+ <result column="merchant_order_no" jdbcType="VARCHAR" property="merchantOrderNo"/>
|
|
|
+ <result column="status" jdbcType="TINYINT" property="status"/>
|
|
|
+ <result column="game_payway_id" jdbcType="VARCHAR" property="gamePaywayId"/>
|
|
|
+ <result column="pay_time" jdbcType="TIMESTAMP" property="payTime"/>
|
|
|
+ <result column="cp_notify_cnt" jdbcType="INTEGER" property="cpNotifyCnt"/>
|
|
|
+ <result column="last_cp_notify_time" jdbcType="BIGINT" property="lastCpNotifyTime"/>
|
|
|
+ <result column="is_handle" jdbcType="TINYINT" property="isHandle"/>
|
|
|
+ <result column="is_distribute" jdbcType="TINYINT" property="isDistribute"/>
|
|
|
+ <result column="cp_status" jdbcType="TINYINT" property="cpStatus"/>
|
|
|
+ <result column="ext" jdbcType="VARCHAR" property="ext"/>
|
|
|
+ <result column="mem_note" jdbcType="VARCHAR" property="memNote"/>
|
|
|
+ <result column="admin_note" jdbcType="VARCHAR" property="adminNote"/>
|
|
|
+ <result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
+ <result column="channel" jdbcType="BIGINT" property="channel"/>
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id
|
|
|
+ , cp_id, cp_order_id, user_id, mg_user_id, game_id, amount,
|
|
|
+ real_amount, product_id, product_cnt, product_name, coupon_amount, ptb_amount, gm_amount,
|
|
|
+ integral, integral_money, rebate_amount, merchant_order_no, status, game_payway_id, pay_time,
|
|
|
+ cp_notify_cnt, last_cp_notify_time, is_handle, is_distribute, cp_status, ext, mem_note,
|
|
|
+ admin_note, remark, channel, create_time, update_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from h_order
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
+</mapper>
|