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

//import io.swagger.annotations.Api;
//import lombok.AllArgsConstructor;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
///**
// * 区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
// *
// * @author admin
// * @date Thu May 27 00:00:00 CST 2021
// */
//@RestController
//@AllArgsConstructor
//@RequestMapping("/dmatablechange")
//@Api(tags="区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W接口")
public class DmatablechangeController {

    /*private final  DmatablechangeService dmatablechangeService;

    *//*
     分页查询
     @param page 分页对象
    * @param dmatablechange 区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
    * @return
    *//*
    @GetMapping("/page" )
    @ApiOperation(value = "分页查询")
    public ResultRespone getDmatablechangePage(Page page, @ModelAttribute Dmatablechange dmatablechange) {
      return ResultRespone.success(dmatablechangeService.page(page, Wrappers.query(dmatablechange)));
    }


    *//*
      通过id查询区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
      @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(dmatablechangeService.getById(id));
    }

    *//*
      新增区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
      @param dmatablechange 区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
     * @return ResultRespone
     *//*
    //(title="新增区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W" )
    @ApiOperation(value = "新增区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W")
    @PostMapping
    public ResultRespone save(@RequestBody Dmatablechange dmatablechange) {
      return ResultRespone.success(dmatablechangeService.save(dmatablechange));
    }

    *//*
      修改区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
      @param dmatablechange 区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
     * @return ResultRespone
     *//*
    //(title="修改区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W" )
    @ApiOperation(value = "修改区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W")
    @PutMapping
    public ResultRespone updateById(@RequestBody Dmatablechange dmatablechange) {
      return ResultRespone.success(dmatablechangeService.updateById(dmatablechange));
    }

    *//*
      通过id删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
      @param id id
     * @return ResultRespone
     *//*
    //(title="通过id删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W" )
    @ApiOperation(value = "通过ID删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", required = true, dataType = "Long")
    })
    @DeleteMapping("/{id}" )
    public ResultRespone removeById(@PathVariable Long id) {
      return ResultRespone.success(dmatablechangeService.removeById(id));
    }

    *//*
      通过id批量删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W
      @param ids id
     * @return ResultRespone
     *//*
    //(title="通过id批量删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W" )
    @ApiOperation(value = "通过ID批量删除区域表更换记录信息表：TF_YWPN_DMATABLECHANGE_W")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "批量删除，多个id以逗号隔开", required = true, dataType = "String")
    })
    @DeleteMapping("/deleteByIds" )
    public ResultRespone removeById(String ids) {
        return ResultRespone.success(dmatablechangeService.removeByIds(Arrays.asList(ids.split(","))));
    }*/
}
