package com.slcf.service.impl; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.slcf.bean.WaitPakInLogCondition; import com.slcf.dao.WaitPakInLogDao; import com.slcf.pojo.WaitPakInLogBean; import com.slcf.service.WaitPakInLogService; /** * 入库通知历史档接口实现 * @author admin * @date 2018年11月20日 */ @Service public class WaitPakInLogServiceImpl implements WaitPakInLogService { @Autowired WaitPakInLogDao waitPakInLogDao; /** * 分页查询所有 */ public Map queryWaitPakInLogList(WaitPakInLogCondition waitPakInLogCon) { try { Map map=new HashMap(); List list=waitPakInLogDao.queryWaitPakInLogList(waitPakInLogCon); int count =waitPakInLogDao.getWaitPakInLogCount(waitPakInLogCon); map.put("rows", list); map.put("total", count); return map; }catch(Exception e) { System.out.println(e.getMessage()); return null; } } /** * 查询所有 * @return */ public List getWaitPakInLogList() { try { return waitPakInLogDao.getWaitPakInLogList(); }catch(Exception e) { System.out.println(e.getMessage()); return null; } } }