| | |
| | | |
| | | |
| | | import com.yuanchu.mom.pojo.dto.TechnicalModelDto; |
| | | import com.yuanchu.mom.pojo.dto.TechnologyTemplateDto; |
| | | import com.yuanchu.mom.service.TechnicalModelService; |
| | | import com.yuanchu.mom.utils.ServletUtils; |
| | | import com.yuanchu.mom.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.yuanchu.mom.service.TechnicalModelService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | @ApiOperation(value = "查询技术指标维护列表-->左边二级展示工序和工艺") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "type", value = "类型(为空=0橡胶连接器)", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "type", value = "类型(为空=0橡胶连接器)", dataTypeClass = String.class, required = true), |
| | | @ApiImplicitParam(name = "message", value = "搜索内容", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAllTechTem") |
| | | public Result selectAllTechTem(Integer type, String message) { |
| | | public Result selectAllTechTem(String type, String message) { |
| | | return Result.success(technicalModelService.selectAllTechTem(type, message)); |
| | | } |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "新增技术指标维护-->选择工序和工艺") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "type", value = "类型", dataTypeClass = Integer.class, required = true) |
| | | @ApiImplicitParam(name = "type", value = "类型", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @GetMapping("/chooseTechFath") |
| | | public Result chooseTechFath(Integer type) { |
| | | public Result chooseTechFath(String type) { |
| | | return Result.success(technicalModelService.chooseTechFath(type)); |
| | | } |
| | | |
| | |
| | | return Result.success("批量删除成功!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "type", value = "类型", dataTypeClass = String.class, required = true) |
| | | }) |
| | | public void downloadDataValueExcel(String type){ |
| | | HttpServletResponse response = ServletUtils.getResponse(); |
| | | technicalModelService.downloadDataValueExcel(response,type); |
| | | } |
| | | } |
| | | |