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
0df7c7e1
Commit
0df7c7e1
authored
Aug 31, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分商城二期现金支付
parent
73b5a015
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
108 additions
and
1 deletions
+108
-1
order-application-service/src/main/java/cn/freemud/entities/dto/order/FacePayResponseDto.java
+8
-0
order-application-service/src/main/java/cn/freemud/entities/dto/pay/PayOrderDto.java
+30
-0
order-application-service/src/main/java/cn/freemud/entities/dto/pay/PayProductDto.java
+13
-0
order-application-service/src/main/java/cn/freemud/entities/dto/pay/UnifiedOrderRequestDto.java
+46
-0
order-application-service/src/main/java/cn/freemud/service/impl/PointsMallOrderServiceImpl.java
+0
-0
order-application-service/src/main/java/cn/freemud/service/thirdparty/PaymentNewClient.java
+11
-1
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/order/FacePayResponseDto.java
View file @
0df7c7e1
package
cn
.
freemud
.
entities
.
dto
.
order
;
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
cn.freemud.entities.dto.pay.PayOrderDto
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -27,4 +28,11 @@ public class FacePayResponseDto {
...
@@ -27,4 +28,11 @@ public class FacePayResponseDto {
private
Integer
merchantCoupon
;
private
Integer
merchantCoupon
;
private
Integer
platformCoupon
;
private
Integer
platformCoupon
;
// private Integer resultCode;
// private String resultMsg;
private
String
transId
;
// private String fmId;
// private String payCode;
private
PayOrderDto
payOrder
;
}
}
order-application-service/src/main/java/cn/freemud/entities/dto/pay/PayOrderDto.java
0 → 100644
View file @
0df7c7e1
package
cn
.
freemud
.
entities
.
dto
.
pay
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
lombok.Data
;
@Data
public
class
PayOrderDto
{
private
String
appid
;
@JsonProperty
(
"package"
)
private
String
packageX
;
@JsonProperty
(
"nonce_str"
)
private
String
nonceStr
;
private
String
sign
;
private
String
timestamp
;
private
String
signType
;
private
String
aliPayOrder
;
private
String
paySign
;
private
String
bizContent
;
private
String
thirdPartTradeNo
;
}
order-application-service/src/main/java/cn/freemud/entities/dto/pay/PayProductDto.java
0 → 100644
View file @
0df7c7e1
package
cn
.
freemud
.
entities
.
dto
.
pay
;
import
lombok.Data
;
@Data
public
class
PayProductDto
{
private
String
id
;
private
Integer
quantity
;
private
Long
price
;
private
String
name
;
}
order-application-service/src/main/java/cn/freemud/entities/dto/pay/UnifiedOrderRequestDto.java
0 → 100644
View file @
0df7c7e1
package
cn
.
freemud
.
entities
.
dto
.
pay
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.Map
;
@Data
public
class
UnifiedOrderRequestDto
{
/**
* * {"amount":1800,"body":"蜜雪冰城900507店","businessDate":"20210831","clientCode":130465,"foodOrderType":"pre_order",
* * "notifyUrl":"http://open-store-order-application-service.open-store.svc:9212/order/newPaySuccessCallback","openId":"2088332790804910",
* * "operatorId":"1","partnerId":2080,"payTimeOutTime":"25","products":[{"id":"209430924058928948","name":"鲜橙益菌多","price":900,"quantity":1},
* * {"id":"209516210115815203","name":"芝士奶盖红茶","price":900,"quantity":1}],"stationId":"1","storeId":"900507","transId":"22057814343976884800004",
* * "ver":"2","vipAmount":0}
*/
private
String
ver
=
"2"
;
private
Integer
reqtype
;
private
String
unifyid
;
private
String
partnerId
;
private
String
storeId
;
private
String
stationId
=
"1"
;
private
String
operatorId
=
"1"
;
private
String
transId
;
private
String
openId
;
private
String
businessDate
;
private
Long
clientCode
;
private
Long
amount
;
private
Long
undisAmount
;
private
String
goodsTag
;
private
List
<
PayProductDto
>
products
;
private
String
body
;
private
String
payCode
;
private
String
notifyUrl
;
private
Long
vipAmount
=
0L
;
private
String
foodOrderType
;
private
Integer
invoiceFlag
;
private
Map
<
String
,
String
>
extendParams
;
private
String
divideDetail
;
private
String
payTimeOutTime
;
private
Long
merchantDiscount
;
}
order-application-service/src/main/java/cn/freemud/service/impl/PointsMallOrderServiceImpl.java
View file @
0df7c7e1
This diff is collapsed.
Click to expand it.
order-application-service/src/main/java/cn/freemud/service/thirdparty/PaymentNewClient.java
View file @
0df7c7e1
package
cn
.
freemud
.
service
.
thirdparty
;
package
cn
.
freemud
.
service
.
thirdparty
;
import
cn.freemud.annotations.LogIgnoreFeign
;
import
cn.freemud.annotations.LogIgnoreFeign
;
import
cn.freemud.constant.ResponseCodeKeyConstant
;
import
cn.freemud.entities.dto.order.FacePayRequestDto
;
import
cn.freemud.entities.dto.order.FacePayRequestDto
;
import
cn.freemud.entities.dto.order.FacePayResponseDto
;
import
cn.freemud.entities.dto.order.FacePayResponseDto
;
import
cn.freemud.entities.dto.pay.UnifiedOrderRequestDto
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -29,8 +31,16 @@ public interface PaymentNewClient {
...
@@ -29,8 +31,16 @@ public interface PaymentNewClient {
/**
/**
* 扫脸支付
* 扫脸支付
*/
*/
@LogIgnoreFeign
(
logMessage
=
"facePay"
)
@LogIgnoreFeign
(
logMessage
=
"facePay"
,
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
)
@PostMapping
(
"paymentcenter/facePay"
)
@PostMapping
(
"paymentcenter/facePay"
)
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
FacePayResponseDto
>
facePay
(
@RequestBody
FacePayRequestDto
orderPayDto
);
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
FacePayResponseDto
>
facePay
(
@RequestBody
FacePayRequestDto
orderPayDto
);
/**
* 创建预支付订单,唤起支付
*/
@LogIgnoreFeign
(
logMessage
=
"unifiedOrder"
,
statusCodeFieldName
=
ResponseCodeKeyConstant
.
STATUS_CODE
)
@PostMapping
(
"paymentcenter/unifiedOrder"
)
com
.
freemud
.
application
.
sdk
.
api
.
base
.
BaseResponse
<
FacePayResponseDto
>
unifiedOrder
(
@RequestBody
UnifiedOrderRequestDto
requestDto
);
}
}
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