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.bigdata.Basehighwayalldata;
import com.elephant.framework.galaxy.aroad.bigdata.EsUtil_fanshe;
import com.elephant.framework.galaxy.aroad.response.R;
import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcPtgsdLwzs;
import com.elephant.framework.galaxy.aroad.module.zhjc.service.ZhjcPtgsdLwzsService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;

import java.util.ArrayList;
import java.util.List;


/**
 * 普通国道路线平均行程车速
 *
 * @author zyw
 * @date 2019-05-06 14:29:11
 */
@RestController
@AllArgsConstructor
@RequestMapping("/zhjc/lwzs")
public class ZhjcPtgsdLwzsController extends BaseController  {

  private final ZhjcPtgsdLwzsService zhjcPtgsdLwzsService;

  /**
   * 查询路网指数数据
   * @param page
   * @param lwjcPtgdlxpjxscs
   * @return
   */
  @GetMapping("/list")
  public R getLwzsList(Page page, ZhjcPtgsdLwzs lwjcPtgdlxpjxscs) {



    return  new R<>(zhjcPtgsdLwzsService.selectLwzs(lwjcPtgdlxpjxscs));
  }


  /**
   * 按路线编号查询
   * @Param keyword 搜索条件
   */
  @GetMapping("/getLines/{lxbh}")
  public R getLines(@PathVariable String lxbh) throws Exception {
    return new R<>(zhjcPtgsdLwzsService.getLinesByLxbh(lxbh));
  }
}
