订单列表 改为 post请求

This commit is contained in:
2025-02-15 10:21:20 +08:00
parent fe3fde33a1
commit 50f86a5144
3 changed files with 6 additions and 11 deletions

View File

@@ -7,9 +7,7 @@ import com.czg.resp.CzgResult;
import com.czg.sa.StpKit;
import com.mybatisflex.core.paginate.Page;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
@@ -27,8 +25,8 @@ public class AdminOrderController {
/**
* 订单列表
*/
@GetMapping
public CzgResult<Page<OrderInfoVo>> getOrderPage(OrderInfoQueryDTO queryDTO) {
@PostMapping
public CzgResult<Page<OrderInfoVo>> getOrderPage(@RequestBody OrderInfoQueryDTO queryDTO) {
queryDTO.setShopId(StpKit.USER.getShopId());
return CzgResult.success(orderInfoService.getOrderByPage(queryDTO));
}

View File

@@ -6,9 +6,7 @@ import com.czg.order.vo.OrderInfoVo;
import com.czg.resp.CzgResult;
import com.mybatisflex.core.paginate.Page;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
@@ -26,8 +24,8 @@ public class UserOrderController {
/**
* 订单列表
*/
@GetMapping
public CzgResult<Page<OrderInfoVo>> get(OrderInfoQueryDTO queryDTO) {
@PostMapping
public CzgResult<Page<OrderInfoVo>> get(@RequestBody OrderInfoQueryDTO queryDTO) {
return CzgResult.success(orderInfoService.getOrderByPage(queryDTO));
}
}

View File

@@ -1,6 +1,5 @@
package com.czg.service.order.dto;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;