| | |
| | | import com.chinaztt.mes.common.wrapper.QueryWrapperUtil; |
| | | import com.chinaztt.ztt.common.core.util.R; |
| | | import com.chinaztt.ztt.common.log.annotation.SysLog; |
| | | import com.chinaztt.ztt.common.security.annotation.Inner; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | @ApiOperation(value = "导入的模板的下载", notes = "导入的模板的下载") |
| | | @GetMapping("/uploadTemplate/{fileName}" ) |
| | | public void uploadTemplate(@PathVariable String fileName, HttpServletResponse response) { |
| | | System.out.println(fileName); |
| | | basicParamTemplateService.uploadTemplate(response, fileName); |
| | | } |
| | | /** |
| | |
| | | |
| | | /** |
| | | * 通过id查询工序参数 |
| | | * @param id id |
| | | * @param id |
| | | * @return R |
| | | */ |
| | | @ApiOperation(value = "通过id查询工序参数", notes = "通过id查询工序参数") |
| | | @GetMapping("/param" ) |
| | | public R getParamById(Page page, ParamDTO paramDTO) { |
| | | return R.ok(basicParamTemplateService.getParamById(page,QueryWrapperUtil.gen(paramDTO))); |
| | | Long technologyOperationTemplateId = paramDTO.getTechnologyOperationTemplateId(); |
| | | return R.ok(basicParamTemplateService.getParamById(page,technologyOperationTemplateId)); |
| | | } |
| | | /** |
| | | * 新增工序模板 |