| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package cn.com.goldenwater.dcproj.controller.vill;
- import cn.com.goldenwater.core.web.BaseController;
- import cn.com.goldenwater.core.web.BaseResponse;
- import cn.com.goldenwater.dcproj.dto.AttEngDto;
- import cn.com.goldenwater.dcproj.param.AttEngBaseParam;
- import cn.com.goldenwater.dcproj.service.AttEngBaseService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import io.swagger.annotations.ApiParam;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- 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.RestController;
- /**
- * @author lhc
- * @date 2019-2-20
- */
- @Api(value = "水利工程数据查询", tags = "水利工程数据查询")
- @RestController
- @RequestMapping("/dc/eng/base")
- public class AttEngBaseController extends BaseController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- @Autowired
- private AttEngBaseService attEngBaseService;
- @ApiOperation(value = "获取所有工程信息基本信息")
- @RequestMapping(value = "/getEngBase", method = RequestMethod.POST)
- public BaseResponse<AttEngDto> getEngBaseInfo(@ApiParam(name = "attEngBaseParam", value = "", required = true) @RequestBody
- AttEngBaseParam attEngBaseParam) {
- AttEngDto attEngDto = attEngBaseService.getEngBaseInfo(attEngBaseParam);
- return buildSuccessResponse(attEngDto);
- }
- }
|