liding
昨天 befc0e5606ab7c913dda0346152a4150d0ee5f79
basic-server/src/main/java/com/ruoyi/basic/controller/SupplyController.java
@@ -6,8 +6,9 @@
import com.ruoyi.basic.entity.Supply;
import com.ruoyi.basic.service.SupplyService;
import com.ruoyi.common.core.domain.R;
import org.springframework.web.bind.annotation.*;
import jakarta.servlet.http.HttpServletResponse;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -22,7 +23,7 @@
@RestController
@AllArgsConstructor
@RequestMapping("/basic/supply")
@RequestMapping("/supply")
public class SupplyController {
    private SupplyService supplyService;
@@ -31,9 +32,17 @@
     * 查询
     */
    @GetMapping("/list")
    public R<IPage<Supply>> list(Page page,SupplyDto supplyDto) {
        IPage<Supply> list = supplyService.selectSupplyList(page,supplyDto);
    public R<IPage<Supply>> list(Page page, SupplyDto supplyDto) {
        IPage<Supply> list = supplyService.selectSupplyList(page, supplyDto);
        return R.ok(list);
    }
    /**
     * 供应商
     */
    @GetMapping("/supplyList")
    public R<List<Supply>> list() {
        return R.ok(supplyService.supplyList());
    }
    /**
@@ -52,4 +61,12 @@
        return R.ok(supplyService.delSupplyByIds(ids));
    }
    /**
     * 供应商导出
     */
    @PostMapping("/export")
    public void supplierExport(HttpServletResponse response, SupplyDto supplyDto) {
        supplyService.supplyExport(response, supplyDto);
    }
}