增加isdelete判断

This commit is contained in:
jie.lu
2025-08-15 11:15:14 +08:00
parent 20d16ec253
commit 29fd0e94a8
3 changed files with 10 additions and 7 deletions

View File

@@ -315,7 +315,7 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
private String getPartHoursList(JSONObject warrantyJson) {
if (warrantyJson == null || !warrantyJson.containsKey("warrantyReport")) {
return " ";
return null;
}
// 获取warrantyReport对象
@@ -323,11 +323,11 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
// 检查partItems是否存在且是数组
if (!warrantyReport.containsKey("partItems")) {
return " ";
return null;
} else {
Object value = warrantyReport.get("partItems");
if (!(value instanceof JSONArray)) {
return " ";
return null;
}
}
@@ -345,12 +345,13 @@ public class ClaimVerificationServiceImpl implements ClaimVerificationService {
}
}
if (partNoList.isEmpty()) {
return " ";
return null;
}
List<ClaimVerificationPartHoursDTO> result = tmClaimVerificationPartHoursMappingMapper.queryConfigByPartId(partNoList);
if (result.isEmpty()) {
return " ";
return null;
}
log.info("索赔检核主零件工时配置信息: {}", result.toString());
return JSONObject.toJSONString(result);
}

View File

@@ -8,7 +8,8 @@
m.hours_id as hoursId
FROM
`tm_claim_verification_part_hours_mapping` m
WHERE m.part_id IN
WHERE m.is_deleted = 0
AND m.part_id IN
<foreach collection="partIds" item="partId" open="(" separator="," close=")">
#{partId}
</foreach>

View File

@@ -8,7 +8,8 @@
m.hours_id as hoursId
FROM
`tm_claim_verification_part_hours_mapping` m
WHERE m.part_id IN
WHERE m.is_deleted = 0
AND m.part_id IN
<foreach collection="partIds" item="partId" open="(" separator="," close=")">
#{partId}
</foreach>