| | |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationStandardEnum; |
| | | import org.jeecg.modules.eam.constant.TechnicalStatusEvaluationStandardStatusEnum; |
| | | import org.jeecg.modules.eam.entity.EamTechnicalStatusEvaluationStandard; |
| | | import org.jeecg.modules.eam.request.EamTechnicalStatusEvaluationStandardRequest; |
| | | import org.jeecg.modules.eam.service.IEamTechnicalStatusEvaluationStandardService; |
| | |
| | | public Result<?> submit(@RequestParam(name = "id", required = true) String id) { |
| | | EamTechnicalStatusEvaluationStandard entity = eamTechnicalStatusEvaluationStandardService.getById(id); |
| | | if (entity != null) { |
| | | entity.setStandardStatus(TechnicalStatusEvaluationStandardEnum.ENABLE.name()); |
| | | entity.setStandardStatus(TechnicalStatusEvaluationStandardStatusEnum.ENABLE.name()); |
| | | eamTechnicalStatusEvaluationStandardService.updateById(entity); |
| | | } |
| | | return Result.OK("提交成功!"); |
| | |
| | | return Result.ok("所有文件导入成功:" + response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询已存在可用的技术状态鉴定规范的设备 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "技术状态鉴定规范-查询已存在可用的技术状态鉴定规范的设备", notes = "技术状态鉴定规范-查询已存在可用的技术状态鉴定规范的设备") |
| | | @GetMapping(value = "/selectEnableEquipment") |
| | | public Result<?> selectEnableEquipment(@RequestParam(name = "keyword", required = false) String keyword, |
| | | @RequestParam(name = "equipmentId", required = false) String equipmentId, |
| | | @RequestParam(value = "pageSize", required = false, defaultValue = "20") Integer pageSize) { |
| | | List<EamTechnicalStatusEvaluationStandard> list = eamTechnicalStatusEvaluationStandardService.queryListByKeyword(keyword, equipmentId, pageSize); |
| | | return Result.OK(list); |
| | | } |
| | | } |