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
a702d8a5
Commit
a702d8a5
authored
Dec 09, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运备货-新增无需打包批量操作
parent
09e16c02
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
OrderWarehouseInService.java
...der/service/orderWarehouseIn/OrderWarehouseInService.java
+6
-1
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+8
-0
OrderWarehouseInController.java
...er/admin/orderWarehouseIn/OrderWarehouseInController.java
+7
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInService.java
View file @
a702d8a5
...
...
@@ -241,6 +241,11 @@ public interface OrderWarehouseInService extends IService<OrderWarehouseInDO> {
*/
void
noNeedToPack
(
Long
orderItemId
);
/**
* 批量不需要打包
* @param orderItemIds
*/
void
noNeedToPacks
(
List
<
Long
>
orderItemIds
);
/**
* 完成备货请求
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
a702d8a5
...
...
@@ -5356,6 +5356,14 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
orderBusinessService
.
addOrderOperateLog
(
orderId
,
"仓库操作"
,
"无需打包-品名["
+
orderItemDO
.
getProdTitleZh
()
+
"]"
,
""
);
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
noNeedToPacks
(
List
<
Long
>
orderItemIds
)
{
for
(
Long
orderItemId
:
orderItemIds
)
{
noNeedToPack
(
orderItemId
);
}
}
/**
* 完成备货
*
...
...
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/orderWarehouseIn/OrderWarehouseInController.java
View file @
a702d8a5
...
...
@@ -374,6 +374,13 @@ public class OrderWarehouseInController {
return
success
(
true
);
}
@PostMapping
(
"/no-need-to-packs"
)
@ApiOperation
(
"批量无需打包"
)
@Idempotent
(
timeout
=
2
)
public
CommonResult
<
Boolean
>
noNeedToPacks
(
@RequestBody
List
<
Long
>
orderItemIds
)
{
orderWarehouseInService
.
noNeedToPacks
(
orderItemIds
);
return
success
(
true
);
}
@PutMapping
(
"/finish-stocked"
)
@ApiOperation
(
"完成备货"
)
...
...
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