UserDaoImpl.java
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.bjivt.dao.showtime.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Component;
import com.bjivt.base.dao.impl.BaseDaoImpl;
import com.bjivt.dao.showtime.UserDao;
import com.bjivt.entity.showtime.User;
@Component
public class UserDaoImpl extends BaseDaoImpl<User, Integer> implements UserDao{
@Override
public List<String> loadAllUserList(Map<String, Object> map) {
return this.getSqlSession().selectList("com.bjivt.entity.showtime.UserNoticeMapper.loadAllUserList", map);
}
@Override
public List<String> loadAnchorUserList(Map<String, Object> map) {
return this.getSqlSession().selectList("com.bjivt.entity.showtime.UserNoticeMapper.loadAnchorUserList", map);
}
@Override
public List<String> loadCommonUserList(Map<String, Object> map) {
return this.getSqlSession().selectList("com.bjivt.entity.showtime.UserNoticeMapper.loadCommonUserList", map);
}
@Override
public int loadAllUserCount() {
return this.getSqlSession().selectOne("com.bjivt.entity.showtime.UserNoticeMapper.loadAllUserCount");
}
@Override
public int loadAnchorUserCount() {
return this.getSqlSession().selectOne("com.bjivt.entity.showtime.UserNoticeMapper.loadAnchorUserCount");
}
@Override
public int loadCommonUserCount() {
return this.getSqlSession().selectOne("com.bjivt.entity.showtime.UserNoticeMapper.loadCommonUserCount");
}
}