修改接口

This commit is contained in:
yf001217 2026-04-20 13:50:57 +08:00
parent da04ac9e72
commit 83098677eb
5 changed files with 15 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* COA审核 Controller
* COA审核
*/
@RestController
@RequestMapping("/coaReview")

View File

@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* COA通知管理 Controller
* COA通知管理
*/
@RestController
@RequestMapping("/coaTask")

View File

@ -39,7 +39,7 @@ import java.time.LocalDate;
import java.util.List;
/**
* 检测项管理 Controller
* 检测项管理
*/
@RestController
@RequestMapping("/inspectionItem")

View File

@ -77,6 +77,11 @@ public class QmsCoaReviewDetailVO {
*/
private String coaFile;
/**
* 报告模板
*/
private String reportTemplate;
/**
* 创建时间
*/

View File

@ -558,6 +558,13 @@ public class QmsCoaReviewServiceImpl extends ServiceImpl<QmsCoaReviewMapper, Qms
vo.setSqeName(user.getUserName());
}
}
// 报告模板从任务表获取
if (Objects.nonNull(review.getTaskId())) {
QmsCoaTask task = coaTaskService.getById(review.getTaskId());
if (Objects.nonNull(task)) {
vo.setReportTemplate(task.getReportTemplate());
}
}
return vo;
}