<?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.younike.service.mapper.OrderMapper">

    <resultMap type="com.younike.service.pojo.Order" id="OrderResult">
        <result property="orderId" column="order_id"/>
        <result property="orderIndex" column="order_index"/>
        <result property="appMemberId" column="app_member_id"/>
        <result property="orderType" column="order_type"/>
        <result property="storeId" column="store_id"/>
        <result property="orderAmount" column="order_amount"/>
        <result property="totalAmount" column="total_amount"/>
        <result property="couponAmount" column="coupon_amount"/>
        <result property="orderTime" column="order_time"/>
        <result property="orderGoodsTotalQty" column="order_goods_total_qty"/>
        <result property="orderGoodsRemainingQty" column="order_goods_remaining_qty"/>
        <result property="orderStatus" column="order_status"/>
        <result property="isPendingEvaluate" column="is_pending_evaluate"/>
        <result property="payWay" column="pay_way"/>
        <result property="isPaid" column="is_paid"/>
        <result property="shopAmount" column="shop_amount"/>
        <result property="platformAmount" column="platform_amount"/>
        <result property="delBy" column="del_by"/>
        <result property="delTime" column="del_time"/>
        <result property="delFlag" column="del_flag"/>
        <result property="createdBy" column="created_by"/>
        <result property="createdTime" column="created_time"/>
        <result property="updatedBy" column="updated_by"/>
        <result property="updatedTime" column="updated_time"/>
        <result property="version" column="version"/>
        <result property="remark" column="remark"/>
    </resultMap>




    <sql id="selectOrderVo">
        select order_id, order_index, app_member_id, order_type, store_id, order_amount, total_amount, coupon_amount, order_time, order_goods_total_qty, order_goods_remaining_qty, order_status, is_pending_evaluate, pay_way, is_paid, shop_amount, platform_amount, del_by, del_time, del_flag, created_by, created_time, updated_by, updated_time, version, remark from order
    </sql>


</mapper>
