| 
															
																@ -32,6 +32,7 @@ import com.yihu.jw.sms.service.YkyyINSMSService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.jw.sms.service.ZBSmsService; 
															 | 
															
															 | 
															
																import com.yihu.jw.sms.service.ZBSmsService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.jw.sms.service.ZhongShanSMSService; 
															 | 
															
															 | 
															
																import com.yihu.jw.sms.service.ZhongShanSMSService; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.jw.sms.util.ykyy.vo.ResultMsg; 
															 | 
															
															 | 
															
																import com.yihu.jw.sms.util.ykyy.vo.ResultMsg; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																import com.yihu.jw.util.common.StringUtil; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.jw.util.http.HttpClientUtil; 
															 | 
															
															 | 
															
																import com.yihu.jw.util.http.HttpClientUtil; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.utils.network.HttpResponse; 
															 | 
															
															 | 
															
																import com.yihu.utils.network.HttpResponse; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.utils.network.HttpUtils; 
															 | 
															
															 | 
															
																import com.yihu.utils.network.HttpUtils; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2289,24 +2290,37 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setPatientStatus("1"); 
															 | 
															
															 | 
															
																                                                basePatientDO.setPatientStatus("1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDao.save(basePatientDO); 
															 | 
															
															 | 
															
																                                                basePatientDao.save(basePatientDO); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                            }else { 
															 | 
															
															 | 
															
																                                            }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setDel("1"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setName(jsonObject.getString("USERNAME")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setCreateTime(new Date()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setUpdateTime(new Date()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setYktId(jsonObject.getString("ID")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setUserId(userId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setMobile(tel); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                String salt = UUID.randomUUID().toString().substring(0,5); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                String pw = tel.substring(tel.length()-6,tel.length()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setPassword(MD5.md5Hex(pw + "{" + salt + "}")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setSalt(salt); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setLocked(0); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setEnabled(1); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDO.setPatientStatus("1"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                                basePatientDao.save(basePatientDO); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                List<BasePatientDO> basePatientDOList = basePatientDao.findByMobile(tel); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                if(basePatientDOList==null||basePatientDOList.size()==0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setDel("1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    if (jsonObject.getString("USERNAME").length()>=2){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                        basePatientDO.setName(jsonObject.getString("USERNAME")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                        basePatientDO.setName(tel); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setCreateTime(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setUpdateTime(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setYktId(jsonObject.getString("ID")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setUserId(userId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setMobile(tel); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    String salt = UUID.randomUUID().toString().substring(0,5); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    String pw = tel.substring(tel.length()-6,tel.length()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setPassword(MD5.md5Hex(pw + "{" + salt + "}")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setSalt(salt); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setLocked(0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setEnabled(1); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDO.setPatientStatus("1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                    basePatientDao.save(basePatientDO); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                            } 
															 | 
															
															 | 
															
																                                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        } 
															 | 
															
															 | 
															
																                                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    }else { 
															 | 
															
															 | 
															
																                                    }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        if (jsonObject.getString("USERNAME").length()>=2){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                            basePatientDO.setName(jsonObject.getString("USERNAME")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                            basePatientDO.setName(tel); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        basePatientDO.setDel("1"); 
															 | 
															
															 | 
															
																                                        basePatientDO.setDel("1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        basePatientDO.setCreateTime(new Date()); 
															 | 
															
															 | 
															
																                                        basePatientDO.setCreateTime(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        basePatientDO.setUpdateTime(new Date()); 
															 | 
															
															 | 
															
																                                        basePatientDO.setUpdateTime(new Date()); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2332,11 +2346,21 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        ykyyService.addFamily(basePatientDO.getUserId(),basePatientDO.getIdcard(),basePatientDO.getName(),sex+"",birdth,age+"",basePatientDO.getMobile()); 
															 | 
															
															 | 
															
																                                        ykyyService.addFamily(basePatientDO.getUserId(),basePatientDO.getIdcard(),basePatientDO.getName(),sex+"",birdth,age+"",basePatientDO.getMobile()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    }*/ 
															 | 
															
															 | 
															
																                                    }*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                } 
															 | 
															
															 | 
															
																                                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            }/*else { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                logger.info("======"+jsonObject.getString("USERNAME")+"======"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                logger.info("tel"+jsonObject.getString("USERNAME")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                BasePatientDO basePatientDO1 = basePatientDOS.get(0); 
															 | 
															
															 | 
															
																                                BasePatientDO basePatientDO1 = basePatientDOS.get(0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                if (basePatientDO1.getName()==null||basePatientDO1.getName()==""){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                    if (jsonObject.getString("USERNAME").length()>=2){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        basePatientDO1.setName(jsonObject.getString("USERNAME")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                    }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        basePatientDO1.setName(tel); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                basePatientDO1.setUserId(userId); 
															 | 
															
															 | 
															
																                                basePatientDO1.setUserId(userId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                basePatientDao.save(basePatientDO1); 
															 | 
															
															 | 
															
																                                basePatientDao.save(basePatientDO1); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                String familyList = ykyyService.getFamilyList(null,userId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                /*String familyList = ykyyService.getFamilyList(null,userId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                JSONObject familyJson = JSONObject.parseObject(familyList); 
															 | 
															
															 | 
															
																                                JSONObject familyJson = JSONObject.parseObject(familyList); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                if (familyJson.getString("code").equalsIgnoreCase("200")){ 
															 | 
															
															 | 
															
																                                if (familyJson.getString("code").equalsIgnoreCase("200")){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    JSONObject object1 = familyJson.getJSONObject("data"); 
															 | 
															
															 | 
															
																                                    JSONObject object1 = familyJson.getJSONObject("data"); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2363,8 +2387,8 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        ykyyService.addFamily(basePatientDO1.getUserId(),basePatientDO1.getIdcard(),basePatientDO1.getName(),sex+"",birdth,age+"",basePatientDO1.getMobile()); 
															 | 
															
															 | 
															
																                                        ykyyService.addFamily(basePatientDO1.getUserId(),basePatientDO1.getIdcard(),basePatientDO1.getName(),sex+"",birdth,age+"",basePatientDO1.getMobile()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    } 
															 | 
															
															 | 
															
																                                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            }*/ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                }*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2597,6 +2621,9 @@ public class WlyyLoginEndpoint extends AbstractEndpoint { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                doctorDOs.setVerifyCode(verifyCode); 
															 | 
															
															 | 
															
																                                doctorDOs.setVerifyCode(verifyCode); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                doctorDOs.setYktDoctorId(yktDoctorId); 
															 | 
															
															 | 
															
																                                doctorDOs.setYktDoctorId(yktDoctorId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                doctorDao.save(doctorDOs); 
															 | 
															
															 | 
															
																                                doctorDao.save(doctorDOs); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                WlyyUserSimple userSimple = new WlyyUserSimple(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                return getFailedResponse("您的账号未认证,请联系互联网医院工作人员,联系电话0592-2108763。",-1,userSimple); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            if (idCard==null||idCard==""){ 
															 | 
															
															 | 
															
																                            if (idCard==null||idCard==""){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                logger.info("身份证为空"); 
															 | 
															
															 | 
															
																                                logger.info("身份证为空"); 
															 |