| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.basic.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.basic.pojo.ProductSupplierDensity; |
| | | import com.ruoyi.basic.service.ProductSupplierDensityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | /** |
| | | * 产ååå®¶å¯åº¦ç»å®è¡¨ |
| | | * |
| | | * @author zhuo |
| | | * @since 2024-09-19 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/productSupplierDensity") |
| | | @AllArgsConstructor |
| | | @Api(tags = "产ååå®¶å¯åº¦ç»å®") |
| | | public class ProductSupplierDensityController { |
| | | |
| | | private ProductSupplierDensityService productSupplierDensityService; |
| | | |
| | | @ApiOperation(value = "æ ¹æ®äº§åidæ¥è¯¢åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/selectSupplierDensityByProductId") |
| | | public Result selectSupplierDensityByProductId(Page page,ProductSupplierDensity supplierDensity) { |
| | | return Result.success(productSupplierDensityService.selectByProductId(page, supplierDensity)); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ°å¢åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/addProductSupplierDensity") |
| | | public Result addProductSupplierDensity(@RequestBody ProductSupplierDensity supplierDensity) { |
| | | productSupplierDensityService.addProductSupplierDensity(supplierDensity); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/updateProductSupplierDensity") |
| | | public Result updateProductSupplierDensity(@RequestBody ProductSupplierDensity supplierDensity) { |
| | | productSupplierDensityService.updateProductSupplierDensity(supplierDensity); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤åå®¶å¯åº¦ç»å®") |
| | | @PostMapping("/deleteProductSupplierDensity") |
| | | public Result deleteProductSupplierDensity(Integer id) { |
| | | productSupplierDensityService.removeById(id); |
| | | return Result.success(); |
| | | } |
| | | |
| | | } |
| | | |