|
@ -222,7 +222,7 @@ public class YkyyService {
|
|
|
}else {
|
|
|
String birdth = IdCardUtil.getBirthdayForIdcardStr(basePatientDO.getIdcard());
|
|
|
Integer age = IdCardUtil.getAgeForIdcard(basePatientDO.getIdcard());
|
|
|
Integer sex = basePatientDO.getSex();
|
|
|
Integer sex = basePatientDO.getSex()!=null?basePatientDO.getSex():0;
|
|
|
String family = addFamily(userId,basePatientDO.getIdcard(),basePatientDO.getName(),sex.toString(),birdth,age.toString(),basePatientDO.getMobile());
|
|
|
JSONObject object2 = JSONObject.parseObject(family);
|
|
|
if (object2.getString("code").equalsIgnoreCase("200")){
|