PmProjectConstructionController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.ozs.web.controller.pm;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.ozs.common.core.controller.BaseController;
  4. import com.ozs.common.core.domain.AjaxResult;
  5. import com.ozs.framework.web.service.TokenService;
  6. import com.ozs.pm.doman.vo.requestVo.PmDemandReqVo;
  7. import com.ozs.pm.doman.vo.responseVo.PmDemandResVo;
  8. import com.ozs.pm.service.IPmDemandService;
  9. import io.swagger.annotations.Api;
  10. import io.swagger.annotations.ApiOperation;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. /**
  17. * 项目建设Controller
  18. *
  19. * @author ruoyi
  20. * @date 2023-01-16
  21. */
  22. @Api(tags = "项目建设")
  23. @RestController
  24. @RequestMapping("/pm/projectConstruction")
  25. public class PmProjectConstructionController extends BaseController {
  26. @Autowired
  27. private IPmDemandService pmDemandService;
  28. @Autowired
  29. private TokenService tokenService;
  30. /**
  31. * 项目建设查询列表
  32. */
  33. @ApiOperation(value = "项目建设查询列表", notes = "参数非必传")
  34. @PostMapping("/list")
  35. public AjaxResult list(@RequestBody PmDemandReqVo pmDemandReqVo) {
  36. IPage<PmDemandResVo> page = pmDemandService.selectPmDemandList(pmDemandReqVo,5);
  37. return success(page);
  38. }
  39. }