|
|
@@ -76,6 +76,12 @@ public class FsPatientServiceImpl implements IFsPatientService
|
|
|
@Override
|
|
|
public int updateFsPatient(FsPatient fsPatient)
|
|
|
{
|
|
|
+ if (fsPatient.getIdCard() == null) {
|
|
|
+ fsPatient.setIdCard("");
|
|
|
+ }
|
|
|
+ if (fsPatient.getBirthday() == null) {
|
|
|
+ fsPatient.setBirthday(DateUtils.getNowDate());
|
|
|
+ }
|
|
|
fsPatient.setUpdateTime(DateUtils.getNowDate());
|
|
|
if (fsPatient.getMobile()!=null&&fsPatient.getMobile().length()==11&&fsPatient.getMobile().matches("\\d+")){
|
|
|
fsPatient.setMobile(encryptPhone(fsPatient.getMobile()));
|