package cn.com.goldenwater.dcproj.controller; import cn.com.goldenwater.core.web.BaseController; import cn.com.goldenwater.core.web.BaseResponse; import cn.com.goldenwater.dcproj.model.BisInspWrm2021Wellw; import cn.com.goldenwater.dcproj.service.BisInspWrm2021WellwService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; /** * @author lhc * @date 2021-7-8 */ @Api(value = "地下水压采工作现场检查管理",tags="地下水压采工作现场检查管理") @RestController @RequestMapping("/bis/insp/wrm2021/wellw") public class BisInspWrm2021WellwController extends BaseController { @Autowired private BisInspWrm2021WellwService bisInspWrm2021WellwService; @ApiOperation(value = "修改地下水压采工作现场检查") @RequestMapping(value = "", method = RequestMethod.POST) public BaseResponse insert(@ApiParam(name = "bisInspWrm2021Wellw", value = "BisInspWrm2021Wellw", required = true) @RequestBody BisInspWrm2021Wellw bisInspWrm2021Wellw) { return buildSuccessResponse(bisInspWrm2021WellwService.save(bisInspWrm2021Wellw)); } @ApiOperation(value = "根据ID删除地下水压采工作现场检查") @RequestMapping(value = "delete/{id}", method = RequestMethod.POST) public BaseResponse delete(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) { int ret = bisInspWrm2021WellwService.delete(id); return buildSuccessResponse(); } @ApiOperation(value = "根据ID获取地下水压采工作现场检查(单表)") @RequestMapping(value = "/{id}", method = RequestMethod.GET) public BaseResponse get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) { BisInspWrm2021Wellw bisInspWrm2021Wellw = bisInspWrm2021WellwService.get(id); return buildSuccessResponse(bisInspWrm2021Wellw); } }