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