xin
2025-06-24 3e5c32288447da14ad6032aeb5bf5f79fa9a0560
oying-system/src/main/java/com/oying/modules/sh/rest/OrderProductSnapshotController.java
@@ -5,17 +5,20 @@
import com.oying.modules.sh.service.OrderProductSnapshotService;
import com.oying.modules.sh.domain.dto.OrderProductSnapshotQueryCriteria;
import lombok.RequiredArgsConstructor;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.oying.utils.PageResult;
/**
* @author lixin
@@ -39,7 +42,7 @@
    @GetMapping
    @ApiOperation("查询订单商品快照")
    @PreAuthorize("@el.check('orderProductSnapshot:list')")
    public ResponseEntity<PageResult<OrderProductSnapshot>> queryOrderProductSnapshot(OrderProductSnapshotQueryCriteria criteria){
    public ResponseEntity<Object> queryOrderProductSnapshot(OrderProductSnapshotQueryCriteria criteria) {
        Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
        return new ResponseEntity<>(orderProductSnapshotService.queryAll(criteria,page),HttpStatus.OK);
    }