|
|
@@ -471,7 +471,9 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
fsPrescribe.setPatientBirthday(birthday);
|
|
|
fsPrescribe.setPatientAge(String.valueOf(calculateAge(birthday)));
|
|
|
}
|
|
|
- fsPrescribe.setWeight(String.valueOf(param.getPatientInfo().getWeight()));
|
|
|
+ if (param.getPatientInfo().getWeight()!=null){
|
|
|
+ fsPrescribe.setWeight(String.valueOf(param.getPatientInfo().getWeight()));
|
|
|
+ }
|
|
|
fsPrescribe.setPatientId(param.getPatientInfo().getPatientId());
|
|
|
fsPrescribe.setPatientName(param.getPatientInfo().getPatientName());
|
|
|
fsPrescribe.setPatientTel(param.getPatientInfo().getMobile());
|
|
|
@@ -1593,7 +1595,12 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
throw new CustomException("用户采集信息不存在");
|
|
|
}
|
|
|
//校验填写用户与信息采集信息用户是否一致
|
|
|
- if (!param.getUserId().equals(informationCollection.getUserId())) {
|
|
|
+ FsUser fsUser = userService.selectFsUserByUserId(param.getUserId());
|
|
|
+ if (fsUser == null) {
|
|
|
+ log.error("用户信息不存在");
|
|
|
+ throw new CustomException("请登录");
|
|
|
+ }
|
|
|
+ if (!informationCollection.getUserId().equals(param.getUserId())) {
|
|
|
log.error("信息采集用户信息不一致,当前用户userId:{},信息采集表实际userId:{}", param.getUserId(), informationCollection.getUserId());
|
|
|
throw new CustomException("用户信息不一致,请检查");
|
|
|
}
|