| | |
| | | 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 lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/basic/supply") |
| | | @RequestMapping("/supply") |
| | | public class SupplyController { |
| | | |
| | | private SupplyService supplyService; |
| | |
| | | * 查询 |
| | | */ |
| | | @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()); |
| | | } |
| | | |
| | | /** |
| | | * 新增修改 |
| | | */ |
| | | @PostMapping("/addOrEditSupply") |