| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.dto.TQaTestItemDTO; |
| | | import com.ruoyi.system.service.TResultWorkEvaluateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * <p> |
| | | * 实验员工作评定 前端控制器 |
| | | * 实验结果工作评定 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-04-08 |
| | | */ |
| | | @Api(tags = "实验员工作评定管理") |
| | | @Api(tags = "实验结果工作评定管理") |
| | | @RestController |
| | | @RequestMapping("/t-result-work-evaluate") |
| | | public class TResultWorkEvaluateController { |
| | | |
| | | private final TResultWorkEvaluateService resultWorkEvaluateService; |
| | | |
| | | @Autowired |
| | | public TResultWorkEvaluateController(TResultWorkEvaluateService resultWorkEvaluateService) { |
| | | this.resultWorkEvaluateService = resultWorkEvaluateService; |
| | | } |
| | | |
| | | /** |
| | | * 添加QA检测项管理管理 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:resultWorkEvaluate:add')") |
| | | @Log(title = "QA检测项管理信息-新增QA检测项管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加QA检测项管理",response = TQaTestItemDTO.class) |
| | | @PostMapping(value = "/api/t-qa-test-item/add") |
| | | public R<Boolean> add(@RequestBody String param) { |
| | | TQaTestItemDTO dto = JSON.parseObject(param,TQaTestItemDTO.class); |
| | | // resultWorkEvaluateService.save(dto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | | |