package thyyxxk.webserver.controller.medicalinsurance.costcontrol;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.medicalinsurance.costcontrol.YbkfShareDto;
import thyyxxk.webserver.service.medicalinsurance.costcontrol.YbCssBzService;

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

/**
 * @Description: 长沙市病种统计
 * @Author: hsh
 * @CreateTime: 2022-09-20  10:26
 * @Version: 1.0
 */
@RestController
@RequestMapping("/cssBzTj")
public class YbCssBzController {

    private final YbCssBzService service;

    @Autowired
    public YbCssBzController(YbCssBzService service) {
        this.service = service;
    }

    @PostMapping("/selectCssYbBzTj")
    public ResultVo<List<Map<String, Object>>> selectCssYbBzTj(@RequestBody @Validated YbkfShareDto dto){
        return service.selectCssYbBzTj(dto);
    }

    @PostMapping("/selectBzDbTj")
    public ResultVo<List<Map<String, Object>>> selectBzDbTj(@RequestBody @Validated YbkfShareDto dto){
        return service.selectBzDbTj(dto);
    }

    @PostMapping("/selectBzDbBrTj")
    public ResultVo<List<Map<String, Object>>> selectBzDbBrTj(@RequestBody @Validated YbkfShareDto dto){
        return service.selectBzDbBrTj(dto);
    }

}
