| | |
| | | import com.ruoyi.basic.entity.Supply; |
| | | import com.ruoyi.basic.service.SupplyService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * 查询 |
| | | */ |
| | | @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()); |
| | | } |
| | | |
| | | /** |
| | |
| | | return R.ok(supplyService.delSupplyByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 供应商导出 |
| | | */ |
| | | @PostMapping("/export") |
| | | public void supplierExport(HttpServletResponse response, SupplyDto supplyDto) { |
| | | supplyService.supplyExport(response, supplyDto); |
| | | } |
| | | |
| | | } |