InOutParkDaoImpl.java 1.07 KB
package com.zteits.park.dao.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zteits.park.dao.InOutParkDao;
import com.zteits.park.domain.InOutParkDO;
import com.zteits.park.mapper.smapper.InOutParkSMapper;
@Component
public class InOutParkDaoImpl implements InOutParkDao {
	
	@Autowired
	private InOutParkSMapper inOutParkSMapper;

	@Override
	public PageInfo<InOutParkDO> queryInOutParkForList(int pageNum, int pageSize, Integer inOutStatus, Date beginTime,
			Date endTime, List<String> plNos,String isFixedCar) {
		//设置分页信息
		PageHelper.startPage(pageNum, pageSize);
		//查询数据
		List<InOutParkDO> list = inOutParkSMapper.queryInOutParkForList(inOutStatus, beginTime, endTime, plNos,isFixedCar);
		return (list != null && list.size() >0) ? new PageInfo<InOutParkDO>(list) : new PageInfo<InOutParkDO>(new ArrayList<InOutParkDO>());
	}

}