package thyyxxk.webserver.controller.medicalinsurance.costcontrol;

import org.springframework.beans.factory.annotation.Autowired;
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.config.auth.PassToken;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.service.medicalinsurance.costcontrol.OutpatientCoordinationService;

import java.util.Map;

/**
 * @Description: 门诊统筹人数统计
 * @Author: hsh
 * @CreateTime: 2022-10-19  10:25
 * @Version: 1.0
 */
@RestController
@RequestMapping("/outpatientCoordination")
public class OutpatientCoordinationController {

    private final OutpatientCoordinationService service;

    @Autowired
    public OutpatientCoordinationController(OutpatientCoordinationService service) {
        this.service = service;
    }

    @PassToken
    @GetMapping("/selectOutpatientCoordination")
    public ResultVo<Map<String, Object>> selectOutpatientCoordination(@RequestParam("month") String month){
        return service.selectOutpatientCoordination(month);
    }


}
