分店套餐 Id 不对问题
This commit is contained in:
@@ -34,14 +34,16 @@ public class UPpPackageController {
|
||||
|
||||
/**
|
||||
* 创建套餐推广订单
|
||||
* 参数: {"packageId": 123}
|
||||
* 参数: {"packageId": 123, "shopId": 123}
|
||||
*/
|
||||
@PostMapping("/order")
|
||||
public CzgResult<Long> createOrder(@RequestBody JSONObject params) {
|
||||
AssertUtil.isNull(params, "参数不能为空");
|
||||
Long packageId = params.getLong("packageId");
|
||||
AssertUtil.isNull(packageId, "参数错误");
|
||||
return CzgResult.success(ppPackageOrderService.createPackageOrder(packageId));
|
||||
Long shopId = params.getLong("shopId");
|
||||
AssertUtil.isNull(shopId, "参数错误");
|
||||
return CzgResult.success(ppPackageOrderService.createPackageOrder(packageId, shopId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user