package com.no1.wms.planin;

import java.util.HashMap;
import java.util.List;

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

import com.no1.wms.account.AccountDto;

@Service
public class PlanInService {
	@Autowired
	PlanInMapper mapper;
	
    public List<AccountDto> selectAll(int searchn, String search, int start, int perPage){
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("search", search);
        map.put("start", start);
        map.put("perPage", perPage);
        map.put("searchn", searchn);



        return mapper.selectAll(map);
    }
	
	
    int count(int searchn, String search, int start, int perPage){
        HashMap<String, Object> m = new HashMap<>();
        m.put("searchn", searchn);
        m.put("search", search);
        m.put("start", start);
        m.put("perPage", perPage);
        return mapper.count(m);
    }
}
