Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
6899a11a
Commit
6899a11a
authored
Jul 04, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新权益订单返回对象
parent
3dbe5eed
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
11 deletions
+47
-11
EquityMembersOrderController.java
...e/web/controller/system/EquityMembersOrderController.java
+3
-3
EquityMembersResultResponse.java
...va/share/system/response/EquityMembersResultResponse.java
+34
-0
EquityMembersOrderService.java
.../java/share/system/service/EquityMembersOrderService.java
+2
-2
OrderPayService.java
...m/src/main/java/share/system/service/OrderPayService.java
+2
-1
EquityMembersOrderServiceImpl.java
...re/system/service/impl/EquityMembersOrderServiceImpl.java
+3
-3
OrderPayServiceImpl.java
...n/java/share/system/service/impl/OrderPayServiceImpl.java
+3
-2
No files found.
share-front/src/main/java/share/web/controller/system/EquityMembersOrderController.java
View file @
6899a11a
...
@@ -16,7 +16,7 @@ import share.common.utils.poi.ExcelUtil;
...
@@ -16,7 +16,7 @@ import share.common.utils.poi.ExcelUtil;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.vo.EquityMembersOrderVo
;
import
share.system.domain.vo.EquityMembersOrderVo
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.response.
RechargePay
ResultResponse
;
import
share.system.response.
EquityMembers
ResultResponse
;
import
share.system.service.EquityMembersOrderService
;
import
share.system.service.EquityMembersOrderService
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -94,11 +94,11 @@ public class EquityMembersOrderController extends BaseController {
...
@@ -94,11 +94,11 @@ public class EquityMembersOrderController extends BaseController {
}
}
@PostMapping
(
"/createEquityMembers"
)
@PostMapping
(
"/createEquityMembers"
)
public
R
<
RechargePay
ResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateEquityMembersRequest
request
)
{
public
R
<
EquityMembers
ResultResponse
>
createOrder
(
@RequestBody
@Validated
CreateEquityMembersRequest
request
)
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"SOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
log
.
info
(
"SOrderController method preOrder 入参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
request
));
}
}
RechargePay
ResultResponse
response
=
equityMembersOrderService
.
createEquityMembers
(
request
);
EquityMembers
ResultResponse
response
=
equityMembersOrderService
.
createEquityMembers
(
request
);
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
if
(
"1"
.
equals
(
redisUtil
.
frontInOutLogSwitch
()))
{
log
.
info
(
"SOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
log
.
info
(
"SOrderController method preOrder 出参 {}"
,
JsonConvertUtil
.
write2JsonStr
(
response
));
}
}
...
...
share-system/src/main/java/share/system/response/EquityMembersResultResponse.java
0 → 100644
View file @
6899a11a
package
share
.
system
.
response
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
share.system.domain.vo.WxPayJsResultVo
;
/**
* 订单支付结果 Response
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"EquityMembersResultResponse对象"
,
description
=
"订单支付结果响应对象"
)
public
class
EquityMembersResultResponse
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"支付状态"
)
private
Boolean
status
;
@ApiModelProperty
(
value
=
"微信调起支付参数对象"
)
private
WxPayJsResultVo
jsConfig
;
@ApiModelProperty
(
value
=
"支付类型"
)
private
String
payType
;
@ApiModelProperty
(
value
=
"订单编号"
)
private
String
rechargeNo
;
@ApiModelProperty
(
value
=
"微信支付回调的url"
)
private
String
notifyUrl
;
}
share-system/src/main/java/share/system/service/EquityMembersOrderService.java
View file @
6899a11a
...
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.vo.EquityMembersOrderVo
;
import
share.system.domain.vo.EquityMembersOrderVo
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.response.
RechargePay
ResultResponse
;
import
share.system.response.
EquityMembers
ResultResponse
;
import
java.util.List
;
import
java.util.List
;
...
@@ -63,7 +63,7 @@ public interface EquityMembersOrderService extends IService<EquityMembersOrder>
...
@@ -63,7 +63,7 @@ public interface EquityMembersOrderService extends IService<EquityMembersOrder>
*/
*/
public
int
deleteEquityMembersOrderById
(
Long
id
);
public
int
deleteEquityMembersOrderById
(
Long
id
);
RechargePay
ResultResponse
createEquityMembers
(
CreateEquityMembersRequest
request
);
EquityMembers
ResultResponse
createEquityMembers
(
CreateEquityMembersRequest
request
);
EquityMembersOrder
getInfoByEntity
(
EquityMembersOrder
equityMembersOrderParam
);
EquityMembersOrder
getInfoByEntity
(
EquityMembersOrder
equityMembersOrderParam
);
...
...
share-system/src/main/java/share/system/service/OrderPayService.java
View file @
6899a11a
...
@@ -3,6 +3,7 @@ package share.system.service;
...
@@ -3,6 +3,7 @@ package share.system.service;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.Recharge
;
import
share.system.domain.Recharge
;
import
share.system.domain.SOrder
;
import
share.system.domain.SOrder
;
import
share.system.response.EquityMembersResultResponse
;
import
share.system.response.OrderPayResultResponse
;
import
share.system.response.OrderPayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
...
@@ -33,6 +34,6 @@ public interface OrderPayService {
...
@@ -33,6 +34,6 @@ public interface OrderPayService {
*/
*/
RechargePayResultResponse
saobeiRechargePayment
(
Recharge
recharge
);
RechargePayResultResponse
saobeiRechargePayment
(
Recharge
recharge
);
RechargePay
ResultResponse
saobeiEquityMembersOrderPayment
(
EquityMembersOrder
equityMembersOrder
);
EquityMembers
ResultResponse
saobeiEquityMembersOrderPayment
(
EquityMembersOrder
equityMembersOrder
);
}
}
share-system/src/main/java/share/system/service/impl/EquityMembersOrderServiceImpl.java
View file @
6899a11a
...
@@ -20,7 +20,7 @@ import share.system.domain.vo.EquityMembersOrderVo;
...
@@ -20,7 +20,7 @@ import share.system.domain.vo.EquityMembersOrderVo;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.mapper.EquityMembersOrderMapper
;
import
share.system.mapper.EquityMembersOrderMapper
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.request.CreateEquityMembersRequest
;
import
share.system.response.
RechargePay
ResultResponse
;
import
share.system.response.
EquityMembers
ResultResponse
;
import
share.system.service.*
;
import
share.system.service.*
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -120,7 +120,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
...
@@ -120,7 +120,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
}
}
@Override
@Override
public
RechargePay
ResultResponse
createEquityMembers
(
CreateEquityMembersRequest
request
)
{
public
EquityMembers
ResultResponse
createEquityMembers
(
CreateEquityMembersRequest
request
)
{
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
if
(
ObjectUtil
.
isNull
(
user
))
{
if
(
ObjectUtil
.
isNull
(
user
))
{
throw
new
BaseException
(
"您的登录已过期,请先登录"
);
throw
new
BaseException
(
"您的登录已过期,请先登录"
);
...
@@ -133,7 +133,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
...
@@ -133,7 +133,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
}
}
EquityMembersOrder
equityMembersOrder
=
generatEquityMembersOrder
(
request
,
user
);
EquityMembersOrder
equityMembersOrder
=
generatEquityMembersOrder
(
request
,
user
);
save
(
equityMembersOrder
);
save
(
equityMembersOrder
);
RechargePay
ResultResponse
response
=
orderPayService
.
saobeiEquityMembersOrderPayment
(
equityMembersOrder
);
EquityMembers
ResultResponse
response
=
orderPayService
.
saobeiEquityMembersOrderPayment
(
equityMembersOrder
);
return
response
;
return
response
;
}
}
...
...
share-system/src/main/java/share/system/service/impl/OrderPayServiceImpl.java
View file @
6899a11a
...
@@ -25,6 +25,7 @@ import share.system.domain.Recharge;
...
@@ -25,6 +25,7 @@ import share.system.domain.Recharge;
import
share.system.domain.SConsumerToken
;
import
share.system.domain.SConsumerToken
;
import
share.system.domain.SOrder
;
import
share.system.domain.SOrder
;
import
share.system.domain.vo.*
;
import
share.system.domain.vo.*
;
import
share.system.response.EquityMembersResultResponse
;
import
share.system.response.OrderPayResultResponse
;
import
share.system.response.OrderPayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.service.*
;
import
share.system.service.*
;
...
@@ -334,8 +335,8 @@ public class OrderPayServiceImpl implements OrderPayService {
...
@@ -334,8 +335,8 @@ public class OrderPayServiceImpl implements OrderPayService {
* @return
* @return
*/
*/
@Override
@Override
public
RechargePay
ResultResponse
saobeiEquityMembersOrderPayment
(
EquityMembersOrder
equityMembersOrder
)
{
public
EquityMembers
ResultResponse
saobeiEquityMembersOrderPayment
(
EquityMembersOrder
equityMembersOrder
)
{
RechargePayResultResponse
response
=
new
RechargePay
ResultResponse
();
EquityMembersResultResponse
response
=
new
EquityMembers
ResultResponse
();
response
.
setRechargeNo
(
equityMembersOrder
.
getEquityOrderNo
());
response
.
setRechargeNo
(
equityMembersOrder
.
getEquityOrderNo
());
response
.
setPayType
(
PayTypeEnum
.
getEnumByCode
(
equityMembersOrder
.
getPayType
().
intValue
()).
getValue
());
response
.
setPayType
(
PayTypeEnum
.
getEnumByCode
(
equityMembersOrder
.
getPayType
().
intValue
()).
getValue
());
response
.
setStatus
(
YesNoEnum
.
no
.
getFlag
());
response
.
setStatus
(
YesNoEnum
.
no
.
getFlag
());
...
...
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