2026-04-22 d7ca504a668322be5137d3dc8e72072c4efbd9c9
src/main/java/com/ruoyi/sales/controller/ShipmentApprovalController.java
@@ -15,27 +15,23 @@
import com.ruoyi.sales.service.ShipmentApprovalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import jakarta.servlet.http.HttpServletResponse;
import lombok.AllArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@RestController
@RequestMapping("/shipmentApproval")
@Api(tags = "发货审批管理")
@AllArgsConstructor
public class ShipmentApprovalController extends BaseController {
    @Autowired
    private ShipmentApprovalService shipmentApprovalService;
    @Autowired
    private ShipmentApprovalMapper shipmentApprovalMapper;
    @Autowired
    private ISalesLedgerProductService salesLedgerProductService;
    @Autowired
    private StockUtils stockUtils;
    private final ShipmentApprovalService shipmentApprovalService;
    private final ShipmentApprovalMapper shipmentApprovalMapper;
    private final ISalesLedgerProductService salesLedgerProductService;
    private final StockUtils stockUtils;
    @GetMapping("/listPage")
    @ApiOperation("发货审批列表")
@@ -101,7 +97,7 @@
    @PostMapping("/export")
    @ApiOperation("导出发货审批")
    public void export(HttpServletResponse response) {
        List<ShipmentApproval> list = shipmentApprovalService.list(null);
        List<ShipmentApproval> list = shipmentApprovalService.list();
        ExcelUtil<ShipmentApproval> util = new ExcelUtil<ShipmentApproval>(ShipmentApproval.class);
        util.exportExcel(response, list, "发货审批");
    }