/*
 * Author: wangjian
 * 生成controller
 */
package com.tofly.xrtygis.controller;

/**
 * SCADA测站历史监测信息表
 *
 * @author admin
 * @date Wed Mar 10 00:00:00 CST 2021
 */
/*@RestController
@AllArgsConstructor
@RequestMapping("/scadahistory")
@Api(tags="SCADA测站历史监测信息表接口")*/
public class ScadahistoryController {

    /*private final ScadahistoryService scadahistoryService;

    *//**
    * 分页查询
    * @param page 分页对象
    * @param scadahistory SCADA测站历史监测信息表
    * @return
    *//*
    @GetMapping("/page" )
    @ApiOperation(value = "分页查询")
    public ResultRespone getScadahistoryPage(Page page, @ModelAttribute Scadahistory scadahistory) {
      return ResultRespone.success(scadahistoryService.page(page, Wrappers.query(scadahistory)));
    }


    *//**
     * 通过id查询SCADA测站历史监测信息表
     * @param id id
     * @return ResultRespone
     *//*
    @GetMapping("/{id}" )
    @ApiOperation(value = "通过ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    public ResultRespone getById(@PathVariable("id" ) Long id) {
      return ResultRespone.success(scadahistoryService.getById(id));
    }

    *//**
     * 新增SCADA测站历史监测信息表
     * @param scadahistory SCADA测站历史监测信息表
     * @return ResultRespone
     *//*
    //(title="新增SCADA测站历史监测信息表" )
    @ApiOperation(value = "新增SCADA测站历史监测信息表")
    @PostMapping
    public ResultRespone save(@RequestBody Scadahistory scadahistory) {
      return ResultRespone.success(scadahistoryService.save(scadahistory));
    }

    *//**
     * 修改SCADA测站历史监测信息表
     * @param scadahistory SCADA测站历史监测信息表
     * @return ResultRespone
     *//*
    //(title="修改SCADA测站历史监测信息表" )
    @ApiOperation(value = "修改SCADA测站历史监测信息表")
    @PutMapping
    public ResultRespone updateById(@RequestBody Scadahistory scadahistory) {
      return ResultRespone.success(scadahistoryService.updateById(scadahistory));
    }

    *//**
     * 通过id删除SCADA测站历史监测信息表
     * @param id id
     * @return ResultRespone
     *//*
    //(title="通过id删除SCADA测站历史监测信息表" )
    @ApiOperation(value = "通过ID删除SCADA测站历史监测信息表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    @DeleteMapping("/{id}" )
    public ResultRespone removeById(@PathVariable Long id) {
      return ResultRespone.success(scadahistoryService.removeById(id));
    }

    *//**
     * 通过id批量删除SCADA测站历史监测信息表
     * @param ids id
     * @return ResultRespone
     *//*
    //(title="通过id批量删除SCADA测站历史监测信息表" )
    @ApiOperation(value = "通过ID批量删除SCADA测站历史监测信息表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "批量删除，多个id以逗号隔开", required = true, dataType = "String")
    })
    @DeleteMapping("/deleteByIds" )
    public ResultRespone removeById(String ids) {
        return ResultRespone.success(scadahistoryService.removeByIds(Arrays.asList(ids.split(","))));
    }*/
}
