Commit 3e8b30d1 by wangli

修改,非必填参数

1 parent 9a9798fb
......@@ -17,16 +17,16 @@ public class OrderServiceListController {
private OrderServiceListService orderServiceListService;
@GetMapping("/order/service/list")
public Result<?> getOrderServiceList(@RequestParam("startDate") String startDate,
@RequestParam("endDate") String endDate,
@RequestParam("page") long page,
@RequestParam("size") long size,
@RequestParam("sort") String sort,
@RequestParam("appointmentType") String appointmentType,
@RequestParam("appointmentStatus") String appointmentStatus,
@RequestParam("type") String type,
@RequestParam("brand") String brand,
@RequestParam("skill") String skill) {
public Result<?> getOrderServiceList(@RequestParam String startDate,
@RequestParam String endDate,
@RequestParam long page,
@RequestParam long size,
@RequestParam(required = false) String sort,
@RequestParam(required = false) String appointmentType,
@RequestParam(required = false) String appointmentStatus,
@RequestParam(required = false) String type,
@RequestParam(required = false) String brand,
@RequestParam(required = false) String skill) {
Result<?> res = null;
try {
res = orderServiceListService.getOrderServiceList(startDate, endDate, page, size, sort, appointmentType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!