Commit a702d8a5 authored by honghy's avatar honghy

空运备货-新增无需打包批量操作

parent 09e16c02
......@@ -241,6 +241,11 @@ public interface OrderWarehouseInService extends IService<OrderWarehouseInDO> {
*/
void noNeedToPack(Long orderItemId);
/**
* 批量不需要打包
* @param orderItemIds
*/
void noNeedToPacks(List<Long> orderItemIds);
/**
* 完成备货请求
......
......@@ -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);
}
}
/**
* 完成备货
*
......
......@@ -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("完成备货")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment