版本更新
This commit is contained in:
@@ -306,19 +306,19 @@ public class OutpatientTreatmentAppServiceImpl implements IOutpatientTreatmentAp
|
||||
// 判断该项目是否已经执行了
|
||||
if (performCount - cancelCount < exeCount) {
|
||||
// 未执行则新增执行记录
|
||||
boolean result = procedureService.addProcedureRecord(encounterId, patientId, requestId,
|
||||
Long procedureId = procedureService.addProcedureRecord(encounterId, patientId, requestId,
|
||||
performInfoDto.getRequestTable(), EventStatus.COMPLETED,
|
||||
ProcedureCategory.OUTPATIENT_ADVICE, null, groupId, null);
|
||||
if (!result) {
|
||||
ProcedureCategory.OUTPATIENT_ADVICE, null, DateUtils.getNowDate(), groupId, null);
|
||||
if (procedureId == null) {
|
||||
throw new ServiceException("执行失败,请联系管理员");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// 新增执行记录
|
||||
boolean result = procedureService.addProcedureRecord(encounterId, patientId, requestId,
|
||||
Long procedureId = procedureService.addProcedureRecord(encounterId, patientId, requestId,
|
||||
performInfoDto.getRequestTable(), EventStatus.COMPLETED, ProcedureCategory.OUTPATIENT_ADVICE,
|
||||
null, groupId, null);
|
||||
if (!result) {
|
||||
null, DateUtils.getNowDate(), groupId, null);
|
||||
if (procedureId == null) {
|
||||
throw new ServiceException("执行失败,请联系管理员");
|
||||
}
|
||||
}
|
||||
@@ -469,11 +469,11 @@ public class OutpatientTreatmentAppServiceImpl implements IOutpatientTreatmentAp
|
||||
// 判断该项目是否已经执行了
|
||||
if (performCount - cancelCount > 0) {
|
||||
// 已执行则新增取消执行记录
|
||||
boolean result = procedureService.addProcedureRecord(procedure.getEncounterId(),
|
||||
Long procedureId = procedureService.addProcedureRecord(procedure.getEncounterId(),
|
||||
procedure.getPatientId(), procedure.getRequestId(), procedure.getRequestTable(),
|
||||
EventStatus.CANCEL, ProcedureCategory.OUTPATIENT_ADVICE, performInfoDto.getLocationId(),
|
||||
performInfoDto.getGroupId(), null);
|
||||
if (!result) {
|
||||
DateUtils.getNowDate(), performInfoDto.getGroupId(), null);
|
||||
if (procedureId == null) {
|
||||
throw new ServiceException("取消执行失败,请联系管理员");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user