增加用户ID过滤条件

master
elliott 2 years ago
parent fbb42d5fbf
commit 1ecc4330ed

@ -248,6 +248,7 @@ public class WxClockLogServiceImpl implements IWxClockLogService {
public List<WxClockStatistics> clockStatistics(Integer year) {
WxClockStatistics query = new WxClockStatistics();
query.setYear(year);
query.setUserId(SecurityUtils.getLoginUser().getWxUserMember().getId());
// 获取历史统计信息,数据在数据库
List<WxClockStatistics> list = wxClockStatisticsMapper.selectWxClockStatisticsList(query);
if (list != null && list.size() > 0 && year == LocalDate.now().getYear()) {

Loading…
Cancel
Save