Merge branch 'feature-20250408-claimVerification' into feature-20250424-release
This commit is contained in:
@@ -241,6 +241,9 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static JSONObject getJsonObjectToNewBie(JSONObject diFyObject, ClaimVerificationFileDTO claimVerificationFileAnalysisDTO, String aiAnalysisRequestId) {
|
private static JSONObject getJsonObjectToNewBie(JSONObject diFyObject, ClaimVerificationFileDTO claimVerificationFileAnalysisDTO, String aiAnalysisRequestId) {
|
||||||
|
if (diFyObject.containsKey("answer") && !diFyObject.getJSONObject("answer").isEmpty()) {
|
||||||
|
diFyObject = diFyObject.getJSONObject("answer");
|
||||||
|
}
|
||||||
String warrantyAuditReport = diFyObject.getString("warrantyAuditReport");
|
String warrantyAuditReport = diFyObject.getString("warrantyAuditReport");
|
||||||
warrantyAuditReport = StringEscapeUtils.unescapeJava(warrantyAuditReport);
|
warrantyAuditReport = StringEscapeUtils.unescapeJava(warrantyAuditReport);
|
||||||
JSONObject audiResToAfter = JSON.parseObject(warrantyAuditReport);
|
JSONObject audiResToAfter = JSON.parseObject(warrantyAuditReport);
|
||||||
@@ -266,6 +269,10 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
|
|||||||
throw new RuntimeException(" 售后索赔检核文件分析dify返回结果为空");
|
throw new RuntimeException(" 售后索赔检核文件分析dify返回结果为空");
|
||||||
}
|
}
|
||||||
JSONObject difyToAfter = JSONObject.parseObject(toAfter);
|
JSONObject difyToAfter = JSONObject.parseObject(toAfter);
|
||||||
|
if (difyToAfter.containsKey("answer") && !difyToAfter.getJSONObject("answer").isEmpty()) {
|
||||||
|
difyToAfter = diFyObject.getJSONObject("answer");
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject data = new JSONObject();
|
JSONObject data = new JSONObject();
|
||||||
data.put("newBieAfterSalesId", claimVerificationFileAnalysisDTO.getNewBieAfterSalesId());
|
data.put("newBieAfterSalesId", claimVerificationFileAnalysisDTO.getNewBieAfterSalesId());
|
||||||
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());
|
||||||
|
|||||||
Reference in New Issue
Block a user