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

📄 messeservice.java

📁 一个关于物流的管理系统
💻 JAVA
字号:
package com.shunshi.ssh.home.service;

import java.util.Iterator;
import java.util.List;
import java.util.Set;

import org.extremecomponents.table.limit.Limit;

import com.shunshi.ssh.entity.Messe;
import com.shunshi.ssh.home.dao.IMesseDao;



public class MesseService implements IMesseService{
    public final static int DEFAULT_PAGE_SIZE=15;
	private IMesseDao messeDao;
	
	public IMesseDao getMesseDao() {
		return messeDao;
	}

	public void setMesseDao(IMesseDao messeDao) {
		this.messeDao = messeDao;
	}

	public List findAllInfo() {
		List all=messeDao.findAll();
		return all;
	}

	public Messe findById(long id) {
		Messe messe=messeDao.findById(id);
		return messe;
	}



   public List findMorePublishInfo(int toPageNo) {
		int total= messeDao.getTotalRowsByState(2).intValue();
        PageController pc = new PageController(total,toPageNo);
        List all= messeDao.findMorePublishInfo(pc.getPageStartRow(), pc.getPageSize());
		return all;
	}

	public List findSomePublishInfo() {
		
		return messeDao.findSomePublishInfo();
	}
	
      public int getTotalPageCount() {
		
		int totalRow=messeDao.getTotalRowsByState(2).intValue();
		if(totalRow==0){
			return 1;
		}
		PageController pc = new PageController();
		pc.setTotalRowsAmount(totalRow);
		return pc.getTotalPages();
	}

}

⌨️ 快捷键说明

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