|
@@ -79,6 +79,9 @@ public class AnalyzeService {
|
|
@Autowired
|
|
@Autowired
|
|
ExtraService extraService;
|
|
ExtraService extraService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ ExamDao examDao;
|
|
|
|
+
|
|
@Value("${server.host}")
|
|
@Value("${server.host}")
|
|
private String serverHost;
|
|
private String serverHost;
|
|
@Value("${report.port}")
|
|
@Value("${report.port}")
|
|
@@ -822,8 +825,11 @@ public class AnalyzeService {
|
|
// cache.put("word","Hello Guava Cache");
|
|
// cache.put("word","Hello Guava Cache");
|
|
// System.out.println(cache.getIfPresent("word"));
|
|
// System.out.println(cache.getIfPresent("word"));
|
|
|
|
|
|
-
|
|
|
|
|
|
+ Exam exam = examDao.findById(caseId);
|
|
Task task=taskDao.findById(taskId);
|
|
Task task=taskDao.findById(taskId);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
long startTime=0;
|
|
long startTime=0;
|
|
long endTime=0;
|
|
long endTime=0;
|
|
String taskName="";
|
|
String taskName="";
|
|
@@ -831,9 +837,11 @@ public class AnalyzeService {
|
|
if(task!=null) {
|
|
if(task!=null) {
|
|
startTime = task.getStart_time();
|
|
startTime = task.getStart_time();
|
|
endTime = task.getEnd_time();
|
|
endTime = task.getEnd_time();
|
|
- taskName = task.getName();
|
|
|
|
writeMins = task.getTotal_mins();
|
|
writeMins = task.getTotal_mins();
|
|
}
|
|
}
|
|
|
|
+ if(exam!=null){
|
|
|
|
+ taskName = exam.getName();
|
|
|
|
+ }
|
|
String caseTakeId=caseId+"-"+taskId;
|
|
String caseTakeId=caseId+"-"+taskId;
|
|
List<Bug>bugs=bdao.findByCaseid(caseTakeId);
|
|
List<Bug>bugs=bdao.findByCaseid(caseTakeId);
|
|
int bugNum=bugs.size();
|
|
int bugNum=bugs.size();
|