|
|
@@ -255,7 +255,8 @@ public class TriageService {
|
|
|
|
|
|
public ResultVo<String> saveMzVitalSigns(MzYshTzxx param) {
|
|
|
log.info("保存生命体征:{}", param);
|
|
|
- if (null == dao.getMzVitalSigns(param.getPatientId(), param.getTimes())) {
|
|
|
+ MzYshTzxx tzxx = dao.getMzVitalSigns(param.getPatientId(), param.getTimes());
|
|
|
+ if (null == tzxx) {
|
|
|
dao.insertMzVitalSigns(param);
|
|
|
} else {
|
|
|
dao.updateMzVitalSigns(param);
|
|
|
@@ -368,6 +369,22 @@ public class TriageService {
|
|
|
} else {
|
|
|
erdao.insert(info);
|
|
|
}
|
|
|
+ MzYshTzxx tzxx = new MzYshTzxx();
|
|
|
+ tzxx.setPatientId(info.getPatientId());
|
|
|
+ tzxx.setTimes(info.getTimes());
|
|
|
+ tzxx.setValueMb(info.getPulse());
|
|
|
+ String bldprs = info.getBloodPressure();
|
|
|
+ if (null != bldprs && bldprs.contains("/")) {
|
|
|
+ String[] xy = info.getBloodPressure().split("/");
|
|
|
+ tzxx.setValueSsy(xy[0]);
|
|
|
+ tzxx.setValueSzy(xy[1]);
|
|
|
+ }
|
|
|
+ tzxx.setValueTw(info.getTemperature());
|
|
|
+ if (null == info.getRegTime()) {
|
|
|
+ info.setRegTime(new Date());
|
|
|
+ }
|
|
|
+ tzxx.setVisitDate(info.getRegTime());
|
|
|
+ saveMzVitalSigns(tzxx);
|
|
|
return info.getId();
|
|
|
}
|
|
|
|