Blame view

parking-module-park/src/main/java/com/zteits/park/dao/impl/InOutParkDaoImpl.java 1.07 KB
9af4a544   王彪总   新项目
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
  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>());
  	}
  
  }