|
@@ -8,6 +8,7 @@ import com.mooctest.model.MasterReport;
|
|
|
import com.mooctest.service.*;
|
|
|
import com.mooctest.util.ReportUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -38,6 +39,9 @@ public class TaskController {
|
|
|
@Autowired
|
|
|
BugDataService bugDataService;
|
|
|
|
|
|
+ @Value("${report.host}")
|
|
|
+ String reportHost;
|
|
|
+
|
|
|
@GetMapping("/home")
|
|
|
public String home(Model model) {
|
|
|
|
|
@@ -96,6 +100,7 @@ public class TaskController {
|
|
|
model.addAttribute("reviewMap", ReportUtil.reviewerMap);
|
|
|
model.addAttribute("examId", examId);
|
|
|
model.addAttribute("caseId", caseId);
|
|
|
+ model.addAttribute("reportHost",reportHost);
|
|
|
return "task_detail";
|
|
|
}
|
|
|
}
|