| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.production.dto.ProductWorkOrderDto; |
| | | import com.ruoyi.production.service.ProductWorkOrderService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/productWorkOrder") |
| | | public class ProductWorkOrderController { |
| | | |
| | | private ProductWorkOrderService productWorkOrderservice; |
| | | |
| | | |
| | | /** |
| | | * 产åå·¥åå®ä½ç±»å页æ¥è¯¢ |
| | | */ |
| | | @ApiOperation("产åå·¥åå®ä½ç±»å页æ¥è¯¢") |
| | | @GetMapping("/page") |
| | | public R page(Page<ProductWorkOrderDto> page, ProductWorkOrderDto productWorkOrder) { |
| | | return R.ok(productWorkOrderservice.listPage(page, productWorkOrder)); |
| | | } |
| | | |
| | | /** |
| | | * 产åå·¥åæ´æ° |
| | | */ |
| | | @ApiOperation("产å工忴æ°") |
| | | @PostMapping ("/updateProductWorkOrder") |
| | | public R updateProductWorkOrder(@RequestBody ProductWorkOrderDto productWorkOrderDto) { |
| | | return R.ok(productWorkOrderservice.updateProductWorkOrder(productWorkOrderDto)); |
| | | } |
| | | |
| | | } |