|
@@ -9,7 +9,6 @@ import com.qmth.jkserver.enums.ExamType;
|
|
import com.qmth.jkserver.model.*;
|
|
import com.qmth.jkserver.model.*;
|
|
import com.qmth.jkserver.service.*;
|
|
import com.qmth.jkserver.service.*;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Scope;
|
|
import org.springframework.context.annotation.Scope;
|
|
import org.springframework.context.annotation.ScopedProxyMode;
|
|
import org.springframework.context.annotation.ScopedProxyMode;
|
|
@@ -22,10 +21,7 @@ import org.springframework.util.CollectionUtils;
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.text.DecimalFormat;
|
|
import java.text.DecimalFormat;
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 汇总统计service
|
|
* 汇总统计service
|
|
@@ -74,6 +70,9 @@ public class ExamKjHZServiceImpl implements ExamKjHZService {
|
|
@Resource
|
|
@Resource
|
|
JkExamSolfegeRecordDao jkExamSolfegeRecordDao;
|
|
JkExamSolfegeRecordDao jkExamSolfegeRecordDao;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ AttachmentService attachmentService;
|
|
|
|
+
|
|
private static final DecimalFormat FORMAT = new DecimalFormat("0.00%");
|
|
private static final DecimalFormat FORMAT = new DecimalFormat("0.00%");
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -272,7 +271,11 @@ public class ExamKjHZServiceImpl implements ExamKjHZService {
|
|
ExamKjProgress examKjProgress = findProgress(examRoom.getExamCode(), examRoom.getPlaceCode(),
|
|
ExamKjProgress examKjProgress = findProgress(examRoom.getExamCode(), examRoom.getPlaceCode(),
|
|
examRoom.getRoomCode());
|
|
examRoom.getRoomCode());
|
|
if (examKjProgress != null) {
|
|
if (examKjProgress != null) {
|
|
- dto.setAttachmentId(examKjProgress.getAttachmentId());
|
|
|
|
|
|
+ if (Objects.nonNull(examKjProgress.getAttachmentId())) {
|
|
|
|
+ dto.setAttachmentId(examKjProgress.getAttachmentId());
|
|
|
|
+ Attachment attachment = attachmentService.getById(examKjProgress.getAttachmentId());
|
|
|
|
+ dto.setAttachment(attachment);
|
|
|
|
+ }
|
|
dto.setTime(examKjProgress.getStartTime());
|
|
dto.setTime(examKjProgress.getStartTime());
|
|
dto.setType(examKjProgress.getType());
|
|
dto.setType(examKjProgress.getType());
|
|
}
|
|
}
|