ErpOrdersMapper.xml 6.34 KB
<?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.yoho.unions.dal.ErpOrdersMapper" >
  <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.ErpOrders" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="order_code" property="orderCode" jdbcType="BIGINT" />
    <result column="uid" property="uid" jdbcType="INTEGER" />
    <result column="user_level" property="userLevel" jdbcType="TINYINT" />
    <result column="parent_order_code" property="parentOrderCode" jdbcType="BIGINT" />
    <result column="is_account_settled" property="isAccountSettled" jdbcType="CHAR" />
    <result column="order_amount" property="orderAmount" jdbcType="DECIMAL" />
    <result column="last_order_amount" property="lastOrderAmount" jdbcType="DECIMAL" />
    <result column="express_number" property="expressNumber" jdbcType="VARCHAR" />
    <result column="channels_orders_code" property="channelsOrdersCode" jdbcType="VARCHAR" />
    <result column="order_type" property="orderType" jdbcType="TINYINT" />
    <result column="attribute" property="attribute" jdbcType="TINYINT" />
    <result column="is_purchase" property="isPurchase" jdbcType="CHAR" />
    <result column="is_booking" property="isBooking" jdbcType="CHAR" />
    <result column="invoice_type" property="invoiceType" jdbcType="TINYINT" />
    <result column="invoice_payable" property="invoicePayable" jdbcType="VARCHAR" />
    <result column="yoho_coin_num" property="yohoCoinNum" jdbcType="INTEGER" />
    <result column="payment_status" property="paymentStatus" jdbcType="TINYINT" />
    <result column="payment_type" property="paymentType" jdbcType="TINYINT" />
    <result column="payment" property="payment" jdbcType="TINYINT" />
    <result column="bank_code" property="bankCode" jdbcType="VARCHAR" />
    <result column="shipping_manner" property="shippingManner" jdbcType="TINYINT" />
    <result column="shipping_cost" property="shippingCost" jdbcType="DECIMAL" />
    <result column="express_id" property="expressId" jdbcType="TINYINT" />
    <result column="consignee_name" property="consigneeName" jdbcType="VARCHAR" />
    <result column="phone" property="phone" jdbcType="VARCHAR" />
    <result column="mobile" property="mobile" jdbcType="VARCHAR" />
    <result column="email" property="email" jdbcType="VARCHAR" />
    <result column="province" property="province" jdbcType="VARCHAR" />
    <result column="city" property="city" jdbcType="VARCHAR" />
    <result column="district" property="district" jdbcType="VARCHAR" />
    <result column="street" property="street" jdbcType="VARCHAR" />
    <result column="area_code" property="areaCode" jdbcType="INTEGER" />
    <result column="address" property="address" jdbcType="VARCHAR" />
    <result column="zip_code" property="zipCode" jdbcType="INTEGER" />
    <result column="landmarks" property="landmarks" jdbcType="VARCHAR" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="receipt_time" property="receiptTime" jdbcType="TINYINT" />
    <result column="exchange_type" property="exchangeType" jdbcType="TINYINT" />
    <result column="exchange_status" property="exchangeStatus" jdbcType="TINYINT" />
    <result column="refund_status" property="refundStatus" jdbcType="TINYINT" />
    <result column="order_status" property="orderStatus" jdbcType="SMALLINT" />
    <result column="is_contact" property="isContact" jdbcType="CHAR" />
    <result column="is_print_price" property="isPrintPrice" jdbcType="CHAR" />
    <result column="is_pda_verify" property="isPdaVerify" jdbcType="CHAR" />
    <result column="is_urgent" property="isUrgent" jdbcType="CHAR" />
    <result column="how_deal" property="howDeal" jdbcType="VARCHAR" />
    <result column="order_referer" property="orderReferer" jdbcType="VARCHAR" />
    <result column="arrive_time" property="arriveTime" jdbcType="INTEGER" />
    <result column="shipment_time" property="shipmentTime" jdbcType="INTEGER" />
    <result column="create_time" property="createTime" jdbcType="INTEGER" />
    <result column="receiving_time" property="receivingTime" jdbcType="INTEGER" />
    <result column="check_time" property="checkTime" jdbcType="INTEGER" />
    <result column="delivery_time" property="deliveryTime" jdbcType="INTEGER" />
    <result column="cancel_time" property="cancelTime" jdbcType="INTEGER" />
    <result column="update_time" property="updateTime" jdbcType="INTEGER" />
    <result column="mark_time" property="markTime" jdbcType="INTEGER" />
    <result column="store_house" property="storeHouse" jdbcType="INTEGER" />
    <result column="check_pid" property="checkPid" jdbcType="INTEGER" />
    <result column="occupy" property="occupy" jdbcType="INTEGER" />
    <result column="admin_name" property="adminName" jdbcType="VARCHAR" />
    <result column="locking" property="locking" jdbcType="SMALLINT" />
    <result column="activities_id" property="activitiesId" jdbcType="SMALLINT" />
    <result column="new_user_orders" property="newUserOrders" jdbcType="CHAR" />
    <result column="is_jit" property="isJit" jdbcType="CHAR" />
    <result column="channels_create_time" property="channelsCreateTime" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, order_code, uid, user_level, parent_order_code, is_account_settled, order_amount, 
    last_order_amount, express_number, channels_orders_code, order_type, attribute, is_purchase, 
    is_booking, invoice_type, invoice_payable, yoho_coin_num, payment_status, payment_type, 
    payment, bank_code, shipping_manner, shipping_cost, express_id, consignee_name, phone, 
    mobile, email, province, city, district, street, area_code, address, zip_code, landmarks, 
    remark, receipt_time, exchange_type, exchange_status, refund_status, order_status, 
    is_contact, is_print_price, is_pda_verify, is_urgent, how_deal, order_referer, arrive_time, 
    shipment_time, create_time, receiving_time, check_time, delivery_time, cancel_time, 
    update_time, mark_time, store_house, check_pid, occupy, admin_name, locking, activities_id, 
    new_user_orders, is_jit, channels_create_time
  </sql>
  
  <select id="selectByOrderCode" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from orders
    where order_code = #{orderCode,jdbcType=BIGINT}
  </select>

</mapper>