SystemHomepageController.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. package com.ozs.web.controller.home;
  2. import com.ozs.common.annotation.Log;
  3. import com.ozs.common.constant.ModularConstans;
  4. import com.ozs.common.core.controller.BaseController;
  5. import com.ozs.common.core.domain.AjaxResult;
  6. import com.ozs.common.enums.BusinessType;
  7. import com.ozs.plan.doman.vo.responseVo.PlanQuarterResponseVo;
  8. import com.ozs.plan.service.PlanYearsService;
  9. import com.ozs.pm.doman.PmDemand;
  10. import com.ozs.pm.doman.vo.responseVo.PmDemandResVo;
  11. import com.ozs.pm.service.IPmDemandService;
  12. import io.swagger.annotations.ApiOperation;
  13. import org.springframework.web.bind.annotation.GetMapping;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import javax.annotation.Resource;
  17. import java.util.List;
  18. /**
  19. * 系统首页控制层
  20. *
  21. * @author buzhanyi
  22. */
  23. @RestController
  24. @RequestMapping("/home/systemHomepage")
  25. public class SystemHomepageController extends BaseController {
  26. @Resource
  27. private PlanYearsService planYearsService;
  28. @Resource
  29. private IPmDemandService pmDemandService;
  30. @ApiOperation(value = "需求单位首页计划管理总数")
  31. @GetMapping("/demandUnit/planManagement/total")
  32. public AjaxResult demandUnitPlanManagementTotal() {
  33. return planYearsService.demandUnitPlanManagementTotal();
  34. }
  35. @ApiOperation(value = "需求单位首页需求管理总数")
  36. @GetMapping("/demandUnit/demandManagement/total")
  37. public AjaxResult demandUnitDemandManagementTotal() {
  38. return planYearsService.demandUnitDemandManagementTotal();
  39. }
  40. @ApiOperation(value = "需求单位首页合同管理总数")
  41. @GetMapping("/demandUnit/contractManagement/total")
  42. public AjaxResult demandUnitContractManagementTotal() {
  43. return planYearsService.demandUnitContractManagementTotal();
  44. }
  45. @ApiOperation(value = "需求单位首页建设管理总数")
  46. @GetMapping("/demandUnit/constructionManagement/total")
  47. public AjaxResult demandUnitConstructionManagementTotal() {
  48. return planYearsService.demandUnitConstructionManagementTotal();
  49. }
  50. @ApiOperation(value = "采购管理部门首页计划管理总数")
  51. @GetMapping("/purchasingManagement/planManagement/total")
  52. public AjaxResult purchasingManagementPurchasingManagementTotal() {
  53. return planYearsService.purchasingManagementPurchasingManagementTotal();
  54. }
  55. @ApiOperation(value = "采购管理部门首页需求管理总数")
  56. @GetMapping("/purchasingManagement/demandManagement/total")
  57. public AjaxResult purchasingManagementDemandManagementTotal() {
  58. return planYearsService.purchasingManagementDemandManagementTotal();
  59. }
  60. @ApiOperation(value = "采购管理部门首页任务下达管理总数")
  61. @GetMapping("/purchasingManagement/taskRelease/total")
  62. public AjaxResult purchasingManagementTaskReleaseTotal() {
  63. return planYearsService.purchasingManagementTaskReleaseTotal();
  64. }
  65. @ApiOperation(value = "采购办首页采购执行管理总数")
  66. @GetMapping("/procurementOffice/procurementExecution/total")
  67. public AjaxResult procurementOfficeProcurementExecutionTotal() {
  68. return planYearsService.procurementOfficeProcurementExecutionTotal();
  69. }
  70. @ApiOperation(value = "采购办首已中标项目总数")
  71. @GetMapping("/procurementOffice/winningTheBid/total")
  72. public AjaxResult procurementOfficeWinningTheBidTotal() {
  73. return planYearsService.procurementOfficeWinningTheBidTotal();
  74. }
  75. @ApiOperation(value = "采购办首未中标项目理总数")
  76. @GetMapping("/procurementOffice/failureToWinTheBid/total")
  77. public AjaxResult procurementOfficeFailureToWinTheBidTotal() {
  78. return planYearsService.procurementOfficeFailureToWinTheBidTotal();
  79. }
  80. @ApiOperation(value = "需求单位首页待办事项(全部)")
  81. @GetMapping("/demandUnit/will/total")
  82. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  83. public AjaxResult demandUnitWillManipulateTotal() {
  84. return planYearsService.demandUnitWillManipulateTotal();
  85. }
  86. @ApiOperation(value = "需求单位首页查看预警项目")
  87. @GetMapping("/demandUnit/will/alertProject")
  88. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  89. public AjaxResult demandUnitWillAlertProject() {
  90. return planYearsService.demandUnitWillAlertProject();
  91. }
  92. @ApiOperation(value = "需求单位首页待办事项(数量)")
  93. @GetMapping("/demandUnit/will/totalNum")
  94. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  95. public AjaxResult demandUnitWillManipulateTotalNum() {
  96. return planYearsService.demandUnitWillManipulateTotalNum();
  97. }
  98. @ApiOperation(value = "需求单位首页待办事项(计划待提交)")
  99. @GetMapping("/demandUnit/will/planWaitCommit")
  100. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  101. public AjaxResult planWaitCommit() {
  102. List<PlanQuarterResponseVo> vos = planYearsService.planWaitCommit();
  103. return AjaxResult.success(vos);
  104. }
  105. @ApiOperation(value = "需求单位首页待办事项(需求待提交)")
  106. @GetMapping("/demandUnit/will/demandWaitCommit")
  107. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  108. public AjaxResult demandUnit() {
  109. return AjaxResult.success(pmDemandService.listToVoList(pmDemandService.demandWaitCommit()));
  110. }
  111. @ApiOperation(value = "需求单位首页待办事项(合同待填制)")
  112. @GetMapping("/demandUnit/will/contractWaitFilled")
  113. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  114. public AjaxResult contractWaitFilled() {
  115. return AjaxResult.success(pmDemandService.listToVoList(pmDemandService.contractWaitFilled()));
  116. }
  117. @ApiOperation(value = "需求单位首页待办事项(项目建设待完成)")
  118. @GetMapping("/demandUnit/will/projectWaitFinish")
  119. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  120. public AjaxResult projectWaitFinish() {
  121. return AjaxResult.success(pmDemandService.listToVoList(pmDemandService.projectWaitFinish()));
  122. }
  123. @ApiOperation(value = "采购管理部门首页待办事项(全部)")
  124. @GetMapping("/purchasingManagement/will/total")
  125. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  126. public AjaxResult purchasingManagementWillManipulateTotal() {
  127. return planYearsService.purchasingManagementWillManipulateTotal();
  128. }
  129. @ApiOperation(value = "采购管理部门首页查看预警项目")
  130. @GetMapping("/purchasingManagement/will/alertProject")
  131. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  132. public AjaxResult purchasingManagementWillAlertProject() {
  133. return planYearsService.purchasingManagementWillAlertProject();
  134. }
  135. @ApiOperation(value = "采购管理部门首页待办事项(数量)")
  136. @GetMapping("/purchasingManagement/will/totalNum")
  137. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  138. public AjaxResult purchasingManagementWillManipulateTotalNum() {
  139. return planYearsService.purchasingManagementWillManipulateTotalNum();
  140. }
  141. @ApiOperation(value = "采购管理部门首页待办事项(计划待审核)")
  142. @GetMapping("/purchasingManagement/will/planWaitExamine")
  143. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  144. public AjaxResult planWaitExamine() {
  145. List<PlanQuarterResponseVo> resVos = planYearsService.planWaitExamine();
  146. return AjaxResult.success(resVos);
  147. }
  148. @ApiOperation(value = "采购管理部门首页待办事项(需求待审核)")
  149. @GetMapping("/purchasingManagement/will/demandWaitExamine")
  150. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  151. public AjaxResult demandWaitExamine() {
  152. List<PmDemand> demandList = pmDemandService.demandWaitExamine();
  153. return AjaxResult.success(pmDemandService.listToVoList(demandList));
  154. }
  155. @ApiOperation(value = "采购管理部门首页待办事项(任务待下达)")
  156. @GetMapping("/purchasingManagement/will/taskWaitRelease")
  157. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  158. public AjaxResult taskWaitRelease() {
  159. List<PmDemand> demandList = pmDemandService.taskWaitRelease();
  160. return AjaxResult.success(pmDemandService.listToVoList(demandList));
  161. }
  162. @ApiOperation(value = "采购办首页待办事项(全部)")
  163. @GetMapping("/procurementOffice/will/total")
  164. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  165. public AjaxResult procurementOfficeWillManipulateTotal() {
  166. return pmDemandService.procurementOfficeWillManipulateTotal();
  167. }
  168. @ApiOperation(value = "采购办首页查看预警项目")
  169. @GetMapping("/procurementOffice/will/alertProject")
  170. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  171. public AjaxResult procurementOfficeWillAlertProject() {
  172. return pmDemandService.procurementOfficeWillAlertProject();
  173. }
  174. @ApiOperation(value = "采购办首页待办事项(数量)")
  175. @GetMapping("/procurementOffice/will/totalNum")
  176. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  177. public AjaxResult procurementOfficeWillManipulateTotalNum() {
  178. return pmDemandService.procurementOfficeWillManipulateTotalNum();
  179. }
  180. @ApiOperation(value = "采购办首页待办事项(采购需求对接)")
  181. @GetMapping("/procurementOffice/will/purchaseDemandDocking")
  182. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  183. public AjaxResult purchaseDemandDocking() {
  184. List<PmDemandResVo> resVos = pmDemandService.purchaseDemandDocking();
  185. return AjaxResult.success(resVos);
  186. }
  187. @ApiOperation(value = "采购办首页待办事项(专家意见反馈)")
  188. @GetMapping("/procurementOffice/will/expertFeedback")
  189. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  190. public AjaxResult expertFeedback() {
  191. List<PmDemandResVo> resVos = pmDemandService.expertFeedback();
  192. return AjaxResult.success(resVos);
  193. }
  194. @ApiOperation(value = "采购办首页待办事项(采购文件编制审核)")
  195. @GetMapping("/procurementOffice/will/procurementDocumentsReview")
  196. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  197. public AjaxResult procurementDocumentsReview() {
  198. List<PmDemandResVo> resVos = pmDemandService.procurementDocumentsReview();
  199. return AjaxResult.success(resVos);
  200. }
  201. @ApiOperation(value = "采购办首页待办事项(采购公告发布)")
  202. @GetMapping("/procurementOffice/will/procurementAnnouncement")
  203. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  204. public AjaxResult procurementAnnouncement() {
  205. List<PmDemandResVo> resVos = pmDemandService.procurementAnnouncement();
  206. return AjaxResult.success(resVos);
  207. }
  208. @ApiOperation(value = "采购办首页待办事项(标前质疑投诉)")
  209. @GetMapping("/procurementOffice/will/preBidQuery")
  210. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  211. public AjaxResult preBidQuery() {
  212. List<PmDemandResVo> resVos = pmDemandService.preBidQuery();
  213. return AjaxResult.success(resVos);
  214. }
  215. @ApiOperation(value = "采购办首页待办事项(待开标)")
  216. @GetMapping("/procurementOffice/will/waitOpenBid")
  217. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  218. public AjaxResult waitOpenBid() {
  219. List<PmDemandResVo> resVos = pmDemandService.waitOpenBid();
  220. return AjaxResult.success(resVos);
  221. }
  222. @ApiOperation(value = "采购办首页待办事项(评标结果公告)")
  223. @GetMapping("/procurementOffice/will/bidResultAnnouncement")
  224. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  225. public AjaxResult bidResultAnnouncement() {
  226. List<PmDemandResVo> resVos = pmDemandService.bidResultAnnouncement();
  227. return AjaxResult.success(resVos);
  228. }
  229. @ApiOperation(value = "采购办首页待办事项(流废标处置)")
  230. @GetMapping("/procurementOffice/will/wasteBidHandle")
  231. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  232. public AjaxResult wasteBidHandle() {
  233. List<PmDemandResVo> resVos = pmDemandService.wasteBidHandle();
  234. return AjaxResult.success(resVos);
  235. }
  236. @ApiOperation(value = "采购办首页待办事项(标后质疑)")
  237. @GetMapping("/procurementOffice/will/postBidQuery")
  238. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  239. public AjaxResult postBidQuery() {
  240. List<PmDemandResVo> resVos = pmDemandService.postBidQuery();
  241. return AjaxResult.success(resVos);
  242. }
  243. @ApiOperation(value = "采购办首页待办事项(发函催告)")
  244. @GetMapping("/procurementOffice/will/sendLetter")
  245. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  246. public AjaxResult willSendLetter() {
  247. List<PlanQuarterResponseVo> vos = planYearsService.willSendLetter();
  248. return AjaxResult.success(vos);
  249. }
  250. }