package com.boman.web.core.controller;

import com.boman.domain.dto.AjaxResult;
import com.boman.web.core.service.vaccineInfo.IVaccineInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shiqian
 * @date 2021年09月16日 15:13
 * @description 统计分析
 **/
@RestController
@RequestMapping("/vaccination")
public class VaccinationController {

    @Resource
    private IVaccineInfoService service;

    /**
     * 功能描述: 统计 todo 后期可能会单独查某一个乡镇
     *
     * @return java.util.List<com.alibaba.fastjson.JSONObject>
     */
    @GetMapping("/statistic")
    public AjaxResult statistic() {
        return service.statistic();
    }

    @GetMapping("/statisticYmjz")
    public AjaxResult statisticYmjz() {
        return AjaxResult.success(service.list());
    }

}
