增加字段,说明该用户是否被识别

test
youys 3 years ago
parent 3d35d48c95
commit 8361590210

@ -28,6 +28,12 @@ public class QualityInspectResultData {
*/ */
private String name; private String name;
/**
* truefalse,
*/
private boolean discern;
/** /**
* *
*/ */
@ -88,6 +94,14 @@ public class QualityInspectResultData {
this.name = name; this.name = name;
} }
public boolean isDiscern() {
return discern;
}
public void setDiscern(boolean discern) {
this.discern = discern;
}
public Quality getBug() { public Quality getBug() {
return bug; return bug;
} }

@ -135,6 +135,7 @@ public class QualityInspectService {
Metrics metrics = reportService.getMetrics(taskInfoDetail.getProjectName()); Metrics metrics = reportService.getMetrics(taskInfoDetail.getProjectName());
resultData.setDiscern(!metrics.getBugs().equals("-"));
resultData.setBug(new Quality(metrics.getBlock_bugs(), metrics.getMajor_bugs(), metrics.getMinor_bugs(), metrics.getCritical_bugs(), metrics.getBugs())); resultData.setBug(new Quality(metrics.getBlock_bugs(), metrics.getMajor_bugs(), metrics.getMinor_bugs(), metrics.getCritical_bugs(), metrics.getBugs()));
resultData.setVulnerability(new Quality(metrics.getBlock_violations(), metrics.getMajor_violations(), metrics.getMinor_violations(), metrics.getCritical_violations(), metrics.getViolations())); resultData.setVulnerability(new Quality(metrics.getBlock_violations(), metrics.getMajor_violations(), metrics.getMinor_violations(), metrics.getCritical_violations(), metrics.getViolations()));
resultData.setCodeSmall(new Quality(metrics.getBlock_code_smells(), metrics.getMajor_code_smells(), metrics.getMinor_code_smells(), metrics.getCritical_code_smells(), metrics.getCode_smells())); resultData.setCodeSmall(new Quality(metrics.getBlock_code_smells(), metrics.getMajor_code_smells(), metrics.getMinor_code_smells(), metrics.getCritical_code_smells(), metrics.getCode_smells()));

Loading…
Cancel
Save