SystemHomepageController.java 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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.vo.responseVo.PmDemandResVo;
  10. import com.ozs.pm.service.IPmDemandService;
  11. import io.swagger.annotations.ApiOperation;
  12. import org.springframework.web.bind.annotation.GetMapping;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RestController;
  15. import javax.annotation.Resource;
  16. import java.util.List;
  17. /**
  18. * 系统首页控制层
  19. *
  20. * @author buzhanyi
  21. */
  22. @RestController
  23. @RequestMapping("/home/systemHomepage")
  24. public class SystemHomepageController extends BaseController {
  25. @Resource
  26. private PlanYearsService planYearsService;
  27. @Resource
  28. private IPmDemandService pmDemandService;
  29. @ApiOperation(value = "需求单位首页计划管理总数")
  30. @GetMapping("/demandUnit/planManagement/total")
  31. public AjaxResult demandUnitPlanManagementTotal() {
  32. return planYearsService.demandUnitPlanManagementTotal();
  33. }
  34. @ApiOperation(value = "需求单位首页需求管理总数")
  35. @GetMapping("/demandUnit/demandManagement/total")
  36. public AjaxResult demandUnitDemandManagementTotal() {
  37. return planYearsService.demandUnitDemandManagementTotal();
  38. }
  39. @ApiOperation(value = "需求单位首页合同管理总数")
  40. @GetMapping("/demandUnit/contractManagement/total")
  41. public AjaxResult demandUnitContractManagementTotal() {
  42. return planYearsService.demandUnitContractManagementTotal();
  43. }
  44. @ApiOperation(value = "需求单位首页建设管理总数")
  45. @GetMapping("/demandUnit/constructionManagement/total")
  46. public AjaxResult demandUnitConstructionManagementTotal() {
  47. return planYearsService.demandUnitConstructionManagementTotal();
  48. }
  49. @ApiOperation(value = "采购管理部门首页计划管理总数")
  50. @GetMapping("/purchasingManagement/planManagement/total")
  51. public AjaxResult purchasingManagementPurchasingManagementTotal() {
  52. return planYearsService.purchasingManagementPurchasingManagementTotal();
  53. }
  54. @ApiOperation(value = "采购管理部门首页需求管理总数")
  55. @GetMapping("/purchasingManagement/demandManagement/total")
  56. public AjaxResult purchasingManagementDemandManagementTotal() {
  57. return planYearsService.purchasingManagementDemandManagementTotal();
  58. }
  59. @ApiOperation(value = "采购管理部门首页任务下达管理总数")
  60. @GetMapping("/purchasingManagement/taskRelease/total")
  61. public AjaxResult purchasingManagementTaskReleaseTotal() {
  62. return planYearsService.purchasingManagementTaskReleaseTotal();
  63. }
  64. @ApiOperation(value = "采购办首页采购执行管理总数")
  65. @GetMapping("/procurementOffice/procurementExecution/total")
  66. public AjaxResult procurementOfficeProcurementExecutionTotal() {
  67. return planYearsService.procurementOfficeProcurementExecutionTotal();
  68. }
  69. @ApiOperation(value = "采购办首已中标项目理总数")
  70. @GetMapping("/procurementOffice/winningTheBid/total")
  71. public AjaxResult procurementOfficeWinningTheBidTotal() {
  72. return planYearsService.procurementOfficeWinningTheBidTotal();
  73. }
  74. @ApiOperation(value = "采购办首未中标项目理总数")
  75. @GetMapping("/procurementOffice/failureToWinTheBid/total")
  76. public AjaxResult procurementOfficeFailureToWinTheBidTotal() {
  77. return planYearsService.procurementOfficeFailureToWinTheBidTotal();
  78. }
  79. @ApiOperation(value = "需求单位首页待办事项(全部)")
  80. @GetMapping("/demandUnit/will/total")
  81. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  82. public AjaxResult demandUnitWillManipulateTotal() {
  83. return planYearsService.demandUnitWillManipulateTotal();
  84. }
  85. @ApiOperation(value = "需求单位首页待办事项(计划待提交)")
  86. @GetMapping("/demandUnit/will/planWaitCommit")
  87. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  88. public AjaxResult planWaitCommit() {
  89. List<PlanQuarterResponseVo> vos = planYearsService.planWaitCommit();
  90. return AjaxResult.success(vos);
  91. }
  92. @ApiOperation(value = "需求单位首页待办事项(需求待提交)")
  93. @GetMapping("/demandUnit/will/demandWaitCommit")
  94. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  95. public AjaxResult demandUnit() {
  96. List<PmDemandResVo> resVos = pmDemandService.demandWaitCommit();
  97. return AjaxResult.success(resVos);
  98. }
  99. @ApiOperation(value = "需求单位首页待办事项(合同待填制)")
  100. @GetMapping("/demandUnit/will/contractWaitFilled")
  101. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  102. public AjaxResult contractWaitFilled() {
  103. List<PmDemandResVo> resVos = pmDemandService.contractWaitFilled();
  104. return AjaxResult.success(resVos);
  105. }
  106. @ApiOperation(value = "需求单位首页待办事项(项目建设待完成)")
  107. @GetMapping("/demandUnit/will/projectWaitFinish")
  108. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  109. public AjaxResult projectWaitFinish() {
  110. List<PmDemandResVo> resVos = pmDemandService.projectWaitFinish();
  111. return AjaxResult.success(resVos);
  112. }
  113. @ApiOperation(value = "采购管理部门首页待办事项(全部)")
  114. @GetMapping("/purchasingManagement/will/total")
  115. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  116. public AjaxResult purchasingManagementWillManipulateTotal() {
  117. return planYearsService.purchasingManagementWillManipulateTotal();
  118. }
  119. @ApiOperation(value = "采购管理部门首页待办事项(计划待审核)")
  120. @GetMapping("/purchasingManagement/will/planWaitExamine")
  121. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  122. public AjaxResult planWaitExamine() {
  123. List<PlanQuarterResponseVo> resVos = planYearsService.planWaitExamine();
  124. return AjaxResult.success(resVos);
  125. }
  126. @ApiOperation(value = "采购管理部门首页待办事项(需求待审核)")
  127. @GetMapping("/purchasingManagement/will/demandWaitExamine")
  128. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  129. public AjaxResult demandWaitExamine() {
  130. List<PmDemandResVo> resVos = pmDemandService.demandWaitExamine();
  131. return AjaxResult.success(resVos);
  132. }
  133. @ApiOperation(value = "采购管理部门首页待办事项(任务待下达)")
  134. @GetMapping("/purchasingManagement/will/taskWaitRelease")
  135. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  136. public AjaxResult taskWaitRelease() {
  137. List<PmDemandResVo> resVos = pmDemandService.taskWaitRelease();
  138. return AjaxResult.success(resVos);
  139. }
  140. @ApiOperation(value = "采购办首页待办事项(全部)")
  141. @GetMapping("/procurementOffice/will/total")
  142. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  143. public AjaxResult procurementOfficeWillManipulateTotal() {
  144. return pmDemandService.procurementOfficeWillManipulateTotal();
  145. }
  146. @ApiOperation(value = "采购办首页待办事项(待选取代理)")
  147. @GetMapping("/procurementOffice/will/waitSelectAgent")
  148. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  149. public AjaxResult waitSelectAgent() {
  150. List<PmDemandResVo> resVos = pmDemandService.waitSelectAgent();
  151. return AjaxResult.success(resVos);
  152. }
  153. @ApiOperation(value = "采购办首页待办事项(待上传招标文件)")
  154. @GetMapping("/procurementOffice/will/waitUpBidFile")
  155. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  156. public AjaxResult waitUpBidFile() {
  157. List<PmDemandResVo> resVos = pmDemandService.waitUpBidFile();
  158. return AjaxResult.success(resVos);
  159. }
  160. @ApiOperation(value = "采购办首页待办事项(待发布公告)")
  161. @GetMapping("/procurementOffice/will/waitAnnouncement")
  162. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  163. public AjaxResult waitAnnouncement() {
  164. List<PmDemandResVo> resVos = pmDemandService.waitAnnouncement();
  165. return AjaxResult.success(resVos);
  166. }
  167. @ApiOperation(value = "采购办首页待办事项(待开标)")
  168. @GetMapping("/procurementOffice/will/waitOpenBid")
  169. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  170. public AjaxResult waitOpenBid() {
  171. List<PmDemandResVo> resVos = pmDemandService.waitOpenBid();
  172. return AjaxResult.success(resVos);
  173. }
  174. @ApiOperation(value = "采购办首页待办事项(待发布中标公告)")
  175. @GetMapping("/procurementOffice/will/waitBidAnnouncement")
  176. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  177. public AjaxResult waitBidAnnouncement() {
  178. List<PmDemandResVo> resVos = pmDemandService.waitBidAnnouncement();
  179. return AjaxResult.success(resVos);
  180. }
  181. @ApiOperation(value = "采购办首页待办事项(中标公示中)")
  182. @GetMapping("/procurementOffice/will/biddingPublicity")
  183. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  184. public AjaxResult biddingPublicity() {
  185. List<PmDemandResVo> resVos = pmDemandService.biddingPublicity();
  186. return AjaxResult.success(resVos);
  187. }
  188. @ApiOperation(value = "采购办首页待办事项(发函催告)")
  189. @GetMapping("/procurementOffice/will/sendLetter")
  190. @Log(title = ModularConstans.systemHome, businessType = BusinessType.QUERY)
  191. public AjaxResult willSendLetter() {
  192. List<PlanQuarterResponseVo> vos = planYearsService.willSendLetter();
  193. return AjaxResult.success(vos);
  194. }
  195. }