| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "上传附件") |
| | | @PreAuthorize("@ss.hasPermi('upload:order:file')") |
| | | @PostMapping("/uploadFile") |
| | | public Result<?> taskUploadFile(Integer orderId, MultipartFile file) { |
| | | return Result.success(insOrderPlanService.uploadFile(orderId, file)); |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "删除附件") |
| | | @PreAuthorize("@ss.hasPermi('del:order:file')") |
| | | @DeleteMapping("/delfile") |
| | | public Result<?> delfile(Integer id) { |
| | | return Result.success(insOrderFileService.removeById(id)); |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "修改检验项内容") |
| | | @PreAuthorize("@ss.hasPermi('update:product:onPlan')") |
| | | @PostMapping("/updateProductOnPlan") |
| | | public Result<?> updateProductOnPlan(@RequestBody InsProduct insProduct) { |
| | | insProductService.updateById(insProduct); |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "删除特殊检验项绑定信息") |
| | | @GetMapping("/delProductTreeByProductId") |
| | | @DeleteMapping("/delProductTreeByProductId") |
| | | public Result<?> delProductTreeByProductId(Integer productId) { |
| | | return Result.success(insProductService.removeBindingProductTree(productId)); |
| | | } |