Skip to content

Commit

Permalink
edit api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Indrani Bandyopadhyay authored and shreypatidar-beehyv committed Aug 22, 2023
1 parent 21b700f commit c482471
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public class MBeneficiarydetail implements Serializable {

@Column(length = 45)
private String education;


@Column(name = "EmergencyRegistration")
private Boolean emergencyRegistration;

@Column(length = 50)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@ public class IdentityEditDTO {

private Integer vanID;
private Integer parkingPlaceId;
private boolean emergencyRegistration;
}
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,11 @@ public void editIdentity(IdentityEditDTO identity) throws MissingMandatoryFields
*/

logger.debug("Beneficiary details to update = " + new OutputMapper().gson().toJson(mbDetl));
if(benDetails.getEmergencyRegistration() != null && benDetails.getEmergencyRegistration()) {
mbDetl.setEmergencyRegistration(true);
}else {
mbDetl.setEmergencyRegistration(false);
}
detailRepo.save(mbDetl);
}

Expand Down

0 comments on commit c482471

Please sign in to comment.