package com.elephant.framework.galaxy.aroad.module.zhjc.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.zhjc.entity.ZhjcGhjhGhxm;
import com.elephant.framework.galaxy.aroad.module.zhjc.service.ZhjcGhjhGhxmService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;


/**
 * 智慧决策—项目决策-规划项目
 *
 * @author wangjian
 * @date 2019-05-05 16:10:42
 */
@RestController
@AllArgsConstructor
@RequestMapping("/zhjc/GhjhGhxm")
public class ZhjcGhjhGhxmController extends BaseController  {

  private final  ZhjcGhjhGhxmService ZhjcGhjhGhxmService;

  /**
   * 分页查询
   * @param page 分页对象
   * @param ZhjcGhjhGhxm 智慧决策—项目决策-规划项目
   * @return
   */
  @GetMapping("/page")
  public R getZhjcGhjhGhxmPage(Page page, ZhjcGhjhGhxm ZhjcGhjhGhxm) {
    return  new R<>(ZhjcGhjhGhxmService.getZhjcGhjhXmgzDataByPage(page,ZhjcGhjhGhxm));
  }

  /**
   * 根据统计时间查询规划计划统计分析页面数据
   * @param year
   * @return
   */
  @GetMapping("/getTjfxData")
  public R getZhjcGhjhTjfxDataByYear(String year) {
    return new R<>(ZhjcGhjhGhxmService.getZhjcGhjhTjfxDataByYear(year));
  }

}
