package thyyxxk.webserver.dao.his.medicalinsurance;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import thyyxxk.webserver.entity.medicalinsurance.manage.setloverlimit.SetlOverLimitEntity;

@Mapper
public interface SetlOverLimitDao {
    @Select("select times,ledger_sn,pat_no,psn_name as patName, " +
            "mdtrt_id, setl_id from t_si_setlinfo where setl_id=#{setlId}")
    SetlOverLimitEntity getRawEntity(String setlId);

    @Select("select ori_detail_sn from zy_detail_charge where " +
            "inpatient_no=#{patNo} and admiss_times=#{times} " +
            "and ledger_sn=#{ledgerSn} and detail_sn=#{detailSn}")
    Integer getOriDetailSn(SetlOverLimitEntity entity);
}
