package cn.hnthyy.thmz.service.impl.his.yf;

import cn.hnthyy.thmz.mapper.his.yf.YfDrugApplyMapper;
import cn.hnthyy.thmz.pageDto.PageBean;
import cn.hnthyy.thmz.service.his.yf.YfDrugApplyService;
import cn.hnthyy.thmz.vo.YpBaseYfBoundVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:药品请领、上下限管理服务
 * @author: WANGJIALIANG
 * @time: 2021/8/25 9:54
 */
@Service
public class YfDrugApplyServiceImpl implements YfDrugApplyService {
    @Autowired
    private YfDrugApplyMapper yfDrugApplyMapper;

    @Override
    public List<YpBaseYfBoundVo> queryYpBaseYfBoundPage(String searchText, String groupNo, PageBean pageBean) {
        return yfDrugApplyMapper.selectYpBaseYfBoundPage(searchText, groupNo, pageBean);
    }

    @Override
    public int countYpBaseYfBound(String searchText, String groupNo) {
        return yfDrugApplyMapper.countYpBaseYfBound(searchText, groupNo);
    }
}
