| | |
| | | import java.util.LinkedHashMap;
|
| | | import java.util.Map;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.beans.factory.annotation.Value;
|
| | | import org.springframework.core.io.Resource;
|
| | | import org.springframework.data.redis.core.RedisTemplate;
|
| | | import org.springframework.web.bind.annotation.CrossOrigin;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | |
| | | public class ScreenController {
|
| | |
|
| | | /** The screen service. */
|
| | | @Autowired
|
| | | @Resource
|
| | | private HistoryService historyService;
|
| | |
|
| | | /** The account service. */
|
| | | @Autowired
|
| | | @Resource
|
| | | private AccountService accountService;
|
| | |
|
| | | /** The device service. */
|
| | | @Autowired
|
| | | @Resource
|
| | | private DeviceService deviceService;
|
| | |
|
| | | /** The resource. */
|
| | | @Value(value = "classpath:system/alarmLevels.json")
|
| | | private Resource resource;
|
| | | private org.springframework.core.io.Resource resource;
|
| | |
|
| | | /** The redis template. */
|
| | | @javax.annotation.Resource
|
| | | RedisTemplate<String, String> redisTemplate;
|
| | | @Resource
|
| | | private RedisTemplate<String, String> redisTemplate;
|
| | |
|
| | | /** The level key. */
|
| | | private String levelKey = "alarm_level_config";
|