| | |
| | | import io.swagger.annotations.*; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | @ValueAuth |
| | | @PostMapping("/getStandTreeBySampleType") |
| | | @ApiModelProperty("仅获取光纤的型号") |
| | | @ApiOperation("仅获取光纤的型号") |
| | | public Result<?> getStandTreeBySampleType(String laboratory, String sampleType){ |
| | | return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType)); |
| | | } |
| | | |
| | | @ValueClassify("标准库") |
| | | @ApiOperation("导入标准库") |
| | | @PostMapping("/inExcelOfTree") |
| | | public Result inExcelOfTree(@RequestParam("file") MultipartFile file){ |
| | | standardTreeService.inExcelOfTree(file); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation("重置标准库单价") |
| | | @PostMapping("/resetTreeOfPrice") |
| | | public Result resetTreeOfPrice(String tree, Integer standardId){ |
| | | standardTreeService.resetTreeOfPrice(tree, standardId); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation("重置标准库工时系数") |
| | | @PostMapping("/resetTreeOfHour") |
| | | public Result resetTreeOfHour(String tree, Integer standardId){ |
| | | standardTreeService.resetTreeOfHour(tree, standardId); |
| | | return Result.success(); |
| | | } |
| | | } |