diff --git a/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java b/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java index ec228b50f..fc68a687b 100644 --- a/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java +++ b/business-services/billing-service/src/main/java/org/egov/demand/service/DemandService.java @@ -229,14 +229,14 @@ public DemandResponse updateAsync(DemandRequest demandRequest, PaymentBackUpdate RequestInfo requestInfo = demandRequest.getRequestInfo(); List demands = demandRequest.getDemands(); AuditDetails auditDetail = util.getAuditDetail(requestInfo); - for (Demand demand : demands) { - AuditDetails currAuditDetails = demand.getAuditDetails(); - if (currAuditDetails != null) { - auditDetail.setCreatedTime(currAuditDetails.getCreatedTime()); - auditDetail.setCreatedBy(currAuditDetails.getCreatedBy()); - } - demand.setAuditDetails(auditDetail); - } +// for (Demand demand : demands) { +// AuditDetails currAuditDetails = demand.getAuditDetails(); +// if (currAuditDetails != null) { +// auditDetail.setCreatedTime(currAuditDetails.getCreatedTime()); +// auditDetail.setCreatedBy(currAuditDetails.getCreatedBy()); +// } +// demand.setAuditDetails(auditDetail); +// } List newDemands = new ArrayList<>(); @@ -250,7 +250,11 @@ public DemandResponse updateAsync(DemandRequest demandRequest, PaymentBackUpdate */ newDemands.add(demand); } else { - + AuditDetails currAuditDetails = demand.getAuditDetails(); + if (currAuditDetails != null) { + auditDetail.setCreatedTime(currAuditDetails.getCreatedTime()); + auditDetail.setCreatedBy(currAuditDetails.getCreatedBy()); + } demand.setAuditDetails(auditDetail); for (DemandDetail detail : demand.getDemandDetails()) {