File tree Expand file tree Collapse file tree
src/main/java/com/iemr/common/identity/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1039,6 +1039,18 @@ public void editIdentity(IdentityEditDTO identity) throws MissingMandatoryFields
10391039 if (benDetails .getOther () != null ) {
10401040 mbDetl .setOther (benDetails .getOther ());
10411041 }
1042+ if (mbDetl .getOccupationId () == null && benDetails .getOccupationId () != null ) {
1043+ mbDetl .setOccupationId (benDetails .getOccupationId ());
1044+ }
1045+ if (mbDetl .getOccupation () == null && benDetails .getOccupation () != null ) {
1046+ mbDetl .setOccupation (benDetails .getOccupation ());
1047+ }
1048+ if (mbDetl .getEducationId () == null && benDetails .getEducationId () != null ) {
1049+ mbDetl .setEducationId (benDetails .getEducationId ());
1050+ }
1051+ if (mbDetl .getEducation () == null && benDetails .getEducation () != null ) {
1052+ mbDetl .setEducation (benDetails .getEducation ());
1053+ }
10421054
10431055 // Extract and set extra fields
10441056// String identityJson = new Gson().toJson(json);
Original file line number Diff line number Diff line change @@ -306,9 +306,8 @@ public String getFamilyDetailsByBeneficiaryId(String request) throws IEMRExcepti
306306 }
307307
308308 private void addFamilyMembersToList (List <MBeneficiarydetail > list , List <FamilyMembers > responseList ) {
309- StringBuilder name = new StringBuilder ("" );
310309 for (MBeneficiarydetail obj : list ) {
311-
310+ StringBuilder name = new StringBuilder ( "" );
312311 FamilyMembers famObj = new FamilyMembers ();
313312 BigInteger benRegId = benMappingRepo .getBenRegId (obj .getBeneficiaryDetailsId (), obj .getVanID ());
314313 if (benRegId != null )
You can’t perform that action at this time.
0 commit comments