package thyyxxk.webserver.dao.his.scheduled;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import thyyxxk.webserver.entity.inpatient.patient.Patient;

import java.util.List;

/**
 * <p>
 * 描述： 接受费用
 * </p>
 *
 * @author xc
 * @date 2021-12-21 16:39
 */
public interface JieShouFeiYongDao {

    @Select("select rtrim(inpatient_no) inpatient_no,admiss_times,admiss_date, " +
            "       ledgerSn = (select max(ledger_sn) from zy_ledger_file b " +
            "       where a.inpatient_no = b.inpatient_no and a.admiss_times = b.admiss_times) " +
            "from zy_actpatient a ")
    List<Patient> xuYaoJieShouFeiYong();


    @Update("update yz_sequence set page_no=1 where 1=1")
    void chongZhiYaoDanHao();
}
