|
|
@ -185,7 +185,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public CodeEnum saveScore(QuestionDto.Score score, Long userId) throws IOException, NotSupportedFileTypeException { |
|
|
|
public CodeEnum saveScore(QuestionDto.Score score, Long userId) { |
|
|
|
|
|
|
|
log.info("保存分数{}", score); |
|
|
|
if (score.getPatientReportId() == null) { |
|
|
@ -400,7 +400,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
* @throws IOException |
|
|
|
* @throws NotSupportedFileTypeException |
|
|
|
*/ |
|
|
|
private List<HtPatientScore> getHtPatientScores(QuestionDto.Score score, HtQuestion question, HtPatientReport report, List<HtQuestionScoringRule> ruleList, Map<String, HtQuestionOption> nameOption, Map<Long, HtQuestionOption> idOption) throws IOException, NotSupportedFileTypeException { |
|
|
|
private List<HtPatientScore> getHtPatientScores(QuestionDto.Score score, HtQuestion question, HtPatientReport report, List<HtQuestionScoringRule> ruleList, Map<String, HtQuestionOption> nameOption, Map<Long, HtQuestionOption> idOption) { |
|
|
|
List<HtPatientScore> scores = new ArrayList<>(); |
|
|
|
for(QuestionDto.Option option : score.getOptions()) { |
|
|
|
HtQuestionOption questionOption = idOption.get(option.getId()); |
|
|
@ -1029,4 +1029,12 @@ public class QuestionService implements IQuestionService { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void saveRecord(List<QuestionDto.Record> records, Long userId) { |
|
|
|
if (CollectionUtil.isEmpty(records)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
// TODO
|
|
|
|
} |
|
|
|
} |
|
|
|