@ -95,4 +95,12 @@ public interface TBasicMapper{
TBasic getByPatientId(@Param("patientId") String patientId);
int deleteByPatientId(@Param("patientId") String patientId);
/**
* 更新患者的护理采集状态
* @param patientId 病案
* @param state 状态 0未采集 1 已采集
* @return 数据库操作
*/
int updateNursCollectState(@Param("patientId") String patientId, @Param("state") int state);
}
@ -67,6 +67,7 @@ public class NisReportDownloadWaitHandler extends RedisKeyExpirationHandler {
boolean verifyNisFileCountResult = verifyNisFileCountAndPushErr(patientId);
if (verifyNisFileCountResult) {
nisQualityControl(patientId);
tBasicMapper.updateNursCollectState(patientId,1);
@ -112,6 +112,10 @@
`ward_name`=#{tBasicExtend.wardName},
`sdry_index`=#{tBasicExtend.sdryIndex}
</update>
<update id="updateNursCollectState">
UPDATE `docus_medicalrecord`.`t_basic` set nurs_collect = #{state}
where patient_id=#{patientId}
<select id="selectOne" resultType="java.lang.Integer">
select count(patient_id) from t_basic where jzh=#{jzh}