记得上下班打卡 | 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
f37cb49c
Commit
f37cb49c
authored
Dec 05, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交 下单 order相关erp字段添加
parent
f688fe76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+6
-7
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 @
f37cb49c
...
@@ -111,7 +111,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -111,7 +111,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
skuAndPreListAndNumber
.
add
(
skuId
+
","
+
pre
+
","
+
number
);
skuAndPreListAndNumber
.
add
(
skuId
+
","
+
pre
+
","
+
number
);
// 判断库存
// 判断库存
GoblinGoodsSkuInfoVo
skuVo
=
redisUtils
.
getGoodsSkuInfoVo
(
skuParam
.
getSkuId
());
GoblinGoodsSkuInfoVo
skuVo
=
redisUtils
.
getGoodsSkuInfoVo
(
skuParam
.
getSkuId
());
if
(!
skuParam
.
getSpuId
().
equals
(
skuVo
.
getSpuId
()))
{
if
(!
skuParam
.
getSpuId
().
equals
(
skuVo
.
getSpuId
()))
{
throw
new
Exception
(
"参数异常"
);
throw
new
Exception
(
"参数异常"
);
}
}
int
limitCount
=
skuVo
.
getBuyLimit
()
==
0
?
Integer
.
MAX_VALUE
:
skuVo
.
getBuyLimit
();
int
limitCount
=
skuVo
.
getBuyLimit
()
==
0
?
Integer
.
MAX_VALUE
:
skuVo
.
getBuyLimit
();
...
@@ -290,8 +290,8 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -290,8 +290,8 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
orderSku
.
setSpuErpCode
(
spuVo
.
getSpuErpCode
());
orderSku
.
setSpuErpCode
(
spuVo
.
getSpuErpCode
());
orderSku
.
setSkuErpCode
(
skuVo
.
getSkuErpCode
());
orderSku
.
setSkuErpCode
(
skuVo
.
getSkuErpCode
());
orderSku
.
setErpType
(
spuVo
.
get
SpuErpCod
e
());
orderSku
.
setErpType
(
spuVo
.
get
ErpTyp
e
());
orderSku
.
setErpWarehouseNo
(
s
puVo
.
getSpuErpCode
());
orderSku
.
setErpWarehouseNo
(
s
kuVo
.
getErpWarehouseNo
());
orderSku
.
setSkuImage
(
skuVo
.
getSkuPic
());
orderSku
.
setSkuImage
(
skuVo
.
getSkuPic
());
orderSku
.
setSkuSpecs
(
JSON
.
toJSONString
(
skuVo
.
getSkuSpecList
()));
orderSku
.
setSkuSpecs
(
JSON
.
toJSONString
(
skuVo
.
getSkuSpecList
()));
...
@@ -507,15 +507,14 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -507,15 +507,14 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
payCode
=
payInnerResultVo
.
getCode
();
payCode
=
payInnerResultVo
.
getCode
();
payInnerResultVo
.
setShowUrl
(
preParam
.
getShowUrl
());
payInnerResultVo
.
setShowUrl
(
preParam
.
getShowUrl
());
payInnerResultVo
.
setReturnUrl
(
preParam
.
getReturnUrl
());
payInnerResultVo
.
setReturnUrl
(
preParam
.
getReturnUrl
());
}
}
else
if
(
preParam
.
getPayType
().
equals
(
"pos_crash"
))
{
else
if
(
preParam
.
getPayType
().
equals
(
"pos_crash"
))
{
isFree
=
true
;
isFree
=
true
;
preParam
.
setPayType
(
"POS_CRASH"
);
preParam
.
setPayType
(
"POS_CRASH"
);
payCode
=
"POS_CRASH_PAY_CODE"
;
payCode
=
"POS_CRASH_PAY_CODE"
;
payInnerResultVo
=
GoblinPayInnerResultVo
.
getNew
();
payInnerResultVo
=
GoblinPayInnerResultVo
.
getNew
();
payInnerResultVo
.
setPrice
(
preParam
.
getPriceActual
());
payInnerResultVo
.
setPrice
(
preParam
.
getPriceActual
());
payInnerResultVo
.
setPayType
(
preParam
.
getPayType
());
payInnerResultVo
.
setPayType
(
preParam
.
getPayType
());
}
else
{
}
else
{
isFree
=
true
;
isFree
=
true
;
preParam
.
setPayType
(
"FREE"
);
preParam
.
setPayType
(
"FREE"
);
payCode
=
"FREE_PAY_CODE"
;
payCode
=
"FREE_PAY_CODE"
;
...
@@ -1048,7 +1047,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -1048,7 +1047,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
}
}
Integer
status
=
refundCallbackParam
.
getStatus
();
Integer
status
=
refundCallbackParam
.
getStatus
();
if
(
1
==
status
&&
(
backOrderVo
.
getStatus
()
==
0
||
backOrderVo
.
getStatus
()
==
10
))
{
// 退款成功
if
(
1
==
status
&&
(
backOrderVo
.
getStatus
()
==
0
||
backOrderVo
.
getStatus
()
==
10
))
{
// 退款成功
log
.
info
(
"refundCallback,正常退款,编号{}"
,
refundCallbackParam
.
getOrderRefundCode
());
log
.
info
(
"refundCallback,正常退款,编号{}"
,
refundCallbackParam
.
getOrderRefundCode
());
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
Object
[]>
sqlsOrder
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsOrder
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsOrderSku
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsOrderSku
=
CollectionUtil
.
linkedListObjectArr
();
...
...
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