|  | @ -290,6 +290,42 @@ public class MyFamilyService {
 | 
												
													
														
															|  |         return resultList;
 |  |         return resultList;
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     public void myFamilyBindList(String patient) throws Exception{
 | 
												
													
														
															|  | 
 |  |         //已绑定的
 | 
												
													
														
															|  | 
 |  |         List<BasePatientFamilyMemberDO> bindList = patientFamilyMemberService.getByPatientAndFamilyMember(patient);
 | 
												
													
														
															|  | 
 |  |         BasePatientDO patientDO = patientService.findByIdAndDel(patient);//绑定人
 | 
												
													
														
															|  | 
 |  |         List<Map<String,Object>> resultList = new ArrayList<>();
 | 
												
													
														
															|  | 
 |  |         for(BasePatientFamilyMemberDO one:bindList){
 | 
												
													
														
															|  | 
 |  |             Map<String,Object> map = new HashedMap();
 | 
												
													
														
															|  | 
 |  |             if(patient.equals(one.getPatient())){
 | 
												
													
														
															|  | 
 |  |                 BasePatientDO familyMember = patientService.findByIdAndDel(one.getFamilyMember());
 | 
												
													
														
															|  | 
 |  |                 map.put("photo",familyMember.getPhoto());//头像
 | 
												
													
														
															|  | 
 |  |                 map.put("name",familyMember.getName());//姓名
 | 
												
													
														
															|  | 
 |  |                 map.put("roleName",role.get(one.getFamilyRelation()+1));//角色名称
 | 
												
													
														
															|  | 
 |  |                 map.put("mobile",familyMember.getMobile());//手机号码
 | 
												
													
														
															|  | 
 |  |                 map.put("isAuthorize",one.getIsAuthorize());//0:未授权,1:已授权
 | 
												
													
														
															|  | 
 |  |                 map.put("familyMemberId",one.getId());
 | 
												
													
														
															|  | 
 |  |                 map.put("patientId",familyMember.getId());
 | 
												
													
														
															|  | 
 |  |                 map.put("type",1);
 | 
												
													
														
															|  | 
 |  |             }else{
 | 
												
													
														
															|  | 
 |  |                 Integer familyRelation = familyRelationTrans(one.getFamilyRelation(),patientDO.getSex());
 | 
												
													
														
															|  | 
 |  |                 BasePatientDO familyMember = patientService.findByIdAndDel(one.getPatient());
 | 
												
													
														
															|  | 
 |  |                 map.put("photo",familyMember.getPhoto());//头像
 | 
												
													
														
															|  | 
 |  |                 map.put("name",familyMember.getName());//姓名
 | 
												
													
														
															|  | 
 |  |                 map.put("roleName",role.get(familyRelation+1));//角色名称
 | 
												
													
														
															|  | 
 |  |                 map.put("mobile",familyMember.getMobile());//手机号码
 | 
												
													
														
															|  | 
 |  |                 map.put("isAuthorize",one.getIsAuthorize());//0:未授权,1:已授权
 | 
												
													
														
															|  | 
 |  |                 map.put("familyMemberId",one.getId());
 | 
												
													
														
															|  | 
 |  |                 map.put("patientId",familyMember.getId());
 | 
												
													
														
															|  | 
 |  |                 map.put("type",1);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             resultList.add(map);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         //已邀请的
 | 
												
													
														
															|  | 
 |  | //        patientApplyLogService.
 | 
												
													
														
															|  | 
 |  |         //已取消的
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     /**
 |  |     /**
 | 
												
													
														
															|  |      * 有效的申请绑定消息
 |  |      * 有效的申请绑定消息
 | 
												
													
														
															|  |      * @param patient
 |  |      * @param patient
 | 
												
											
												
													
														
															|  | @ -329,7 +365,7 @@ public class MyFamilyService {
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     @Transactional(rollbackFor = Exception.class)
 |  |     @Transactional(rollbackFor = Exception.class)
 | 
												
													
														
															|  |     public void cancelApply(Integer patientApplyLogId) throws Exception{
 |  |     public void cancelApply(Integer patientApplyLogId) throws Exception{
 | 
												
													
														
															|  |         int i= patientApplyLogService.updateDelById(0, patientApplyLogId);
 |  | 
 | 
												
													
														
															|  | 
 |  |         int i= patientApplyLogService.updateStatusById(5, patientApplyLogId);
 | 
												
													
														
															|  |         if(i<0){
 |  |         if(i<0){
 | 
												
													
														
															|  |             throw new Exception("update data failur !");
 |  |             throw new Exception("update data failur !");
 | 
												
													
														
															|  |         }
 |  |         }
 |