批量发货、课程报表、秒杀排序
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user