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
7146ba15
Commit
7146ba15
authored
Feb 12, 2022
by
xiangkun.gu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/applet/2022-02-11-暴露创建订单业务相关接口' into develop
parents
7d7b580c
d82b3984
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
12 deletions
+66
-12
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
+14
-12
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayCodeByChanelVo.java
+18
-0
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayConfigVo.java
+15
-0
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayTimeoutVo.java
+13
-0
order-application-service/src/main/java/cn/freemud/entities/vo/PutDeadLetterVo.java
+6
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/ExposureOrderController.java
View file @
7146ba15
package
cn
.
freemud
.
controller
;
package
cn
.
freemud
.
controller
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.base.entity.BaseResponse
;
import
cn.freemud.entities.vo.GetPayCodeByChanelVo
;
import
cn.freemud.entities.vo.GetPayConfigVo
;
import
cn.freemud.entities.vo.GetPayTimeoutVo
;
import
cn.freemud.entities.vo.PutDeadLetterVo
;
import
cn.freemud.entities.vo.PutDeadLetterVo
;
import
cn.freemud.service.impl.PayServiceImpl
;
import
cn.freemud.service.impl.PayServiceImpl
;
import
cn.freemud.utils.ResponseUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
com.freemud.application.sdk.api.log.ApiAnnotation
;
import
com.freemud.application.sdk.api.log.ApiAnnotation
;
import
com.freemud.application.sdk.api.log.LogParams
;
import
com.freemud.application.sdk.api.log.LogParams
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
/**
/**
...
@@ -23,9 +27,9 @@ public class ExposureOrderController {
...
@@ -23,9 +27,9 @@ public class ExposureOrderController {
* 创建支付单,查询支付配置
* 创建支付单,查询支付配置
*/
*/
@ApiAnnotation
(
logMessage
=
"创建支付单,查询支付配置"
)
@ApiAnnotation
(
logMessage
=
"创建支付单,查询支付配置"
)
@
Ge
tMapping
(
"/getPayConfig"
)
@
Pos
tMapping
(
"/getPayConfig"
)
public
BaseResponse
<
String
>
getPayConfig
(
@
LogParams
@RequestParam
(
"partnerId"
)
String
partnerId
,
@RequestParam
(
"appId"
)
String
appId
)
{
public
BaseResponse
<
String
>
getPayConfig
(
@
Validated
@LogParams
@RequestBody
GetPayConfigVo
getPayConfigVo
)
{
String
payConfig
=
payService
.
getPayConfig
(
partnerId
,
appId
);
String
payConfig
=
payService
.
getPayConfig
(
getPayConfigVo
.
getPartnerId
(),
getPayConfigVo
.
getAppId
()
);
return
ResponseUtil
.
success
(
payConfig
);
return
ResponseUtil
.
success
(
payConfig
);
}
}
...
@@ -33,9 +37,9 @@ public class ExposureOrderController {
...
@@ -33,9 +37,9 @@ public class ExposureOrderController {
* 创建支付单,查询超时时间
* 创建支付单,查询超时时间
*/
*/
@ApiAnnotation
(
logMessage
=
"创建支付单,查询超时时间"
)
@ApiAnnotation
(
logMessage
=
"创建支付单,查询超时时间"
)
@
Ge
tMapping
(
"/getPayTimeout"
)
@
Pos
tMapping
(
"/getPayTimeout"
)
public
BaseResponse
<
String
>
getPayTimeout
(
@
LogParams
@RequestParam
(
"partnerId"
)
String
partnerId
)
{
public
BaseResponse
<
String
>
getPayTimeout
(
@
Validated
@LogParams
@RequestBody
GetPayTimeoutVo
getPayTimeoutVo
)
{
String
partnerPayOvertime
=
payService
.
getPartnerPayOvertime
(
partnerId
);
String
partnerPayOvertime
=
payService
.
getPartnerPayOvertime
(
getPayTimeoutVo
.
getPartnerId
()
);
return
ResponseUtil
.
success
(
partnerPayOvertime
);
return
ResponseUtil
.
success
(
partnerPayOvertime
);
}
}
...
@@ -43,12 +47,10 @@ public class ExposureOrderController {
...
@@ -43,12 +47,10 @@ public class ExposureOrderController {
* 创建支付单,查询payCode
* 创建支付单,查询payCode
*/
*/
@ApiAnnotation
(
logMessage
=
"创建支付单,查询payCode"
)
@ApiAnnotation
(
logMessage
=
"创建支付单,查询payCode"
)
@GetMapping
(
"/getPayCodeByChanel"
)
@PostMapping
(
"/getPayCodeByChanel"
)
public
BaseResponse
<
String
>
getPayCodeByChanel
(
@LogParams
@RequestParam
(
"appId"
)
String
appId
,
public
BaseResponse
<
String
>
getPayCodeByChanel
(
@Validated
@LogParams
@RequestBody
GetPayCodeByChanelVo
getPayCodeByChanelVo
)
{
@RequestParam
(
"storeId"
)
String
storeId
,
@RequestParam
(
value
=
"channel"
,
required
=
false
)
String
channel
)
{
String
payCodeByCondition
=
payService
.
getPayCodeByCondition
(
appId
,
storeId
,
channel
);
String
payCodeByCondition
=
payService
.
getPayCodeByCondition
(
getPayCodeByChanelVo
.
getAppId
(),
getPayCodeByChanelVo
.
getStoreId
(),
getPayCodeByChanelVo
.
getChannel
()
);
return
ResponseUtil
.
success
(
payCodeByCondition
);
return
ResponseUtil
.
success
(
payCodeByCondition
);
}
}
...
@@ -57,7 +59,7 @@ public class ExposureOrderController {
...
@@ -57,7 +59,7 @@ public class ExposureOrderController {
*/
*/
@ApiAnnotation
(
logMessage
=
"创建订单,死信队列"
)
@ApiAnnotation
(
logMessage
=
"创建订单,死信队列"
)
@PostMapping
(
"/deadLetterQueue"
)
@PostMapping
(
"/deadLetterQueue"
)
public
BaseResponse
deadLetterQueue
(
@LogParams
@RequestBody
PutDeadLetterVo
putDeadLetterVo
)
{
public
BaseResponse
deadLetterQueue
(
@
Validated
@
LogParams
@RequestBody
PutDeadLetterVo
putDeadLetterVo
)
{
payService
.
putDelMq
(
putDeadLetterVo
.
getPartnerId
(),
putDeadLetterVo
.
getStoreId
(),
putDeadLetterVo
.
getFmId
(),
putDeadLetterVo
.
getOrderId
(),
putDeadLetterVo
.
getPayChanelType
());
payService
.
putDelMq
(
putDeadLetterVo
.
getPartnerId
(),
putDeadLetterVo
.
getStoreId
(),
putDeadLetterVo
.
getFmId
(),
putDeadLetterVo
.
getOrderId
(),
putDeadLetterVo
.
getPayChanelType
());
return
ResponseUtil
.
success
();
return
ResponseUtil
.
success
();
}
}
...
...
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayCodeByChanelVo.java
0 → 100644
View file @
7146ba15
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
GetPayCodeByChanelVo
{
@NotBlank
(
message
=
"小程序id不能为空"
)
private
String
appId
;
@NotBlank
(
message
=
"门店id不能为空"
)
private
String
storeId
;
private
String
channel
;
}
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayConfigVo.java
0 → 100644
View file @
7146ba15
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
GetPayConfigVo
{
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
@NotBlank
(
message
=
"小程序id不能为空"
)
private
String
appId
;
}
order-application-service/src/main/java/cn/freemud/entities/vo/GetPayTimeoutVo.java
0 → 100644
View file @
7146ba15
package
cn
.
freemud
.
entities
.
vo
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
public
class
GetPayTimeoutVo
{
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
}
order-application-service/src/main/java/cn/freemud/entities/vo/PutDeadLetterVo.java
View file @
7146ba15
...
@@ -2,15 +2,21 @@ package cn.freemud.entities.vo;
...
@@ -2,15 +2,21 @@ package cn.freemud.entities.vo;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
@Data
@Data
public
class
PutDeadLetterVo
{
public
class
PutDeadLetterVo
{
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
partnerId
;
private
String
partnerId
;
@NotBlank
(
message
=
"门店id不能为空"
)
private
String
storeId
;
private
String
storeId
;
@NotBlank
(
message
=
"fmId不能为空"
)
private
String
fmId
;
private
String
fmId
;
@NotBlank
(
message
=
"订单号不能为空"
)
private
String
orderId
;
private
String
orderId
;
private
Integer
payChanelType
;
private
Integer
payChanelType
;
...
...
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