| | |
| | | import java.util.*; |
| | | import java.util.concurrent.CountDownLatch; |
| | | |
| | | import com.yssh.config.InitConfig; |
| | | import com.yssh.entity.*; |
| | | import com.yssh.mapper.DictRecordMapper; |
| | | import com.yssh.mapper.QxshMapper; |
| | |
| | | * 获取本月监测站点最大值TOP10 |
| | | */ |
| | | public List<Qxsh> selectMonthTop10() { |
| | | String time = DateUtils.getYyyyMm(new Date()); |
| | | String time = DateUtils.getYyyyMm(InitConfig.getDate()); |
| | | //List<Qxsh> list = qxshMapper.selectMonthTop10(time + "%"); |
| | | |
| | | String key = "qxshMapper.selectMonthTop10." + time; |
| | |
| | | * 获取本周监测站点最大值TOP10 |
| | | */ |
| | | public List<Qxsh> selectWeekTop10() { |
| | | Date now = new Date(); |
| | | Date now = InitConfig.getDate(); |
| | | int weekOfYear = DateUtils.getWeekOfYear(now); |
| | | int year = Integer.parseInt(DateUtils.parseDateToStr(DateUtils.YYYY, now)); |
| | | Date lastSun = DateUtils.getWeekOfYearForSun(year, weekOfYear); |
| | |
| | | * 获取本日监测站点最大值TOP10 |
| | | */ |
| | | public List<Qxsh> selectDayTop10() { |
| | | String time = DateUtils.getYyyyMmDd(new Date()); |
| | | String time = DateUtils.getYyyyMmDd(InitConfig.getDate()); |
| | | //List<Qxsh> list = qxshMapper.selectDayTop10(time + "%"); |
| | | |
| | | String key = "qxshMapper.selectDayTop10." + time; |