package com.jasamedika.medifirst2000.controller; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import com.jasamedika.medifirst2000.service.KartuStokService; @RestController @RequestMapping("/kartu-stok") public class KartuStokController { @Autowired private KartuStokService kartuStokService; private static final Logger LOGGER = LoggerFactory.getLogger(KartuStokController.class); @SuppressWarnings("unchecked") @RequestMapping(value = "/get-kartu-stok") @ResponseBody public List> preAddPenerimaan( @RequestParam(value = "dateStart", required = true) String dateStart, @RequestParam(value = "dateEnd", required = true) String dateEnd, @RequestParam(value = "ruanganId", required = true) Integer ruanganId, @RequestParam(value = "produkId", required = true) Integer produkId) { List> resultPageMap = kartuStokService.getKartuStok( ruanganId,produkId,dateStart,dateEnd); return resultPageMap; } }