|
@ -11,7 +11,6 @@ import com.yihu.jw.security.dao.patient.BasePatientMedicareCardDao;
|
|
|
import com.yihu.jw.security.dao.patient.BasePatientWechatDao;
|
|
|
import com.yihu.jw.security.dao.patient.WlyyPatientFamilyMemberDao;
|
|
|
import com.yihu.jw.security.utils.IdCardUtil;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import com.yihu.jw.util.encrypt.MD5;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@ -140,15 +139,24 @@ public class RegisterService {
|
|
|
List<BasePatientDO> p3 = basePatientDao.findListByIdcardAndDel(idcard, "1");
|
|
|
if (p3 != null && p3.size() > 0) {
|
|
|
BasePatientDO tmp = p3.get(0);
|
|
|
rs.put("code", "-3");
|
|
|
rs.put("mobile", StringUtils.isNotBlank(tmp.getMobile()) ? tmp.getMobile() : tmp.getMobileRemarks());
|
|
|
rs.put("mes", "当前身份证已有注册信息,请填写正确的手机号登录");
|
|
|
return rs;
|
|
|
if(StringUtils.isBlank(tmp.getMobile())){
|
|
|
tmp.setMobile(mobile);
|
|
|
basePatientDao.save(tmp);
|
|
|
rs.put("code", "1");
|
|
|
rs.put("mes", "ok");
|
|
|
rs.put("patient", tmp);
|
|
|
}else {
|
|
|
rs.put("code", "-3");
|
|
|
rs.put("mobile", StringUtils.isNotBlank(tmp.getMobile()) ? tmp.getMobile() : tmp.getMobileRemarks());
|
|
|
rs.put("mes", "当前身份证已有注册信息,请填写正确的手机号登录");
|
|
|
return rs;
|
|
|
}
|
|
|
}
|
|
|
BasePatientDO patient = new BasePatientDO();
|
|
|
if (StringUtils.isNotBlank(idcard)) {
|
|
|
idcard = idcard.toUpperCase();
|
|
|
}
|
|
|
BasePatientDO patient = new BasePatientDO();
|
|
|
|
|
|
String salt = UUID.randomUUID().toString().substring(0, 5);
|
|
|
if(StringUtils.isBlank(pw)){
|
|
|
//三院注册不需要密码 默认密码aza354q.
|