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
91571354
Commit
91571354
authored
Nov 04, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改强制到仓和撤销到仓请求参数传值方式
parent
58d76943
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
OrderWarehouseCheckController.java
...in/orderWarehouseCheck/OrderWarehouseCheckController.java
+5
-11
No files found.
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/orderWarehouseCheck/OrderWarehouseCheckController.java
View file @
91571354
...
@@ -9,13 +9,7 @@ import io.swagger.annotations.ApiImplicitParam;
...
@@ -9,13 +9,7 @@ import io.swagger.annotations.ApiImplicitParam;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
java.util.Collections
;
import
java.util.Collections
;
...
@@ -39,18 +33,18 @@ public class OrderWarehouseCheckController {
...
@@ -39,18 +33,18 @@ public class OrderWarehouseCheckController {
return
success
(
service
.
listByOrderItemId
(
orderItemId
));
return
success
(
service
.
listByOrderItemId
(
orderItemId
));
}
}
@PostMapping
(
"/force"
)
@PostMapping
(
"/force
/{orderId}
"
)
@ApiOperation
(
"强制到仓"
)
@ApiOperation
(
"强制到仓"
)
@ApiImplicitParam
(
name
=
"orderId"
,
value
=
"订单id"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"orderId"
,
value
=
"订单id"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
public
CommonResult
<
Boolean
>
force
(
@
RequestParam
(
"orderId"
)
Long
orderId
)
{
public
CommonResult
<
Boolean
>
force
(
@
PathVariable
(
"orderId"
)
Long
orderId
)
{
service
.
force
(
orderId
);
service
.
force
(
orderId
);
return
success
(
true
);
return
success
(
true
);
}
}
@PostMapping
(
"/revoke"
)
@PostMapping
(
"/revoke
/{orderId}
"
)
@ApiOperation
(
"撤销到仓"
)
@ApiOperation
(
"撤销到仓"
)
@ApiImplicitParam
(
name
=
"orderId"
,
value
=
"订单id"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
@ApiImplicitParam
(
name
=
"orderId"
,
value
=
"订单id"
,
required
=
true
,
example
=
"1024"
,
dataTypeClass
=
Long
.
class
)
public
CommonResult
<
Boolean
>
revoke
(
@
RequestParam
(
"orderId"
)
Long
orderId
)
{
public
CommonResult
<
Boolean
>
revoke
(
@
PathVariable
(
"orderId"
)
Long
orderId
)
{
service
.
revoke
(
orderId
);
service
.
revoke
(
orderId
);
return
success
(
true
);
return
success
(
true
);
}
}
...
...
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