|  | @ -664,11 +664,13 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |      * @param patient 居民code
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public int sign(String doctor, String patient, String countryCode) throws Exception {
 | 
	
		
			
				|  |  |     public int sign(String doctor, String patient, String countryCode,String medicareNumber) throws Exception {
 | 
	
		
			
				|  |  |         Patient p = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |         if (p == null) {
 | 
	
		
			
				|  |  |             return -1;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         //1.4.2设置居民医疗保险号
 | 
	
		
			
				|  |  |         setPatientMedicareNo(patient,medicareNumber);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         SignFamily sc = signFamilyDao.findByIdcard(p.getIdcard());
 | 
	
		
			
				|  |  |         //判断身份证号是否已签约
 | 
	
	
		
			
				|  | @ -1015,7 +1017,7 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |                                      String emerMobile, String images,
 | 
	
		
			
				|  |  |                                      String healthLabel, String customLabel, String disease,
 | 
	
		
			
				|  |  |                                      String expenses, String signDoctorCode,
 | 
	
		
			
				|  |  |                                      String signDoctorName, String signDoctorLevel, long adminTeamCode, String sevId, String countryCode) throws Exception {
 | 
	
		
			
				|  |  |                                      String signDoctorName, String signDoctorLevel, long adminTeamCode, String sevId, String countryCode,String medicareNumber) throws Exception {
 | 
	
		
			
				|  |  |         // 查询是否有家庭签约
 | 
	
		
			
				|  |  |         SignFamily sc = signFamilyDao.findByIdcard(idcard);
 | 
	
		
			
				|  |  |         if (sc != null) {
 | 
	
	
		
			
				|  | @ -1118,11 +1120,16 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |             patient.setStatus(1);
 | 
	
		
			
				|  |  |             patient.setDisease(0);
 | 
	
		
			
				|  |  |             patient.setPhoto("../../../images/p-female.png");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         //1.4。2设置居民医疗保险信息
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(medicareNumber)){
 | 
	
		
			
				|  |  |             patient.setMedicareNumber(medicareNumber);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         // 保存用户信息
 | 
	
		
			
				|  |  |         patientDao.save(patient);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Calendar now = Calendar.getInstance();
 | 
	
		
			
				|  |  |         int month = now.get(Calendar.MONTH) + 1;
 | 
	
		
			
				|  |  |         Calendar begin = Calendar.getInstance();
 | 
	
	
		
			
				|  | @ -3355,7 +3362,18 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |         return result;
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 1.4.2 设置医疗卡号
 | 
	
		
			
				|  |  |      * @param patient
 | 
	
		
			
				|  |  |      * @param medicareNumber
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public void setPatientMedicareNo(String patient,String medicareNumber){
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(medicareNumber)){
 | 
	
		
			
				|  |  |             Patient p = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |             p.setMedicareNumber(medicareNumber);
 | 
	
		
			
				|  |  |             patientDao.save(p);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 续签申请
 | 
	
		
			
				|  |  |      *
 | 
	
	
		
			
				|  | @ -3364,11 +3382,13 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @Transactional
 | 
	
		
			
				|  |  |     public int signRenew(String doctor, String healthDoctor, String patient, String reason) throws Exception {
 | 
	
		
			
				|  |  |     public int signRenew(String doctor, String healthDoctor, String patient, String reason,String medicareNumber) throws Exception {
 | 
	
		
			
				|  |  |         Patient p = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |         if (p == null) {
 | 
	
		
			
				|  |  |             return -1;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         //1.4.2 设置医疗卡号
 | 
	
		
			
				|  |  |         setPatientMedicareNo(patient,medicareNumber);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //        List<SignFamilyRenew> sc = signFamilyRenewDao.findByIdcard(p.getIdcard());
 | 
	
		
			
				|  |  | //        //判断身份证号是否已签约
 | 
	
	
		
			
				|  | @ -3584,12 +3604,15 @@ public class FamilyContractService extends BaseService {
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @Transactional
 | 
	
		
			
				|  |  |     public int signRenewOverdue(String doctor, String healthDoctor, String patient, String reason, String countryCode) throws Exception {
 | 
	
		
			
				|  |  |     public int signRenewOverdue(String doctor, String healthDoctor, String patient, String reason, String countryCode,String medicareNumber) throws Exception {
 | 
	
		
			
				|  |  |         Patient p = patientDao.findByCode(patient);
 | 
	
		
			
				|  |  |         if (p == null) {
 | 
	
		
			
				|  |  |             return -1;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         //1.4.2 设置医疗卡号
 | 
	
		
			
				|  |  |         setPatientMedicareNo(patient,medicareNumber);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Doctor d = doctorDao.findByCode(doctor);
 | 
	
		
			
				|  |  |         Doctor hd = null;
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(healthDoctor)) {
 |