AmazonOrderItemMapper.xml
5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?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.aukey.example.mapper.fbaStock.AmazonOrderItemMapper">
<resultMap id="BaseResultMap" type="com.aukey.example.entity.fbaStock.AmazonOrderItem">
<!--
WARNING - @mbg.generated
-->
<id column="aid" jdbcType="INTEGER" property="aid" />
<result column="amazon_order_id" jdbcType="VARCHAR" property="amazonOrderId" />
<result column="asin" jdbcType="VARCHAR" property="asin" />
<result column="seller_sku" jdbcType="VARCHAR" property="sellerSku" />
<result column="order_item_id" jdbcType="VARCHAR" property="orderItemId" />
<result column="quantity_ordered" jdbcType="INTEGER" property="quantityOrdered" />
<result column="quantity_shipped" jdbcType="INTEGER" property="quantityShipped" />
<result column="points_number" jdbcType="INTEGER" property="pointsNumber" />
<result column="points_currency_code" jdbcType="VARCHAR" property="pointsCurrencyCode" />
<result column="points_amount" jdbcType="DOUBLE" property="pointsAmount" />
<result column="item_price_currency_code" jdbcType="VARCHAR" property="itemPriceCurrencyCode" />
<result column="item_price_amount" jdbcType="DOUBLE" property="itemPriceAmount" />
<result column="shipping_price_currency_code" jdbcType="VARCHAR" property="shippingPriceCurrencyCode" />
<result column="shipping_price_amount" jdbcType="DOUBLE" property="shippingPriceAmount" />
<result column="gift_wrap_price_currency_code" jdbcType="VARCHAR" property="giftWrapPriceCurrencyCode" />
<result column="gift_wrap_price_amount" jdbcType="DOUBLE" property="giftWrapPriceAmount" />
<result column="item_tax_currency_code" jdbcType="VARCHAR" property="itemTaxCurrencyCode" />
<result column="item_tax_amount" jdbcType="DOUBLE" property="itemTaxAmount" />
<result column="shipping_tax_currency_code" jdbcType="VARCHAR" property="shippingTaxCurrencyCode" />
<result column="shipping_tax_amount" jdbcType="DOUBLE" property="shippingTaxAmount" />
<result column="gift_wrap_tax_currency_code" jdbcType="VARCHAR" property="giftWrapTaxCurrencyCode" />
<result column="gift_wrap_tax_amount" jdbcType="DOUBLE" property="giftWrapTaxAmount" />
<result column="shipping_discount_currency_code" jdbcType="VARCHAR" property="shippingDiscountCurrencyCode" />
<result column="shipping_discount_amount" jdbcType="DOUBLE" property="shippingDiscountAmount" />
<result column="promotion_discount_currency_code" jdbcType="VARCHAR" property="promotionDiscountCurrencyCode" />
<result column="promotion_discount_amount" jdbcType="DOUBLE" property="promotionDiscountAmount" />
<result column="promotion_ids" jdbcType="VARCHAR" property="promotionIds" />
<result column="cod_fee_currency_code" jdbcType="VARCHAR" property="codFeeCurrencyCode" />
<result column="cod_fee_amount" jdbcType="DOUBLE" property="codFeeAmount" />
<result column="cod_fee_discount_currency_code" jdbcType="VARCHAR" property="codFeeDiscountCurrencyCode" />
<result column="cod_fee_discount_amount" jdbcType="DOUBLE" property="codFeeDiscountAmount" />
<result column="gift_wrap_level" jdbcType="VARCHAR" property="giftWrapLevel" />
<result column="invoice_requirement" jdbcType="VARCHAR" property="invoiceRequirement" />
<result column="buyer_selected_invoice_category" jdbcType="VARCHAR" property="buyerSelectedInvoiceCategory" />
<result column="invoice_title" jdbcType="VARCHAR" property="invoiceTitle" />
<result column="invoice_information" jdbcType="VARCHAR" property="invoiceInformation" />
<result column="condition_note" jdbcType="VARCHAR" property="conditionNote" />
<result column="condition_id" jdbcType="VARCHAR" property="conditionId" />
<result column="condition_subtype_id" jdbcType="VARCHAR" property="conditionSubtypeId" />
<result column="scheduled_delivery_start_date" jdbcType="TIMESTAMP" property="scheduledDeliveryStartDate" />
<result column="scheduled_delivery_end_date" jdbcType="TIMESTAMP" property="scheduledDeliveryEndDate" />
<result column="price_designation" jdbcType="VARCHAR" property="priceDesignation" />
<result column="customized_url" jdbcType="VARCHAR" property="customizedUrl" />
<result column="fulfillment_channel" jdbcType="VARCHAR" property="fulfillmentChannel" />
<result column="account_id" jdbcType="INTEGER" property="accountId" />
<result column="account_code" jdbcType="VARCHAR" property="accountCode" />
<result column="area_id" jdbcType="INTEGER" property="areaId" />
<result column="area" jdbcType="VARCHAR" property="area" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
<result column="order_header_id" jdbcType="INTEGER" property="orderHeaderId" />
<result column="title" jdbcType="LONGVARBINARY" property="titleAlias" />
<result column="gift_message_text" jdbcType="LONGVARBINARY" property="giftMessageText" />
</resultMap>
<select id="selectAid" resultType="java.lang.Integer">
select aid
from amazon_order_item
where amazon_order_id = #{amazonOrderId}
and account_id = #{accountId}
and area_id = #{areaId}
and seller_sku = #{sellerSku}
and order_item_id = #{orderItemId}
limit 1
</select>
</mapper>