Commit 632176ee authored by 332784038@qq.com's avatar 332784038@qq.com Committed by wux

批量获取需要申请费用的订单详情接口修改

parent d18a8896
...@@ -11,6 +11,8 @@ import javax.validation.*; ...@@ -11,6 +11,8 @@ import javax.validation.*;
import javax.servlet.http.*; import javax.servlet.http.*;
import java.util.*; import java.util.*;
import java.io.IOException; import java.io.IOException;
import java.util.stream.Collectors;
import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.CommonResult; import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
...@@ -39,12 +41,12 @@ public class BatchOrderFeeApplyController { ...@@ -39,12 +41,12 @@ public class BatchOrderFeeApplyController {
} }
@PostMapping("/getOrderListByIds") @GetMapping("/getOrderListByIds")
@ApiOperation("批量获取需要申请费用的订单详情") @ApiOperation("批量获取需要申请费用的订单详情")
@ApiImplicitParam(name = "orderIds", value = "订单ids", required = true, example = "1024,2048,3072,4096", dataTypeClass = List.class) @ApiImplicitParam(name = "orderIds", value = "订单ids", required = true, example = "1024,2048,3072,4096", dataTypeClass = String.class)
@PreAuthorize("@ss.hasPermission('ecw:batch-order-fee-apply:query')") @PreAuthorize("@ss.hasPermission('ecw:batch-order-fee-apply:query')")
public CommonResult<List<OrderBackVO>> getOrderListByIds(List<Long> orderIds) { public CommonResult<List<OrderBackVO>> getOrderListByIds(String orderIds) {
return success(batchOrderFeeApplyService.getOrderListByIds(orderIds)); return success(batchOrderFeeApplyService.getOrderListByIds(Arrays.stream(orderIds.split(",")).map(Long::parseLong).collect(Collectors.toList())));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment