Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
dc-java
Commits
9af346f6
Commit
9af346f6
authored
Apr 12, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单新增转美元的汇率, FBA的运费收入计算进销售额.
parent
76487375
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
501 additions
and
22 deletions
+501
-22
Constant.java
...src/main/java/com/bailuntec/domain/constant/Constant.java
+1
-0
OrderSyncJob.java
...s-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
+16
-6
DcBaseOmsOrderMapper.java
.../main/java/com/bailuntec/mapper/DcBaseOmsOrderMapper.java
+5
-0
DcBaseOmsOrderMapper.xml
...c/main/java/com/bailuntec/mapper/DcBaseOmsOrderMapper.xml
+0
-0
DcBaseOmsPickMapper.xml
...rc/main/java/com/bailuntec/mapper/DcBaseOmsPickMapper.xml
+38
-12
DcBaseOmsSkuMapper.xml
...src/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.xml
+0
-0
OmsOrderTest.java
...-base/base-sync-oms-order/src/test/java/OmsOrderTest.java
+1
-1
DcBaseOmsOrder.java
...main/java/com/bailuntec/domain/entity/DcBaseOmsOrder.java
+36
-0
DcBaseOmsPick.java
.../main/java/com/bailuntec/domain/entity/DcBaseOmsPick.java
+14
-1
DcBaseOmsSku.java
...c/main/java/com/bailuntec/domain/entity/DcBaseOmsSku.java
+50
-1
DcBaseOmsOrderExample.java
...a/com/bailuntec/domain/example/DcBaseOmsOrderExample.java
+180
-0
DcBaseOmsPickExample.java
...va/com/bailuntec/domain/example/DcBaseOmsPickExample.java
+159
-0
DcBaseOmsSkuExample.java
...ava/com/bailuntec/domain/example/DcBaseOmsSkuExample.java
+0
-0
init.properties
mybatis-generator/src/main/resources/init.properties
+1
-1
No files found.
data-base/base-sync-oms-order/src/main/java/com/bailuntec/domain/constant/Constant.java
View file @
9af346f6
...
...
@@ -4,6 +4,7 @@ import java.math.BigDecimal;
public
interface
Constant
{
String
RMB_CURRENCY
=
"CNY"
;
String
USD_CURRENCY
=
"USD"
;
String
RMB_CURRENCY_RMB
=
"RMB"
;
//订单有可能有RMB币种
String
NO_LOGISTICS_COUNTRY
=
"GB"
;
String
GB_COUNTRY
=
"UK"
;
...
...
data-base/base-sync-oms-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
View file @
9af346f6
...
...
@@ -163,6 +163,7 @@ public class OrderSyncJob extends PointJob {
bailunSkuStructure
.
setSkuQuantityOrderd
(
bailunSku
.
getBailunSkuQuantityOrdered
()
!=
null
?
bailunSku
.
getBailunSkuQuantityOrdered
()
:
0
);
bailunSkuStructure
.
setDcBaseWarehouse
(
dcBaseWarehouse
);
DcBaseOmsSku
dcBaseOmsSku
=
new
DcBaseOmsSku
();
dcBaseOmsSku
.
setHasDelete
(
false
);
/*
* 赋值, 初始值避免null
*/
...
...
@@ -186,7 +187,6 @@ public class OrderSyncJob extends PointJob {
}
/*
* 配货单处理,
* 返回已发货的SKU总售价
*/
handPickingOrder
(
dcBaseOmsOrder
,
omsResult
,
bailunSkuInfoMap
);
/*
...
...
@@ -298,7 +298,6 @@ public class OrderSyncJob extends PointJob {
*/
BigDecimal
quantityOrderdDecimal
=
BigDecimal
.
valueOf
(
bailunSkuStructure
.
getSkuQuantityOrderd
());
BigDecimal
rmbCost
=
BigDecimal
.
ZERO
;
;
if
(
quantityOrderdDecimal
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
)
{
dcBaseOmsSku
.
setCostLogistics
(
skuCostLogistics
.
divide
(
quantityOrderdDecimal
,
3
,
RoundingMode
.
HALF_EVEN
));
dcBaseOmsSku
.
setAmountTotal
(
skuAmountTotal
.
divide
(
quantityOrderdDecimal
,
3
,
RoundingMode
.
HALF_EVEN
));
...
...
@@ -410,8 +409,9 @@ public class OrderSyncJob extends PointJob {
private
void
deleteSku
(
DcBaseOmsOrder
dcBaseOmsOrder
)
{
try
{
DcBaseOmsSkuMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseOmsSkuMapper
.
class
);
mapper
.
deleteByExample
(
DcBaseOmsSkuExample
.
newAndCreateCriteria
().
andOriginOrderIdEqualTo
(
dcBaseOmsOrder
.
getOriginOrderId
()).
andBailunAccountIdEqualTo
(
dcBaseOmsOrder
.
getBailunAccountId
()).
example
());
DcBaseOmsOrderMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseOmsOrderMapper
.
class
);
mapper
.
logicDeleteOmsSku
(
dcBaseOmsOrder
);
mapper
.
logicDeleteOmsPick
(
dcBaseOmsOrder
);
DcBaseCrmRefundMapper
crmRefundMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
crmRefundMapper
.
updateLinked
(
dcBaseOmsOrder
.
getOriginOrderId
(),
dcBaseOmsOrder
.
getBailunAccountId
());
dcBaseOmsOrder
.
setAmountRefund
(
BigDecimal
.
ZERO
);
...
...
@@ -781,9 +781,7 @@ public class OrderSyncJob extends PointJob {
dcBaseOmsOrder
.
setAmountGiftWrap
((
omsResult
.
getOrderCharge
().
getAmountGiftWrap
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountGiftWrap
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountGiftWrap
().
getAmount
()
:
BigDecimal
.
ZERO
);
dcBaseOmsOrder
.
setAmountTotal
((
omsResult
.
getOrderCharge
().
getAmountTotal
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountTotal
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountTotal
().
getAmount
()
:
BigDecimal
.
ZERO
);
dcBaseOmsOrder
.
setAmountShipping
(
BigDecimal
.
ZERO
);
//FBA订单不考虑运费收入
if
(
omsResult
.
getPlatformType
()
!=
null
&&
!
omsResult
.
getPlatformType
().
equals
(
PlatformType
.
FBA
.
value
()))
{
dcBaseOmsOrder
.
setAmountShipping
((
omsResult
.
getOrderCharge
().
getAmountShipping
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountShipping
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountShipping
().
getAmount
()
:
BigDecimal
.
ZERO
);
}
dcBaseOmsOrder
.
setAmountProduct
((
omsResult
.
getOrderCharge
().
getAmountProduct
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountProduct
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountProduct
().
getAmount
()
:
BigDecimal
.
ZERO
);
dcBaseOmsOrder
.
setAmountTax
((
omsResult
.
getOrderCharge
().
getAmountTax
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountTax
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountTax
().
getAmount
()
:
BigDecimal
.
ZERO
);
dcBaseOmsOrder
.
setAmountAdjustment
((
omsResult
.
getOrderCharge
().
getAmountAdjustment
()
!=
null
&&
omsResult
.
getOrderCharge
().
getAmountAdjustment
().
getAmount
()
!=
null
)
?
omsResult
.
getOrderCharge
().
getAmountAdjustment
().
getAmount
()
:
BigDecimal
.
ZERO
);
...
...
@@ -877,6 +875,9 @@ public class OrderSyncJob extends PointJob {
dcBaseOmsSku
.
setSellerOrderExchangeRate
(
dcBaseOmsOrder
.
getSellerOrderExchangeRate
()
!=
null
?
dcBaseOmsOrder
.
getSellerOrderExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setFinanceOtherExchangeRate
(
dcBaseOmsOrder
.
getFinanceOtherExchangeRate
()
!=
null
?
dcBaseOmsOrder
.
getFinanceOtherExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setSellerOtherExchangeRate
(
dcBaseOmsOrder
.
getSellerOtherExchangeRate
()
!=
null
?
dcBaseOmsOrder
.
getSellerOtherExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setOrderToUsdExchangeRate
(
dcBaseOmsOrder
.
getOrderToUsdExchangeRate
()!=
null
?
dcBaseOmsOrder
.
getOrderToUsdExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setCnyToUsdExchangeRate
(
dcBaseOmsOrder
.
getCnyToUsdExchangeRate
()
!=
null
?
dcBaseOmsOrder
.
getCnyToUsdExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setOtherToUsdExchangeRate
(
dcBaseOmsOrder
.
getOtherToUsdExchangeRate
()
!=
null
?
dcBaseOmsOrder
.
getOtherToUsdExchangeRate
()
:
BigDecimal
.
ZERO
);
dcBaseOmsSku
.
setBailunSkuSize
(
bailunSku
.
getBailunSkuSize
());
dcBaseOmsSku
.
setBailunSkuWeight
(
bailunSku
.
getBailunSkuWeight
());
dcBaseOmsSku
.
setBailunSkuQuantityOrdered
(
bailunSku
.
getBailunSkuQuantityOrdered
());
...
...
@@ -925,6 +926,12 @@ public class OrderSyncJob extends PointJob {
}
dcBaseOmsOrder
.
setOrderCurrency
(
orderCurrency
);
BigDecimal
orderFinanceExchangeRate
=
CallBailunSystem
.
getMonthExchangeRate
(
orderCurrency
,
Constant
.
RMB_CURRENCY
,
exchangeDate
);
//Order币种转美元汇率
BigDecimal
orderToUsdExchangeRate
=
CallBailunSystem
.
getMonthExchangeRate
(
orderCurrency
,
Constant
.
USD_CURRENCY
,
exchangeDate
);
//人民币转美元汇率
BigDecimal
cnyToUsdFinanceExchangeRate
=
CallBailunSystem
.
getMonthExchangeRate
(
Constant
.
RMB_CURRENCY
,
Constant
.
USD_CURRENCY
,
exchangeDate
);
dcBaseOmsOrder
.
setOrderToUsdExchangeRate
(
orderToUsdExchangeRate
);
dcBaseOmsOrder
.
setCnyToUsdExchangeRate
(
cnyToUsdFinanceExchangeRate
);
dcBaseOmsOrder
.
setFinanceOrderExchangeRate
(
orderFinanceExchangeRate
);
dcBaseOmsOrder
.
setSellerOrderExchangeRate
(
sellerOrderExchangeRate
);
}
...
...
@@ -942,6 +949,9 @@ public class OrderSyncJob extends PointJob {
}
dcBaseOmsOrder
.
setOtherCurrency
(
otherCurrency
);
BigDecimal
otherFinanceExchangeRate
=
CallBailunSystem
.
getMonthExchangeRate
(
otherCurrency
,
Constant
.
RMB_CURRENCY
,
omsResult
.
getPaidTime
()
!=
null
?
omsResult
.
getPaidTime
()
:
omsResult
.
getCreateTime
());
//Other币种转美元汇率
BigDecimal
otherToUsdExchangeRate
=
CallBailunSystem
.
getMonthExchangeRate
(
otherCurrency
,
Constant
.
USD_CURRENCY
,
omsResult
.
getPaidTime
()
!=
null
?
omsResult
.
getPaidTime
()
:
omsResult
.
getCreateTime
());
dcBaseOmsOrder
.
setOtherToUsdExchangeRate
(
otherToUsdExchangeRate
);
dcBaseOmsOrder
.
setFinanceOtherExchangeRate
(
otherFinanceExchangeRate
);
dcBaseOmsOrder
.
setSellerOtherExchangeRate
(
sellerOtherExchangeRate
);
}
...
...
data-base/base-sync-oms-order/src/main/java/com/bailuntec/mapper/DcBaseOmsOrderMapper.java
View file @
9af346f6
...
...
@@ -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
data-base/base-sync-oms-order/src/main/java/com/bailuntec/mapper/DcBaseOmsOrderMapper.xml
View file @
9af346f6
This diff is collapsed.
Click to expand it.
data-base/base-sync-oms-order/src/main/java/com/bailuntec/mapper/DcBaseOmsPickMapper.xml
View file @
9af346f6
...
...
@@ -32,6 +32,7 @@
<result
column=
"bailun_sku_cost_shipping"
jdbcType=
"DECIMAL"
property=
"bailunSkuCostShipping"
/>
<result
column=
"bailun_sku_cost_packaging"
jdbcType=
"DECIMAL"
property=
"bailunSkuCostPackaging"
/>
<result
column=
"bailun_sku_outbound_weight"
jdbcType=
"DECIMAL"
property=
"bailunSkuOutboundWeight"
/>
<result
column=
"has_delete"
jdbcType=
"BIT"
property=
"hasDelete"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -108,7 +109,8 @@
tracking_order_id, shipping_status, create_time, shipping_time, warehouse_name, warehouse_code,
logistics_order_id, logistics_order_name, gmt_create, gmt_modified, quantity_picked,
quantity_shipped, bailun_sku, declare_price, cost_shipping, cost_packaging, outbound_weight,
bailun_sku_cost_shipping, bailun_sku_cost_packaging, bailun_sku_outbound_weight
bailun_sku_cost_shipping, bailun_sku_cost_packaging, bailun_sku_outbound_weight,
has_delete
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseOmsPickExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -177,8 +179,8 @@
gmt_modified, quantity_picked, quantity_shipped,
bailun_sku, declare_price, cost_shipping,
cost_packaging, outbound_weight, bailun_sku_cost_shipping,
bailun_sku_cost_packaging, bailun_sku_outbound_weight
)
bailun_sku_cost_packaging, bailun_sku_outbound_weight
,
has_delete
)
values (#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{bailunAccountId,jdbcType=INTEGER},
#{bailunOrderId,jdbcType=VARCHAR}, #{pickOrderId,jdbcType=VARCHAR}, #{trackingProvider,jdbcType=VARCHAR},
#{trackingOrderId,jdbcType=VARCHAR}, #{shippingStatus,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
...
...
@@ -187,8 +189,8 @@
#{gmtModified,jdbcType=TIMESTAMP}, #{quantityPicked,jdbcType=INTEGER}, #{quantityShipped,jdbcType=INTEGER},
#{bailunSku,jdbcType=VARCHAR}, #{declarePrice,jdbcType=DECIMAL}, #{costShipping,jdbcType=DECIMAL},
#{costPackaging,jdbcType=DECIMAL}, #{outboundWeight,jdbcType=DECIMAL}, #{bailunSkuCostShipping,jdbcType=DECIMAL},
#{bailunSkuCostPackaging,jdbcType=DECIMAL}, #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
)
#{bailunSkuCostPackaging,jdbcType=DECIMAL}, #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
,
#{hasDelete,jdbcType=BIT}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseOmsPick"
>
<!--
...
...
@@ -275,6 +277,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
bailun_sku_outbound_weight,
</if>
<if
test=
"hasDelete != null"
>
has_delete,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -355,6 +360,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
#{bailunSkuOutboundWeight,jdbcType=DECIMAL},
</if>
<if
test=
"hasDelete != null"
>
#{hasDelete,jdbcType=BIT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseOmsPickExample"
resultType=
"java.lang.Long"
>
...
...
@@ -452,6 +460,9 @@
<if
test=
"record.bailunSkuOutboundWeight != null"
>
bailun_sku_outbound_weight = #{record.bailunSkuOutboundWeight,jdbcType=DECIMAL},
</if>
<if
test=
"record.hasDelete != null"
>
has_delete = #{record.hasDelete,jdbcType=BIT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -488,7 +499,8 @@
outbound_weight = #{record.outboundWeight,jdbcType=DECIMAL},
bailun_sku_cost_shipping = #{record.bailunSkuCostShipping,jdbcType=DECIMAL},
bailun_sku_cost_packaging = #{record.bailunSkuCostPackaging,jdbcType=DECIMAL},
bailun_sku_outbound_weight = #{record.bailunSkuOutboundWeight,jdbcType=DECIMAL}
bailun_sku_outbound_weight = #{record.bailunSkuOutboundWeight,jdbcType=DECIMAL},
has_delete = #{record.hasDelete,jdbcType=BIT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -575,6 +587,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL},
</if>
<if
test=
"hasDelete != null"
>
has_delete = #{hasDelete,jdbcType=BIT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -608,7 +623,8 @@
outbound_weight = #{outboundWeight,jdbcType=DECIMAL},
bailun_sku_cost_shipping = #{bailunSkuCostShipping,jdbcType=DECIMAL},
bailun_sku_cost_packaging = #{bailunSkuCostPackaging,jdbcType=DECIMAL},
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL},
has_delete = #{hasDelete,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseOmsPick"
>
...
...
@@ -697,6 +713,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
bailun_sku_outbound_weight,
</if>
<if
test=
"hasDelete != null"
>
has_delete,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -778,6 +797,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
#{bailunSkuOutboundWeight,jdbcType=DECIMAL},
</if>
<if
test=
"hasDelete != null"
>
#{hasDelete,jdbcType=BIT},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
...
...
@@ -859,6 +881,9 @@
<if
test=
"bailunSkuOutboundWeight != null"
>
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL},
</if>
<if
test=
"hasDelete != null"
>
has_delete = #{hasDelete,jdbcType=BIT},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBaseOmsPick"
>
...
...
@@ -872,8 +897,8 @@
tracking_order_id, shipping_status, create_time, shipping_time, warehouse_name,
warehouse_code, logistics_order_id, logistics_order_name, gmt_create, gmt_modified,
quantity_picked, quantity_shipped, bailun_sku, declare_price, cost_shipping, cost_packaging,
outbound_weight, bailun_sku_cost_shipping, bailun_sku_cost_packaging, bailun_sku_outbound_weight
)
outbound_weight, bailun_sku_cost_shipping, bailun_sku_cost_packaging, bailun_sku_outbound_weight
,
has_delete
)
values
(#{id,jdbcType=INTEGER}, #{originOrderId,jdbcType=VARCHAR}, #{bailunAccountId,jdbcType=INTEGER},
#{bailunOrderId,jdbcType=VARCHAR}, #{pickOrderId,jdbcType=VARCHAR}, #{trackingProvider,jdbcType=VARCHAR},
...
...
@@ -883,8 +908,8 @@
#{gmtModified,jdbcType=TIMESTAMP}, #{quantityPicked,jdbcType=INTEGER}, #{quantityShipped,jdbcType=INTEGER},
#{bailunSku,jdbcType=VARCHAR}, #{declarePrice,jdbcType=DECIMAL}, #{costShipping,jdbcType=DECIMAL},
#{costPackaging,jdbcType=DECIMAL}, #{outboundWeight,jdbcType=DECIMAL}, #{bailunSkuCostShipping,jdbcType=DECIMAL},
#{bailunSkuCostPackaging,jdbcType=DECIMAL}, #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
)
#{bailunSkuCostPackaging,jdbcType=DECIMAL}, #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
,
#{hasDelete,jdbcType=BIT}
)
on duplicate key update
id = #{id,jdbcType=INTEGER},
origin_order_id = #{originOrderId,jdbcType=VARCHAR},
...
...
@@ -911,7 +936,8 @@
outbound_weight = #{outboundWeight,jdbcType=DECIMAL},
bailun_sku_cost_shipping = #{bailunSkuCostShipping,jdbcType=DECIMAL},
bailun_sku_cost_packaging = #{bailunSkuCostPackaging,jdbcType=DECIMAL},
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL}
bailun_sku_outbound_weight = #{bailunSkuOutboundWeight,jdbcType=DECIMAL},
has_delete = #{hasDelete,jdbcType=BIT}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseOmsPickExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
data-base/base-sync-oms-order/src/main/java/com/bailuntec/mapper/DcBaseOmsSkuMapper.xml
View file @
9af346f6
This diff is collapsed.
Click to expand it.
data-base/base-sync-oms-order/src/test/java/OmsOrderTest.java
View file @
9af346f6
...
...
@@ -78,7 +78,7 @@ public class OmsOrderTest {
LinkedHashMap
<
String
,
String
>
map
=
new
LinkedHashMap
<>(
4
);
map
.
put
(
"pageIndex"
,
"1"
);
map
.
put
(
"pageCount"
,
"100"
);
map
.
put
(
"OriginOrderNo"
,
"
406-5004976-5589129
"
);
map
.
put
(
"OriginOrderNo"
,
"
113-3746779-1981056
"
);
Request
request
=
new
Request
.
Builder
()
.
get
()
.
url
(
OkHttpUtil
.
attachHttpGetParams
(
"http://oms.bailuntec.com/apiV2/bailunOrder/getBailunOrders"
,
map
))
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseOmsOrder.java
View file @
9af346f6
...
...
@@ -298,6 +298,33 @@ public class DcBaseOmsOrder {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_order.cny_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
cnyToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_order.order_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
orderToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_order.other_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
otherToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_order.order_currency
*
* @mbg.generated
...
...
@@ -798,6 +825,9 @@ public class DcBaseOmsOrder {
sb
.
append
(
", sellerOtherExchangeRate="
).
append
(
sellerOtherExchangeRate
);
sb
.
append
(
", financeOrderExchangeRate="
).
append
(
financeOrderExchangeRate
);
sb
.
append
(
", financeOtherExchangeRate="
).
append
(
financeOtherExchangeRate
);
sb
.
append
(
", cnyToUsdExchangeRate="
).
append
(
cnyToUsdExchangeRate
);
sb
.
append
(
", orderToUsdExchangeRate="
).
append
(
orderToUsdExchangeRate
);
sb
.
append
(
", otherToUsdExchangeRate="
).
append
(
otherToUsdExchangeRate
);
sb
.
append
(
", orderCurrency="
).
append
(
orderCurrency
);
sb
.
append
(
", otherCurrency="
).
append
(
otherCurrency
);
sb
.
append
(
", amountSales="
).
append
(
amountSales
);
...
...
@@ -903,6 +933,9 @@ public class DcBaseOmsOrder {
&&
(
this
.
getSellerOtherExchangeRate
()
==
null
?
other
.
getSellerOtherExchangeRate
()
==
null
:
this
.
getSellerOtherExchangeRate
().
equals
(
other
.
getSellerOtherExchangeRate
()))
&&
(
this
.
getFinanceOrderExchangeRate
()
==
null
?
other
.
getFinanceOrderExchangeRate
()
==
null
:
this
.
getFinanceOrderExchangeRate
().
equals
(
other
.
getFinanceOrderExchangeRate
()))
&&
(
this
.
getFinanceOtherExchangeRate
()
==
null
?
other
.
getFinanceOtherExchangeRate
()
==
null
:
this
.
getFinanceOtherExchangeRate
().
equals
(
other
.
getFinanceOtherExchangeRate
()))
&&
(
this
.
getCnyToUsdExchangeRate
()
==
null
?
other
.
getCnyToUsdExchangeRate
()
==
null
:
this
.
getCnyToUsdExchangeRate
().
equals
(
other
.
getCnyToUsdExchangeRate
()))
&&
(
this
.
getOrderToUsdExchangeRate
()
==
null
?
other
.
getOrderToUsdExchangeRate
()
==
null
:
this
.
getOrderToUsdExchangeRate
().
equals
(
other
.
getOrderToUsdExchangeRate
()))
&&
(
this
.
getOtherToUsdExchangeRate
()
==
null
?
other
.
getOtherToUsdExchangeRate
()
==
null
:
this
.
getOtherToUsdExchangeRate
().
equals
(
other
.
getOtherToUsdExchangeRate
()))
&&
(
this
.
getOrderCurrency
()
==
null
?
other
.
getOrderCurrency
()
==
null
:
this
.
getOrderCurrency
().
equals
(
other
.
getOrderCurrency
()))
&&
(
this
.
getOtherCurrency
()
==
null
?
other
.
getOtherCurrency
()
==
null
:
this
.
getOtherCurrency
().
equals
(
other
.
getOtherCurrency
()))
&&
(
this
.
getAmountSales
()
==
null
?
other
.
getAmountSales
()
==
null
:
this
.
getAmountSales
().
equals
(
other
.
getAmountSales
()))
...
...
@@ -998,6 +1031,9 @@ public class DcBaseOmsOrder {
result
=
prime
*
result
+
((
getSellerOtherExchangeRate
()
==
null
)
?
0
:
getSellerOtherExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getFinanceOrderExchangeRate
()
==
null
)
?
0
:
getFinanceOrderExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getFinanceOtherExchangeRate
()
==
null
)
?
0
:
getFinanceOtherExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getCnyToUsdExchangeRate
()
==
null
)
?
0
:
getCnyToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOrderToUsdExchangeRate
()
==
null
)
?
0
:
getOrderToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOtherToUsdExchangeRate
()
==
null
)
?
0
:
getOtherToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOrderCurrency
()
==
null
)
?
0
:
getOrderCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getOtherCurrency
()
==
null
)
?
0
:
getOtherCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getAmountSales
()
==
null
)
?
0
:
getAmountSales
().
hashCode
());
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseOmsPick.java
View file @
9af346f6
...
...
@@ -242,6 +242,15 @@ public class DcBaseOmsPick {
private
BigDecimal
bailunSkuOutboundWeight
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_pick.has_delete
*
* @mbg.generated
*/
private
Boolean
hasDelete
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
...
...
@@ -279,6 +288,7 @@ public class DcBaseOmsPick {
sb
.
append
(
", bailunSkuCostShipping="
).
append
(
bailunSkuCostShipping
);
sb
.
append
(
", bailunSkuCostPackaging="
).
append
(
bailunSkuCostPackaging
);
sb
.
append
(
", bailunSkuOutboundWeight="
).
append
(
bailunSkuOutboundWeight
);
sb
.
append
(
", hasDelete="
).
append
(
hasDelete
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -326,7 +336,8 @@ public class DcBaseOmsPick {
&&
(
this
.
getOutboundWeight
()
==
null
?
other
.
getOutboundWeight
()
==
null
:
this
.
getOutboundWeight
().
equals
(
other
.
getOutboundWeight
()))
&&
(
this
.
getBailunSkuCostShipping
()
==
null
?
other
.
getBailunSkuCostShipping
()
==
null
:
this
.
getBailunSkuCostShipping
().
equals
(
other
.
getBailunSkuCostShipping
()))
&&
(
this
.
getBailunSkuCostPackaging
()
==
null
?
other
.
getBailunSkuCostPackaging
()
==
null
:
this
.
getBailunSkuCostPackaging
().
equals
(
other
.
getBailunSkuCostPackaging
()))
&&
(
this
.
getBailunSkuOutboundWeight
()
==
null
?
other
.
getBailunSkuOutboundWeight
()
==
null
:
this
.
getBailunSkuOutboundWeight
().
equals
(
other
.
getBailunSkuOutboundWeight
()));
&&
(
this
.
getBailunSkuOutboundWeight
()
==
null
?
other
.
getBailunSkuOutboundWeight
()
==
null
:
this
.
getBailunSkuOutboundWeight
().
equals
(
other
.
getBailunSkuOutboundWeight
()))
&&
(
this
.
getHasDelete
()
==
null
?
other
.
getHasDelete
()
==
null
:
this
.
getHasDelete
().
equals
(
other
.
getHasDelete
()));
}
/**
...
...
@@ -365,6 +376,7 @@ public class DcBaseOmsPick {
result
=
prime
*
result
+
((
getBailunSkuCostShipping
()
==
null
)
?
0
:
getBailunSkuCostShipping
().
hashCode
());
result
=
prime
*
result
+
((
getBailunSkuCostPackaging
()
==
null
)
?
0
:
getBailunSkuCostPackaging
().
hashCode
());
result
=
prime
*
result
+
((
getBailunSkuOutboundWeight
()
==
null
)
?
0
:
getBailunSkuOutboundWeight
().
hashCode
());
result
=
prime
*
result
+
((
getHasDelete
()
==
null
)
?
0
:
getHasDelete
().
hashCode
());
return
result
;
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseOmsSku.java
View file @
9af346f6
...
...
@@ -235,6 +235,33 @@ public class DcBaseOmsSku {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.cny_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
cnyToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.order_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
orderToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.other_to_usd_exchange_rate
*
* @mbg.generated
*/
private
BigDecimal
otherToUsdExchangeRate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.order_currency
*
* @mbg.generated
...
...
@@ -854,6 +881,15 @@ public class DcBaseOmsSku {
private
String
bailunRequireLogistics
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.has_delete
*
* @mbg.generated
*/
private
Boolean
hasDelete
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_sku
*
...
...
@@ -890,6 +926,9 @@ public class DcBaseOmsSku {
sb
.
append
(
", sellerOtherExchangeRate="
).
append
(
sellerOtherExchangeRate
);
sb
.
append
(
", financeOrderExchangeRate="
).
append
(
financeOrderExchangeRate
);
sb
.
append
(
", financeOtherExchangeRate="
).
append
(
financeOtherExchangeRate
);
sb
.
append
(
", cnyToUsdExchangeRate="
).
append
(
cnyToUsdExchangeRate
);
sb
.
append
(
", orderToUsdExchangeRate="
).
append
(
orderToUsdExchangeRate
);
sb
.
append
(
", otherToUsdExchangeRate="
).
append
(
otherToUsdExchangeRate
);
sb
.
append
(
", orderCurrency="
).
append
(
orderCurrency
);
sb
.
append
(
", otherCurrency="
).
append
(
otherCurrency
);
sb
.
append
(
", sellerName="
).
append
(
sellerName
);
...
...
@@ -959,6 +998,7 @@ public class DcBaseOmsSku {
sb
.
append
(
", ratioPrice="
).
append
(
ratioPrice
);
sb
.
append
(
", bailunPickingStatus="
).
append
(
bailunPickingStatus
);
sb
.
append
(
", bailunRequireLogistics="
).
append
(
bailunRequireLogistics
);
sb
.
append
(
", hasDelete="
).
append
(
hasDelete
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -1006,6 +1046,9 @@ public class DcBaseOmsSku {
&&
(
this
.
getSellerOtherExchangeRate
()
==
null
?
other
.
getSellerOtherExchangeRate
()
==
null
:
this
.
getSellerOtherExchangeRate
().
equals
(
other
.
getSellerOtherExchangeRate
()))
&&
(
this
.
getFinanceOrderExchangeRate
()
==
null
?
other
.
getFinanceOrderExchangeRate
()
==
null
:
this
.
getFinanceOrderExchangeRate
().
equals
(
other
.
getFinanceOrderExchangeRate
()))
&&
(
this
.
getFinanceOtherExchangeRate
()
==
null
?
other
.
getFinanceOtherExchangeRate
()
==
null
:
this
.
getFinanceOtherExchangeRate
().
equals
(
other
.
getFinanceOtherExchangeRate
()))
&&
(
this
.
getCnyToUsdExchangeRate
()
==
null
?
other
.
getCnyToUsdExchangeRate
()
==
null
:
this
.
getCnyToUsdExchangeRate
().
equals
(
other
.
getCnyToUsdExchangeRate
()))
&&
(
this
.
getOrderToUsdExchangeRate
()
==
null
?
other
.
getOrderToUsdExchangeRate
()
==
null
:
this
.
getOrderToUsdExchangeRate
().
equals
(
other
.
getOrderToUsdExchangeRate
()))
&&
(
this
.
getOtherToUsdExchangeRate
()
==
null
?
other
.
getOtherToUsdExchangeRate
()
==
null
:
this
.
getOtherToUsdExchangeRate
().
equals
(
other
.
getOtherToUsdExchangeRate
()))
&&
(
this
.
getOrderCurrency
()
==
null
?
other
.
getOrderCurrency
()
==
null
:
this
.
getOrderCurrency
().
equals
(
other
.
getOrderCurrency
()))
&&
(
this
.
getOtherCurrency
()
==
null
?
other
.
getOtherCurrency
()
==
null
:
this
.
getOtherCurrency
().
equals
(
other
.
getOtherCurrency
()))
&&
(
this
.
getSellerName
()
==
null
?
other
.
getSellerName
()
==
null
:
this
.
getSellerName
().
equals
(
other
.
getSellerName
()))
...
...
@@ -1074,7 +1117,8 @@ public class DcBaseOmsSku {
&&
(
this
.
getRatioWeight
()
==
null
?
other
.
getRatioWeight
()
==
null
:
this
.
getRatioWeight
().
equals
(
other
.
getRatioWeight
()))
&&
(
this
.
getRatioPrice
()
==
null
?
other
.
getRatioPrice
()
==
null
:
this
.
getRatioPrice
().
equals
(
other
.
getRatioPrice
()))
&&
(
this
.
getBailunPickingStatus
()
==
null
?
other
.
getBailunPickingStatus
()
==
null
:
this
.
getBailunPickingStatus
().
equals
(
other
.
getBailunPickingStatus
()))
&&
(
this
.
getBailunRequireLogistics
()
==
null
?
other
.
getBailunRequireLogistics
()
==
null
:
this
.
getBailunRequireLogistics
().
equals
(
other
.
getBailunRequireLogistics
()));
&&
(
this
.
getBailunRequireLogistics
()
==
null
?
other
.
getBailunRequireLogistics
()
==
null
:
this
.
getBailunRequireLogistics
().
equals
(
other
.
getBailunRequireLogistics
()))
&&
(
this
.
getHasDelete
()
==
null
?
other
.
getHasDelete
()
==
null
:
this
.
getHasDelete
().
equals
(
other
.
getHasDelete
()));
}
/**
...
...
@@ -1112,6 +1156,9 @@ public class DcBaseOmsSku {
result
=
prime
*
result
+
((
getSellerOtherExchangeRate
()
==
null
)
?
0
:
getSellerOtherExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getFinanceOrderExchangeRate
()
==
null
)
?
0
:
getFinanceOrderExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getFinanceOtherExchangeRate
()
==
null
)
?
0
:
getFinanceOtherExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getCnyToUsdExchangeRate
()
==
null
)
?
0
:
getCnyToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOrderToUsdExchangeRate
()
==
null
)
?
0
:
getOrderToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOtherToUsdExchangeRate
()
==
null
)
?
0
:
getOtherToUsdExchangeRate
().
hashCode
());
result
=
prime
*
result
+
((
getOrderCurrency
()
==
null
)
?
0
:
getOrderCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getOtherCurrency
()
==
null
)
?
0
:
getOtherCurrency
().
hashCode
());
result
=
prime
*
result
+
((
getSellerName
()
==
null
)
?
0
:
getSellerName
().
hashCode
());
...
...
@@ -1181,6 +1228,7 @@ public class DcBaseOmsSku {
result
=
prime
*
result
+
((
getRatioPrice
()
==
null
)
?
0
:
getRatioPrice
().
hashCode
());
result
=
prime
*
result
+
((
getBailunPickingStatus
()
==
null
)
?
0
:
getBailunPickingStatus
().
hashCode
());
result
=
prime
*
result
+
((
getBailunRequireLogistics
()
==
null
)
?
0
:
getBailunRequireLogistics
().
hashCode
());
result
=
prime
*
result
+
((
getHasDelete
()
==
null
)
?
0
:
getHasDelete
().
hashCode
());
return
result
;
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcBaseOmsOrderExample.java
View file @
9af346f6
...
...
@@ -2501,6 +2501,186 @@ public class DcBaseOmsOrderExample {
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateIsNull
()
{
addCriterion
(
"cny_to_usd_exchange_rate is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateIsNotNull
()
{
addCriterion
(
"cny_to_usd_exchange_rate is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate ="
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate <>"
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate >"
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate >="
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateLessThan
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate <"
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"cny_to_usd_exchange_rate <="
,
value
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"cny_to_usd_exchange_rate in"
,
values
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"cny_to_usd_exchange_rate not in"
,
values
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"cny_to_usd_exchange_rate between"
,
value1
,
value2
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCnyToUsdExchangeRateNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"cny_to_usd_exchange_rate not between"
,
value1
,
value2
,
"cnyToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateIsNull
()
{
addCriterion
(
"order_to_usd_exchange_rate is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateIsNotNull
()
{
addCriterion
(
"order_to_usd_exchange_rate is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate ="
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate <>"
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate >"
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate >="
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateLessThan
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate <"
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_to_usd_exchange_rate <="
,
value
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"order_to_usd_exchange_rate in"
,
values
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"order_to_usd_exchange_rate not in"
,
values
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"order_to_usd_exchange_rate between"
,
value1
,
value2
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderToUsdExchangeRateNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"order_to_usd_exchange_rate not between"
,
value1
,
value2
,
"orderToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateIsNull
()
{
addCriterion
(
"other_to_usd_exchange_rate is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateIsNotNull
()
{
addCriterion
(
"other_to_usd_exchange_rate is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate ="
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate <>"
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate >"
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate >="
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateLessThan
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate <"
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"other_to_usd_exchange_rate <="
,
value
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"other_to_usd_exchange_rate in"
,
values
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"other_to_usd_exchange_rate not in"
,
values
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"other_to_usd_exchange_rate between"
,
value1
,
value2
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOtherToUsdExchangeRateNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"other_to_usd_exchange_rate not between"
,
value1
,
value2
,
"otherToUsdExchangeRate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderCurrencyIsNull
()
{
addCriterion
(
"order_currency is null"
);
return
(
Criteria
)
this
;
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcBaseOmsPickExample.java
View file @
9af346f6
...
...
@@ -219,6 +219,36 @@ public class DcBaseOmsPickExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickExample
when
(
boolean
condition
,
IExampleWhen
then
)
{
if
(
condition
)
{
then
.
example
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickExample
when
(
boolean
condition
,
IExampleWhen
then
,
IExampleWhen
otherwise
)
{
if
(
condition
)
{
then
.
example
(
this
);
}
else
{
otherwise
.
example
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
setOffset
(
Integer
offset
)
{
this
.
offset
=
offset
;
}
...
...
@@ -2010,6 +2040,66 @@ public class DcBaseOmsPickExample {
addCriterion
(
"bailun_sku_outbound_weight not between"
,
value1
,
value2
,
"bailunSkuOutboundWeight"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIsNull
()
{
addCriterion
(
"has_delete is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIsNotNull
()
{
addCriterion
(
"has_delete is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteEqualTo
(
Boolean
value
)
{
addCriterion
(
"has_delete ="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotEqualTo
(
Boolean
value
)
{
addCriterion
(
"has_delete <>"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteGreaterThan
(
Boolean
value
)
{
addCriterion
(
"has_delete >"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteGreaterThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"has_delete >="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteLessThan
(
Boolean
value
)
{
addCriterion
(
"has_delete <"
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteLessThanOrEqualTo
(
Boolean
value
)
{
addCriterion
(
"has_delete <="
,
value
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"has_delete in"
,
values
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotIn
(
List
<
Boolean
>
values
)
{
addCriterion
(
"has_delete not in"
,
values
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"has_delete between"
,
value1
,
value2
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
public
Criteria
andHasDeleteNotBetween
(
Boolean
value1
,
Boolean
value2
)
{
addCriterion
(
"has_delete not between"
,
value1
,
value2
,
"hasDelete"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
@@ -2058,6 +2148,7 @@ public class DcBaseOmsPickExample {
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
...
...
@@ -2066,12 +2157,43 @@ public class DcBaseOmsPickExample {
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
when
(
boolean
condition
,
ICriteriaWhen
then
)
{
if
(
condition
)
{
then
.
criteria
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
when
(
boolean
condition
,
ICriteriaWhen
then
,
ICriteriaWhen
otherwise
)
{
if
(
condition
)
{
then
.
criteria
(
this
);
}
else
{
otherwise
.
criteria
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
...
...
@@ -2175,4 +2297,40 @@ public class DcBaseOmsPickExample {
this
(
condition
,
value
,
secondValue
,
null
);
}
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaWhen
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void
criteria
(
Criteria
criteria
);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
IExampleWhen
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void
example
(
DcBaseOmsPickExample
example
);
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcBaseOmsSkuExample.java
View file @
9af346f6
This diff is collapsed.
Click to expand it.
mybatis-generator/src/main/resources/init.properties
View file @
9af346f6
table-name
=
dc_
average_purchase
table-name
=
dc_
base_oms_sku
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment