Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
e1503e42
Commit
e1503e42
authored
Sep 05, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善web-app端与管理端复制订单业务
parent
e5c1b062
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
300 additions
and
42 deletions
+300
-42
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+268
-42
OrderController.java
.../module/order/controller/admin/order/OrderController.java
+10
-0
MyOrderController.java
.../module/order/controller/app/order/MyOrderController.java
+22
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
e1503e42
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/order/OrderController.java
View file @
e1503e42
...
@@ -160,6 +160,16 @@ public class OrderController {
...
@@ -160,6 +160,16 @@ public class OrderController {
}
}
@PostMapping
(
"/copy/{copyOrderId}"
)
@ApiOperation
(
"复制订单"
)
@DynamicRateLimiter
(
base
=
"#Headers['Authorization']"
,
permits
=
1
)
@Idempotent
(
timeout
=
5
)
public
CommonResult
<
Long
>
copyOrder
(
@PathVariable
Long
copyOrderId
)
{
Long
orderId
=
orderService
.
copyOrder
(
copyOrderId
,
null
);
return
success
(
orderId
);
}
@PutMapping
(
"/update"
)
@PutMapping
(
"/update"
)
@ApiOperation
(
"更新订单"
)
@ApiOperation
(
"更新订单"
)
@Idempotent
(
timeout
=
5
)
@Idempotent
(
timeout
=
5
)
...
...
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/app/order/MyOrderController.java
View file @
e1503e42
...
@@ -158,6 +158,28 @@ public class MyOrderController {
...
@@ -158,6 +158,28 @@ public class MyOrderController {
return
success
(
orderService
.
createOrder
(
createReqVO
,
memberUserDO
).
getOrderId
());
return
success
(
orderService
.
createOrder
(
createReqVO
,
memberUserDO
).
getOrderId
());
}
}
@PostMapping
(
"/copy/{copyOrderId}"
)
@DynamicRateLimiter
(
base
=
"#Headers['Authorization']"
,
permits
=
1
)
@ApiOperation
(
value
=
"复制订单"
,
notes
=
"发货人只取当前用户信息,收货人取当前用户的客户信息"
)
@Idempotent
(
timeout
=
15
)
@PreAuthenticated
public
CommonResult
<
Long
>
copyOrder
(
@PathVariable
Long
copyOrderId
)
{
LoginUser
loginUser
=
SecurityFrameworkUtils
.
getLoginUser
();
Integer
userType
=
loginUser
.
getUserType
();
if
(
userType
!=
1
){
return
error
(
UNAUTHORIZED
);
}
Long
userId
=
loginUser
.
getId
();
MemberUserDO
memberUserDO
=
memberUserService
.
info
(
userId
);
if
(
Objects
.
isNull
(
memberUserDO
)
||
memberUserDO
.
getStatus
()
==
1
||
memberUserDO
.
getDeleted
())
{
return
error
(
MEMBER_NOT_EXISTS
);
}
Long
orderId
=
orderService
.
copyOrder
(
copyOrderId
,
memberUserDO
);
return
success
(
orderId
);
}
@PostMapping
(
"/checkKycStatus"
)
@PostMapping
(
"/checkKycStatus"
)
@ApiOperation
(
"检查kyc状态"
)
@ApiOperation
(
"检查kyc状态"
)
public
CommonResult
<
Boolean
>
checkKycStatus
(
OrderKycReqVO
kycReqVO
)
{
public
CommonResult
<
Boolean
>
checkKycStatus
(
OrderKycReqVO
kycReqVO
)
{
...
...
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