Skip to content

Commit

Permalink
Added count value into the jobResult.
Browse files Browse the repository at this point in the history
  • Loading branch information
jia020 committed Oct 23, 2024
1 parent 176833d commit 752cd0f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ public boolean getDownSampledData() {
}
}
if (isHit) {
resultMsg = "Hit: "+boreholeVo.getHoleUrl()+" " + this.classification + " with value " + String.valueOf(units.equalsIgnoreCase("pct")?ratio:count) + " " + logicalOp + " threshhole " + String.valueOf(value) + " " +units;
String vv = String.valueOf(units.equalsIgnoreCase("pct")?ratio:count);
resultMsg = vv + ",Hit: "+boreholeVo.getHoleUrl()+" " + this.classification + " with value " + vv + " " + logicalOp + " threshhole " + String.valueOf(value) + " " +units;
boreholeVo.setStatus(2); //hit status;
jobResultVo.addBoreholes(new BoreholeResultVo(boreholeVo.getHoleUrl(),resultMsg ));
logger.info(resultMsg);
Expand All @@ -265,7 +266,8 @@ public boolean getDownSampledData() {
}
} //logid loop
if(!isHit) {
resultMsg = "Miss: "+boreholeVo.getHoleIdentifier()+" " + this.classification + " with value " + String.valueOf(units.equalsIgnoreCase("pct")?ratio:count) + " " + logicalOp + " threshhold " + String.valueOf(value)+ " " +units + " NOT found";
String vv = String.valueOf(units.equalsIgnoreCase("pct")?ratio:count);
resultMsg = vv + ",Miss: "+boreholeVo.getHoleIdentifier()+" " + this.classification + " with value " + vv + " " + logicalOp + " threshhold " + String.valueOf(value)+ " " +units + " NOT found";
boreholeVo.setStatus(3); //Failed status;
jobResultVo.addFailedBoreholes(new BoreholeResultVo(boreholeVo.getHoleUrl(),resultMsg ));
logger.info(resultMsg);
Expand Down

0 comments on commit 752cd0f

Please sign in to comment.