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

/**
 * 取供水指标配置表
 *
 * @author admin
 * @date Sat May 28 00:00:00 CST 2022
 */
/*@RestController
@AllArgsConstructor
@RequestMapping("/wateryieldconfig")
@Api(tags="取供水指标配置表接口")*/
public class WateryieldconfigController {

    /*private final  WateryieldconfigService wateryieldconfigService;

    *//**
    * 分页查询
    * @param page 分页对象
    * @param wateryieldconfig 取供水指标配置表
    * @return
    *//*
    @GetMapping("/page" )
    @ApiOperation(value = "分页查询")
    public ResultRespone getWateryieldconfigPage(Page page, @ModelAttribute Wateryieldconfig wateryieldconfig) {
      return ResultRespone.success(wateryieldconfigService.page(page, Wrappers.query(wateryieldconfig)));
    }


    *//**
     * 通过id查询取供水指标配置表
     * @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(wateryieldconfigService.getById(id));
    }

    *//**
     * 新增取供水指标配置表
     * @param wateryieldconfig 取供水指标配置表
     * @return ResultRespone
     *//*
    @ToFlyAppLog(title="新增取供水指标配置表" )
    @ApiOperation(value = "新增取供水指标配置表")
    @PostMapping
    public ResultRespone save(@RequestBody Wateryieldconfig wateryieldconfig) {
      return ResultRespone.success(wateryieldconfigService.save(wateryieldconfig));
    }

    *//**
     * 修改取供水指标配置表
     * @param wateryieldconfig 取供水指标配置表
     * @return ResultRespone
     *//*
    @ToFlyAppLog(title="修改取供水指标配置表" )
    @ApiOperation(value = "修改取供水指标配置表")
    @PutMapping
    public ResultRespone updateById(@RequestBody Wateryieldconfig wateryieldconfig) {
      return ResultRespone.success(wateryieldconfigService.updateById(wateryieldconfig));
    }

    *//**
     * 通过id删除取供水指标配置表
     * @param id id
     * @return ResultRespone
     *//*
    @ToFlyAppLog(title="通过id删除取供水指标配置表" )
    @ApiOperation(value = "通过ID删除取供水指标配置表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    @DeleteMapping("/{id}" )
    public ResultRespone removeById(@PathVariable Long id) {
      return ResultRespone.success(wateryieldconfigService.removeById(id));
    }

    *//**
     * 通过id批量删除取供水指标配置表
     * @param ids id
     * @return ResultRespone
     *//*
    @ToFlyAppLog(title="通过id批量删除取供水指标配置表" )
    @ApiOperation(value = "通过ID批量删除取供水指标配置表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "批量删除，多个id以逗号隔开", required = true, dataType = "String")
    })
    @DeleteMapping("/deleteByIds" )
    public ResultRespone removeById(String ids) {
        return ResultRespone.success(wateryieldconfigService.removeByIds(Arrays.asList(ids.split(","))));
    }*/
}
