批量发货、课程报表、秒杀排序

This commit is contained in:
wyn
2026-07-02 15:46:41 +08:00
parent dbcf3151bd
commit 76f96ae804
10 changed files with 361 additions and 56 deletions

View File

@@ -1224,15 +1224,24 @@ public class BuyOrderController {
/**
* 批量订单发货仅支持单商品且数量为1的订单快递公司固定顺丰 SF
* 异步执行,立即返回 taskId通过 getBatchDeliveryProgress 查询进度
*
* @param orderIds 订单 ID 列表
* @return R存在不符合条件的订单时 msg 为逗号拼接的订单号
* @return R包含 taskId存在不符合条件的订单时 msg 为逗号拼接的订单号
*/
@RequestMapping(value = "/batchDelivery", method = RequestMethod.POST)
public R batchDelivery(@RequestBody List<Integer> orderIds) throws Exception {
return buyOrderService.batchDelivery("SF", orderIds);
}
/**
* 查询批量发货任务进度
*/
@RequestMapping(value = "/getBatchDeliveryProgress", method = RequestMethod.GET)
public R getBatchDeliveryProgress(@RequestParam("taskId") Integer taskId) {
return buyOrderService.getBatchDeliveryProgress(taskId);
}
@RequestMapping("/mytest")
public R mytest() throws IOException {
String mytest = buyOrderService.mytest();