| 
															
																@ -65,7 +65,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        switch (relation) { 
															 | 
															
															 | 
															
																        switch (relation) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            case 1: 
															 | 
															
															 | 
															
																            case 1: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            case 2: 
															 | 
															
															 | 
															
																            case 2: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (patient.getSex() == 1) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (patient.getSex()==null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    return -1; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else if (patient.getSex() == 1) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    relationTrans = 5; 
															 | 
															
															 | 
															
																                    relationTrans = 5; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } else if (patient.getSex() == 2) { 
															 | 
															
															 | 
															
																                } else if (patient.getSex() == 2) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    relationTrans = 6; 
															 | 
															
															 | 
															
																                    relationTrans = 6; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -88,7 +90,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                break; 
															 | 
															
															 | 
															
																                break; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            case 5: 
															 | 
															
															 | 
															
																            case 5: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            case 6: 
															 | 
															
															 | 
															
																            case 6: 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (patient.getSex() == 1) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (patient.getSex()==null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    return -1; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                }else if (patient.getSex() == 1) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    relationTrans = 1; 
															 | 
															
															 | 
															
																                    relationTrans = 1; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } else if (patient.getSex() == 2) { 
															 | 
															
															 | 
															
																                } else if (patient.getSex() == 2) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    relationTrans = 2; 
															 | 
															
															 | 
															
																                    relationTrans = 2; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -180,6 +184,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        // 对方与自己的关系转换 
															 | 
															
															 | 
															
																        // 对方与自己的关系转换 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
															
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (relationTrans==-1){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            return -7; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
															
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        fmt.setIsAuthorize(1);//默认授权 
															 | 
															
															 | 
															
																        fmt.setIsAuthorize(1);//默认授权 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -251,6 +258,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
															
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (relationTrans==-1){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            return -7; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
															
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        memberDao.save(fm); 
															 | 
															
															 | 
															
																        memberDao.save(fm); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -455,6 +465,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                Integer relation = familyRelationTrans(p, member.getFamilyRelation()); 
															 | 
															
															 | 
															
																                Integer relation = familyRelationTrans(p, member.getFamilyRelation()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (relation==-1){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    return null; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (signs.size() > 0){ 
															 | 
															
															 | 
															
																                if (signs.size() > 0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    obj.put("signCode",signs.get(0).getId()); 
															 | 
															
															 | 
															
																                    obj.put("signCode",signs.get(0).getId()); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -689,6 +702,9 @@ public class PatientFamilyMemberService extends BaseJpaService<BasePatientFamily 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        // 对方与自己的关系转s 
															 | 
															
															 | 
															
																        // 对方与自己的关系转s 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //int relationTrans = familyRelationTrans(p, relation); 
															 | 
															
															 | 
															
																        //int relationTrans = familyRelationTrans(p, relation); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
															
															 | 
															
																        int relationTrans = familyRelationTrans(p, relation); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (relationTrans==-1){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            return -7; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
															
															 | 
															
																        fmt.setFamilyRelation(relationTrans); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        fmt.setIsAuthorize(0);//默认授权 
															 | 
															
															 | 
															
																        fmt.setIsAuthorize(0);//默认授权 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 |