批量发货

This commit is contained in:
wyn
2026-07-01 09:52:54 +08:00
parent 7bddd3d012
commit dbcf3151bd
4 changed files with 74 additions and 0 deletions

View File

@@ -1222,6 +1222,17 @@ public class BuyOrderController {
return buyOrderService.delivery(expressCompanyCode, buyOrderProductId);
}
/**
* 批量订单发货仅支持单商品且数量为1的订单快递公司固定顺丰 SF
*
* @param orderIds 订单 ID 列表
* @return R存在不符合条件的订单时 msg 为逗号拼接的订单号
*/
@RequestMapping(value = "/batchDelivery", method = RequestMethod.POST)
public R batchDelivery(@RequestBody List<Integer> orderIds) throws Exception {
return buyOrderService.batchDelivery("SF", orderIds);
}
@RequestMapping("/mytest")
public R mytest() throws IOException {
String mytest = buyOrderService.mytest();