Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
e8322e4e
Commit
e8322e4e
authored
Nov 11, 2020
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis
parent
6f7c7022
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
+3
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/SellCouponOrderServiceImpl.java
View file @
e8322e4e
...
@@ -57,6 +57,7 @@ import com.freemud.sdk.api.assortment.order.request.order.ProductBindingCouponTy
...
@@ -57,6 +57,7 @@ import com.freemud.sdk.api.assortment.order.request.order.ProductBindingCouponTy
import
com.freemud.sdk.api.assortment.order.response.order.CreateOrderResponse
;
import
com.freemud.sdk.api.assortment.order.response.order.CreateOrderResponse
;
import
com.freemud.sdk.api.assortment.order.response.order.PayAccessResponse
;
import
com.freemud.sdk.api.assortment.order.response.order.PayAccessResponse
;
import
com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService
;
import
com.freemud.sdk.api.assortment.order.service.OrderCenterSdkService
;
import
com.freemud.sdk.api.assortment.order.util.LockUtils
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -108,7 +109,7 @@ public class SellCouponOrderServiceImpl {
...
@@ -108,7 +109,7 @@ public class SellCouponOrderServiceImpl {
@Autowired
@Autowired
private
OrderSdkAdapter
orderSdkAdapter
;
private
OrderSdkAdapter
orderSdkAdapter
;
@Autowired
@Autowired
private
static
RedisTemplate
redisTemplat
e
;
private
RedisCache
redisCach
e
;
@Autowired
@Autowired
private
CouponService
couponService
;
private
CouponService
couponService
;
...
@@ -284,6 +285,7 @@ public class SellCouponOrderServiceImpl {
...
@@ -284,6 +285,7 @@ public class SellCouponOrderServiceImpl {
String
key
=
this
.
getFolwNo
(
partnerId
,
date
);
String
key
=
this
.
getFolwNo
(
partnerId
,
date
);
int
flowno
=
0
;
int
flowno
=
0
;
RedisTemplate
redisTemplate
=
redisCache
.
getRedisTemplate
();
if
(
redisTemplate
.
opsForValue
().
setIfAbsent
(
key
,
0
))
{
if
(
redisTemplate
.
opsForValue
().
setIfAbsent
(
key
,
0
))
{
redisTemplate
.
expire
(
key
,
24
,
TimeUnit
.
HOURS
);
redisTemplate
.
expire
(
key
,
24
,
TimeUnit
.
HOURS
);
...
...
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