|
@@ -140,7 +140,7 @@ public class AnalyzeService {
|
|
Bug bug=bugMap.get(bugMirror.getId());
|
|
Bug bug=bugMap.get(bugMirror.getId());
|
|
BugHistory bugHistory=hdao.findByid(bugMirror.getId());
|
|
BugHistory bugHistory=hdao.findByid(bugMirror.getId());
|
|
if(bug!=null&&bugHistory!=null){
|
|
if(bug!=null&&bugHistory!=null){
|
|
- BugSeverity bugSeveritsy=BugSeverity.getValue(2);
|
|
|
|
|
|
+ BugSeverity bugSeveritsy=BugSeverity.getValue(bug.getSeverity());
|
|
String bugSeverity=bugSeveritsy.toString();
|
|
String bugSeverity=bugSeveritsy.toString();
|
|
BugScore bugScore=bsdao.findById(bug.getId());
|
|
BugScore bugScore=bsdao.findById(bug.getId());
|
|
int score=bugScore==null?0:bugScore.getGrade();
|
|
int score=bugScore==null?0:bugScore.getGrade();
|