package thyyxxk.webserver.controller.jimubaobiao;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.querydata.BaoBiaoChaXun;
import thyyxxk.webserver.service.jimubaobiao.JiMuBaoBiaoService;

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

/**
 * <p>
 * 描述： 积木报表
 * </p>
 *
 * @author xc
 * @date 2021-09-02 10:20
 */
@RequestMapping("/jiMuBaoBiao")
@RestController
public class JiMuBaoBiaoController {

    private final JiMuBaoBiaoService service;

    public JiMuBaoBiaoController(JiMuBaoBiaoService service) {
        this.service = service;
    }

    @GetMapping("/zhuYuanShiJianChao")
    public ResultVo<Map<String, List<BaoBiaoChaXun>>> zhuYuanShiJianChao(@RequestParam("startTime") String startTime,
                                                                         @RequestParam("endTime") String endTime) {
        return service.zhuYuanShiJianChao(startTime, endTime);
    }


}
