Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
b85cc8c0
Commit
b85cc8c0
authored
Dec 06, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改套餐为空的问题
parent
5d5e9342
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+2
-1
SStoreServiceImpl.java
...ain/java/share/system/service/impl/SStoreServiceImpl.java
+5
-1
No files found.
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
b85cc8c0
...
@@ -317,6 +317,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -317,6 +317,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
// 加入自动未支付自动取消队列
// 加入自动未支付自动取消队列
redisUtil
.
lPush
(
Constants
.
ORDER_AUTO_CANCEL_KEY
,
sOrder
.
getOrderNo
());
redisUtil
.
lPush
(
Constants
.
ORDER_AUTO_CANCEL_KEY
,
sOrder
.
getOrderNo
());
}
}
save
(
sOrder
);
if
(
response
.
getStatus
().
equals
(
YesNoEnum
.
yes
.
getFlag
()))
{
if
(
response
.
getStatus
().
equals
(
YesNoEnum
.
yes
.
getFlag
()))
{
if
(
Objects
.
nonNull
(
request
.
getCouponId
())
&&
request
.
getCouponId
()
!=
0
)
{
if
(
Objects
.
nonNull
(
request
.
getCouponId
())
&&
request
.
getCouponId
()
!=
0
)
{
SConsumerCoupon
byId
=
consumerCouponService
.
getById
(
request
.
getCouponId
());
SConsumerCoupon
byId
=
consumerCouponService
.
getById
(
request
.
getCouponId
());
...
@@ -351,7 +352,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -351,7 +352,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
JSONObject
jsonObject
=
new
JSONObject
(
map
);
JSONObject
jsonObject
=
new
JSONObject
(
map
);
redisUtils
.
set
(
ReceiptRdeisEnum
.
ORDER_NO_KEY
.
getValue
()
+
sOrder
.
getOrderNo
(),
jsonObject
.
toString
());
redisUtils
.
set
(
ReceiptRdeisEnum
.
ORDER_NO_KEY
.
getValue
()
+
sOrder
.
getOrderNo
(),
jsonObject
.
toString
());
}
}
save
(
sOrder
);
return
response
;
return
response
;
}
}
...
...
share-system/src/main/java/share/system/service/impl/SStoreServiceImpl.java
View file @
b85cc8c0
...
@@ -265,7 +265,11 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
...
@@ -265,7 +265,11 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
List
<
SPack
>
sPacks
=
new
ArrayList
<>();
List
<
SPack
>
sPacks
=
new
ArrayList
<>();
roomPacks
.
stream
().
forEach
(
sRoomPack
->
{
roomPacks
.
stream
().
forEach
(
sRoomPack
->
{
if
(
sRoomVo
.
getId
().
compareTo
(
sRoomPack
.
getRoomId
())
==
0
)
{
if
(
sRoomVo
.
getId
().
compareTo
(
sRoomPack
.
getRoomId
())
==
0
)
{
sPacks
.
add
(
packMap
.
get
(
sRoomPack
.
getPackId
()));
SPack
sPack
=
packMap
.
get
(
sRoomPack
.
getPackId
());
if
(
ObjectUtil
.
isNotEmpty
(
sPack
))
{
sPacks
.
add
(
sPack
);
}
}
}
});
});
sRoomVo
.
setPackList
(
sPacks
);
sRoomVo
.
setPackList
(
sPacks
);
...
...
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