UserDaoImpl.java 1.36 KB
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");
	}
}