| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.production.dto.SaveProductionPrintOrderDto; |
| | | import com.ruoyi.production.pojo.ProductionPrintOrder; |
| | | import com.ruoyi.production.service.ProductionPrintOrderService; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.RequiredArgsConstructor; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author buhuazhen |
| | |
| | | private final ProductionPrintOrderService productionPrintOrderService; |
| | | |
| | | @PostMapping("/save") |
| | | public void save(@RequestBody SaveProductionPrintOrderDto dto){ |
| | | public R save(@RequestBody SaveProductionPrintOrderDto dto){ |
| | | productionPrintOrderService.save(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getByProductWordId/{id}") |
| | | public ProductionPrintOrder getByProductWordId(@PathVariable Long id){ |
| | | return productionPrintOrderService.getByProductWordId(id); |
| | | } |
| | | |
| | | } |