|
@@ -691,6 +691,9 @@ public class FsPrescribeServiceImpl implements IFsPrescribeService
|
|
|
fsPrescribe.setUserId(packageOrder.getUserId());
|
|
fsPrescribe.setUserId(packageOrder.getUserId());
|
|
|
fsPrescribe.setPrescribeCode(IdUtil.getSnowflake(0, 0).nextIdStr());
|
|
fsPrescribe.setPrescribeCode(IdUtil.getSnowflake(0, 0).nextIdStr());
|
|
|
FsPackagePatientDTO patJson = JSON.parseObject(packageOrder.getPatientJson(),FsPackagePatientDTO.class);
|
|
FsPackagePatientDTO patJson = JSON.parseObject(packageOrder.getPatientJson(),FsPackagePatientDTO.class);
|
|
|
|
|
+ if (patJson.getBirthday() == null) {
|
|
|
|
|
+ patJson.setBirthday(-285753600000L);
|
|
|
|
|
+ }
|
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
|
long ageInMillis = currentTimeMillis - patJson.getBirthday();
|
|
long ageInMillis = currentTimeMillis - patJson.getBirthday();
|
|
|
long ageInSeconds = ageInMillis / 1000;
|
|
long ageInSeconds = ageInMillis / 1000;
|