package com.jasamedika.medifirst2000.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.stereotype.Service;

import com.jasamedika.medifirst2000.dao.JenisTransaksiDao;
import com.jasamedika.medifirst2000.service.MetodeBarangService;


@Service("metodeBarangService")
//@EnableCaching
public class MetodeBarangServiceImpl implements MetodeBarangService {

	@Autowired
	private JenisTransaksiDao jenisTransaksiDao;
	
	@Override
	public Map<String,Object> metodePenentuanHarga(Integer produkId) {
		Map<String,Object> result=jenisTransaksiDao.metodePenenntuanHarga(produkId);
		return result;
	}
	
	@Override
	public Map<String,Object> metodePenentuanStok(Integer produkId) {
		Map<String,Object> result=jenisTransaksiDao.metodePenenntuanStok(produkId);
		return result;
	}

	
}
