订单列表
This commit is contained in:
parent
cd9ab53d72
commit
9269231ee6
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.czg.controller.admin;
|
||||||
|
|
||||||
|
import com.czg.order.dto.OrderInfoQueryDTO;
|
||||||
|
import com.czg.order.service.OrderInfoService;
|
||||||
|
import com.czg.order.vo.OrderInfoVo;
|
||||||
|
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.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单管理
|
||||||
|
* @author ww
|
||||||
|
* @description
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("admin/order")
|
||||||
|
public class OrderController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private OrderInfoService orderInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单列表
|
||||||
|
*/
|
||||||
|
@GetMapping
|
||||||
|
public CzgResult<Page<OrderInfoVo>> getOrderPage(@RequestBody OrderInfoQueryDTO queryDTO) {
|
||||||
|
queryDTO.setShopId(StpKit.USER.getShopId());
|
||||||
|
return CzgResult.success(orderInfoService.getOrderByPage(queryDTO));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue