Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
de06e96d
Commit
de06e96d
authored
May 12, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单号BUG
parent
da78b73a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
RefundController.java
.../main/java/com/fzm/admin/controller/RefundController.java
+10
-2
Order.java
joying-common/src/main/java/com/fzm/common/entity/Order.java
+8
-0
No files found.
joying-admin/src/main/java/com/fzm/admin/controller/RefundController.java
View file @
de06e96d
...
...
@@ -2,6 +2,8 @@ package com.fzm.admin.controller;
import
com.fzm.common.annotation.Authentication
;
import
com.fzm.common.entity.vo.PaymentVo
;
import
com.fzm.common.enums.ResultCode
;
import
com.fzm.common.exception.GlobalException
;
import
com.fzm.common.model.ResponseModel
;
import
com.fzm.common.service.RefundService
;
import
com.github.pagehelper.PageInfo
;
...
...
@@ -46,8 +48,14 @@ public class RefundController {
@GetMapping
(
"/submit"
)
@ApiOperation
(
value
=
"提交退款申请"
)
public
ResponseModel
<
Boolean
>
submit
(
@ApiParam
(
required
=
true
,
value
=
"订单id"
)
@RequestParam
Long
orderId
)
throws
IOException
,
InterruptedException
{
Boolean
result
=
refundService
.
submit
(
orderId
);
public
ResponseModel
<
Boolean
>
submit
(
@ApiParam
(
required
=
true
,
value
=
"订单id"
)
@RequestParam
String
orderId
)
throws
IOException
,
InterruptedException
{
long
oid
;
try
{
oid
=
Long
.
parseLong
(
orderId
);
}
catch
(
Exception
e
)
{
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"订单号错误"
);
}
Boolean
result
=
refundService
.
submit
(
oid
);
return
ResponseModel
.
success
(
result
);
}
}
joying-common/src/main/java/com/fzm/common/entity/Order.java
View file @
de06e96d
...
...
@@ -17,6 +17,9 @@ public class Order {
@ApiModelProperty
(
"主键"
)
private
Long
id
;
@ApiModelProperty
(
"订单编号"
)
private
String
orderId
;
@ApiModelProperty
(
"订单名"
)
private
String
orderName
;
...
...
@@ -43,4 +46,9 @@ public class Order {
@ApiModelProperty
(
"最后一次修改时间"
)
private
Date
updateDate
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
orderId
=
String
.
valueOf
(
id
);
}
}
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