修改接口
This commit is contained in:
parent
da04ac9e72
commit
83098677eb
|
|
@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* COA审核 Controller
|
||||
* COA审核
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/coaReview")
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* COA通知管理 Controller
|
||||
* COA通知管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/coaTask")
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import java.time.LocalDate;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 检测项管理 Controller
|
||||
* 检测项管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/inspectionItem")
|
||||
|
|
|
|||
|
|
@ -77,6 +77,11 @@ public class QmsCoaReviewDetailVO {
|
|||
*/
|
||||
private String coaFile;
|
||||
|
||||
/**
|
||||
* 报告模板
|
||||
*/
|
||||
private String reportTemplate;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue