package com.casic.PgInterface.overtimeInPG.web;


import com.casic.PgInterface.overtimeInPG.manager.PGInOutRecManager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("InOutPGrec")
public class PGInOutRecController {
@Resource
private PGInOutRecManager pgInOutRecManager;
    @RequestMapping("query")
    @ResponseBody
    public Map<String , Object> query(@RequestParam(value = "dtFrom", required = true) String dtFrom,@RequestParam(value = "dtTo", required = true) String dtTo)
    {
        Map<String,Object> resultMap = new HashMap<>();
        resultMap = pgInOutRecManager.getInOutRec(dtFrom,dtTo);
        return resultMap;
    }
}
