IPmDemandService.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.ozs.pm.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.ozs.pm.doman.PmDemand;
  5. import com.ozs.pm.doman.vo.requestVo.PmBookBuildingReqVo;
  6. import com.ozs.pm.doman.vo.requestVo.PmDemandReqVo;
  7. import com.ozs.pm.doman.vo.responseVo.PmDemandResVo;
  8. import com.ozs.pm.doman.vo.responseVo.PmFlowChartResVo;
  9. /**
  10. * 采购需求Service接口
  11. *
  12. * @author ruoyi
  13. * @date 2023-01-16
  14. */
  15. public interface IPmDemandService extends IService<PmDemand>
  16. {
  17. /**
  18. * 查询采购需求
  19. *
  20. * @param demandId 采购需求主键
  21. * @return 采购需求
  22. */
  23. public PmDemandResVo selectPmDemandByDemandId(Long demandId);
  24. /**
  25. * 查询采购需求列表
  26. *
  27. * @param pmDemandReqVo 采购需求
  28. * @return 采购需求集合
  29. */
  30. public IPage<PmDemandResVo> selectPmDemandList(PmDemandReqVo pmDemandReqVo,int reqType);
  31. /**
  32. * 新增采购需求
  33. *
  34. * @param pmDemand 采购需求
  35. * @return 结果
  36. */
  37. public int insertPmDemand(PmDemand pmDemand);
  38. /**
  39. *修改采购需求
  40. *
  41. * @param pmDemand 采购需求
  42. * @return 结果
  43. */
  44. public int updatePmDemand(PmDemand pmDemand);
  45. /**
  46. * 需求建档
  47. *
  48. * @param pmBookBuildingReqVo 需求建档
  49. * @return 结果
  50. */
  51. public int bookBuilding(PmBookBuildingReqVo pmBookBuildingReqVo);
  52. /**
  53. * 查看流程图
  54. *
  55. * @param demandId 采购需求主键
  56. * @return 采购需求
  57. */
  58. public String viewFlowChart(Long demandId);
  59. /**
  60. * 查看流程图
  61. *
  62. * @param demandId 采购需求主键
  63. * @return 采购需求
  64. */
  65. public PmFlowChartResVo getModuleInfo(Long demandId, String moduleName);
  66. /**
  67. * 提交采购需求
  68. *
  69. * @param pmDemandReqVo
  70. * @return 结果
  71. */
  72. public int commit(PmDemandReqVo pmDemandReqVo);
  73. /**
  74. * 审核采购需求通过
  75. *
  76. * @param pmDemandReqVo
  77. * @return 结果
  78. */
  79. public int reviewTo(PmDemandReqVo pmDemandReqVo);
  80. /**
  81. * 审核采购需求退回
  82. *
  83. * @param pmDemandReqVo
  84. * @return 结果
  85. */
  86. public int reviewReturn(PmDemandReqVo pmDemandReqVo);
  87. }