⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idao.java

📁 上网计费系统,适用网吧或者自己学习用用JAVA写成
💻 JAVA
字号:
package com.briup.dao;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import com.briup.dao.bean.Admin;
import com.briup.dao.bean.Product;
import com.briup.dao.bean.Radcheck;
import com.briup.dao.bean.Radreply;
import com.briup.dao.bean.Role;
import com.briup.dao.bean.User;
import com.briup.exception.BossServiceException;
import com.briup.web.form.SearchAdminForm;

public interface IDao {
	// 管理员相关的操作
	public Admin getAdminByLoginName(String loginName) throws Exception;

	public void saveOrUpdateAdmin(Admin admin) throws Exception;

	public void deleteAdmin(Long id) throws Exception;

	public List getAllAdmins() throws Exception;

	public List getAdminByNum(SearchAdminForm searchAdminForm, int offset,
			int maxNumPerPage) throws Exception;

	// 用户相关的操作
	public User getUserByLoginName(String loginName) throws Exception;

	public User getUsersById(Long userid) throws Exception;

	public List getUserByNum(int offset, int maxNumPerPage) throws Exception;

	public Integer getUserCount() throws Exception;

	public void saveOrUpdateUser(User user) throws Exception;

	public void deleteUser(Long id) throws Exception;

	public void saveOrUpdateRadcheckAndReply(Radcheck radcheck, Collection radreplies)
			throws Exception;

	public List getRadacctByCondition(String businessName, Date startDate,
			Date endDate, Integer offset, Integer maxNumPerPage)
			throws Exception;

	public Integer getRadacctCount(String businessName, Date startDate,
			Date endDate) throws Exception;

	public Radcheck getRadcheckByName(String name) throws Exception;

	public Radcheck getRadcheckById(Long id) throws Exception;

	public List getRadreplyByUserName(String userName) throws Exception;

	public void deleteRadreplyByName(Radreply radreply) throws Exception;

	public void deleteRadcheck(Radcheck radcheck) throws Exception;

	public void updateRadcheck(Radcheck radcheck) throws Exception;

	// 角色相关的操作
	public List getAllRoles() throws Exception;
	
	public Role getRoleById(Long id) throws Exception;

	public void saveOrUpdateRole(Role role) throws Exception;

	public void deleteRole(Long id) throws Exception;

	// 产品相关的操作

	public List getAllProducts() throws Exception;

	public Product getProductById(Long productId) throws Exception;

	public void saveOrUpdateProduct(Product product) throws Exception;

	public List getProductByNum(int offset, int maxNumPerPage) throws Exception;

	public Integer getProductCount() throws Exception;

	public void deleteProduct(Long id) throws Exception;

	public List getAllProductTypes() throws Exception;

	// 得到高值
	public Long getHighValue() throws Exception;

	public List getBusinessMonth() throws Exception;

	public List getBusinessYear() throws Exception;

	public List getNasDay(String date) throws Exception;

	public List getNasMonth(String date) throws Exception;

	public List getNasYear(String date) throws Exception;

	public List getUserDay(String name, String year, String month, String day)
			throws Exception;

	public List getUserMonth(String name, String year, String month)
			throws Exception;

	public List getUserYear(String name, String year) throws Exception;

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -