BigScreenApi.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.java110.community.api;
  2. import com.java110.community.bmo.assets.*;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.http.ResponseEntity;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import org.springframework.web.bind.annotation.RestController;
  9. @RestController
  10. @RequestMapping(value = "/bigScreen")
  11. public class BigScreenApi {
  12. @Autowired
  13. private IQueryAssetsBMO queryAssetsBMOImpl;
  14. @Autowired
  15. private IQueryAssetsRoomBMO queryAssetsRoomBMOImpl;
  16. @Autowired
  17. private IQueryAssetsRepairBMO queryAssetsRepairBMOImpl;
  18. @Autowired
  19. private IQueryAssetsFeeBMO queryAssetsFeeBMOImpl;
  20. @Autowired
  21. private IQueryAssetsInspectionBMO queryAssetsInspectionBMOImpl;
  22. /**
  23. * 查询资产
  24. *
  25. * @param communityId
  26. * @return
  27. * @Service /bigScreen/getAssets
  28. * @path /app/bigScreen/getAssets
  29. */
  30. @RequestMapping(value = "/getAssets", method = RequestMethod.GET)
  31. public ResponseEntity<String> getAssets(@RequestParam(value = "communityId") String communityId) {
  32. return queryAssetsBMOImpl.query(communityId);
  33. }
  34. /**
  35. * 查询房屋
  36. *
  37. * @param communityId
  38. * @return
  39. * @Service /bigScreen/getAssetsRoom
  40. * @path /app/bigScreen/getAssetsRoom
  41. */
  42. @RequestMapping(value = "/getAssetsRoom", method = RequestMethod.GET)
  43. public ResponseEntity<String> getAssetsRoom(@RequestParam(value = "communityId") String communityId) {
  44. return queryAssetsRoomBMOImpl.query(communityId);
  45. }
  46. /**
  47. * @param communityId
  48. * @return
  49. * @Service /bigScreen/getAssetsRepair
  50. * @path /app/bigScreen/getAssetsRepair
  51. */
  52. @RequestMapping(value = "/getAssetsRepair", method = RequestMethod.GET)
  53. public ResponseEntity<String> getAssetsRepair(@RequestParam(value = "communityId") String communityId) {
  54. return queryAssetsRepairBMOImpl.query(communityId);
  55. }
  56. /**
  57. * 查询大屏费用
  58. *
  59. * @param communityId
  60. * @return
  61. * @Service /bigScreen/getAssetsFee
  62. * @path /app/bigScreen/getAssetsFee
  63. */
  64. @RequestMapping(value = "/getAssetsFee", method = RequestMethod.GET)
  65. public ResponseEntity<String> getAssetsFee(@RequestParam(value = "communityId") String communityId) {
  66. return queryAssetsFeeBMOImpl.query(communityId);
  67. }
  68. /**
  69. * 今日巡检
  70. *
  71. * @param communityId
  72. * @return
  73. * @Service /bigScreen/getAssetInspection
  74. * @path /app/bigScreen/getAssetInspection
  75. */
  76. @RequestMapping(value = "/getAssetInspection", method = RequestMethod.GET)
  77. public ResponseEntity<String> getAssetInspection(@RequestParam(value = "communityId") String communityId) {
  78. return queryAssetsInspectionBMOImpl.query(communityId);
  79. }
  80. /**
  81. * 开门
  82. *
  83. * @param communityId
  84. * @return
  85. * @Service /bigScreen/getAssetOpenDoor
  86. * @path /app/bigScreen/getAssetOpenDoor
  87. */
  88. @RequestMapping(value = "/getAssetOpenDoor", method = RequestMethod.GET)
  89. public ResponseEntity<String> getAssetOpenDoor(@RequestParam(value = "communityId") String communityId) {
  90. return queryAssetsInspectionBMOImpl.query(communityId);
  91. }
  92. }