PmDemandMapper.java 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. package com.ozs.pm.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.ozs.base.domain.vo.BaseExpertVo;
  4. import com.ozs.pm.doman.PmDemand;
  5. import com.ozs.pm.doman.vo.requestVo.PmDemandReqVo;
  6. import com.ozs.pm.doman.vo.responseVo.StatisticalChartsResVo;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.LinkedList;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * 采购需求Mapper接口
  13. *
  14. * @author ruoyi
  15. * @date 2023-01-16
  16. */
  17. public interface PmDemandMapper extends BaseMapper<PmDemand> {
  18. /**
  19. * 通过需求ID列表,查询采购执行列表 sunhh
  20. *
  21. * @param demandIdList
  22. * @return
  23. */
  24. List<PmDemand> selectByDemandIdList(@Param("demandIdList") List<Integer> demandIdList);
  25. /**
  26. * 专家库--查询抽取专家列表 非必传条件:专家名称,开始结束时间 sunhh
  27. *
  28. * @param baseExpertVo
  29. * @return
  30. */
  31. List<PmDemand> selectExtractionExpert(BaseExpertVo baseExpertVo);
  32. /**
  33. * 统计分析-采购项目信息统计-查询项目总数量
  34. *
  35. * @param pmDemandReqVo
  36. * @return
  37. */
  38. Map<String, Integer> purchaseProjectStatistical(PmDemandReqVo pmDemandReqVo);
  39. /**
  40. * 统计分析-采购项目信息统计-查询已完成项目数量,预算金额数量
  41. *
  42. * @param pmDemandReqVo
  43. * @return
  44. */
  45. Map<String, Integer> purchaseProjectStatisticalYWC(PmDemandReqVo pmDemandReqVo);
  46. /**
  47. * 统计分析-采购项目信息统计-查询新创建项目数量,预算金额数量
  48. *
  49. * @param pmDemandReqVo
  50. * @return
  51. */
  52. Map<String, Integer> purchaseProjectStatisticalXCJ(PmDemandReqVo pmDemandReqVo);
  53. /**
  54. * 统计分析-采购项目信息统计-查询去年完成项目数量,预算金额数量
  55. *
  56. * @param pmDemandReqVo
  57. * @return
  58. */
  59. Map<String, Integer> purchaseProjectStatisticalQNWC(PmDemandReqVo pmDemandReqVo);
  60. /**
  61. * 按照项目属性统计所有的项目
  62. *
  63. * @return
  64. */
  65. List<StatisticalChartsResVo> countByProjectAttr();
  66. /**
  67. * 按照概算金额统计所有的项目
  68. *
  69. * @return
  70. */
  71. StatisticalChartsResVo countByEvaluationLt(Integer evaluation);
  72. StatisticalChartsResVo countByEvaluationBet(@Param("evaluation") Integer evaluation, @Param("evaluationEnd") Integer evaluationEnd);
  73. StatisticalChartsResVo countByEvaluationGt(Integer evaluation);
  74. /**
  75. * 本年度所有的逾期项目数
  76. *
  77. * @return
  78. */
  79. StatisticalChartsResVo countProjectExceed();
  80. /**
  81. * 年度逾期项目数量
  82. *
  83. * @return
  84. */
  85. Integer countThisYear();
  86. /**
  87. * 统计不同时间维度的逾期项目
  88. *
  89. * @return
  90. */
  91. LinkedList<StatisticalChartsResVo> countProjectExceedYear();
  92. /**
  93. * 统计不同时间维度的逾期项目
  94. *
  95. * @return
  96. */
  97. LinkedList<StatisticalChartsResVo> countProjectExceedMonth();
  98. /**
  99. * 统计不同时间维度的逾期项目
  100. *
  101. * @return
  102. */
  103. StatisticalChartsResVo countProjectExceedQuarter(@Param("quarter") Integer quarter, @Param("year") Integer year);
  104. /**
  105. * 所有滞后
  106. *
  107. * @return
  108. */
  109. List<PmDemand> countProjectExceedAll();
  110. /**
  111. * //***状态:指本年度正在进行中的项目属性为“重大规划”的项目数
  112. * //预算金额:指本年度正在进行中的项目属性为“重大规划”的项目累加的预算金额
  113. *
  114. * @param code
  115. * @return
  116. */
  117. StatisticalChartsResVo majorProjectByStatus(String code);
  118. /**
  119. * //执行滞后数量:指本年度逾期项目中,项目属性为“重大规划”的项目数
  120. * //预算金额:指本年度正在进行中的项目属性为“重大规划”的项目累加的预算金额
  121. *
  122. * @return
  123. */
  124. StatisticalChartsResVo countProjectExceedAndMajor();
  125. /**
  126. * 查询本年度的**状态的重大规划项目
  127. */
  128. List<StatisticalChartsResVo> taskQuantityYear(String code);
  129. /**
  130. * 查询上年度的**状态的重大规划项目
  131. */
  132. List<StatisticalChartsResVo> taskQuantityLastYear(String code);
  133. /**
  134. * @return
  135. */
  136. List<StatisticalChartsResVo> countEveryStatusNum();
  137. /**
  138. * 通过计划ID查询项目
  139. * @param planId
  140. * @return
  141. */
  142. PmDemand selectByPlanId(@Param("planId") Integer planId);
  143. /**
  144. * 项目执行进度统计--正常推进项目数量、预算金额
  145. * @param pmDemandReqVo
  146. * @return
  147. */
  148. Map<String, Integer> purchaseProjectExecuteNormalPropulsion(PmDemandReqVo pmDemandReqVo);
  149. /**
  150. * 项目执行进度统计--未完成采购任务,预算金额
  151. * @param pmDemandReqVo
  152. * @return
  153. */
  154. Map<String, Integer> purchaseProjectExecuteIncomplete(PmDemandReqVo pmDemandReqVo);
  155. /**
  156. * 查询数据库年份最小值
  157. * @return
  158. */
  159. Integer selectMinYear();
  160. /**
  161. * 已完成项目数量统计 -- 年份
  162. * @param pmDemandReqVo
  163. * @return
  164. */
  165. List<Map<String, Integer>> selectpurchaseProjectCompleteNumberYear(PmDemandReqVo pmDemandReqVo);
  166. /**
  167. * 已完成项目数量统计 -- 季度
  168. * @param pmDemandReqVo
  169. * @return
  170. */
  171. List<Map<String, Integer>> selectpurchaseProjectCompleteNumberQuarter(PmDemandReqVo pmDemandReqVo);
  172. /**
  173. * 已完成项目数量统计 -- 月份
  174. * @param pmDemandReqVo
  175. * @return
  176. */
  177. List<Map<String, Integer>> selectpurchaseProjectCompleteNumberMonth(PmDemandReqVo pmDemandReqVo);
  178. List<StatisticalChartsResVo> countProjectMajorByYear();
  179. StatisticalChartsResVo countProjectMajorByQuarter(@Param("quarter") Integer quarter, @Param("year") Integer year);
  180. List<StatisticalChartsResVo> countProjectMajorByMonth();
  181. List<StatisticalChartsResVo> countEveryStatusNumTwo();
  182. StatisticalChartsResVo countMajorProjectExceed();
  183. StatisticalChartsResVo countMajorProjectLastYear();
  184. }