public int getSupplySearchCount(String searchType, String searchValue) {

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("searchtype", searchType);
    params.put("searchvalue", searchValue);

    int count = supplyMapper.getSupplySearchCount(params);

    return count;
  }
  public List<Supply> getSupplyList(int first, int last) {

    HashMap<String, Integer> params = new HashMap<String, Integer>();
    params.put("first", first);
    params.put("last", last);

    List<Supply> supplys = supplyMapper.getSupplyListByPage(params);

    return supplys;
  }
  public List<Supply> getSupplyList(String searchType, String searchValue, int first, int last) {

    HashMap<String, Object> params = new HashMap<String, Object>();
    params.put("searchtype", searchType);
    params.put("searchvalue", searchValue);
    params.put("first", first);
    params.put("last", last);

    List<Supply> supplys = supplyMapper.getSupplyListBySearchPage(params);

    return supplys;
  }
  public void deleteSupply(int supplyNo) {

    supplyMapper.deleteSupply(supplyNo);
  }
  public void updateSupply(Supply supply) {

    supplyMapper.updateSupply(supply);
  }
  public Supply getSupplyBySupplyNo(int supplyNo) {

    Supply supply = supplyMapper.getSupplyBySupplyNo(supplyNo);

    return supply;
  }
  // 전체 목록에서 조회할 데이터의 시작위치, 끝위치
  public int getSupplyCount() {

    int count = supplyMapper.getSupplyCount();

    return count;
  }
  public List<Supply> getSupplyList() {

    List<Supply> supplys = supplyMapper.getSupplyList();

    return supplys;
  }
 public void insertSupply(Supply supply) {
   supplyMapper.insertSupply(supply);
 }