修改人工随访代办处理
This commit is contained in:
parent
b357b669cd
commit
3514b0a62a
@ -208,11 +208,16 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
// 新增患者管理任务执行记录
|
// 新增患者管理任务执行记录
|
||||||
insertPatientTaskExecuteRecord(dto, routeHandlePerson, time);
|
insertPatientTaskExecuteRecord(dto, routeHandlePerson, time);
|
||||||
} else {
|
} else {
|
||||||
// 如果任务类型不是电话外呼(人工随访,问卷量表),新增问卷提交结果表(题目,选项表),更新节点任务表,新增患者管理任务执行记录
|
// 如果任务类型不是电话外呼,更新节点任务表,新增患者管理任务执行记录,新增问卷提交结果表、题目表、选项表
|
||||||
|
// 更新节点任务表
|
||||||
|
updateSignPatientManageRouteNode(dto, routeHandlePerson, time);
|
||||||
|
// 新增患者管理任务执行记录
|
||||||
|
Long taskExecuteRecordId = insertPatientTaskExecuteRecord(dto, routeHandlePerson, time);
|
||||||
PatientQuestionSubmitResult patientQuestionSubmitResult = new PatientQuestionSubmitResult();
|
PatientQuestionSubmitResult patientQuestionSubmitResult = new PatientQuestionSubmitResult();
|
||||||
BeanUtils.copyBeanProp(patientQuestionSubmitResult, dto);
|
BeanUtils.copyBeanProp(patientQuestionSubmitResult, dto);
|
||||||
patientQuestionSubmitResult.setCreateBy(routeHandlePerson);
|
patientQuestionSubmitResult.setCreateBy(routeHandlePerson);
|
||||||
patientQuestionSubmitResult.setCreateTime(time);
|
patientQuestionSubmitResult.setCreateTime(time);
|
||||||
|
patientQuestionSubmitResult.setTaskExecuteRecordId(taskExecuteRecordId);
|
||||||
// 新增患者问卷提交结果
|
// 新增患者问卷提交结果
|
||||||
if (patientQuestionSubmitResultMapper.insertPatientQuestionSubmitResult(patientQuestionSubmitResult) <= 0) {
|
if (patientQuestionSubmitResultMapper.insertPatientQuestionSubmitResult(patientQuestionSubmitResult) <= 0) {
|
||||||
throw new ServiceException("新增患者问卷提交结果失败");
|
throw new ServiceException("新增患者问卷提交结果失败");
|
||||||
@ -255,11 +260,6 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
if (patientQuestionOptionResultMapper.saveQuestionOptionList(saveQuestionSubjectOptions) <= 0) {
|
if (patientQuestionOptionResultMapper.saveQuestionOptionList(saveQuestionSubjectOptions) <= 0) {
|
||||||
throw new ServiceException("新增患者问卷题目选项提交结果失败");
|
throw new ServiceException("新增患者问卷题目选项提交结果失败");
|
||||||
}
|
}
|
||||||
// 更新节点任务表
|
|
||||||
updateSignPatientManageRouteNode(dto, routeHandlePerson, time);
|
|
||||||
// 新增患者管理任务执行记录
|
|
||||||
insertPatientTaskExecuteRecord(dto, routeHandlePerson, time);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
@ -267,7 +267,7 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
/**
|
/**
|
||||||
* 新增患者管理任务执行记录
|
* 新增患者管理任务执行记录
|
||||||
*/
|
*/
|
||||||
private void insertPatientTaskExecuteRecord(PatientQuestionSubmitResultDTO dto, String routeHandlePerson, LocalDateTime time) {
|
private Long insertPatientTaskExecuteRecord(PatientQuestionSubmitResultDTO dto, String routeHandlePerson, LocalDateTime time) {
|
||||||
PatientTaskExecuteRecord patientTaskExecuteRecord = new PatientTaskExecuteRecord();
|
PatientTaskExecuteRecord patientTaskExecuteRecord = new PatientTaskExecuteRecord();
|
||||||
BeanUtils.copyProperties(dto, patientTaskExecuteRecord);
|
BeanUtils.copyProperties(dto, patientTaskExecuteRecord);
|
||||||
patientTaskExecuteRecord.setTaskContent(dto.getTaskType());
|
patientTaskExecuteRecord.setTaskContent(dto.getTaskType());
|
||||||
@ -276,11 +276,12 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
patientTaskExecuteRecord.setExecuteType(TaskCreateTypeConstant.MANUAL_CREATE);
|
patientTaskExecuteRecord.setExecuteType(TaskCreateTypeConstant.MANUAL_CREATE);
|
||||||
patientTaskExecuteRecord.setCreateBy(routeHandlePerson);
|
patientTaskExecuteRecord.setCreateBy(routeHandlePerson);
|
||||||
patientTaskExecuteRecord.setCreateTime(time);
|
patientTaskExecuteRecord.setCreateTime(time);
|
||||||
if (patientTaskExecuteRecordMapper.insertPatientTaskExecuteRecord(patientTaskExecuteRecord) <= 0) {
|
if (patientTaskExecuteRecordMapper.insertPatientTaskExecuteRecord(patientTaskExecuteRecord) > 0) {
|
||||||
|
return patientTaskExecuteRecord.getId();
|
||||||
|
} else {
|
||||||
throw new ServiceException("新增患者管理任务记录失败");
|
throw new ServiceException("新增患者管理任务记录失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新节点任务表
|
* 更新节点任务表
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user