<?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="cn.qihangerp.mapper.OShipmentMapper">

    <resultMap id="BaseResultMap" type="cn.qihangerp.model.entity.OShipment">
            <id property="id" column="id" jdbcType="BIGINT"/>
            <result property="shopId" column="shop_id" jdbcType="BIGINT"/>
            <result property="shopType" column="shop_type" jdbcType="INTEGER"/>
            <result property="orderId" column="order_id" jdbcType="BIGINT"/>
            <result property="orderNum" column="order_num" jdbcType="VARCHAR"/>
            <result property="orderTime" column="order_time" jdbcType="TIMESTAMP"/>
            <result property="shipper" column="shipper" jdbcType="INTEGER"/>
            <result property="supplierId" column="supplier_id" jdbcType="BIGINT"/>
            <result property="supplier" column="supplier" jdbcType="VARCHAR"/>
            <result property="shipType" column="ship_type" jdbcType="INTEGER"/>
            <result property="shipCompany" column="ship_company" jdbcType="VARCHAR"/>
            <result property="shipCompanyCode" column="ship_company_code" jdbcType="VARCHAR"/>
            <result property="waybillCode" column="waybill_code" jdbcType="VARCHAR"/>
            <result property="shipFee" column="ship_fee" jdbcType="DECIMAL"/>
            <result property="shipTime" column="ship_time" jdbcType="TIMESTAMP"/>
            <result property="shipOperator" column="ship_operator" jdbcType="VARCHAR"/>
            <result property="shipStatus" column="ship_status" jdbcType="INTEGER"/>
            <result property="packageWeight" column="package_weight" jdbcType="FLOAT"/>
            <result property="packageLength" column="package_length" jdbcType="FLOAT"/>
            <result property="packageWidth" column="package_width" jdbcType="FLOAT"/>
            <result property="packageHeight" column="package_height" jdbcType="FLOAT"/>
            <result property="packageOperator" column="package_operator" jdbcType="VARCHAR"/>
            <result property="packageTime" column="package_time" jdbcType="TIMESTAMP"/>
            <result property="packages" column="packages" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
            <result property="receiverName" column="receiver_name" jdbcType="VARCHAR"/>
            <result property="receiverMobile" column="receiver_mobile" jdbcType="VARCHAR"/>
            <result property="address" column="address" jdbcType="VARCHAR"/>
            <result property="province" column="province" jdbcType="VARCHAR"/>
            <result property="city" column="city" jdbcType="VARCHAR"/>
            <result property="town" column="town" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,shop_id,shop_type,
        order_id,order_num,order_time,
        shipper,supplier_id,supplier,
        ship_type,ship_company,ship_company_code,
        waybill_code,ship_fee,ship_time,
        ship_operator,ship_status,package_weight,
        package_length,package_width,package_height,
        packsge_operator,packsge_time,packages,
        remark,create_time,create_by,
        update_time,update_by,address,province,city,town,receiver_name,receiver_mobile
    </sql>
</mapper>
