任务记录就诊记录修改修改
This commit is contained in:
parent
97140adfee
commit
eed31e2698
@ -105,6 +105,9 @@ public class PatientTaskExecuteRecordServiceImpl implements IPatientTaskExecuteR
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult selectVisitRecord(Long id, Long patientId) {
|
public AjaxResult selectVisitRecord(Long id, Long patientId) {
|
||||||
|
if (Objects.isNull(id) && Objects.isNull(patientId)){
|
||||||
|
return AjaxResult.error("请选择要查询的信息!");
|
||||||
|
}
|
||||||
PatientTaskExecuteRecordVO patientTaskExecuteRecordVO = patientTaskExecuteRecordMapper.selectVisitRecord(id, patientId);
|
PatientTaskExecuteRecordVO patientTaskExecuteRecordVO = patientTaskExecuteRecordMapper.selectVisitRecord(id, patientId);
|
||||||
if (Objects.nonNull(patientTaskExecuteRecordVO) && Objects.nonNull(patientTaskExecuteRecordVO.getBirthDate())) {
|
if (Objects.nonNull(patientTaskExecuteRecordVO) && Objects.nonNull(patientTaskExecuteRecordVO.getBirthDate())) {
|
||||||
patientTaskExecuteRecordVO.setAge(AgeUtil.getAgeMonth(patientTaskExecuteRecordVO.getBirthDate().toString()));
|
patientTaskExecuteRecordVO.setAge(AgeUtil.getAgeMonth(patientTaskExecuteRecordVO.getBirthDate().toString()));
|
||||||
|
|||||||
@ -316,7 +316,7 @@
|
|||||||
ri.address
|
ri.address
|
||||||
FROM patient_info pi
|
FROM patient_info pi
|
||||||
LEFT JOIN patient_task_execute_record pter ON pi.id = pter.patient_id
|
LEFT JOIN patient_task_execute_record pter ON pi.id = pter.patient_id
|
||||||
LEFT JOIN patient_visit_record pvr ON pter.visit_record_id = pvr.id
|
LEFT JOIN patient_visit_record pvr ON pvr.id = pi.patient_visit_record_id
|
||||||
LEFT JOIN resident_info ri ON ri.id = pi.resident_id
|
LEFT JOIN resident_info ri ON ri.id = pi.resident_id
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
|
|||||||
@ -119,4 +119,12 @@ public class HomePageController extends BaseController {
|
|||||||
public AjaxResult nodeExecuteStatus(Long manageRouteNodeId) {
|
public AjaxResult nodeExecuteStatus(Long manageRouteNodeId) {
|
||||||
return homePageService.nodeExecuteStatus(manageRouteNodeId);
|
return homePageService.nodeExecuteStatus(manageRouteNodeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存宣教文章查看时间
|
||||||
|
*/
|
||||||
|
@PostMapping("/viewPropaganda")
|
||||||
|
public AjaxResult viewPropaganda(Long manageRouteNodeId) {
|
||||||
|
return homePageService.viewPropaganda(manageRouteNodeId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -105,4 +105,12 @@ public interface HomePageService {
|
|||||||
* @return AjaxResult
|
* @return AjaxResult
|
||||||
*/
|
*/
|
||||||
AjaxResult nodeExecuteStatus(Long manageRouteNodeId);
|
AjaxResult nodeExecuteStatus(Long manageRouteNodeId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存宣教文章查看时间
|
||||||
|
*
|
||||||
|
* @param manageRouteNodeId 节点id
|
||||||
|
* @return AjaxResult
|
||||||
|
*/
|
||||||
|
AjaxResult viewPropaganda(Long manageRouteNodeId);
|
||||||
}
|
}
|
||||||
@ -400,4 +400,19 @@ public class HomePageServiceImpl implements HomePageService {
|
|||||||
}
|
}
|
||||||
return AjaxResult.success(nodeExecuteStatus);
|
return AjaxResult.success(nodeExecuteStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存宣教文章查看时间
|
||||||
|
*
|
||||||
|
* @param manageRouteNodeId 节点id
|
||||||
|
* @return AjaxResult
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public AjaxResult viewPropaganda(Long manageRouteNodeId) {
|
||||||
|
SignPatientManageRouteNode signPatientManageRouteNode = new SignPatientManageRouteNode();
|
||||||
|
signPatientManageRouteNode.setId(manageRouteNodeId);
|
||||||
|
signPatientManageRouteNode.setNodeFinishDate(LocalDateTime.now());
|
||||||
|
signPatientManageRouteNodeMapper.updateSignPatientManageRouteNode(signPatientManageRouteNode);
|
||||||
|
return AjaxResult.success();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user