记得上下班打卡 | 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
9d2e8df8
Commit
9d2e8df8
authored
Feb 04, 2024
by
zhangguobing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~api:券商品业务-券类商品券限购调整;
parent
54d787d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
GoblinOrderServiceImpl.java
...et/service/order/service/impl/GoblinOrderServiceImpl.java
+5
-1
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 @
9d2e8df8
...
@@ -95,6 +95,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -95,6 +95,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
preParam
.
setSkuName
(
""
);
preParam
.
setSkuName
(
""
);
preParam
.
setOrderIdList
(
""
);
preParam
.
setOrderIdList
(
""
);
HashMap
<
String
,
Integer
>
couponSkuIdNoBuyLimitMap
=
CollectionUtil
.
mapStringInteger
();
// 记录券类商品关联人限购KEY:NUM
HashMap
<
String
,
Integer
>
couponSkuIdNoBuyLimitMap
=
CollectionUtil
.
mapStringInteger
();
// 记录券类商品关联人限购KEY:NUM
boolean
rollbackStock
=
false
;
try
{
try
{
List
<
GoblinOrderStoreParam
>
goblinOrderStoreParamList
=
param
.
getGoblinOrderStoreParamList
();
//分订单
List
<
GoblinOrderStoreParam
>
goblinOrderStoreParamList
=
param
.
getGoblinOrderStoreParamList
();
//分订单
boolean
isMember
;
boolean
isMember
;
...
@@ -166,6 +167,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -166,6 +167,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
//判断限购
//判断限购
if
(
orderUtils
.
noZhengzaiOrder
(
uid
))
{
if
(
orderUtils
.
noZhengzaiOrder
(
uid
))
{
String
res1
=
orderUtils
.
judgeOrderLimit
(
uid
,
skuParam
.
getSkuId
(),
skuParam
.
getNumber
(),
limitCount
);
String
res1
=
orderUtils
.
judgeOrderLimit
(
uid
,
skuParam
.
getSkuId
(),
skuParam
.
getNumber
(),
limitCount
);
rollbackStock
=
true
;
if
(!
res1
.
equals
(
""
))
{
if
(!
res1
.
equals
(
""
))
{
throw
new
Exception
(
"已超出限购数量"
);
throw
new
Exception
(
"已超出限购数量"
);
}
}
...
@@ -231,7 +233,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
...
@@ -231,7 +233,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
int
number
=
Integer
.
parseInt
(
array
[
2
]);
int
number
=
Integer
.
parseInt
(
array
[
2
]);
redisUtils
.
incrSkuStock
(
pre
,
skuId
,
number
);
redisUtils
.
incrSkuStock
(
pre
,
skuId
,
number
);
if
(
orderUtils
.
noZhengzaiOrder
(
uid
))
{
if
(
orderUtils
.
noZhengzaiOrder
(
uid
))
{
redisUtils
.
decrSkuCountByUid
(
uid
,
skuId
,
number
);
if
(
rollbackStock
)
{
redisUtils
.
decrSkuCountByUid
(
uid
,
skuId
,
number
);
}
}
}
}
}
//回退平台券
//回退平台券
...
...
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