package com.smartor.mapper; import com.smartor.domain.PatMedOuthospError; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * 门急诊采集失败记录Mapper接口 * * @author smartor */ @Mapper public interface PatMedOuthospErrorMapper { /** * 写入采集失败记录(同一条记录同一类错误只保留一行,重复失败累加 fail_count) * * @param error 失败记录 * @return 结果 */ int insertPatMedOuthospError(PatMedOuthospError error); /** * 查询采集失败记录列表(人工处理用) * * @param error 查询条件(handleStatus / errorType / serialnum / gatherDate) * @return 失败记录集合 */ List selectPatMedOuthospErrorList(PatMedOuthospError error); /** * 人工处理:更新处理状态和备注 * * @param error 失败记录 * @return 结果 */ int updateHandleStatus(PatMedOuthospError error); }