|
@@ -254,21 +254,21 @@ public class CartClubApi {
|
|
|
@ApiOperation("计算运费(旧:/order/postage)")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(required = false, name = "userId", value = "用户Id"),
|
|
|
- @ApiImplicitParam(required = false, name = "productIds", value = "商品ids,逗号隔开"),
|
|
|
+ @ApiImplicitParam(required = false, name = "skuIds", value = "商品ids,逗号隔开"),
|
|
|
@ApiImplicitParam(required = false, name = "townId", value = "地区Id")
|
|
|
})
|
|
|
@GetMapping("/postage")
|
|
|
- public ResponseJson<Map<String, Object>> orderPostage(Integer userId, String productIds, Integer townId) {
|
|
|
+ public ResponseJson<Map<String, Object>> orderPostage(Integer userId, String skuIds, Integer townId) {
|
|
|
if (null == userId) {
|
|
|
return ResponseJson.error("用户Id不能为空!", null);
|
|
|
}
|
|
|
- if (StringUtils.isEmpty(productIds)) {
|
|
|
- return ResponseJson.error("商品Id集合不能为空!", null);
|
|
|
+ if (StringUtils.isEmpty(skuIds)) {
|
|
|
+ return ResponseJson.error("skuId集合不能为空!", null);
|
|
|
}
|
|
|
if (null == townId) {
|
|
|
return ResponseJson.error("地区Id不能为空!", null);
|
|
|
}
|
|
|
- return cartClubService.getProductsPostage(userId, productIds, townId);
|
|
|
+ return cartClubService.getProductsPostage(userId, skuIds, townId);
|
|
|
}
|
|
|
|
|
|
/**
|