package com.huimv.getdata.controller;

import com.huimv.getdata.entity.renshi.YuanGongShuLiang;
import com.huimv.getdata.entity.shengcan.ShiJiChanLiang;
import com.huimv.getdata.service.IErpHrService;
import com.huimv.getdata.service.IErpShengChanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

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

@RestController
@RequestMapping("/erp-Hr")
public class ErpHrController {

    @Autowired
    private IErpHrService erpHrService;

    @RequestMapping(value = "/getYuanGongRenShu",method = RequestMethod.GET)
    public List<YuanGongShuLiang> getYuanGongRenShu(@RequestParam(value = "date" ,required = false) String date){
        return erpHrService.getYuanGongRenShu(date);
    }
}
