Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #983 from egovernments/ISTE-485
Browse files Browse the repository at this point in the history
updated createdtime code
  • Loading branch information
pradeepkumarcm-egov authored Oct 22, 2024
2 parents 1dfea84 + 709fcc6 commit f69c34f
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ public DemandResponse updateAsync(DemandRequest demandRequest, PaymentBackUpdate
RequestInfo requestInfo = demandRequest.getRequestInfo();
List<Demand> 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<Demand> newDemands = new ArrayList<>();

Expand All @@ -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()) {

Expand Down

0 comments on commit f69c34f

Please sign in to comment.