Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
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
hooloo
ms
soss
Commits
d262986d
Commit
d262986d
authored
Oct 13, 2022
by
weijiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下单时校验订单中sku数量
parent
1cac5c58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
+4
-1
No files found.
soss-system/src/main/java/com/soss/system/service/impl/OrderServiceImpl.java
View file @
d262986d
...
...
@@ -175,8 +175,11 @@ public class OrderServiceImpl implements IOrderService {
orderDetail
.
setCreatedAt
(
new
Date
());
orderDetail
.
setUpdatedAt
(
new
Date
());
orderDetail
.
setMachineId
(
machineId
);
orderDetail
.
setNum
(
"1"
);
for
(
int
i
=
0
;
i
<
Integer
.
parseInt
(
orderDetail
.
getNum
());
i
++)
{
orderDetailMapper
.
insertOrderDetail
(
orderDetail
);
}
}
// 更新用户的优惠券状态
if
(
couponUserId
!=
null
)
{
...
...
@@ -658,7 +661,7 @@ public class OrderServiceImpl implements IOrderService {
}
for
(
GoodsVo
good
:
goods
)
{
String
cateAndGoodsIdStr
=
good
.
getCategory
()
+
good
.
getGoodsId
();
if
(
cateAndGoodsIdSet
.
contains
(
cateAndGoodsIdStr
))
{
if
(
cateAndGoodsIdSet
.
contains
(
cateAndGoodsIdStr
))
{
continue
;
}
else
{
cateAndGoodsIdSet
.
add
(
cateAndGoodsIdStr
);
...
...
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