|
|
@ -73,11 +73,8 @@ public class CallBackWlyUtils {
|
|
|
|
for (JSONObject jsonObject : taskResultInfoList) {
|
|
|
|
for (JSONObject jsonObject : taskResultInfoList) {
|
|
|
|
Double ruleValidation = jsonObject.getDouble("textRate");
|
|
|
|
Double ruleValidation = jsonObject.getDouble("textRate");
|
|
|
|
if (ruleValidation!=null) {
|
|
|
|
if (ruleValidation!=null) {
|
|
|
|
if(imageTagRetrievePercentage.compareTo(BigDecimal.ZERO)!=0){
|
|
|
|
imageTagRetrievePercentage=imageTagRetrievePercentage.add(new BigDecimal(ruleValidation));
|
|
|
|
imageTagRetrievePercentage=imageTagRetrievePercentage.multiply(new BigDecimal(ruleValidation));
|
|
|
|
detailValidationCount++;
|
|
|
|
}else{
|
|
|
|
|
|
|
|
imageTagRetrievePercentage=imageTagRetrievePercentage.add(new BigDecimal(ruleValidation));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -93,10 +90,7 @@ public class CallBackWlyUtils {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//组装回调参数
|
|
|
|
//组装回调参数
|
|
|
|
// if (detail_detailCount > 0) {
|
|
|
|
imageTagRetrievePercentage = imageTagRetrievePercentage.divide(new BigDecimal(detailValidationCount), 2, RoundingMode.HALF_UP);
|
|
|
|
// BigDecimal divide = new BigDecimal(detailValidationCount).divide(new BigDecimal(detail_detailCount), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(100));
|
|
|
|
|
|
|
|
imageTagRetrievePercentage = imageTagRetrievePercentage.divide(new BigDecimal(100), 2, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(ocrIdentify.getTaskResult()) && "1".equals(ocrIdentify.getTaskResult())) {
|
|
|
|
if (StringUtils.isNotBlank(ocrIdentify.getTaskResult()) && "1".equals(ocrIdentify.getTaskResult())) {
|
|
|
|
result.setRuleValidation(true);
|
|
|
|
result.setRuleValidation(true);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|