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

import cn.hnthyy.thmz.entity.his.mz.MzYpFydl;
import cn.hnthyy.thmz.mapper.his.mz.MzYpFydlMapper;
import cn.hnthyy.thmz.service.his.mz.MzYpFydlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class MzYpFydlServiceImpl implements MzYpFydlService {
    @SuppressWarnings("all")
    @Autowired
    private MzYpFydlMapper mzYpFydlMapper;
    @Override
    public int saveMzYpFydl(MzYpFydl mzYpFydl) {
        return mzYpFydlMapper.insertMzYpFydl(mzYpFydl);
    }

    @Override
    public List<Map<String, Object>> queryToMedicine(String groupNo,Date beginDate, Date endDate) {
        return mzYpFydlMapper.selectToMedicine(groupNo,beginDate,endDate);
    }
}
