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.module.zhyh.entity.ZhyhZhzsQlData;
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.ZhyhZhzsQl;
import com.elephant.framework.galaxy.aroad.module.zhyh.service.ZhyhZhzsQlService;
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 15:34:59
 */
@RestController
@AllArgsConstructor
@RequestMapping("/zhyh/zhzsql")
public class ZhyhZhzsQlController extends BaseController  {

  private final  ZhyhZhzsQlService zhyhZhzsQlService;

  /**
   * 获取综合展示桥梁信息
   * @param year
   * @return
   */
  @GetMapping("/getZhzsQlData")
  public R getZhyhZhzsQlDataByYear(String year) {
    return new R<>(zhyhZhzsQlService.getZhyhZhzsQlDataByYear(year));
  }

}
