|  | @ -486,25 +486,33 @@ public class OnePayService {
 | 
												
													
														
															|  |                     for (BindCard card : result) {
 |  |                     for (BindCard card : result) {
 | 
												
													
														
															|  |                         if ("98".equals(card.getAttachRelation())) {
 |  |                         if ("98".equals(card.getAttachRelation())) {
 | 
												
													
														
															|  |                             String idcard = card.getAttachIdNo();
 |  |                             String idcard = card.getAttachIdNo();
 | 
												
													
														
															|  | 
 |  |                             String bindCardNo= card.getAttachCardNo();
 | 
												
													
														
															|  |                             Patient patient = patientDao.findByIdcard(idcard);
 |  |                             Patient patient = patientDao.findByIdcard(idcard);
 | 
												
													
														
															|  |                             userCode = patient.getCode();
 |  |                             userCode = patient.getCode();
 | 
												
													
														
															|  |                             patient.setSicardStatus(1);
 |  | 
 | 
												
													
														
															|  |                             patient.setSicardTime(new Date());
 |  | 
 | 
												
													
														
															|  |                             patient.setPrincipalCode(userCode);
 |  | 
 | 
												
													
														
															|  |                             patientDao.save(patient);
 |  | 
 | 
												
													
														
															|  |                             LOGGER.info("myself ==========>  userCode " + userCode);
 |  | 
 | 
												
													
														
															|  | 
 |  |                             String ssc = patient.getSsc();
 | 
												
													
														
															|  | 
 |  |                             if (bindCardNo.equals(ssc)){
 | 
												
													
														
															|  | 
 |  |                                 patient.setSicardStatus(1);
 | 
												
													
														
															|  | 
 |  |                                 patient.setSicardTime(new Date());
 | 
												
													
														
															|  | 
 |  |                                 patient.setPrincipalCode(userCode);
 | 
												
													
														
															|  | 
 |  |                                 patientDao.save(patient);
 | 
												
													
														
															|  | 
 |  |                                 LOGGER.info("myself ==========>  userCode " + userCode);
 | 
												
													
														
															|  | 
 |  |                             }
 | 
												
													
														
															|  |                         }
 |  |                         }
 | 
												
													
														
															|  |                     }
 |  |                     }
 | 
												
													
														
															|  |                     //获取家人绑卡情况
 |  |                     //获取家人绑卡情况
 | 
												
													
														
															|  |                     for (BindCard familyCard : result) {
 |  |                     for (BindCard familyCard : result) {
 | 
												
													
														
															|  |                         if (!"98".equals(familyCard.getAttachRelation())) {
 |  |                         if (!"98".equals(familyCard.getAttachRelation())) {
 | 
												
													
														
															|  |                             String idcard = familyCard.getAttachIdNo();
 |  |                             String idcard = familyCard.getAttachIdNo();
 | 
												
													
														
															|  | 
 |  |                             String bindCardNo = familyCard.getAttachCardNo();
 | 
												
													
														
															|  |                             Patient patient = patientDao.findByIdcard(idcard);
 |  |                             Patient patient = patientDao.findByIdcard(idcard);
 | 
												
													
														
															|  |                             patient.setSicardStatus(1);
 |  | 
 | 
												
													
														
															|  |                             patient.setSicardTime(new Date());
 |  | 
 | 
												
													
														
															|  |                             patient.setPrincipalCode(userCode);
 |  | 
 | 
												
													
														
															|  |                             patientDao.save(patient);
 |  | 
 | 
												
													
														
															|  |                             LOGGER.info("family ==========>  userCode "+userCode +" ========== >> "+patient.getOpenid());
 |  | 
 | 
												
													
														
															|  | 
 |  |                             String ssc = patient.getSsc();
 | 
												
													
														
															|  | 
 |  |                             if (bindCardNo.equals(ssc)){
 | 
												
													
														
															|  | 
 |  |                                 patient.setSicardStatus(1);
 | 
												
													
														
															|  | 
 |  |                                 patient.setSicardTime(new Date());
 | 
												
													
														
															|  | 
 |  |                                 patient.setPrincipalCode(userCode);
 | 
												
													
														
															|  | 
 |  |                                 patientDao.save(patient);
 | 
												
													
														
															|  | 
 |  |                                 LOGGER.info("family ==========>  userCode "+userCode +" ========== >> "+patient.getOpenid());
 | 
												
													
														
															|  | 
 |  |                             }
 | 
												
													
														
															|  |                         }
 |  |                         }
 | 
												
													
														
															|  |                     }
 |  |                     }
 | 
												
													
														
															|  |                 }
 |  |                 }
 |