|
@@ -44,6 +44,7 @@ import org.springframework.cache.annotation.CachePut;
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -136,7 +137,18 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
@Override
|
|
@Override
|
|
public IPage<TEExamQueryDto> examQuery(IPage<Map> iPage, Long userId, Long id, String code, String name,
|
|
public IPage<TEExamQueryDto> examQuery(IPage<Map> iPage, Long userId, Long id, String code, String name,
|
|
String mode, Integer enable, Long orgId, String type, Boolean finished) {
|
|
String mode, Integer enable, Long orgId, String type, Boolean finished) {
|
|
- return teExamMapper.examQuery(iPage, userId, id, code, name, mode, enable, orgId, type, finished);
|
|
|
|
|
|
+ IPage<TEExamQueryDto> teExamQueryDtoIPage = teExamMapper.examQuery(iPage, userId, id, code, name, mode, enable, orgId, type, finished);
|
|
|
|
+ if (Objects.nonNull(teExamQueryDtoIPage) && !CollectionUtils.isEmpty(teExamQueryDtoIPage.getRecords())) {
|
|
|
|
+ for (TEExamQueryDto t : teExamQueryDtoIPage.getRecords()) {
|
|
|
|
+ if (Objects.nonNull(t.getRoomCode())) {
|
|
|
|
+ t.setRoomCodeList(Arrays.asList(t.getRoomCode().split(",")));
|
|
|
|
+ }
|
|
|
|
+ if (Objects.nonNull(t.getRoomName())) {
|
|
|
|
+ t.setRoomNameList(Arrays.asList(t.getRoomName().split(",")));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return teExamQueryDtoIPage;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|