|
|
|
|
@ -245,10 +245,12 @@ public class WxClockLogServiceImpl implements IWxClockLogService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<WxClockStatistics> clockStatistics(WxClockStatistics wxClockStatistics, Integer pageNum) {
|
|
|
|
|
public List<WxClockStatistics> clockStatistics(Integer year) {
|
|
|
|
|
WxClockStatistics query = new WxClockStatistics();
|
|
|
|
|
query.setYear(year);
|
|
|
|
|
// 获取历史统计信息,数据在数据库
|
|
|
|
|
List<WxClockStatistics> list = wxClockStatisticsMapper.selectWxClockStatisticsList(wxClockStatistics);
|
|
|
|
|
if (list != null && list.size() > 0 && pageNum == 1) {
|
|
|
|
|
List<WxClockStatistics> list = wxClockStatisticsMapper.selectWxClockStatisticsList(query);
|
|
|
|
|
if (list != null && list.size() > 0 && year == LocalDate.now().getYear()) {
|
|
|
|
|
/* 当前月,则需要从redis中获取排名,计算比例 */
|
|
|
|
|
WxClockStatistics isCurrent = list.get(0);
|
|
|
|
|
// 获取排名
|
|
|
|
|
|