记得上下班打卡 | 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
c8a57e98
Commit
c8a57e98
authored
Oct 19, 2022
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hjc_bug_now_order' into hjc_bug_mix_now_order
parents
c7f82a22
a9453ccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
GoblinStoreZhengzaiServiceImpl.java
...e/goblin/service/impl/GoblinStoreZhengzaiServiceImpl.java
+10
-1
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinStoreZhengzaiServiceImpl.java
View file @
c8a57e98
...
...
@@ -71,7 +71,16 @@ public class GoblinStoreZhengzaiServiceImpl implements IGoblinStoreZhengzaiServi
if
(
storeInfoVo
==
null
)
{
return
ResponseDto
.
failure
(
"店铺不存在"
);
}
GoblinSelfMarketingVo
marketingVo
=
redisUtils
.
getSelfMarket
(
marketId
);
if
(
marketingVo
.
getStatus
()
==
7
)
{
return
ResponseDto
.
failure
(
"活动已停用"
);
}
//todo
String
storeId
=
storeInfoVo
.
getStoreId
();
GoblinMarketingZhengzaiRelationVo
marketingZhengzaiRelationVo
=
redisUtils
.
getZhengzaiRelation
(
marketId
,
storeId
);
if
(
marketingZhengzaiRelationVo
==
null
)
{
return
ResponseDto
.
failure
(
"未参加活动"
);
}
List
<
GoblinMarketRelationVo
>
relationVo
=
redisUtils
.
getMarketRelation
(
GoblinStatusConst
.
MarketPreStatus
.
MARKET_PRE_ZHENGZAI
.
getValue
(),
marketId
);
List
<
String
>
spuIdList
=
relationVo
.
stream
().
map
(
GoblinMarketRelationVo:
:
getSpuId
).
collect
(
Collectors
.
toList
());
List
<
GoblinZhengzaiGoodVo
>
voList
=
ObjectUtil
.
getGoblinZhengzaiGoodVoArrayList
();
...
...
@@ -124,7 +133,7 @@ public class GoblinStoreZhengzaiServiceImpl implements IGoblinStoreZhengzaiServi
//redis
redisUtils
.
setGoblinOrder
(
storeOrderVo
.
getOrderId
(),
storeOrderVo
);
sqlDataOrder
.
add
(
new
Object
[]{
storeOrderVo
.
getZhengzaiStatus
(),
storeOrderVo
.
getStatus
(),
now
,
storeOrderVo
.
getOrderId
(),
now
,
now
storeOrderVo
.
getZhengzaiStatus
(),
storeOrderVo
.
getStatus
(),
now
,
storeOrderVo
.
getOrderId
(),
now
,
now
});
}
//mysql
...
...
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