Commit fff62295 by wutong

CRM退款匹配调整,加入任务监听.

parent 78c5469b
......@@ -13,11 +13,13 @@ import com.bailuntec.mapper.DcBaseOmsSkuMapper;
import com.bailuntec.support.PointJob;
import com.bailuntec.utils.SessionUtil;
import com.dangdang.ddframe.job.api.ShardingContext;
import lombok.extern.slf4j.Slf4j;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;
@Slf4j
public class RefundLinkOrderJob extends PointJob {
public void executeRefundJob(JobPointLog jobPointLog) {
......@@ -47,6 +49,7 @@ public class RefundLinkOrderJob extends PointJob {
List<DcBaseCrmRefund> dcBaseCrmRefundList = refundMapper1.selectByExample(DcBaseCrmRefundExample.newAndCreateCriteria().andLinkedEqualTo(false).example().limit(i * jobPointLog.getPageSize(), jobPointLog.getPageSize()));
if (dcBaseCrmRefundList != null && dcBaseCrmRefundList.size() > 0) {
for (DcBaseCrmRefund dcBaseCrmRefund : dcBaseCrmRefundList) {
log.warn(dcBaseCrmRefund.getOriginOrderId() +"------" + dcBaseCrmRefund.getBailunAccountId() +"------" + dcBaseCrmRefund.getBailunSku());
DcBaseOmsSku dcBaseOmsSku = null;
DcBaseOmsOrder dcBaseOmsOrder = null;
switch (dcBaseCrmRefund.getPlatformType().toUpperCase()) {
......
......@@ -121,4 +121,8 @@ public interface DcBaseOmsOrderMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseOmsOrder record);
void logicDeleteOmsSku(DcBaseOmsOrder dcBaseOmsOrder);
void logicDeleteOmsPick(DcBaseOmsOrder dcBaseOmsOrder);
}
\ No newline at end of file
......@@ -38,6 +38,9 @@
<result column="seller_other_exchange_rate" jdbcType="DECIMAL" property="sellerOtherExchangeRate" />
<result column="finance_order_exchange_rate" jdbcType="DECIMAL" property="financeOrderExchangeRate" />
<result column="finance_other_exchange_rate" jdbcType="DECIMAL" property="financeOtherExchangeRate" />
<result column="cny_to_usd_exchange_rate" jdbcType="DECIMAL" property="cnyToUsdExchangeRate" />
<result column="order_to_usd_exchange_rate" jdbcType="DECIMAL" property="orderToUsdExchangeRate" />
<result column="other_to_usd_exchange_rate" jdbcType="DECIMAL" property="otherToUsdExchangeRate" />
<result column="order_currency" jdbcType="VARCHAR" property="orderCurrency" />
<result column="other_currency" jdbcType="VARCHAR" property="otherCurrency" />
<result column="amount_sales" jdbcType="DECIMAL" property="amountSales" />
......@@ -62,6 +65,7 @@
<result column="cost_handle_platform" jdbcType="DECIMAL" property="costHandlePlatform" />
<result column="cost_tail" jdbcType="DECIMAL" property="costTail" />
<result column="cost_first" jdbcType="DECIMAL" property="costFirst" />
<result column="cost_logistics" jdbcType="DECIMAL" property="costLogistics" />
<result column="profit_total" jdbcType="DECIMAL" property="profitTotal" />
<result column="profit_rate" jdbcType="DECIMAL" property="profitRate" />
<result column="receipt_country" jdbcType="VARCHAR" property="receiptCountry" />
......@@ -82,6 +86,13 @@
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="quantity_bailun_sku" jdbcType="INTEGER" property="quantityBailunSku" />
<result column="logistics_warehouse_code" jdbcType="VARCHAR" property="logisticsWarehouseCode" />
<result column="logistics_warehouse_name" jdbcType="VARCHAR" property="logisticsWarehouseName" />
<result column="logistics_method_code" jdbcType="VARCHAR" property="logisticsMethodCode" />
<result column="logistics_method_name" jdbcType="VARCHAR" property="logisticsMethodName" />
<result column="bailun_picking_status" jdbcType="VARCHAR" property="bailunPickingStatus" />
<result column="bailun_require_logistics" jdbcType="VARCHAR" property="bailunRequireLogistics" />
<result column="has_scalp" jdbcType="BIT" property="hasScalp" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -160,15 +171,18 @@
seller_email, order_update_time, bailun_order_id, platform_order_status, bailun_order_status,
bailun_payment_status, bailun_merge_status, bailun_interception_status, bailun_shipping_status,
seller_order_exchange_rate, seller_other_exchange_rate, finance_order_exchange_rate,
finance_other_exchange_rate, order_currency, other_currency, amount_sales, amount_total,
finance_other_exchange_rate, cny_to_usd_exchange_rate, order_to_usd_exchange_rate,
other_to_usd_exchange_rate, order_currency, other_currency, amount_sales, amount_total,
amount_shipping, amount_product, amount_tax, amount_adjustment, amount_gift_wrap,
amount_refund, amount_prepaid, cost_total, cost_promotion, cost_platform_fee, cost_product,
cost_shipping, cost_package, cost_fba_fee, cost_paypal_fee, cost_refund_commisson,
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, profit_total, profit_rate,
receipt_country, receipt_city, receipt_area, receipt_address, receipt_address_2,
receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name, buyer_email,
has_fba_exception, has_platform_exception, has_cancle, area_id, gmt_create, gmt_modified,
quantity_bailun_sku
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, cost_logistics,
profit_total, profit_rate, receipt_country, receipt_city, receipt_area, receipt_address,
receipt_address_2, receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name,
buyer_email, has_fba_exception, has_platform_exception, has_cancle, area_id, gmt_create,
gmt_modified, quantity_bailun_sku, logistics_warehouse_code, logistics_warehouse_name,
logistics_method_code, logistics_method_name, bailun_picking_status, bailun_require_logistics,
has_scalp
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsOrderExample" resultMap="BaseResultMap">
<!--
......@@ -241,21 +255,27 @@
bailun_interception_status, bailun_shipping_status,
seller_order_exchange_rate, seller_other_exchange_rate,
finance_order_exchange_rate, finance_other_exchange_rate,
order_currency, other_currency, amount_sales,
amount_total, amount_shipping, amount_product,
amount_tax, amount_adjustment, amount_gift_wrap,
amount_refund, amount_prepaid, cost_total,
cost_promotion, cost_platform_fee, cost_product,
cost_shipping, cost_package, cost_fba_fee,
cost_paypal_fee, cost_refund_commisson, cost_handle_bailun,
cny_to_usd_exchange_rate, order_to_usd_exchange_rate,
other_to_usd_exchange_rate, order_currency,
other_currency, amount_sales, amount_total,
amount_shipping, amount_product, amount_tax,
amount_adjustment, amount_gift_wrap, amount_refund,
amount_prepaid, cost_total, cost_promotion,
cost_platform_fee, cost_product, cost_shipping,
cost_package, cost_fba_fee, cost_paypal_fee,
cost_refund_commisson, cost_handle_bailun,
cost_handle_platform, cost_tail, cost_first,
profit_total, profit_rate, receipt_country,
receipt_city, receipt_area, receipt_address,
receipt_address_2, receipt_postal_code, receiver,
receiver_phone, buyer_id, buyer_name,
buyer_email, has_fba_exception, has_platform_exception,
has_cancle, area_id, gmt_create,
gmt_modified, quantity_bailun_sku)
cost_logistics, profit_total, profit_rate,
receipt_country, receipt_city, receipt_area,
receipt_address, receipt_address_2, receipt_postal_code,
receiver, receiver_phone, buyer_id,
buyer_name, buyer_email, has_fba_exception,
has_platform_exception, has_cancle, area_id,
gmt_create, gmt_modified, quantity_bailun_sku,
logistics_warehouse_code, logistics_warehouse_name,
logistics_method_code, logistics_method_name,
bailun_picking_status, bailun_require_logistics,
has_scalp)
values (#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{platformType,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMethod,jdbcType=VARCHAR},
#{payAccount,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{collectionAccount,jdbcType=VARCHAR},
......@@ -268,21 +288,27 @@
#{bailunInterceptionStatus,jdbcType=VARCHAR}, #{bailunShippingStatus,jdbcType=VARCHAR},
#{sellerOrderExchangeRate,jdbcType=DECIMAL}, #{sellerOtherExchangeRate,jdbcType=DECIMAL},
#{financeOrderExchangeRate,jdbcType=DECIMAL}, #{financeOtherExchangeRate,jdbcType=DECIMAL},
#{orderCurrency,jdbcType=VARCHAR}, #{otherCurrency,jdbcType=VARCHAR}, #{amountSales,jdbcType=DECIMAL},
#{amountTotal,jdbcType=DECIMAL}, #{amountShipping,jdbcType=DECIMAL}, #{amountProduct,jdbcType=DECIMAL},
#{amountTax,jdbcType=DECIMAL}, #{amountAdjustment,jdbcType=DECIMAL}, #{amountGiftWrap,jdbcType=DECIMAL},
#{amountRefund,jdbcType=DECIMAL}, #{amountPrepaid,jdbcType=DECIMAL}, #{costTotal,jdbcType=DECIMAL},
#{costPromotion,jdbcType=DECIMAL}, #{costPlatformFee,jdbcType=DECIMAL}, #{costProduct,jdbcType=DECIMAL},
#{costShipping,jdbcType=DECIMAL}, #{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL},
#{costPaypalFee,jdbcType=DECIMAL}, #{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{cnyToUsdExchangeRate,jdbcType=DECIMAL}, #{orderToUsdExchangeRate,jdbcType=DECIMAL},
#{otherToUsdExchangeRate,jdbcType=DECIMAL}, #{orderCurrency,jdbcType=VARCHAR},
#{otherCurrency,jdbcType=VARCHAR}, #{amountSales,jdbcType=DECIMAL}, #{amountTotal,jdbcType=DECIMAL},
#{amountShipping,jdbcType=DECIMAL}, #{amountProduct,jdbcType=DECIMAL}, #{amountTax,jdbcType=DECIMAL},
#{amountAdjustment,jdbcType=DECIMAL}, #{amountGiftWrap,jdbcType=DECIMAL}, #{amountRefund,jdbcType=DECIMAL},
#{amountPrepaid,jdbcType=DECIMAL}, #{costTotal,jdbcType=DECIMAL}, #{costPromotion,jdbcType=DECIMAL},
#{costPlatformFee,jdbcType=DECIMAL}, #{costProduct,jdbcType=DECIMAL}, #{costShipping,jdbcType=DECIMAL},
#{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL}, #{costPaypalFee,jdbcType=DECIMAL},
#{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{costHandlePlatform,jdbcType=DECIMAL}, #{costTail,jdbcType=DECIMAL}, #{costFirst,jdbcType=DECIMAL},
#{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL}, #{receiptCountry,jdbcType=VARCHAR},
#{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR}, #{receiptAddress,jdbcType=VARCHAR},
#{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT}, #{hasPlatformException,jdbcType=BIT},
#{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{quantityBailunSku,jdbcType=INTEGER})
#{costLogistics,jdbcType=DECIMAL}, #{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL},
#{receiptCountry,jdbcType=VARCHAR}, #{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR},
#{receiptAddress,jdbcType=VARCHAR}, #{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR},
#{receiver,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT},
#{hasPlatformException,jdbcType=BIT}, #{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityBailunSku,jdbcType=INTEGER},
#{logisticsWarehouseCode,jdbcType=VARCHAR}, #{logisticsWarehouseName,jdbcType=VARCHAR},
#{logisticsMethodCode,jdbcType=VARCHAR}, #{logisticsMethodName,jdbcType=VARCHAR},
#{bailunPickingStatus,jdbcType=VARCHAR}, #{bailunRequireLogistics,jdbcType=VARCHAR},
#{hasScalp,jdbcType=BIT})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseOmsOrder">
<!--
......@@ -387,6 +413,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate,
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate,
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate,
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate,
</if>
<if test="orderCurrency != null">
order_currency,
</if>
......@@ -459,6 +494,9 @@
<if test="costFirst != null">
cost_first,
</if>
<if test="costLogistics != null">
cost_logistics,
</if>
<if test="profitTotal != null">
profit_total,
</if>
......@@ -519,6 +557,27 @@
<if test="quantityBailunSku != null">
quantity_bailun_sku,
</if>
<if test="logisticsWarehouseCode != null">
logistics_warehouse_code,
</if>
<if test="logisticsWarehouseName != null">
logistics_warehouse_name,
</if>
<if test="logisticsMethodCode != null">
logistics_method_code,
</if>
<if test="logisticsMethodName != null">
logistics_method_name,
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status,
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics,
</if>
<if test="hasScalp != null">
has_scalp,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -617,6 +676,15 @@
<if test="financeOtherExchangeRate != null">
#{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
#{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
#{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
#{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
#{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -689,6 +757,9 @@
<if test="costFirst != null">
#{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
#{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
#{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -749,6 +820,27 @@
<if test="quantityBailunSku != null">
#{quantityBailunSku,jdbcType=INTEGER},
</if>
<if test="logisticsWarehouseCode != null">
#{logisticsWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="logisticsWarehouseName != null">
#{logisticsWarehouseName,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodCode != null">
#{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
#{logisticsMethodName,jdbcType=VARCHAR},
</if>
<if test="bailunPickingStatus != null">
#{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
#{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasScalp != null">
#{hasScalp,jdbcType=BIT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsOrderExample" resultType="java.lang.Long">
......@@ -864,6 +956,15 @@
<if test="record.financeOtherExchangeRate != null">
finance_other_exchange_rate = #{record.financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{record.cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{record.orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{record.otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.orderCurrency != null">
order_currency = #{record.orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -936,6 +1037,9 @@
<if test="record.costFirst != null">
cost_first = #{record.costFirst,jdbcType=DECIMAL},
</if>
<if test="record.costLogistics != null">
cost_logistics = #{record.costLogistics,jdbcType=DECIMAL},
</if>
<if test="record.profitTotal != null">
profit_total = #{record.profitTotal,jdbcType=DECIMAL},
</if>
......@@ -996,6 +1100,27 @@
<if test="record.quantityBailunSku != null">
quantity_bailun_sku = #{record.quantityBailunSku,jdbcType=INTEGER},
</if>
<if test="record.logisticsWarehouseCode != null">
logistics_warehouse_code = #{record.logisticsWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="record.logisticsWarehouseName != null">
logistics_warehouse_name = #{record.logisticsWarehouseName,jdbcType=VARCHAR},
</if>
<if test="record.logisticsMethodCode != null">
logistics_method_code = #{record.logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="record.logisticsMethodName != null">
logistics_method_name = #{record.logisticsMethodName,jdbcType=VARCHAR},
</if>
<if test="record.bailunPickingStatus != null">
bailun_picking_status = #{record.bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="record.bailunRequireLogistics != null">
bailun_require_logistics = #{record.bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="record.hasScalp != null">
has_scalp = #{record.hasScalp,jdbcType=BIT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -1039,6 +1164,9 @@
seller_other_exchange_rate = #{record.sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{record.financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{record.financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{record.cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{record.orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{record.otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{record.orderCurrency,jdbcType=VARCHAR},
other_currency = #{record.otherCurrency,jdbcType=VARCHAR},
amount_sales = #{record.amountSales,jdbcType=DECIMAL},
......@@ -1063,6 +1191,7 @@
cost_handle_platform = #{record.costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{record.costTail,jdbcType=DECIMAL},
cost_first = #{record.costFirst,jdbcType=DECIMAL},
cost_logistics = #{record.costLogistics,jdbcType=DECIMAL},
profit_total = #{record.profitTotal,jdbcType=DECIMAL},
profit_rate = #{record.profitRate,jdbcType=DECIMAL},
receipt_country = #{record.receiptCountry,jdbcType=VARCHAR},
......@@ -1082,7 +1211,14 @@
area_id = #{record.areaId,jdbcType=INTEGER},
gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
quantity_bailun_sku = #{record.quantityBailunSku,jdbcType=INTEGER}
quantity_bailun_sku = #{record.quantityBailunSku,jdbcType=INTEGER},
logistics_warehouse_code = #{record.logisticsWarehouseCode,jdbcType=VARCHAR},
logistics_warehouse_name = #{record.logisticsWarehouseName,jdbcType=VARCHAR},
logistics_method_code = #{record.logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{record.logisticsMethodName,jdbcType=VARCHAR},
bailun_picking_status = #{record.bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{record.bailunRequireLogistics,jdbcType=VARCHAR},
has_scalp = #{record.hasScalp,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -1187,6 +1323,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
order_currency = #{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -1259,6 +1404,9 @@
<if test="costFirst != null">
cost_first = #{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
profit_total = #{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -1319,6 +1467,27 @@
<if test="quantityBailunSku != null">
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER},
</if>
<if test="logisticsWarehouseCode != null">
logistics_warehouse_code = #{logisticsWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="logisticsWarehouseName != null">
logistics_warehouse_name = #{logisticsWarehouseName,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodCode != null">
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasScalp != null">
has_scalp = #{hasScalp,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -1359,6 +1528,9 @@
seller_other_exchange_rate = #{sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{orderCurrency,jdbcType=VARCHAR},
other_currency = #{otherCurrency,jdbcType=VARCHAR},
amount_sales = #{amountSales,jdbcType=DECIMAL},
......@@ -1383,6 +1555,7 @@
cost_handle_platform = #{costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{costTail,jdbcType=DECIMAL},
cost_first = #{costFirst,jdbcType=DECIMAL},
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
profit_total = #{profitTotal,jdbcType=DECIMAL},
profit_rate = #{profitRate,jdbcType=DECIMAL},
receipt_country = #{receiptCountry,jdbcType=VARCHAR},
......@@ -1402,7 +1575,14 @@
area_id = #{areaId,jdbcType=INTEGER},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER}
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER},
logistics_warehouse_code = #{logisticsWarehouseCode,jdbcType=VARCHAR},
logistics_warehouse_name = #{logisticsWarehouseName,jdbcType=VARCHAR},
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
has_scalp = #{hasScalp,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseOmsOrder">
......@@ -1509,6 +1689,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate,
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate,
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate,
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate,
</if>
<if test="orderCurrency != null">
order_currency,
</if>
......@@ -1581,6 +1770,9 @@
<if test="costFirst != null">
cost_first,
</if>
<if test="costLogistics != null">
cost_logistics,
</if>
<if test="profitTotal != null">
profit_total,
</if>
......@@ -1641,6 +1833,27 @@
<if test="quantityBailunSku != null">
quantity_bailun_sku,
</if>
<if test="logisticsWarehouseCode != null">
logistics_warehouse_code,
</if>
<if test="logisticsWarehouseName != null">
logistics_warehouse_name,
</if>
<if test="logisticsMethodCode != null">
logistics_method_code,
</if>
<if test="logisticsMethodName != null">
logistics_method_name,
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status,
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics,
</if>
<if test="hasScalp != null">
has_scalp,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -1740,6 +1953,15 @@
<if test="financeOtherExchangeRate != null">
#{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
#{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
#{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
#{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
#{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -1812,6 +2034,9 @@
<if test="costFirst != null">
#{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
#{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
#{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -1872,6 +2097,27 @@
<if test="quantityBailunSku != null">
#{quantityBailunSku,jdbcType=INTEGER},
</if>
<if test="logisticsWarehouseCode != null">
#{logisticsWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="logisticsWarehouseName != null">
#{logisticsWarehouseName,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodCode != null">
#{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
#{logisticsMethodName,jdbcType=VARCHAR},
</if>
<if test="bailunPickingStatus != null">
#{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
#{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasScalp != null">
#{hasScalp,jdbcType=BIT},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -1971,6 +2217,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
order_currency = #{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -2043,6 +2298,9 @@
<if test="costFirst != null">
cost_first = #{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
profit_total = #{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -2103,6 +2361,27 @@
<if test="quantityBailunSku != null">
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER},
</if>
<if test="logisticsWarehouseCode != null">
logistics_warehouse_code = #{logisticsWarehouseCode,jdbcType=VARCHAR},
</if>
<if test="logisticsWarehouseName != null">
logistics_warehouse_name = #{logisticsWarehouseName,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodCode != null">
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasScalp != null">
has_scalp = #{hasScalp,jdbcType=BIT},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseOmsOrder">
......@@ -2118,15 +2397,18 @@
seller_email, order_update_time, bailun_order_id, platform_order_status, bailun_order_status,
bailun_payment_status, bailun_merge_status, bailun_interception_status, bailun_shipping_status,
seller_order_exchange_rate, seller_other_exchange_rate, finance_order_exchange_rate,
finance_other_exchange_rate, order_currency, other_currency, amount_sales, amount_total,
finance_other_exchange_rate, cny_to_usd_exchange_rate, order_to_usd_exchange_rate,
other_to_usd_exchange_rate, order_currency, other_currency, amount_sales, amount_total,
amount_shipping, amount_product, amount_tax, amount_adjustment, amount_gift_wrap,
amount_refund, amount_prepaid, cost_total, cost_promotion, cost_platform_fee, cost_product,
cost_shipping, cost_package, cost_fba_fee, cost_paypal_fee, cost_refund_commisson,
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, profit_total,
profit_rate, receipt_country, receipt_city, receipt_area, receipt_address, receipt_address_2,
receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name, buyer_email,
has_fba_exception, has_platform_exception, has_cancle, area_id, gmt_create, gmt_modified,
quantity_bailun_sku)
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, cost_logistics,
profit_total, profit_rate, receipt_country, receipt_city, receipt_area, receipt_address,
receipt_address_2, receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name,
buyer_email, has_fba_exception, has_platform_exception, has_cancle, area_id, gmt_create,
gmt_modified, quantity_bailun_sku, logistics_warehouse_code, logistics_warehouse_name,
logistics_method_code, logistics_method_name, bailun_picking_status, bailun_require_logistics,
has_scalp)
values
(#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{platformType,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMethod,jdbcType=VARCHAR},
......@@ -2140,21 +2422,27 @@
#{bailunInterceptionStatus,jdbcType=VARCHAR}, #{bailunShippingStatus,jdbcType=VARCHAR},
#{sellerOrderExchangeRate,jdbcType=DECIMAL}, #{sellerOtherExchangeRate,jdbcType=DECIMAL},
#{financeOrderExchangeRate,jdbcType=DECIMAL}, #{financeOtherExchangeRate,jdbcType=DECIMAL},
#{orderCurrency,jdbcType=VARCHAR}, #{otherCurrency,jdbcType=VARCHAR}, #{amountSales,jdbcType=DECIMAL},
#{amountTotal,jdbcType=DECIMAL}, #{amountShipping,jdbcType=DECIMAL}, #{amountProduct,jdbcType=DECIMAL},
#{amountTax,jdbcType=DECIMAL}, #{amountAdjustment,jdbcType=DECIMAL}, #{amountGiftWrap,jdbcType=DECIMAL},
#{amountRefund,jdbcType=DECIMAL}, #{amountPrepaid,jdbcType=DECIMAL}, #{costTotal,jdbcType=DECIMAL},
#{costPromotion,jdbcType=DECIMAL}, #{costPlatformFee,jdbcType=DECIMAL}, #{costProduct,jdbcType=DECIMAL},
#{costShipping,jdbcType=DECIMAL}, #{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL},
#{costPaypalFee,jdbcType=DECIMAL}, #{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{cnyToUsdExchangeRate,jdbcType=DECIMAL}, #{orderToUsdExchangeRate,jdbcType=DECIMAL},
#{otherToUsdExchangeRate,jdbcType=DECIMAL}, #{orderCurrency,jdbcType=VARCHAR},
#{otherCurrency,jdbcType=VARCHAR}, #{amountSales,jdbcType=DECIMAL}, #{amountTotal,jdbcType=DECIMAL},
#{amountShipping,jdbcType=DECIMAL}, #{amountProduct,jdbcType=DECIMAL}, #{amountTax,jdbcType=DECIMAL},
#{amountAdjustment,jdbcType=DECIMAL}, #{amountGiftWrap,jdbcType=DECIMAL}, #{amountRefund,jdbcType=DECIMAL},
#{amountPrepaid,jdbcType=DECIMAL}, #{costTotal,jdbcType=DECIMAL}, #{costPromotion,jdbcType=DECIMAL},
#{costPlatformFee,jdbcType=DECIMAL}, #{costProduct,jdbcType=DECIMAL}, #{costShipping,jdbcType=DECIMAL},
#{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL}, #{costPaypalFee,jdbcType=DECIMAL},
#{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{costHandlePlatform,jdbcType=DECIMAL}, #{costTail,jdbcType=DECIMAL}, #{costFirst,jdbcType=DECIMAL},
#{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL}, #{receiptCountry,jdbcType=VARCHAR},
#{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR}, #{receiptAddress,jdbcType=VARCHAR},
#{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT}, #{hasPlatformException,jdbcType=BIT},
#{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{quantityBailunSku,jdbcType=INTEGER})
#{costLogistics,jdbcType=DECIMAL}, #{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL},
#{receiptCountry,jdbcType=VARCHAR}, #{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR},
#{receiptAddress,jdbcType=VARCHAR}, #{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR},
#{receiver,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT},
#{hasPlatformException,jdbcType=BIT}, #{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{quantityBailunSku,jdbcType=INTEGER},
#{logisticsWarehouseCode,jdbcType=VARCHAR}, #{logisticsWarehouseName,jdbcType=VARCHAR},
#{logisticsMethodCode,jdbcType=VARCHAR}, #{logisticsMethodName,jdbcType=VARCHAR},
#{bailunPickingStatus,jdbcType=VARCHAR}, #{bailunRequireLogistics,jdbcType=VARCHAR},
#{hasScalp,jdbcType=BIT})
on duplicate key update
id = #{id,jdbcType=INTEGER},
origin_order_id = #{originOrderId,jdbcType=VARCHAR},
......@@ -2188,6 +2476,9 @@
seller_other_exchange_rate = #{sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{orderCurrency,jdbcType=VARCHAR},
other_currency = #{otherCurrency,jdbcType=VARCHAR},
amount_sales = #{amountSales,jdbcType=DECIMAL},
......@@ -2212,6 +2503,7 @@
cost_handle_platform = #{costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{costTail,jdbcType=DECIMAL},
cost_first = #{costFirst,jdbcType=DECIMAL},
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
profit_total = #{profitTotal,jdbcType=DECIMAL},
profit_rate = #{profitRate,jdbcType=DECIMAL},
receipt_country = #{receiptCountry,jdbcType=VARCHAR},
......@@ -2231,7 +2523,14 @@
area_id = #{areaId,jdbcType=INTEGER},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER}
quantity_bailun_sku = #{quantityBailunSku,jdbcType=INTEGER},
logistics_warehouse_code = #{logisticsWarehouseCode,jdbcType=VARCHAR},
logistics_warehouse_name = #{logisticsWarehouseName,jdbcType=VARCHAR},
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
has_scalp = #{hasScalp,jdbcType=BIT}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsOrderExample" resultMap="BaseResultMap">
<!--
......@@ -2250,4 +2549,12 @@
</if>
limit 1
</select>
<update id="logicDeleteOmsSku">
update dc_base_oms_sku set has_delete=1 where origin_order_id=#{originOrderId,jdbcType=VARCHAR} and bailun_account_id = #{bailunAccountId,jdbcType=INTEGER}
</update>
<update id="logicDeleteOmsPick">
update dc_base_oms_pick set has_delete=1 where origin_order_id=#{originOrderId,jdbcType=VARCHAR} and bailun_account_id = #{bailunAccountId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
......@@ -31,6 +31,9 @@
<result column="seller_other_exchange_rate" jdbcType="DECIMAL" property="sellerOtherExchangeRate" />
<result column="finance_order_exchange_rate" jdbcType="DECIMAL" property="financeOrderExchangeRate" />
<result column="finance_other_exchange_rate" jdbcType="DECIMAL" property="financeOtherExchangeRate" />
<result column="cny_to_usd_exchange_rate" jdbcType="DECIMAL" property="cnyToUsdExchangeRate" />
<result column="order_to_usd_exchange_rate" jdbcType="DECIMAL" property="orderToUsdExchangeRate" />
<result column="other_to_usd_exchange_rate" jdbcType="DECIMAL" property="otherToUsdExchangeRate" />
<result column="order_currency" jdbcType="VARCHAR" property="orderCurrency" />
<result column="other_currency" jdbcType="VARCHAR" property="otherCurrency" />
<result column="seller_name" jdbcType="VARCHAR" property="sellerName" />
......@@ -38,6 +41,7 @@
<result column="platform_order_status" jdbcType="VARCHAR" property="platformOrderStatus" />
<result column="bailun_order_status" jdbcType="VARCHAR" property="bailunOrderStatus" />
<result column="bailun_payment_status" jdbcType="VARCHAR" property="bailunPaymentStatus" />
<result column="bailun_interception_status" jdbcType="VARCHAR" property="bailunInterceptionStatus" />
<result column="shipping_status" jdbcType="VARCHAR" property="shippingStatus" />
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="bailun_sku_title_en" jdbcType="VARCHAR" property="bailunSkuTitleEn" />
......@@ -73,6 +77,7 @@
<result column="cost_handle_platform" jdbcType="DECIMAL" property="costHandlePlatform" />
<result column="cost_tail" jdbcType="DECIMAL" property="costTail" />
<result column="cost_first" jdbcType="DECIMAL" property="costFirst" />
<result column="cost_logistics" jdbcType="DECIMAL" property="costLogistics" />
<result column="profit_total" jdbcType="DECIMAL" property="profitTotal" />
<result column="profit_rate" jdbcType="DECIMAL" property="profitRate" />
<result column="receipt_country" jdbcType="VARCHAR" property="receiptCountry" />
......@@ -96,6 +101,12 @@
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="ratio_weight" jdbcType="DECIMAL" property="ratioWeight" />
<result column="ratio_price" jdbcType="DECIMAL" property="ratioPrice" />
<result column="bailun_picking_status" jdbcType="VARCHAR" property="bailunPickingStatus" />
<result column="bailun_require_logistics" jdbcType="VARCHAR" property="bailunRequireLogistics" />
<result column="has_delete" jdbcType="BIT" property="hasDelete" />
<result column="has_scalp" jdbcType="BIT" property="hasScalp" />
<result column="logistics_method_code" jdbcType="VARCHAR" property="logisticsMethodCode" />
<result column="logistics_method_name" jdbcType="VARCHAR" property="logisticsMethodName" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -172,19 +183,22 @@
pay_status, collection_account, platform_order_type, website, create_time, paid_time,
refund_time, seller_id, bailun_account_id, hq_account, seller_account, seller_order_id,
seller_email, order_update_time, seller_order_exchange_rate, seller_other_exchange_rate,
finance_order_exchange_rate, finance_other_exchange_rate, order_currency, other_currency,
finance_order_exchange_rate, finance_other_exchange_rate, cny_to_usd_exchange_rate,
order_to_usd_exchange_rate, other_to_usd_exchange_rate, order_currency, other_currency,
seller_name, bailun_order_id, platform_order_status, bailun_order_status, bailun_payment_status,
shipping_status, bailun_sku, bailun_sku_title_en, bailun_sku_title_cn, bailun_sku_quantity_ordered,
bailun_sku_quantity_shipped, bailun_sku_quantity_refund, bailun_sku_quantity_picked,
warehouse_name, warehouse_code, bailun_sku_unit_price, bailun_sku_weight, bailun_sku_size,
amount_sales, amount_total, amount_shipping, amount_product, amount_tax, amount_adjustment,
amount_gift_wrap, amount_refund, amount_prepaid, cost_total, cost_promotion, cost_platform_fee,
cost_product, cost_shipping, cost_package, cost_fba_fee, cost_paypal_fee, cost_refund_commisson,
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, profit_total, profit_rate,
receipt_country, receipt_city, receipt_area, receipt_address, receipt_address_2,
receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name, buyer_email,
has_fba_exception, has_platform_exception, has_cancle, area_id, bailun_category_id,
bailun_category_name, gmt_create, gmt_modified, ratio_weight, ratio_price
bailun_interception_status, shipping_status, bailun_sku, bailun_sku_title_en, bailun_sku_title_cn,
bailun_sku_quantity_ordered, bailun_sku_quantity_shipped, bailun_sku_quantity_refund,
bailun_sku_quantity_picked, warehouse_name, warehouse_code, bailun_sku_unit_price,
bailun_sku_weight, bailun_sku_size, amount_sales, amount_total, amount_shipping,
amount_product, amount_tax, amount_adjustment, amount_gift_wrap, amount_refund, amount_prepaid,
cost_total, cost_promotion, cost_platform_fee, cost_product, cost_shipping, cost_package,
cost_fba_fee, cost_paypal_fee, cost_refund_commisson, cost_handle_bailun, cost_handle_platform,
cost_tail, cost_first, cost_logistics, profit_total, profit_rate, receipt_country,
receipt_city, receipt_area, receipt_address, receipt_address_2, receipt_postal_code,
receiver, receiver_phone, buyer_id, buyer_name, buyer_email, has_fba_exception, has_platform_exception,
has_cancle, area_id, bailun_category_id, bailun_category_name, gmt_create, gmt_modified,
ratio_weight, ratio_price, bailun_picking_status, bailun_require_logistics, has_delete,
has_scalp, logistics_method_code, logistics_method_name
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsSkuExample" resultMap="BaseResultMap">
<!--
......@@ -254,10 +268,13 @@
seller_order_id, seller_email, order_update_time,
seller_order_exchange_rate, seller_other_exchange_rate,
finance_order_exchange_rate, finance_other_exchange_rate,
order_currency, other_currency, seller_name,
bailun_order_id, platform_order_status, bailun_order_status,
bailun_payment_status, shipping_status, bailun_sku,
bailun_sku_title_en, bailun_sku_title_cn, bailun_sku_quantity_ordered,
cny_to_usd_exchange_rate, order_to_usd_exchange_rate,
other_to_usd_exchange_rate, order_currency,
other_currency, seller_name, bailun_order_id,
platform_order_status, bailun_order_status,
bailun_payment_status, bailun_interception_status,
shipping_status, bailun_sku, bailun_sku_title_en,
bailun_sku_title_cn, bailun_sku_quantity_ordered,
bailun_sku_quantity_shipped, bailun_sku_quantity_refund,
bailun_sku_quantity_picked, warehouse_name,
warehouse_code, bailun_sku_unit_price, bailun_sku_weight,
......@@ -269,14 +286,17 @@
cost_package, cost_fba_fee, cost_paypal_fee,
cost_refund_commisson, cost_handle_bailun,
cost_handle_platform, cost_tail, cost_first,
profit_total, profit_rate, receipt_country,
receipt_city, receipt_area, receipt_address,
receipt_address_2, receipt_postal_code, receiver,
receiver_phone, buyer_id, buyer_name,
buyer_email, has_fba_exception, has_platform_exception,
has_cancle, area_id, bailun_category_id,
bailun_category_name, gmt_create, gmt_modified,
ratio_weight, ratio_price)
cost_logistics, profit_total, profit_rate,
receipt_country, receipt_city, receipt_area,
receipt_address, receipt_address_2, receipt_postal_code,
receiver, receiver_phone, buyer_id,
buyer_name, buyer_email, has_fba_exception,
has_platform_exception, has_cancle, area_id,
bailun_category_id, bailun_category_name, gmt_create,
gmt_modified, ratio_weight, ratio_price,
bailun_picking_status, bailun_require_logistics,
has_delete, has_scalp, logistics_method_code,
logistics_method_name)
values (#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{platformType,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMethod,jdbcType=VARCHAR},
#{payAccount,jdbcType=VARCHAR}, #{payStatus,jdbcType=VARCHAR}, #{collectionAccount,jdbcType=VARCHAR},
......@@ -286,10 +306,13 @@
#{sellerOrderId,jdbcType=VARCHAR}, #{sellerEmail,jdbcType=VARCHAR}, #{orderUpdateTime,jdbcType=TIMESTAMP},
#{sellerOrderExchangeRate,jdbcType=DECIMAL}, #{sellerOtherExchangeRate,jdbcType=DECIMAL},
#{financeOrderExchangeRate,jdbcType=DECIMAL}, #{financeOtherExchangeRate,jdbcType=DECIMAL},
#{orderCurrency,jdbcType=VARCHAR}, #{otherCurrency,jdbcType=VARCHAR}, #{sellerName,jdbcType=VARCHAR},
#{bailunOrderId,jdbcType=VARCHAR}, #{platformOrderStatus,jdbcType=VARCHAR}, #{bailunOrderStatus,jdbcType=VARCHAR},
#{bailunPaymentStatus,jdbcType=VARCHAR}, #{shippingStatus,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{bailunSkuTitleEn,jdbcType=VARCHAR}, #{bailunSkuTitleCn,jdbcType=VARCHAR}, #{bailunSkuQuantityOrdered,jdbcType=INTEGER},
#{cnyToUsdExchangeRate,jdbcType=DECIMAL}, #{orderToUsdExchangeRate,jdbcType=DECIMAL},
#{otherToUsdExchangeRate,jdbcType=DECIMAL}, #{orderCurrency,jdbcType=VARCHAR},
#{otherCurrency,jdbcType=VARCHAR}, #{sellerName,jdbcType=VARCHAR}, #{bailunOrderId,jdbcType=VARCHAR},
#{platformOrderStatus,jdbcType=VARCHAR}, #{bailunOrderStatus,jdbcType=VARCHAR},
#{bailunPaymentStatus,jdbcType=VARCHAR}, #{bailunInterceptionStatus,jdbcType=VARCHAR},
#{shippingStatus,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{bailunSkuTitleEn,jdbcType=VARCHAR},
#{bailunSkuTitleCn,jdbcType=VARCHAR}, #{bailunSkuQuantityOrdered,jdbcType=INTEGER},
#{bailunSkuQuantityShipped,jdbcType=INTEGER}, #{bailunSkuQuantityRefund,jdbcType=INTEGER},
#{bailunSkuQuantityPicked,jdbcType=INTEGER}, #{warehouseName,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{bailunSkuUnitPrice,jdbcType=DECIMAL}, #{bailunSkuWeight,jdbcType=DECIMAL},
......@@ -301,14 +324,17 @@
#{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL}, #{costPaypalFee,jdbcType=DECIMAL},
#{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{costHandlePlatform,jdbcType=DECIMAL}, #{costTail,jdbcType=DECIMAL}, #{costFirst,jdbcType=DECIMAL},
#{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL}, #{receiptCountry,jdbcType=VARCHAR},
#{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR}, #{receiptAddress,jdbcType=VARCHAR},
#{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT}, #{hasPlatformException,jdbcType=BIT},
#{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER}, #{bailunCategoryId,jdbcType=INTEGER},
#{bailunCategoryName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{ratioWeight,jdbcType=DECIMAL}, #{ratioPrice,jdbcType=DECIMAL})
#{costLogistics,jdbcType=DECIMAL}, #{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL},
#{receiptCountry,jdbcType=VARCHAR}, #{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR},
#{receiptAddress,jdbcType=VARCHAR}, #{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR},
#{receiver,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT},
#{hasPlatformException,jdbcType=BIT}, #{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER},
#{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{ratioWeight,jdbcType=DECIMAL}, #{ratioPrice,jdbcType=DECIMAL},
#{bailunPickingStatus,jdbcType=VARCHAR}, #{bailunRequireLogistics,jdbcType=VARCHAR},
#{hasDelete,jdbcType=BIT}, #{hasScalp,jdbcType=BIT}, #{logisticsMethodCode,jdbcType=VARCHAR},
#{logisticsMethodName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseOmsSku">
<!--
......@@ -392,6 +418,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate,
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate,
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate,
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate,
</if>
<if test="orderCurrency != null">
order_currency,
</if>
......@@ -413,6 +448,9 @@
<if test="bailunPaymentStatus != null">
bailun_payment_status,
</if>
<if test="bailunInterceptionStatus != null">
bailun_interception_status,
</if>
<if test="shippingStatus != null">
shipping_status,
</if>
......@@ -518,6 +556,9 @@
<if test="costFirst != null">
cost_first,
</if>
<if test="costLogistics != null">
cost_logistics,
</if>
<if test="profitTotal != null">
profit_total,
</if>
......@@ -587,6 +628,24 @@
<if test="ratioPrice != null">
ratio_price,
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status,
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics,
</if>
<if test="hasDelete != null">
has_delete,
</if>
<if test="hasScalp != null">
has_scalp,
</if>
<if test="logisticsMethodCode != null">
logistics_method_code,
</if>
<if test="logisticsMethodName != null">
logistics_method_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -664,6 +723,15 @@
<if test="financeOtherExchangeRate != null">
#{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
#{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
#{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
#{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
#{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -685,6 +753,9 @@
<if test="bailunPaymentStatus != null">
#{bailunPaymentStatus,jdbcType=VARCHAR},
</if>
<if test="bailunInterceptionStatus != null">
#{bailunInterceptionStatus,jdbcType=VARCHAR},
</if>
<if test="shippingStatus != null">
#{shippingStatus,jdbcType=VARCHAR},
</if>
......@@ -790,6 +861,9 @@
<if test="costFirst != null">
#{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
#{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
#{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -859,6 +933,24 @@
<if test="ratioPrice != null">
#{ratioPrice,jdbcType=DECIMAL},
</if>
<if test="bailunPickingStatus != null">
#{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
#{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasDelete != null">
#{hasDelete,jdbcType=BIT},
</if>
<if test="hasScalp != null">
#{hasScalp,jdbcType=BIT},
</if>
<if test="logisticsMethodCode != null">
#{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
#{logisticsMethodName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsSkuExample" resultType="java.lang.Long">
......@@ -953,6 +1045,15 @@
<if test="record.financeOtherExchangeRate != null">
finance_other_exchange_rate = #{record.financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{record.cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{record.orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{record.otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="record.orderCurrency != null">
order_currency = #{record.orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -974,6 +1075,9 @@
<if test="record.bailunPaymentStatus != null">
bailun_payment_status = #{record.bailunPaymentStatus,jdbcType=VARCHAR},
</if>
<if test="record.bailunInterceptionStatus != null">
bailun_interception_status = #{record.bailunInterceptionStatus,jdbcType=VARCHAR},
</if>
<if test="record.shippingStatus != null">
shipping_status = #{record.shippingStatus,jdbcType=VARCHAR},
</if>
......@@ -1079,6 +1183,9 @@
<if test="record.costFirst != null">
cost_first = #{record.costFirst,jdbcType=DECIMAL},
</if>
<if test="record.costLogistics != null">
cost_logistics = #{record.costLogistics,jdbcType=DECIMAL},
</if>
<if test="record.profitTotal != null">
profit_total = #{record.profitTotal,jdbcType=DECIMAL},
</if>
......@@ -1148,6 +1255,24 @@
<if test="record.ratioPrice != null">
ratio_price = #{record.ratioPrice,jdbcType=DECIMAL},
</if>
<if test="record.bailunPickingStatus != null">
bailun_picking_status = #{record.bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="record.bailunRequireLogistics != null">
bailun_require_logistics = #{record.bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="record.hasDelete != null">
has_delete = #{record.hasDelete,jdbcType=BIT},
</if>
<if test="record.hasScalp != null">
has_scalp = #{record.hasScalp,jdbcType=BIT},
</if>
<if test="record.logisticsMethodCode != null">
logistics_method_code = #{record.logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="record.logisticsMethodName != null">
logistics_method_name = #{record.logisticsMethodName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -1184,6 +1309,9 @@
seller_other_exchange_rate = #{record.sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{record.financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{record.financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{record.cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{record.orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{record.otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{record.orderCurrency,jdbcType=VARCHAR},
other_currency = #{record.otherCurrency,jdbcType=VARCHAR},
seller_name = #{record.sellerName,jdbcType=VARCHAR},
......@@ -1191,6 +1319,7 @@
platform_order_status = #{record.platformOrderStatus,jdbcType=VARCHAR},
bailun_order_status = #{record.bailunOrderStatus,jdbcType=VARCHAR},
bailun_payment_status = #{record.bailunPaymentStatus,jdbcType=VARCHAR},
bailun_interception_status = #{record.bailunInterceptionStatus,jdbcType=VARCHAR},
shipping_status = #{record.shippingStatus,jdbcType=VARCHAR},
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
bailun_sku_title_en = #{record.bailunSkuTitleEn,jdbcType=VARCHAR},
......@@ -1226,6 +1355,7 @@
cost_handle_platform = #{record.costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{record.costTail,jdbcType=DECIMAL},
cost_first = #{record.costFirst,jdbcType=DECIMAL},
cost_logistics = #{record.costLogistics,jdbcType=DECIMAL},
profit_total = #{record.profitTotal,jdbcType=DECIMAL},
profit_rate = #{record.profitRate,jdbcType=DECIMAL},
receipt_country = #{record.receiptCountry,jdbcType=VARCHAR},
......@@ -1248,7 +1378,13 @@
gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
ratio_weight = #{record.ratioWeight,jdbcType=DECIMAL},
ratio_price = #{record.ratioPrice,jdbcType=DECIMAL}
ratio_price = #{record.ratioPrice,jdbcType=DECIMAL},
bailun_picking_status = #{record.bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{record.bailunRequireLogistics,jdbcType=VARCHAR},
has_delete = #{record.hasDelete,jdbcType=BIT},
has_scalp = #{record.hasScalp,jdbcType=BIT},
logistics_method_code = #{record.logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{record.logisticsMethodName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
......@@ -1332,6 +1468,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
order_currency = #{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -1353,6 +1498,9 @@
<if test="bailunPaymentStatus != null">
bailun_payment_status = #{bailunPaymentStatus,jdbcType=VARCHAR},
</if>
<if test="bailunInterceptionStatus != null">
bailun_interception_status = #{bailunInterceptionStatus,jdbcType=VARCHAR},
</if>
<if test="shippingStatus != null">
shipping_status = #{shippingStatus,jdbcType=VARCHAR},
</if>
......@@ -1458,6 +1606,9 @@
<if test="costFirst != null">
cost_first = #{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
profit_total = #{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -1527,6 +1678,24 @@
<if test="ratioPrice != null">
ratio_price = #{ratioPrice,jdbcType=DECIMAL},
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasDelete != null">
has_delete = #{hasDelete,jdbcType=BIT},
</if>
<if test="hasScalp != null">
has_scalp = #{hasScalp,jdbcType=BIT},
</if>
<if test="logisticsMethodCode != null">
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -1560,6 +1729,9 @@
seller_other_exchange_rate = #{sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{orderCurrency,jdbcType=VARCHAR},
other_currency = #{otherCurrency,jdbcType=VARCHAR},
seller_name = #{sellerName,jdbcType=VARCHAR},
......@@ -1567,6 +1739,7 @@
platform_order_status = #{platformOrderStatus,jdbcType=VARCHAR},
bailun_order_status = #{bailunOrderStatus,jdbcType=VARCHAR},
bailun_payment_status = #{bailunPaymentStatus,jdbcType=VARCHAR},
bailun_interception_status = #{bailunInterceptionStatus,jdbcType=VARCHAR},
shipping_status = #{shippingStatus,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
bailun_sku_title_en = #{bailunSkuTitleEn,jdbcType=VARCHAR},
......@@ -1602,6 +1775,7 @@
cost_handle_platform = #{costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{costTail,jdbcType=DECIMAL},
cost_first = #{costFirst,jdbcType=DECIMAL},
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
profit_total = #{profitTotal,jdbcType=DECIMAL},
profit_rate = #{profitRate,jdbcType=DECIMAL},
receipt_country = #{receiptCountry,jdbcType=VARCHAR},
......@@ -1624,7 +1798,13 @@
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
ratio_weight = #{ratioWeight,jdbcType=DECIMAL},
ratio_price = #{ratioPrice,jdbcType=DECIMAL}
ratio_price = #{ratioPrice,jdbcType=DECIMAL},
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
has_delete = #{hasDelete,jdbcType=BIT},
has_scalp = #{hasScalp,jdbcType=BIT},
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcBaseOmsSku">
......@@ -1710,6 +1890,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate,
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate,
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate,
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate,
</if>
<if test="orderCurrency != null">
order_currency,
</if>
......@@ -1731,6 +1920,9 @@
<if test="bailunPaymentStatus != null">
bailun_payment_status,
</if>
<if test="bailunInterceptionStatus != null">
bailun_interception_status,
</if>
<if test="shippingStatus != null">
shipping_status,
</if>
......@@ -1836,6 +2028,9 @@
<if test="costFirst != null">
cost_first,
</if>
<if test="costLogistics != null">
cost_logistics,
</if>
<if test="profitTotal != null">
profit_total,
</if>
......@@ -1905,6 +2100,24 @@
<if test="ratioPrice != null">
ratio_price,
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status,
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics,
</if>
<if test="hasDelete != null">
has_delete,
</if>
<if test="hasScalp != null">
has_scalp,
</if>
<if test="logisticsMethodCode != null">
logistics_method_code,
</if>
<if test="logisticsMethodName != null">
logistics_method_name,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
......@@ -1983,6 +2196,15 @@
<if test="financeOtherExchangeRate != null">
#{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
#{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
#{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
#{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
#{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -2004,6 +2226,9 @@
<if test="bailunPaymentStatus != null">
#{bailunPaymentStatus,jdbcType=VARCHAR},
</if>
<if test="bailunInterceptionStatus != null">
#{bailunInterceptionStatus,jdbcType=VARCHAR},
</if>
<if test="shippingStatus != null">
#{shippingStatus,jdbcType=VARCHAR},
</if>
......@@ -2109,6 +2334,9 @@
<if test="costFirst != null">
#{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
#{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
#{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -2178,6 +2406,24 @@
<if test="ratioPrice != null">
#{ratioPrice,jdbcType=DECIMAL},
</if>
<if test="bailunPickingStatus != null">
#{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
#{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasDelete != null">
#{hasDelete,jdbcType=BIT},
</if>
<if test="hasScalp != null">
#{hasScalp,jdbcType=BIT},
</if>
<if test="logisticsMethodCode != null">
#{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
#{logisticsMethodName,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
......@@ -2256,6 +2502,15 @@
<if test="financeOtherExchangeRate != null">
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
</if>
<if test="cnyToUsdExchangeRate != null">
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderToUsdExchangeRate != null">
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="otherToUsdExchangeRate != null">
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
</if>
<if test="orderCurrency != null">
order_currency = #{orderCurrency,jdbcType=VARCHAR},
</if>
......@@ -2277,6 +2532,9 @@
<if test="bailunPaymentStatus != null">
bailun_payment_status = #{bailunPaymentStatus,jdbcType=VARCHAR},
</if>
<if test="bailunInterceptionStatus != null">
bailun_interception_status = #{bailunInterceptionStatus,jdbcType=VARCHAR},
</if>
<if test="shippingStatus != null">
shipping_status = #{shippingStatus,jdbcType=VARCHAR},
</if>
......@@ -2382,6 +2640,9 @@
<if test="costFirst != null">
cost_first = #{costFirst,jdbcType=DECIMAL},
</if>
<if test="costLogistics != null">
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
</if>
<if test="profitTotal != null">
profit_total = #{profitTotal,jdbcType=DECIMAL},
</if>
......@@ -2451,6 +2712,24 @@
<if test="ratioPrice != null">
ratio_price = #{ratioPrice,jdbcType=DECIMAL},
</if>
<if test="bailunPickingStatus != null">
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
</if>
<if test="bailunRequireLogistics != null">
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
</if>
<if test="hasDelete != null">
has_delete = #{hasDelete,jdbcType=BIT},
</if>
<if test="hasScalp != null">
has_scalp = #{hasScalp,jdbcType=BIT},
</if>
<if test="logisticsMethodCode != null">
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
</if>
<if test="logisticsMethodName != null">
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcBaseOmsSku">
......@@ -2464,19 +2743,23 @@
pay_status, collection_account, platform_order_type, website, create_time, paid_time,
refund_time, seller_id, bailun_account_id, hq_account, seller_account, seller_order_id,
seller_email, order_update_time, seller_order_exchange_rate, seller_other_exchange_rate,
finance_order_exchange_rate, finance_other_exchange_rate, order_currency, other_currency,
finance_order_exchange_rate, finance_other_exchange_rate, cny_to_usd_exchange_rate,
order_to_usd_exchange_rate, other_to_usd_exchange_rate, order_currency, other_currency,
seller_name, bailun_order_id, platform_order_status, bailun_order_status, bailun_payment_status,
shipping_status, bailun_sku, bailun_sku_title_en, bailun_sku_title_cn, bailun_sku_quantity_ordered,
bailun_sku_quantity_shipped, bailun_sku_quantity_refund, bailun_sku_quantity_picked,
warehouse_name, warehouse_code, bailun_sku_unit_price, bailun_sku_weight, bailun_sku_size,
amount_sales, amount_total, amount_shipping, amount_product, amount_tax, amount_adjustment,
amount_gift_wrap, amount_refund, amount_prepaid, cost_total, cost_promotion, cost_platform_fee,
cost_product, cost_shipping, cost_package, cost_fba_fee, cost_paypal_fee, cost_refund_commisson,
cost_handle_bailun, cost_handle_platform, cost_tail, cost_first, profit_total,
profit_rate, receipt_country, receipt_city, receipt_area, receipt_address, receipt_address_2,
bailun_interception_status, shipping_status, bailun_sku, bailun_sku_title_en, bailun_sku_title_cn,
bailun_sku_quantity_ordered, bailun_sku_quantity_shipped, bailun_sku_quantity_refund,
bailun_sku_quantity_picked, warehouse_name, warehouse_code, bailun_sku_unit_price,
bailun_sku_weight, bailun_sku_size, amount_sales, amount_total, amount_shipping,
amount_product, amount_tax, amount_adjustment, amount_gift_wrap, amount_refund,
amount_prepaid, cost_total, cost_promotion, cost_platform_fee, cost_product, cost_shipping,
cost_package, cost_fba_fee, cost_paypal_fee, cost_refund_commisson, cost_handle_bailun,
cost_handle_platform, cost_tail, cost_first, cost_logistics, profit_total, profit_rate,
receipt_country, receipt_city, receipt_area, receipt_address, receipt_address_2,
receipt_postal_code, receiver, receiver_phone, buyer_id, buyer_name, buyer_email,
has_fba_exception, has_platform_exception, has_cancle, area_id, bailun_category_id,
bailun_category_name, gmt_create, gmt_modified, ratio_weight, ratio_price)
bailun_category_name, gmt_create, gmt_modified, ratio_weight, ratio_price, bailun_picking_status,
bailun_require_logistics, has_delete, has_scalp, logistics_method_code, logistics_method_name
)
values
(#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{platformType,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{payTime,jdbcType=TIMESTAMP}, #{payMethod,jdbcType=VARCHAR},
......@@ -2487,10 +2770,13 @@
#{sellerOrderId,jdbcType=VARCHAR}, #{sellerEmail,jdbcType=VARCHAR}, #{orderUpdateTime,jdbcType=TIMESTAMP},
#{sellerOrderExchangeRate,jdbcType=DECIMAL}, #{sellerOtherExchangeRate,jdbcType=DECIMAL},
#{financeOrderExchangeRate,jdbcType=DECIMAL}, #{financeOtherExchangeRate,jdbcType=DECIMAL},
#{orderCurrency,jdbcType=VARCHAR}, #{otherCurrency,jdbcType=VARCHAR}, #{sellerName,jdbcType=VARCHAR},
#{bailunOrderId,jdbcType=VARCHAR}, #{platformOrderStatus,jdbcType=VARCHAR}, #{bailunOrderStatus,jdbcType=VARCHAR},
#{bailunPaymentStatus,jdbcType=VARCHAR}, #{shippingStatus,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{bailunSkuTitleEn,jdbcType=VARCHAR}, #{bailunSkuTitleCn,jdbcType=VARCHAR}, #{bailunSkuQuantityOrdered,jdbcType=INTEGER},
#{cnyToUsdExchangeRate,jdbcType=DECIMAL}, #{orderToUsdExchangeRate,jdbcType=DECIMAL},
#{otherToUsdExchangeRate,jdbcType=DECIMAL}, #{orderCurrency,jdbcType=VARCHAR},
#{otherCurrency,jdbcType=VARCHAR}, #{sellerName,jdbcType=VARCHAR}, #{bailunOrderId,jdbcType=VARCHAR},
#{platformOrderStatus,jdbcType=VARCHAR}, #{bailunOrderStatus,jdbcType=VARCHAR},
#{bailunPaymentStatus,jdbcType=VARCHAR}, #{bailunInterceptionStatus,jdbcType=VARCHAR},
#{shippingStatus,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR}, #{bailunSkuTitleEn,jdbcType=VARCHAR},
#{bailunSkuTitleCn,jdbcType=VARCHAR}, #{bailunSkuQuantityOrdered,jdbcType=INTEGER},
#{bailunSkuQuantityShipped,jdbcType=INTEGER}, #{bailunSkuQuantityRefund,jdbcType=INTEGER},
#{bailunSkuQuantityPicked,jdbcType=INTEGER}, #{warehouseName,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{bailunSkuUnitPrice,jdbcType=DECIMAL}, #{bailunSkuWeight,jdbcType=DECIMAL},
......@@ -2502,14 +2788,17 @@
#{costPackage,jdbcType=DECIMAL}, #{costFbaFee,jdbcType=DECIMAL}, #{costPaypalFee,jdbcType=DECIMAL},
#{costRefundCommisson,jdbcType=DECIMAL}, #{costHandleBailun,jdbcType=DECIMAL},
#{costHandlePlatform,jdbcType=DECIMAL}, #{costTail,jdbcType=DECIMAL}, #{costFirst,jdbcType=DECIMAL},
#{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL}, #{receiptCountry,jdbcType=VARCHAR},
#{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR}, #{receiptAddress,jdbcType=VARCHAR},
#{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR}, #{buyerName,jdbcType=VARCHAR},
#{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT}, #{hasPlatformException,jdbcType=BIT},
#{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER}, #{bailunCategoryId,jdbcType=INTEGER},
#{bailunCategoryName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{ratioWeight,jdbcType=DECIMAL}, #{ratioPrice,jdbcType=DECIMAL})
#{costLogistics,jdbcType=DECIMAL}, #{profitTotal,jdbcType=DECIMAL}, #{profitRate,jdbcType=DECIMAL},
#{receiptCountry,jdbcType=VARCHAR}, #{receiptCity,jdbcType=VARCHAR}, #{receiptArea,jdbcType=VARCHAR},
#{receiptAddress,jdbcType=VARCHAR}, #{receiptAddress2,jdbcType=VARCHAR}, #{receiptPostalCode,jdbcType=VARCHAR},
#{receiver,jdbcType=VARCHAR}, #{receiverPhone,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR},
#{buyerName,jdbcType=VARCHAR}, #{buyerEmail,jdbcType=VARCHAR}, #{hasFbaException,jdbcType=BIT},
#{hasPlatformException,jdbcType=BIT}, #{hasCancle,jdbcType=BIT}, #{areaId,jdbcType=INTEGER},
#{bailunCategoryId,jdbcType=INTEGER}, #{bailunCategoryName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{ratioWeight,jdbcType=DECIMAL}, #{ratioPrice,jdbcType=DECIMAL},
#{bailunPickingStatus,jdbcType=VARCHAR}, #{bailunRequireLogistics,jdbcType=VARCHAR},
#{hasDelete,jdbcType=BIT}, #{hasScalp,jdbcType=BIT}, #{logisticsMethodCode,jdbcType=VARCHAR},
#{logisticsMethodName,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=INTEGER},
origin_order_id = #{originOrderId,jdbcType=VARCHAR},
......@@ -2536,6 +2825,9 @@
seller_other_exchange_rate = #{sellerOtherExchangeRate,jdbcType=DECIMAL},
finance_order_exchange_rate = #{financeOrderExchangeRate,jdbcType=DECIMAL},
finance_other_exchange_rate = #{financeOtherExchangeRate,jdbcType=DECIMAL},
cny_to_usd_exchange_rate = #{cnyToUsdExchangeRate,jdbcType=DECIMAL},
order_to_usd_exchange_rate = #{orderToUsdExchangeRate,jdbcType=DECIMAL},
other_to_usd_exchange_rate = #{otherToUsdExchangeRate,jdbcType=DECIMAL},
order_currency = #{orderCurrency,jdbcType=VARCHAR},
other_currency = #{otherCurrency,jdbcType=VARCHAR},
seller_name = #{sellerName,jdbcType=VARCHAR},
......@@ -2543,6 +2835,7 @@
platform_order_status = #{platformOrderStatus,jdbcType=VARCHAR},
bailun_order_status = #{bailunOrderStatus,jdbcType=VARCHAR},
bailun_payment_status = #{bailunPaymentStatus,jdbcType=VARCHAR},
bailun_interception_status = #{bailunInterceptionStatus,jdbcType=VARCHAR},
shipping_status = #{shippingStatus,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
bailun_sku_title_en = #{bailunSkuTitleEn,jdbcType=VARCHAR},
......@@ -2578,6 +2871,7 @@
cost_handle_platform = #{costHandlePlatform,jdbcType=DECIMAL},
cost_tail = #{costTail,jdbcType=DECIMAL},
cost_first = #{costFirst,jdbcType=DECIMAL},
cost_logistics = #{costLogistics,jdbcType=DECIMAL},
profit_total = #{profitTotal,jdbcType=DECIMAL},
profit_rate = #{profitRate,jdbcType=DECIMAL},
receipt_country = #{receiptCountry,jdbcType=VARCHAR},
......@@ -2600,7 +2894,13 @@
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
ratio_weight = #{ratioWeight,jdbcType=DECIMAL},
ratio_price = #{ratioPrice,jdbcType=DECIMAL}
ratio_price = #{ratioPrice,jdbcType=DECIMAL},
bailun_picking_status = #{bailunPickingStatus,jdbcType=VARCHAR},
bailun_require_logistics = #{bailunRequireLogistics,jdbcType=VARCHAR},
has_delete = #{hasDelete,jdbcType=BIT},
has_scalp = #{hasScalp,jdbcType=BIT},
logistics_method_code = #{logisticsMethodCode,jdbcType=VARCHAR},
logistics_method_name = #{logisticsMethodName,jdbcType=VARCHAR}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcBaseOmsSkuExample" resultMap="BaseResultMap">
<!--
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment