更新护理采集状态

3.2.4.44
wyb 2 years ago
parent 23a10a3432
commit d7dad6d9db

@ -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}
</update>
<select id="selectOne" resultType="java.lang.Integer">
select count(patient_id) from t_basic where jzh=#{jzh}

Loading…
Cancel
Save