|
@@ -44,7 +44,6 @@ import org.springframework.cache.annotation.CachePut;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -137,18 +136,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
@Override
|
|
|
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) {
|
|
|
- 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;
|
|
|
+ return teExamMapper.examQuery(iPage, userId, id, code, name, mode, enable, orgId, type, finished);
|
|
|
}
|
|
|
|
|
|
/**
|