| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <br> |
| | |
| | | return AjaxResult.success(vo); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/add") |
| | | @ApiOperation("生产报工-新增") |
| | | public AjaxResult addProductionRecordService(@RequestBody ProductionRecordDto dto) { |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @DeleteMapping("/{productMainId}") |
| | | @ApiOperation("生产报工-删除") |
| | | public AjaxResult deleteProductMain(@PathVariable Long productMainId) { |
| | | productionRecordService.deleteProductMain(productMainId); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | @GetMapping("/detail/{productMainId}") |
| | | @ApiOperation("生产报工-详情") |
| | | public AjaxResult detailProductMain(@PathVariable Long productMainId) { |
| | | ProductionRecordDto dto = productionRecordService.detailProductMain(productMainId); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @PostMapping("/edit") |
| | | @ApiOperation("生产报工-编辑") |
| | | public AjaxResult editProductMain(@RequestBody ProductionRecordDto dto) { |
| | | productionRecordService.editProductMain(dto); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |