BigScreenApi.java
3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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;
@Autowired
private IQueryAssetsOpenDoorBMO queryAssetsOpenDoorBMOImpl;
/**
* 查询资产
*
* @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 queryAssetsOpenDoorBMOImpl.query(communityId);
}
@RequestMapping(value = "/getAssetOpenDoorImage", method = RequestMethod.GET)
public ResponseEntity<String> getAssetOpenDoorImage(@RequestParam(value = "communityId") String communityId) {
return queryAssetsOpenDoorBMOImpl.queryImage(communityId);
}
}