12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.ozs.web.controller.pm;
- import com.baomidou.mybatisplus.core.metadata.IPage;
- import com.ozs.common.core.controller.BaseController;
- import com.ozs.common.core.domain.AjaxResult;
- import com.ozs.framework.web.service.TokenService;
- import com.ozs.pm.doman.vo.requestVo.PmDemandReqVo;
- import com.ozs.pm.doman.vo.responseVo.PmDemandResVo;
- import com.ozs.pm.service.IPmDemandService;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 项目建设Controller
- *
- * @author ruoyi
- * @date 2023-01-16
- */
- @Api(tags = "项目建设")
- @RestController
- @RequestMapping("/pm/projectConstruction")
- public class PmProjectConstructionController extends BaseController {
- @Autowired
- private IPmDemandService pmDemandService;
- @Autowired
- private TokenService tokenService;
- /**
- * 项目建设查询列表
- */
- @ApiOperation(value = "项目建设查询列表", notes = "参数非必传")
- @PostMapping("/list")
- public AjaxResult list(@RequestBody PmDemandReqVo pmDemandReqVo) {
- IPage<PmDemandResVo> page = pmDemandService.selectPmDemandList(pmDemandReqVo,5);
- return success(page);
- }
- }
|