|
|
|
@ -37,12 +37,14 @@ public class CallBackWlyUtils {
|
|
|
|
//总明细数量
|
|
|
|
//总明细数量
|
|
|
|
int detail_detailCount = 0;
|
|
|
|
int detail_detailCount = 0;
|
|
|
|
for (OcrIdentifyDetail identifyDetail : identifyDetails) {
|
|
|
|
for (OcrIdentifyDetail identifyDetail : identifyDetails) {
|
|
|
|
List<JSONObject> jsonObjects1 = JSONArray.parseArray(identifyDetail.getDataStructured()).toJavaList(JSONObject.class);
|
|
|
|
if (StringUtils.isNotBlank(identifyDetail.getDataStructured())) {
|
|
|
|
if (CollectionUtils.isNotEmpty(jsonObjects1)) {
|
|
|
|
List<JSONObject> jsonObjects1 = JSONArray.parseArray(identifyDetail.getDataStructured()).toJavaList(JSONObject.class);
|
|
|
|
double textRate = jsonObjects.stream().mapToDouble(o->o.getDouble("textRate")).sum();
|
|
|
|
if (CollectionUtils.isNotEmpty(jsonObjects1)) {
|
|
|
|
textRateBigd = textRateBigd.add(new BigDecimal(textRate));
|
|
|
|
double textRate = jsonObjects.stream().mapToDouble(o->o.getDouble("textRate")).sum();
|
|
|
|
detail_detailCount += jsonObjects1.size();
|
|
|
|
textRateBigd = textRateBigd.add(new BigDecimal(textRate));
|
|
|
|
jsonObjects.addAll(jsonObjects1);
|
|
|
|
detail_detailCount += jsonObjects1.size();
|
|
|
|
|
|
|
|
jsonObjects.addAll(jsonObjects1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|