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