| 
					
				 | 
			
			
				@ -15,6 +15,7 @@ import com.yihu.wlyy.entity.patient.Patient; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.patient.PatientDisease; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.patient.SignFamily; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.entity.patient.SignFamilyCode; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.logs.BusinessLogs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.repository.consult.ConsultTeamDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.repository.dict.SystemDictDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.repository.doctor.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -969,7 +970,7 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 患者标签设置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!(labelInfoService.setPatientLabels(patient.getCode(), patient.getIdcard(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                patient.getName(), healthLabel, disease, customLabel, sf.getDoctor()) == 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                patient.getName(), healthLabel, disease, customLabel, sf.getDoctor(), signDoctorCode) == 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            throw new Exception("patient sign label settting error:" + patient.getIdcard()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -993,6 +994,7 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            PushMsgTask.getInstance().putWxMsg(access_token, 1, sf.getOpenid(), sf.getName(), json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            new Thread(new SignUploadTask(sf.getCode())).start(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BusinessLogs.info(BusinessLogs.BusinessType.sign, signDoctorCode, sf.getPatient(), new JSONObject(sf)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return temp; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1018,6 +1020,7 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 String healthLabel, String customLabel, String disease, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 String expenses, long adminTeamCode) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONObject result = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String caller = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (type != 1 && type != 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            result.put("status", -1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return result; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1114,10 +1117,12 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //设置全科医生 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sf.setDoctor(doctor); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sf.setDoctorName(doctorName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                caller = sf.getDoctorHealth(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // 更新健康管理师 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sf.setDoctorHealth(healthDoctor); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sf.setDoctorHealthName(healthDoctorName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                caller = sf.getDoctor(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            AdminTeam team = doctorAdminTeamDao.findOne(adminTeamCode); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1200,7 +1205,7 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // 患者标签设置 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (!(labelInfoService.setPatientLabels(p.getCode(), p.getIdcard(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                p.getName(), healthLabel, disease, customLabel, sf.getDoctor()) == 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                p.getName(), healthLabel, disease, customLabel, sf.getDoctor(), caller) == 1)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            throw new Exception("patient sign label settting error:" + p.getIdcard()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1226,6 +1231,7 @@ public class FamilyContractService extends BaseService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            new Thread(new SignUploadTask(sf.getCode())).start(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.put("status", 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BusinessLogs.info(BusinessLogs.BusinessType.sign, caller, sf.getPatient(), new JSONObject(sf)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 |