|
|
|
@ -32,14 +32,14 @@ public class CallBackWlyUtils {
|
|
|
|
|
//请求对象
|
|
|
|
|
CallBackWlyResult result = new CallBackWlyResult();
|
|
|
|
|
|
|
|
|
|
List<JSONObject> jsonObjects = new ArrayList<>();
|
|
|
|
|
List<JSONObject> taskResultInfoList=null;
|
|
|
|
|
//总明细数量
|
|
|
|
|
int detail_detailCount = 0;
|
|
|
|
|
int detailValidationCount=0;
|
|
|
|
|
String taskResultInfo = ocrIdentify.getTaskResultInfo();
|
|
|
|
|
if (StringUtils.isNotBlank(taskResultInfo)) {
|
|
|
|
|
//循环获取哪些字段通过了
|
|
|
|
|
List<JSONObject> taskResultInfoList = JSONArray.parseArray(taskResultInfo).toJavaList(JSONObject.class);
|
|
|
|
|
taskResultInfoList = JSONArray.parseArray(taskResultInfo).toJavaList(JSONObject.class);
|
|
|
|
|
detail_detailCount=taskResultInfoList.size();
|
|
|
|
|
for (JSONObject jsonObject : taskResultInfoList) {
|
|
|
|
|
Boolean ruleValidation = (Boolean) jsonObject.getOrDefault("ruleValidation", false);
|
|
|
|
@ -65,10 +65,10 @@ public class CallBackWlyUtils {
|
|
|
|
|
result.setImageTagRetrievePercentage(imageTagRetrievePercentage + "");
|
|
|
|
|
result.setRetrieveReviewCompliance(imageTagRetrievePercentage+"");
|
|
|
|
|
result.setFailureReason(ocrIdentify.getErrorMsg());
|
|
|
|
|
if (CollectionUtils.isEmpty(jsonObjects)) {
|
|
|
|
|
if (CollectionUtils.isEmpty(taskResultInfoList)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
result.setOcrResult(jsonObjects);
|
|
|
|
|
result.setOcrResult(taskResultInfoList);
|
|
|
|
|
|
|
|
|
|
log.info("请求无量云回调接口");
|
|
|
|
|
JSONObject semanticResponseJson = null;
|
|
|
|
|