|
@@ -65,7 +65,8 @@ public class TaskService {
|
|
}
|
|
}
|
|
|
|
|
|
public TaskDTO getByExamIdAndCaseId(long examId, long caseId) {
|
|
public TaskDTO getByExamIdAndCaseId(long examId, long caseId) {
|
|
- Task t = tasks.stream().filter(task -> task.getExamId() == examId && task.getCaseId() == caseId).findFirst().get();
|
|
|
|
|
|
+ Task taskDefault = new Task(examId, caseId, "途牛旅游", "/static/images/apps/tuniu.png", "9.56.0", 0, "2018-11-12", "2018-12-20");
|
|
|
|
+ Task t = tasks.stream().filter(task -> task.getExamId() == examId && task.getCaseId() == caseId).findFirst().orElse(taskDefault);
|
|
TaskDTO taskDTO = new TaskDTO();
|
|
TaskDTO taskDTO = new TaskDTO();
|
|
BeanUtils.copyProperties(t, taskDTO);
|
|
BeanUtils.copyProperties(t, taskDTO);
|
|
long totalBugs = masterReportDao.countByExamIdAndCaseId(taskDTO.getExamId(), taskDTO.getCaseId());
|
|
long totalBugs = masterReportDao.countByExamIdAndCaseId(taskDTO.getExamId(), taskDTO.getCaseId());
|