using System.Collections.Generic;
using System.Threading.Tasks;
using ASHermed.SinoInterface.Api.ContractModel.App.Entity;
using ASHermed.SinoInterface.Repository.MySql;

namespace ASHermed.SinoInterface.Api.IRepository.App
{
    /// <summary>
    /// 患者录入数据仓储
    /// </summary>
    public interface IPubMenberCountRepository : IBaseRepositoryToASHermed_SinoInterface<Pub_Menber_Count>
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="id">id</param>
        /// <param name="patMrn">patMrn</param>
        /// <param name="category">类别</param>
        /// <returns></returns>
        Task<List<Pub_Menber_Count>> QueryAsync(int id,string patMrn,int category);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> InsertAsync(Pub_Menber_Count entity);

        /// <summary>
        /// 更新次数
        /// </summary>
        /// <param name="id"></param>
        /// <param name="quantity"></param>
        /// <returns></returns>
        Task<int> UpdateQuantityAsync(int id, int quantity);
    }
}