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
huluobin
dc-java
Commits
d2a550a2
Commit
d2a550a2
authored
Jul 31, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order退款
parent
2fc07072
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
420 additions
and
15 deletions
+420
-15
RefundItem.java
...d/src/main/java/com/bailuntec/domain/pojo/RefundItem.java
+7
-1
CrmRefundSyncJob.java
...und/src/main/java/com/bailuntec/job/CrmRefundSyncJob.java
+1
-1
RefundLinkOrderJob.java
...d/src/main/java/com/bailuntec/job/RefundLinkOrderJob.java
+10
-4
DcBaseCrmRefund.java
...ain/java/com/bailuntec/domain/entity/DcBaseCrmRefund.java
+50
-1
DcBaseCrmRefundExample.java
.../com/bailuntec/domain/example/DcBaseCrmRefundExample.java
+240
-0
DcBaseCrmRefundMapper.xml
.../main/java/com/bailuntec/mapper/DcBaseCrmRefundMapper.xml
+112
-8
No files found.
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/domain/pojo/RefundItem.java
View file @
d2a550a2
...
...
@@ -33,10 +33,16 @@ public class RefundItem {
private
String
amountRefundUsd
;
@JSONField
(
name
=
"RefundTime"
)
private
Date
refundedTime
;
@JSONField
(
name
=
"OrderTotalAmount"
)
private
BigDecimal
orderTotalAmount
;
@JSONField
(
name
=
"USDOrderTotalAmount"
)
private
BigDecimal
usdOrderTotalAmount
;
@JSONField
(
name
=
"ProductSaleAmount"
)
private
BigDecimal
productSaleAmount
;
@JSONField
(
name
=
"ProductPrice"
)
private
BigDecimal
bailunSkuUnitPrice
;
@JSONField
(
name
=
"ProductShipCount"
)
private
Integer
P
roductShipCount
;
private
Integer
p
roductShipCount
;
@JSONField
(
name
=
"RefundQuantity"
)
private
Integer
bailunSkuQuantityRefund
;
...
...
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/job/CrmRefundSyncJob.java
View file @
d2a550a2
...
...
@@ -66,7 +66,7 @@ public class CrmRefundSyncJob extends PointJob {
totalPage
=
refundDetails
.
getTotalPages
();
if
(
refundDetails
.
getItems
()
!=
null
&&
refundDetails
.
getItems
().
size
()
>
0
)
{
try
{
DcBaseCrmRefundMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
DcBaseCrmRefundMapper
mapper
=
SessionUtil
.
get
Transtion
Session
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
for
(
RefundItem
refundItem
:
refundDetails
.
getItems
())
{
DcBaseCrmRefund
dcBaseCrmRefund
=
new
DcBaseCrmRefund
();
try
{
...
...
data-base/base-sync-crm-refund/src/main/java/com/bailuntec/job/RefundLinkOrderJob.java
View file @
d2a550a2
...
...
@@ -27,7 +27,6 @@ public class RefundLinkOrderJob extends PointJob {
try
{
DcBaseCrmRefundMapper
refundMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
count
=
refundMapper
.
countByExample
(
DcBaseCrmRefundExample
.
newAndCreateCriteria
().
andLinkedEqualTo
(
false
).
example
());
SessionUtil
.
getSession
().
commit
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
(
"Mybatis查询DB失败"
);
...
...
@@ -85,9 +84,16 @@ public class RefundLinkOrderJob extends PointJob {
BigDecimal
amountSalesSku
=
dcBaseOmsSku
.
getAmountSales
().
multiply
(
dcBaseOmsSku
.
getSellerOrderExchangeRate
());
dcBaseOmsOrder
.
setProfitRate
(
amountSalesSku
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
BigDecimal
.
ZERO
:
profitSku
.
divide
(
amountSalesSku
,
5
,
RoundingMode
.
HALF_EVEN
));
dcBaseCrmRefund
.
setLinked
(
true
);
omsSkuMapper
.
updateByPrimaryKeySelective
(
dcBaseOmsSku
);
omsOrderMapper
.
updateByPrimaryKeySelective
(
dcBaseOmsOrder
);
refundMapper1
.
updateByPrimaryKeySelective
(
dcBaseCrmRefund
);
// omsSkuMapper.updateByPrimaryKeySelective(dcBaseOmsSku);
try
{
DcBaseCrmRefundMapper
refundMapper2
=
SessionUtil
.
getTranstionSession
().
getMapper
(
DcBaseCrmRefundMapper
.
class
);
DcBaseOmsOrderMapper
omsOrderMapper2
=
SessionUtil
.
getTranstionSession
().
getMapper
(
DcBaseOmsOrderMapper
.
class
);
omsOrderMapper2
.
updateByPrimaryKeySelective
(
dcBaseOmsOrder
);
refundMapper2
.
updateByPrimaryKeySelective
(
dcBaseCrmRefund
);
SessionUtil
.
getTranstionSession
().
commit
();
}
catch
(
Exception
e
){
SessionUtil
.
getTranstionSession
().
rollback
();
}
}
}
}
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseCrmRefund.java
View file @
d2a550a2
...
...
@@ -179,6 +179,42 @@ public class DcBaseCrmRefund {
private
BigDecimal
amountRefundUsd
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_crm_refund.company_id
*
* @mbg.generated
*/
private
Integer
companyId
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_crm_refund.order_total_amount
*
* @mbg.generated
*/
private
BigDecimal
orderTotalAmount
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_crm_refund.usd_order_total_amount
*
* @mbg.generated
*/
private
BigDecimal
usdOrderTotalAmount
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_crm_refund.product_sale_amount
*
* @mbg.generated
*/
private
BigDecimal
productSaleAmount
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_crm_refund
*
...
...
@@ -209,6 +245,10 @@ public class DcBaseCrmRefund {
sb
.
append
(
", amountRefundRmb="
).
append
(
amountRefundRmb
);
sb
.
append
(
", crmId="
).
append
(
crmId
);
sb
.
append
(
", amountRefundUsd="
).
append
(
amountRefundUsd
);
sb
.
append
(
", companyId="
).
append
(
companyId
);
sb
.
append
(
", orderTotalAmount="
).
append
(
orderTotalAmount
);
sb
.
append
(
", usdOrderTotalAmount="
).
append
(
usdOrderTotalAmount
);
sb
.
append
(
", productSaleAmount="
).
append
(
productSaleAmount
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
...
...
@@ -249,7 +289,11 @@ public class DcBaseCrmRefund {
&&
(
this
.
getLinked
()
==
null
?
other
.
getLinked
()
==
null
:
this
.
getLinked
().
equals
(
other
.
getLinked
()))
&&
(
this
.
getAmountRefundRmb
()
==
null
?
other
.
getAmountRefundRmb
()
==
null
:
this
.
getAmountRefundRmb
().
equals
(
other
.
getAmountRefundRmb
()))
&&
(
this
.
getCrmId
()
==
null
?
other
.
getCrmId
()
==
null
:
this
.
getCrmId
().
equals
(
other
.
getCrmId
()))
&&
(
this
.
getAmountRefundUsd
()
==
null
?
other
.
getAmountRefundUsd
()
==
null
:
this
.
getAmountRefundUsd
().
equals
(
other
.
getAmountRefundUsd
()));
&&
(
this
.
getAmountRefundUsd
()
==
null
?
other
.
getAmountRefundUsd
()
==
null
:
this
.
getAmountRefundUsd
().
equals
(
other
.
getAmountRefundUsd
()))
&&
(
this
.
getCompanyId
()
==
null
?
other
.
getCompanyId
()
==
null
:
this
.
getCompanyId
().
equals
(
other
.
getCompanyId
()))
&&
(
this
.
getOrderTotalAmount
()
==
null
?
other
.
getOrderTotalAmount
()
==
null
:
this
.
getOrderTotalAmount
().
equals
(
other
.
getOrderTotalAmount
()))
&&
(
this
.
getUsdOrderTotalAmount
()
==
null
?
other
.
getUsdOrderTotalAmount
()
==
null
:
this
.
getUsdOrderTotalAmount
().
equals
(
other
.
getUsdOrderTotalAmount
()))
&&
(
this
.
getProductSaleAmount
()
==
null
?
other
.
getProductSaleAmount
()
==
null
:
this
.
getProductSaleAmount
().
equals
(
other
.
getProductSaleAmount
()));
}
/**
...
...
@@ -281,6 +325,10 @@ public class DcBaseCrmRefund {
result
=
prime
*
result
+
((
getAmountRefundRmb
()
==
null
)
?
0
:
getAmountRefundRmb
().
hashCode
());
result
=
prime
*
result
+
((
getCrmId
()
==
null
)
?
0
:
getCrmId
().
hashCode
());
result
=
prime
*
result
+
((
getAmountRefundUsd
()
==
null
)
?
0
:
getAmountRefundUsd
().
hashCode
());
result
=
prime
*
result
+
((
getCompanyId
()
==
null
)
?
0
:
getCompanyId
().
hashCode
());
result
=
prime
*
result
+
((
getOrderTotalAmount
()
==
null
)
?
0
:
getOrderTotalAmount
().
hashCode
());
result
=
prime
*
result
+
((
getUsdOrderTotalAmount
()
==
null
)
?
0
:
getUsdOrderTotalAmount
().
hashCode
());
result
=
prime
*
result
+
((
getProductSaleAmount
()
==
null
)
?
0
:
getProductSaleAmount
().
hashCode
());
return
result
;
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcBaseCrmRefundExample.java
View file @
d2a550a2
...
...
@@ -1580,6 +1580,246 @@ public class DcBaseCrmRefundExample {
addCriterion
(
"amount_refund_usd not between"
,
value1
,
value2
,
"amountRefundUsd"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdIsNull
()
{
addCriterion
(
"company_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdIsNotNull
()
{
addCriterion
(
"company_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id ="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id <>"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"company_id >"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id >="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdLessThan
(
Integer
value
)
{
addCriterion
(
"company_id <"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id <="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"company_id in"
,
values
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"company_id not in"
,
values
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"company_id between"
,
value1
,
value2
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"company_id not between"
,
value1
,
value2
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountIsNull
()
{
addCriterion
(
"order_total_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountIsNotNull
()
{
addCriterion
(
"order_total_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount ="
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount <>"
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount >"
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount >="
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount <"
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"order_total_amount <="
,
value
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"order_total_amount in"
,
values
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"order_total_amount not in"
,
values
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"order_total_amount between"
,
value1
,
value2
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOrderTotalAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"order_total_amount not between"
,
value1
,
value2
,
"orderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountIsNull
()
{
addCriterion
(
"usd_order_total_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountIsNotNull
()
{
addCriterion
(
"usd_order_total_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount ="
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount <>"
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount >"
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount >="
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount <"
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"usd_order_total_amount <="
,
value
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"usd_order_total_amount in"
,
values
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"usd_order_total_amount not in"
,
values
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"usd_order_total_amount between"
,
value1
,
value2
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUsdOrderTotalAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"usd_order_total_amount not between"
,
value1
,
value2
,
"usdOrderTotalAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountIsNull
()
{
addCriterion
(
"product_sale_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountIsNotNull
()
{
addCriterion
(
"product_sale_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount ="
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount <>"
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount >"
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount >="
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount <"
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"product_sale_amount <="
,
value
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"product_sale_amount in"
,
values
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"product_sale_amount not in"
,
values
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"product_sale_amount between"
,
value1
,
value2
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andProductSaleAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"product_sale_amount not between"
,
value1
,
value2
,
"productSaleAmount"
);
return
(
Criteria
)
this
;
}
}
/**
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBaseCrmRefundMapper.xml
View file @
d2a550a2
...
...
@@ -25,6 +25,10 @@
<result
column=
"amount_refund_rmb"
jdbcType=
"DECIMAL"
property=
"amountRefundRmb"
/>
<result
column=
"crm_id"
jdbcType=
"INTEGER"
property=
"crmId"
/>
<result
column=
"amount_refund_usd"
jdbcType=
"DECIMAL"
property=
"amountRefundUsd"
/>
<result
column=
"company_id"
jdbcType=
"INTEGER"
property=
"companyId"
/>
<result
column=
"order_total_amount"
jdbcType=
"DECIMAL"
property=
"orderTotalAmount"
/>
<result
column=
"usd_order_total_amount"
jdbcType=
"DECIMAL"
property=
"usdOrderTotalAmount"
/>
<result
column=
"product_sale_amount"
jdbcType=
"DECIMAL"
property=
"productSaleAmount"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
...
...
@@ -100,7 +104,7 @@
id, platform_type, bailun_account, bailun_account_id, website, origin_order_id, bailun_sku,
platform_sku, amount_refund, order_currency, refund_time, bailun_sku_quantity_refund,
bailun_sku_unit_price, gmt_create, gmt_modified, linked, amount_refund_rmb, crm_id,
amount_refund_usd
amount_refund_usd
, company_id, order_total_amount, usd_order_total_amount, product_sale_amount
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseCrmRefundExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -167,14 +171,16 @@
order_currency, refund_time, bailun_sku_quantity_refund,
bailun_sku_unit_price, gmt_create, gmt_modified,
linked, amount_refund_rmb, crm_id,
amount_refund_usd)
amount_refund_usd, company_id, order_total_amount,
usd_order_total_amount, product_sale_amount)
values (#{id,jdbcType=INTEGER}, #{platformType,jdbcType=VARCHAR}, #{bailunAccount,jdbcType=VARCHAR},
#{bailunAccountId,jdbcType=INTEGER}, #{website,jdbcType=VARCHAR}, #{originOrderId,jdbcType=VARCHAR},
#{bailunSku,jdbcType=VARCHAR}, #{platformSku,jdbcType=VARCHAR}, #{amountRefund,jdbcType=DECIMAL},
#{orderCurrency,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, #{bailunSkuQuantityRefund,jdbcType=INTEGER},
#{bailunSkuUnitPrice,jdbcType=DECIMAL}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{linked,jdbcType=BIT}, #{amountRefundRmb,jdbcType=DECIMAL}, #{crmId,jdbcType=INTEGER},
#{amountRefundUsd,jdbcType=DECIMAL})
#{amountRefundUsd,jdbcType=DECIMAL}, #{companyId,jdbcType=INTEGER}, #{orderTotalAmount,jdbcType=DECIMAL},
#{usdOrderTotalAmount,jdbcType=DECIMAL}, #{productSaleAmount,jdbcType=DECIMAL})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseCrmRefund"
>
<!--
...
...
@@ -240,6 +246,18 @@
<if
test=
"amountRefundUsd != null"
>
amount_refund_usd,
</if>
<if
test=
"companyId != null"
>
company_id,
</if>
<if
test=
"orderTotalAmount != null"
>
order_total_amount,
</if>
<if
test=
"usdOrderTotalAmount != null"
>
usd_order_total_amount,
</if>
<if
test=
"productSaleAmount != null"
>
product_sale_amount,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
...
...
@@ -299,6 +317,18 @@
<if
test=
"amountRefundUsd != null"
>
#{amountRefundUsd,jdbcType=DECIMAL},
</if>
<if
test=
"companyId != null"
>
#{companyId,jdbcType=INTEGER},
</if>
<if
test=
"orderTotalAmount != null"
>
#{orderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"usdOrderTotalAmount != null"
>
#{usdOrderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"productSaleAmount != null"
>
#{productSaleAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseCrmRefundExample"
resultType=
"java.lang.Long"
>
...
...
@@ -375,6 +405,18 @@
<if
test=
"record.amountRefundUsd != null"
>
amount_refund_usd = #{record.amountRefundUsd,jdbcType=DECIMAL},
</if>
<if
test=
"record.companyId != null"
>
company_id = #{record.companyId,jdbcType=INTEGER},
</if>
<if
test=
"record.orderTotalAmount != null"
>
order_total_amount = #{record.orderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.usdOrderTotalAmount != null"
>
usd_order_total_amount = #{record.usdOrderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.productSaleAmount != null"
>
product_sale_amount = #{record.productSaleAmount,jdbcType=DECIMAL},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -404,7 +446,11 @@
linked = #{record.linked,jdbcType=BIT},
amount_refund_rmb = #{record.amountRefundRmb,jdbcType=DECIMAL},
crm_id = #{record.crmId,jdbcType=INTEGER},
amount_refund_usd = #{record.amountRefundUsd,jdbcType=DECIMAL}
amount_refund_usd = #{record.amountRefundUsd,jdbcType=DECIMAL},
company_id = #{record.companyId,jdbcType=INTEGER},
order_total_amount = #{record.orderTotalAmount,jdbcType=DECIMAL},
usd_order_total_amount = #{record.usdOrderTotalAmount,jdbcType=DECIMAL},
product_sale_amount = #{record.productSaleAmount,jdbcType=DECIMAL}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -470,6 +516,18 @@
<if
test=
"amountRefundUsd != null"
>
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL},
</if>
<if
test=
"companyId != null"
>
company_id = #{companyId,jdbcType=INTEGER},
</if>
<if
test=
"orderTotalAmount != null"
>
order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"usdOrderTotalAmount != null"
>
usd_order_total_amount = #{usdOrderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"productSaleAmount != null"
>
product_sale_amount = #{productSaleAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
@@ -496,7 +554,11 @@
linked = #{linked,jdbcType=BIT},
amount_refund_rmb = #{amountRefundRmb,jdbcType=DECIMAL},
crm_id = #{crmId,jdbcType=INTEGER},
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL}
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL},
company_id = #{companyId,jdbcType=INTEGER},
order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL},
usd_order_total_amount = #{usdOrderTotalAmount,jdbcType=DECIMAL},
product_sale_amount = #{productSaleAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseCrmRefund"
>
...
...
@@ -564,6 +626,18 @@
<if
test=
"amountRefundUsd != null"
>
amount_refund_usd,
</if>
<if
test=
"companyId != null"
>
company_id,
</if>
<if
test=
"orderTotalAmount != null"
>
order_total_amount,
</if>
<if
test=
"usdOrderTotalAmount != null"
>
usd_order_total_amount,
</if>
<if
test=
"productSaleAmount != null"
>
product_sale_amount,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -624,6 +698,18 @@
<if
test=
"amountRefundUsd != null"
>
#{amountRefundUsd,jdbcType=DECIMAL},
</if>
<if
test=
"companyId != null"
>
#{companyId,jdbcType=INTEGER},
</if>
<if
test=
"orderTotalAmount != null"
>
#{orderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"usdOrderTotalAmount != null"
>
#{usdOrderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"productSaleAmount != null"
>
#{productSaleAmount,jdbcType=DECIMAL},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
...
...
@@ -684,6 +770,18 @@
<if
test=
"amountRefundUsd != null"
>
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL},
</if>
<if
test=
"companyId != null"
>
company_id = #{companyId,jdbcType=INTEGER},
</if>
<if
test=
"orderTotalAmount != null"
>
order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"usdOrderTotalAmount != null"
>
usd_order_total_amount = #{usdOrderTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"productSaleAmount != null"
>
product_sale_amount = #{productSaleAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBaseCrmRefund"
>
...
...
@@ -696,7 +794,8 @@
(id, platform_type, bailun_account, bailun_account_id, website, origin_order_id,
bailun_sku, platform_sku, amount_refund, order_currency, refund_time, bailun_sku_quantity_refund,
bailun_sku_unit_price, gmt_create, gmt_modified, linked, amount_refund_rmb, crm_id,
amount_refund_usd)
amount_refund_usd, company_id, order_total_amount, usd_order_total_amount, product_sale_amount
)
values
(#{id,jdbcType=INTEGER}, #{platformType,jdbcType=VARCHAR}, #{bailunAccount,jdbcType=VARCHAR},
#{bailunAccountId,jdbcType=INTEGER}, #{website,jdbcType=VARCHAR}, #{originOrderId,jdbcType=VARCHAR},
...
...
@@ -704,7 +803,8 @@
#{orderCurrency,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}, #{bailunSkuQuantityRefund,jdbcType=INTEGER},
#{bailunSkuUnitPrice,jdbcType=DECIMAL}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{linked,jdbcType=BIT}, #{amountRefundRmb,jdbcType=DECIMAL}, #{crmId,jdbcType=INTEGER},
#{amountRefundUsd,jdbcType=DECIMAL})
#{amountRefundUsd,jdbcType=DECIMAL}, #{companyId,jdbcType=INTEGER}, #{orderTotalAmount,jdbcType=DECIMAL},
#{usdOrderTotalAmount,jdbcType=DECIMAL}, #{productSaleAmount,jdbcType=DECIMAL})
on duplicate key update
id = #{id,jdbcType=INTEGER},
platform_type = #{platformType,jdbcType=VARCHAR},
...
...
@@ -724,7 +824,11 @@
linked = #{linked,jdbcType=BIT},
amount_refund_rmb = #{amountRefundRmb,jdbcType=DECIMAL},
crm_id = #{crmId,jdbcType=INTEGER},
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL}
amount_refund_usd = #{amountRefundUsd,jdbcType=DECIMAL},
company_id = #{companyId,jdbcType=INTEGER},
order_total_amount = #{orderTotalAmount,jdbcType=DECIMAL},
usd_order_total_amount = #{usdOrderTotalAmount,jdbcType=DECIMAL},
product_sale_amount = #{productSaleAmount,jdbcType=DECIMAL}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcBaseCrmRefundExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
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