67765d8659bc04b67456e4f82090cf507d11a229.svn-base 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package cn.com.goldenwater.dcproj.controller;
  2. import cn.com.goldenwater.core.web.BaseController;
  3. import cn.com.goldenwater.core.web.BaseResponse;
  4. import cn.com.goldenwater.dcproj.model.BisInspWrm2021Wellw;
  5. import cn.com.goldenwater.dcproj.service.BisInspWrm2021WellwService;
  6. import io.swagger.annotations.Api;
  7. import io.swagger.annotations.ApiOperation;
  8. import io.swagger.annotations.ApiParam;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.*;
  11. /**
  12. * @author lhc
  13. * @date 2021-7-8
  14. */
  15. @Api(value = "地下水压采工作现场检查管理",tags="地下水压采工作现场检查管理")
  16. @RestController
  17. @RequestMapping("/bis/insp/wrm2021/wellw")
  18. public class BisInspWrm2021WellwController extends BaseController {
  19. @Autowired
  20. private BisInspWrm2021WellwService bisInspWrm2021WellwService;
  21. @ApiOperation(value = "修改地下水压采工作现场检查")
  22. @RequestMapping(value = "", method = RequestMethod.POST)
  23. public BaseResponse<BisInspWrm2021Wellw> insert(@ApiParam(name = "bisInspWrm2021Wellw", value = "BisInspWrm2021Wellw", required = true) @RequestBody BisInspWrm2021Wellw bisInspWrm2021Wellw) {
  24. return buildSuccessResponse(bisInspWrm2021WellwService.save(bisInspWrm2021Wellw));
  25. }
  26. @ApiOperation(value = "根据ID删除地下水压采工作现场检查")
  27. @RequestMapping(value = "delete/{id}", method = RequestMethod.POST)
  28. public BaseResponse delete(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  29. int ret = bisInspWrm2021WellwService.delete(id);
  30. return buildSuccessResponse();
  31. }
  32. @ApiOperation(value = "根据ID获取地下水压采工作现场检查(单表)")
  33. @RequestMapping(value = "/{id}", method = RequestMethod.GET)
  34. public BaseResponse<BisInspWrm2021Wellw> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
  35. BisInspWrm2021Wellw bisInspWrm2021Wellw = bisInspWrm2021WellwService.get(id);
  36. return buildSuccessResponse(bisInspWrm2021Wellw);
  37. }
  38. }