| | |
| | | package com.yssh.controller; |
| | | |
| | | import com.yssh.entity.Qxsh; |
| | | import com.yssh.utils.CacheUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | String key = dateFormat.format(new Date()) + "_top10"; |
| | | Object obj = CacheUtils.get(key); |
| | | List<Map<String, Object>> list; |
| | | List<Qxsh> list; |
| | | |
| | | if (null != obj) { |
| | | list = (List<Map<String, Object>>) obj; |
| | | list = (List<Qxsh>) obj; |
| | | } else { |
| | | list = warningService.selectThisMonthLocationValueDataTop10(); |
| | | //list = warningService.selectThisMonthLocationValueDataTop10(); |
| | | list = warningService.selectMonthTop10(); |
| | | if (null != list && list.size() > 0) { |
| | | CacheUtils.put(key, list); |
| | | } |