|
|
@@ -244,21 +244,19 @@ public class LSReportServiceImpl extends BaseServiceImpl<LSReportMapper, TauvRep |
|
|
|
Integer questionNum = inspectFileService.getReviewNumByInspectDriverId(item.getId(), report.getInspectDriverId()); |
|
|
|
// 报告备注 |
|
|
|
TauvReportRemark remarkInfo = reportRemarkService.getInfoByReportIdAndQuestionId(report.getId(), report.getId()); |
|
|
|
if (remarkInfo != null) { |
|
|
|
LSReportQuestionListVo reportQuestionListVo = new LSReportQuestionListVo(); |
|
|
|
reportQuestionListVo.setId(item.getId()); |
|
|
|
reportQuestionListVo.setCategory(item.getCategory()); |
|
|
|
reportQuestionListVo.setCategoryName(categoryList.get(item.getCategory())); |
|
|
|
reportQuestionListVo.setType(item.getType()); |
|
|
|
reportQuestionListVo.setTypeName(typeList.get(item.getType())); |
|
|
|
reportQuestionListVo.setQuestionNum(questionNum); |
|
|
|
reportQuestionListVo.setRemark(remarkInfo.getRemark()); |
|
|
|
reportQuestionListVo.setContent(item.getContent()); |
|
|
|
reportQuestionListVo.setNote(item.getNote()); |
|
|
|
reportQuestionListVo.setExamineScore(remarkInfo.getExamineScore()); |
|
|
|
reportQuestionListVo.setCheckScore(remarkInfo.getCheckScore()); |
|
|
|
reportQuestionListVoList.add(reportQuestionListVo); |
|
|
|
} |
|
|
|
LSReportQuestionListVo reportQuestionListVo = new LSReportQuestionListVo(); |
|
|
|
reportQuestionListVo.setId(item.getId()); |
|
|
|
reportQuestionListVo.setCategory(item.getCategory()); |
|
|
|
reportQuestionListVo.setCategoryName(categoryList.get(item.getCategory())); |
|
|
|
reportQuestionListVo.setType(item.getType()); |
|
|
|
reportQuestionListVo.setTypeName(typeList.get(item.getType())); |
|
|
|
reportQuestionListVo.setQuestionNum(questionNum); |
|
|
|
reportQuestionListVo.setRemark(remarkInfo != null ? remarkInfo.getRemark() : ""); |
|
|
|
reportQuestionListVo.setContent(item.getContent()); |
|
|
|
reportQuestionListVo.setNote(item.getNote()); |
|
|
|
reportQuestionListVo.setExamineScore(remarkInfo != null ? remarkInfo.getExamineScore() : 0); |
|
|
|
reportQuestionListVo.setCheckScore(remarkInfo != null ? remarkInfo.getCheckScore() : 0); |
|
|
|
reportQuestionListVoList.add(reportQuestionListVo); |
|
|
|
}); |
|
|
|
} |
|
|
|
// 加入报告 |