package com.elephant.framework.galaxy.aroad.module.zhyh.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.response.R;
import com.elephant.framework.galaxy.aroad.module.common.annotation.SysLog;
import com.elephant.framework.galaxy.aroad.module.zhyh.entity.ZhyhZhzs;
import com.elephant.framework.galaxy.aroad.module.zhyh.service.ZhyhZhzsService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;


/**
 * 智慧养护_综合展示
 *
 * @author wangjian
 * @date 2019-04-26 11:51:59
 */
@RestController
@AllArgsConstructor
@RequestMapping("/zhyh/zhzs")
public class ZhyhZhzsController extends BaseController  {

  private final  ZhyhZhzsService zhyhZhzsService;

  /**
   * 智慧养护综合展示根据年份进行数据查询
   * @param year 年份
   * @return
   */
  @GetMapping("/getZhzsData")
  public R getZhyhZhzsData(String year) {
    return new R<>(zhyhZhzsService.getZhyhZhzsData(year));
  }
}
