Merge branch 'feature-20250408-claimVerification' into feature-20250424-release

This commit is contained in:
lxu75
2025-04-24 19:06:44 +08:00

View File

@@ -241,6 +241,9 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
@NotNull
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");
warrantyAuditReport = StringEscapeUtils.unescapeJava(warrantyAuditReport);
JSONObject audiResToAfter = JSON.parseObject(warrantyAuditReport);
@@ -266,6 +269,10 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
throw new RuntimeException(" 售后索赔检核文件分析dify返回结果为空");
}
JSONObject difyToAfter = JSONObject.parseObject(toAfter);
if (difyToAfter.containsKey("answer") && !difyToAfter.getJSONObject("answer").isEmpty()) {
difyToAfter = diFyObject.getJSONObject("answer");
}
JSONObject data = new JSONObject();
data.put("newBieAfterSalesId", claimVerificationFileAnalysisDTO.getNewBieAfterSalesId());
data.put("businessType", claimVerificationFileAnalysisDTO.getBusinessType());