电子病历提交状态更新

master
wyb 2 years ago
parent 03973d2e06
commit 5e64075465

@ -77,6 +77,7 @@ public class SdBusinessServiceImpl implements SdBusinessService {
tBasicMapper.insertOrUpdateDoctorSubmitTime(patientIds.get(0), recordSubmitDto.getSubmitTime());
log.info("补偿电子病历任务 patientIds:{} collectId:{}", patientIds, taskConfig.getCollectorIds());
compensateTask(patientIds, taskConfig.getCollectorIds());
tBasicMapper.updateEmrSubmitState(patientIds.get(0),1);
return new MessageResponse(ResultCode.SUCCESS.getCode(), success());
} catch (BaseException baseException) {
log.error(baseException.getMessage(), baseException);

@ -70,4 +70,12 @@ public interface TBasicMapper {
* @return
*/
int getFileCountByPatientAndSource(@Param("patientId") String patientId, @Param("source") String source);
/**
*
* @param patientId
* @param emrSubmitState 0 1
* @return
*/
int updateEmrSubmitState(@Param("patientId") String patientId, @Param("emrSubmitState") int emrSubmitState);
}

@ -26,6 +26,11 @@
where inpatient_no=#{inpatientNo}
and admiss_times=#{admissTimes}
</update>
<update id="updateEmrSubmitState">
update `docus_medicalrecord`.`t_basic`
set `emr_submit`=#{emrSubmitState}
where patientId=#{patientId}
</update>
<select id="getPatientIdsByInpatientNoAndTimes" resultType="java.lang.String">

Loading…
Cancel
Save