记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
bc9408c4
Commit
bc9408c4
authored
Mar 10, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 退款资金纪录
parent
65fdd36c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+5
-5
GoblinOrderUtils.java
...a/com/liquidnet/service/order/utils/GoblinOrderUtils.java
+3
-3
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/service/impl/GoblinOrderServiceImpl.java
View file @
bc9408c4
...
...
@@ -913,9 +913,8 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
sqls
.
add
(
SqlMapping
.
get
(
"goblin_order.store.refundBackOrder"
));
String
orderId
=
backOrderVo
.
getOrderId
();
List
<
GoblinBackOrderSkuVo
>
backOrderSkuVos
=
backOrderVo
.
getBackOrderSkuVos
();
BigDecimal
price
=
refundCallbackParam
.
getRefundPrice
();
GoblinStoreOrderVo
orderVo
=
redisUtils
.
getGoblinOrder
(
orderId
);
orderVo
.
setPriceRefund
(
orderVo
.
getPriceRefund
().
add
(
price
));
orderVo
.
setPriceRefund
(
orderVo
.
getPriceRefund
().
add
(
refundCallbackParam
.
getRefundPrice
()
));
if
(
orderVo
.
getPriceRefund
().
compareTo
(
orderVo
.
getPriceActual
())
>=
0
)
{
//整单退款 退券
orderVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_6
.
getValue
());
...
...
@@ -936,7 +935,8 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
backOrderVo
.
setRefundAt
(
nowStr
);
for
(
GoblinBackOrderSkuVo
backOrderSkuVo
:
backOrderSkuVos
)
{
GoblinOrderSkuVo
orderSkuVo
=
redisUtils
.
getGoblinOrderSkuVo
(
backOrderSkuVo
.
getOrderSkuId
());
orderSkuVo
.
setPriceRefund
(
orderSkuVo
.
getPriceRefund
()
==
null
?
price
:
orderSkuVo
.
getPriceRefund
().
add
(
price
));
BigDecimal
refundSkuPrice
=
backOrderSkuVo
.
getRefundPrice
();
orderSkuVo
.
setPriceRefund
(
orderSkuVo
.
getPriceRefund
()
==
null
?
refundSkuPrice
:
orderSkuVo
.
getPriceRefund
().
add
(
refundSkuPrice
));
if
(
orderSkuVo
.
getPriceRefund
().
compareTo
(
orderSkuVo
.
getSkuPriceActual
())
>=
0
)
{
orderSkuVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_6
.
getValue
());
String
pre
=
GoblinStatusConst
.
MarketPreStatus
.
getPre
(
orderSkuVo
.
getSkuId
());
...
...
@@ -964,9 +964,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
logVo
.
setSpuName
(
backOrderSkuVo
.
getSpuName
());
logVo
.
setSkuId
(
backOrderSkuVo
.
getSkuId
());
if
(
orderVo
.
getStatus
().
equals
(
GoblinStatusConst
.
Status
.
ORDER_STATUS_6
.
getValue
()))
{
price
=
p
rice
.
subtract
(
orderVo
.
getPriceExpress
());
refundSkuPrice
=
refundSkuP
rice
.
subtract
(
orderVo
.
getPriceExpress
());
}
logVo
.
setSkuPriceActual
(
p
rice
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
negate
().
longValue
());
logVo
.
setSkuPriceActual
(
refundSkuP
rice
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
negate
().
longValue
());
logVo
.
setStatus
(
GoblinStatusConst
.
Status
.
ORDER_LOG_STATUS_22
.
getValue
());
logVo
.
setRemark
(
"订单退款"
);
logVo
.
setOperationId
(
backOrderVo
.
getUserId
());
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinOrderUtils.java
View file @
bc9408c4
...
...
@@ -54,11 +54,11 @@ public class GoblinOrderUtils {
//判断 数量限购
public
String
judgeOrderLimit
(
String
uid
,
String
skuId
,
int
number
,
int
limitCount
)
{
int
buyCount
=
redisUtils
.
getSkuCountByUid
(
uid
,
skuId
);
if
(
buyCount
+
number
>
limitCount
)
{
int
buyCount
=
redisUtils
.
incrSkuCountByUid
(
uid
,
skuId
,
number
);
if
(
buyCount
>
limitCount
)
{
redisUtils
.
decrSkuCountByUid
(
uid
,
skuId
,
number
);
return
"已超出限购数量"
;
}
else
{
int
a
=
redisUtils
.
incrSkuCountByUid
(
uid
,
skuId
,
number
);
return
""
;
}
}
...
...
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