|
@@ -56,12 +56,18 @@ public class OutletPaperStructServiceImpl implements OutletPaperStructService {
|
|
|
try {
|
|
|
extractConfig = CacheHelper.getExtractConfig(examId, courseCode);
|
|
|
} catch (Exception e) {
|
|
|
- String err = "examId = " + examId + ", courseCode = " + courseCode + " " + e.getMessage();
|
|
|
- log.warn(err, e);
|
|
|
+ log.warn("extractConfig call api fail! examId:{}, courseCode:{}, err:{}", examId, courseCode, e.getMessage(), e);
|
|
|
}
|
|
|
|
|
|
- if (extractConfig == null || CollectionUtils.isEmpty(extractConfig.getDetails())) {
|
|
|
+ if (extractConfig == null) {
|
|
|
// 调卷规则不存在
|
|
|
+ log.warn("extractConfig is empty! examId:{}, courseCode:{}", examId, courseCode);
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+
|
|
|
+ if (CollectionUtils.isEmpty(extractConfig.getDetails())) {
|
|
|
+ // 调卷规则 试卷列表不存在
|
|
|
+ log.warn("extractConfig papers is empty! examId:{}, courseCode:{}, callType:{}", examId, courseCode, extractConfig.getCallType());
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
|