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
b845affe
Commit
b845affe
authored
Feb 17, 2022
by
xiangkun.gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增现现金支付设置轮循队列的暴露接口
parent
d04a4ccb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+10
-0
order-application-service/src/main/java/cn/freemud/entities/vo/PutRoundRobinVo.java
+19
-0
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
+13
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
b845affe
...
...
@@ -120,4 +120,14 @@ public class ExposureOrderController {
return
ResponseUtil
.
success
(
fmId
);
}
/**
* 现金支付,设置轮循队列
*/
@ApiAnnotation
(
logMessage
=
"现金支付,设置轮循队列"
)
@PostMapping
(
"/putRoundRobin"
)
public
BaseResponse
putRoundRobin
(
@Validated
@LogParams
@RequestBody
PutRoundRobinVo
putRoundRobinVo
)
{
payService
.
putRoundRobin
(
putRoundRobinVo
);
return
ResponseUtil
.
success
();
}
}
order-application-service/src/main/java/cn/freemud/entities/vo/PutRoundRobinVo.java
0 → 100644
View file @
b845affe
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
@Data
public
class
PutRoundRobinVo
{
private
String
partnerId
;
private
String
storeId
;
private
String
fmId
;
private
String
orderCode
;
private
Byte
index
;
private
String
ebCode
;
}
order-application-service/src/main/java/cn/freemud/service/impl/PayServiceImpl.java
View file @
b845affe
...
...
@@ -19,6 +19,7 @@ import cn.freemud.entities.dto.pay.svc.SVCCardAmountRequestDto;
import
cn.freemud.entities.dto.pay.svc.SVCCardAmountResponseDto
;
import
cn.freemud.entities.vo.CreateOrderResponseVo
;
import
cn.freemud.entities.vo.PaysuccessNoticeMessage
;
import
cn.freemud.entities.vo.PutRoundRobinVo
;
import
cn.freemud.entities.vo.order.CreateOrderUnionPayCardVo
;
import
cn.freemud.entities.vo.order.PlugInParameter
;
import
cn.freemud.enums.*
;
...
...
@@ -1503,4 +1504,16 @@ public class PayServiceImpl {
String
fmId
=
"SPAY"
+
ValidationCode
.
getRandomUuid
();
return
fmId
;
}
public
void
putRoundRobin
(
PutRoundRobinVo
putRoundRobinVo
)
{
redisCache
.
save
(
RedisUtil
.
getPaymentTransIdOrderKey
(
putRoundRobinVo
.
getEbCode
()),
putRoundRobinVo
.
getOrderCode
(),
1L
,
TimeUnit
.
DAYS
);
//加入轮训队列
this
.
putDelMq
(
putRoundRobinVo
.
getPartnerId
(),
putRoundRobinVo
.
getStoreId
(),
putRoundRobinVo
.
getFmId
(),
putRoundRobinVo
.
getOrderCode
(),
(
int
)
putRoundRobinVo
.
getIndex
());
}
}
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