| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- package com.java110.community.api;
- import com.java110.community.bmo.assets.*;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.http.ResponseEntity;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- @RestController
- @RequestMapping(value = "/bigScreen")
- public class BigScreenApi {
- @Autowired
- private IQueryAssetsBMO queryAssetsBMOImpl;
- @Autowired
- private IQueryAssetsRoomBMO queryAssetsRoomBMOImpl;
- @Autowired
- private IQueryAssetsRepairBMO queryAssetsRepairBMOImpl;
- @Autowired
- private IQueryAssetsFeeBMO queryAssetsFeeBMOImpl;
- @Autowired
- private IQueryAssetsInspectionBMO queryAssetsInspectionBMOImpl;
- /**
- * 查询资产
- *
- * @param communityId
- * @return
- * @Service /bigScreen/getAssets
- * @path /app/bigScreen/getAssets
- */
- @RequestMapping(value = "/getAssets", method = RequestMethod.GET)
- public ResponseEntity<String> getAssets(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsBMOImpl.query(communityId);
- }
- /**
- * 查询房屋
- *
- * @param communityId
- * @return
- * @Service /bigScreen/getAssetsRoom
- * @path /app/bigScreen/getAssetsRoom
- */
- @RequestMapping(value = "/getAssetsRoom", method = RequestMethod.GET)
- public ResponseEntity<String> getAssetsRoom(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsRoomBMOImpl.query(communityId);
- }
- /**
- * @param communityId
- * @return
- * @Service /bigScreen/getAssetsRepair
- * @path /app/bigScreen/getAssetsRepair
- */
- @RequestMapping(value = "/getAssetsRepair", method = RequestMethod.GET)
- public ResponseEntity<String> getAssetsRepair(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsRepairBMOImpl.query(communityId);
- }
- /**
- * 查询大屏费用
- *
- * @param communityId
- * @return
- * @Service /bigScreen/getAssetsFee
- * @path /app/bigScreen/getAssetsFee
- */
- @RequestMapping(value = "/getAssetsFee", method = RequestMethod.GET)
- public ResponseEntity<String> getAssetsFee(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsFeeBMOImpl.query(communityId);
- }
- /**
- * 今日巡检
- *
- * @param communityId
- * @return
- * @Service /bigScreen/getAssetInspection
- * @path /app/bigScreen/getAssetInspection
- */
- @RequestMapping(value = "/getAssetInspection", method = RequestMethod.GET)
- public ResponseEntity<String> getAssetInspection(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsInspectionBMOImpl.query(communityId);
- }
- /**
- * 开门
- *
- * @param communityId
- * @return
- * @Service /bigScreen/getAssetOpenDoor
- * @path /app/bigScreen/getAssetOpenDoor
- */
- @RequestMapping(value = "/getAssetOpenDoor", method = RequestMethod.GET)
- public ResponseEntity<String> getAssetOpenDoor(@RequestParam(value = "communityId") String communityId) {
- return queryAssetsInspectionBMOImpl.query(communityId);
- }
- }
|