| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- package cn.com.goldenwater.dcproj.controller;
- import cn.com.goldenwater.dcproj.model.BisInspWrm2021;
- import cn.com.goldenwater.dcproj.model.BisInspWrm2021Spota;
- import cn.com.goldenwater.dcproj.model.BisInspWrm2021Well;
- import cn.com.goldenwater.dcproj.param.BisInspWrm2021SpotaParam;
- import cn.com.goldenwater.dcproj.param.BisInspWrm2021WellParam;
- import cn.com.goldenwater.dcproj.service.BisInspWrm2021Service;
- import cn.com.goldenwater.dcproj.service.BisInspWrm2021WellService;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import cn.com.goldenwater.id.util.UuidUtil;
- import com.github.pagehelper.PageInfo;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.apache.commons.collections.CollectionUtils;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.util.Assert;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Date;
- import java.util.List;
- /**
- * @author lhc
- * @date 2021-7-8
- */
- @Api(value = "地下水超采区管理情况抽查管理",tags="地下水超采区管理情况抽查管理")
- @RestController
- @RequestMapping("/bis/insp/wrm2021/well")
- public class BisInspWrm2021WellController extends BaseController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- @Autowired
- private BisInspWrm2021WellService bisInspWrm2021WellService;
- @Autowired
- private BisInspWrm2021Service bisInspWrm2021Service;
- @ApiOperation(value = "修改地下水超采区管理情况抽查")
- @RequestMapping(value = "", method = RequestMethod.POST)
- public BaseResponse<BisInspWrm2021Well> insert(@ApiParam(name = "bisInspWrm2021Well", value = "BisInspWrm2021Well", required = true) @RequestBody BisInspWrm2021Well bisInspWrm2021Well) {
- return buildSuccessResponse(bisInspWrm2021WellService.save(bisInspWrm2021Well));
- }
- @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 = bisInspWrm2021WellService.delete(id);
- return buildSuccessResponse();
- }
- @ApiOperation(value = "根据ID获取地下水超采区管理情况抽查(单表)")
- @RequestMapping(value = "/{id}", method = RequestMethod.GET)
- public BaseResponse<BisInspWrm2021Well> get(@ApiParam(name = "id", value = "id", required = true) @PathVariable String id) {
- BisInspWrm2021Well bisInspWrm2021Well = bisInspWrm2021WellService.get(id);
- return buildSuccessResponse(bisInspWrm2021Well);
- }
- @ApiOperation(value = "获取地下水超采区管理情况抽查")
- @RequestMapping(value = "/getBy/{rgstrId}", method = RequestMethod.POST)
- public BaseResponse<BisInspWrm2021Well> getBy(@PathVariable String rgstrId) {
- BisInspWrm2021WellParam bisInspWrm2021WellParam = new BisInspWrm2021WellParam();
- bisInspWrm2021WellParam.setRgstrId(rgstrId);
- return buildSuccessResponse(bisInspWrm2021WellService.getBy(bisInspWrm2021WellParam));
- }
- }
|