|  | @ -5,6 +5,7 @@ import java.util.Map;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.message.Message;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.account.PatientInfoService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.message.MessageService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.util.*;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import org.apache.commons.lang3.StringUtils;
 | 
	
	
		
			
				|  | @ -46,6 +47,8 @@ public class DoctorFamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |     PatientInfoService patientInfoService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     StringRedisTemplate redisTemplate;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     MessageService messageService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 医生签约患者列表查询接口
 | 
	
	
		
			
				|  | @ -284,7 +287,9 @@ public class DoctorFamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  |                         JSONObject jsonData = checkJson.getJSONObject("data");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         if (jsonData.getString("status").equals("1")) {
 | 
	
		
			
				|  |  |                             return error(-1, "此身份证号已签约");
 | 
	
		
			
				|  |  |                             messageService.readHealth(msgid);
 | 
	
		
			
				|  |  |                             familyContractService.updateSignStatus(patientIDcard);
 | 
	
		
			
				|  |  |                             return error(-1, "该居民已在基卫平台签约,无需重复在移动端申请");
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
	
		
			
				|  | @ -490,7 +495,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         if (jsonData.getString("status").equals("1")) {
 | 
	
		
			
				|  |  |                             result.put("signStatus", "2");
 | 
	
		
			
				|  |  |                             result.put("msg", "病人已申请过家庭签约!");
 | 
	
		
			
				|  |  |                             result.put("msg", "该居民已在基卫平台签约,无需重复在移动端申请!");
 | 
	
		
			
				|  |  |                             return write(200, "查询成功!", "data", result);
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 |