package com.jwipc.sys.logic;

import com.jwipc.page.PageView;
import com.jwipc.sys.dto.PurchaseOrgDTO;
import com.jwipc.sys.dto.UserPurOrgTreeDTO;
import com.jwipc.sys.model.param.PurchaseOrgParam;
import com.jwipc.sys.model.query.PurchaseOrgQuery;

import java.util.List;

/**
 * <p> </p>
 *
 * @author BOGON
 * @version 1.0
 * @since JDK 1.8
 */
public interface PurchaseOrgLogic {
    PageView findByPage(PurchaseOrgQuery query);
    List<UserPurOrgTreeDTO> getForTree(Long userId);
    PurchaseOrgDTO getById(Long id);
    void saveOrUpdate(PurchaseOrgParam param);
    void remove(String purchaseOrgCode);

    List<PurchaseOrgDTO> listAll(PurchaseOrgQuery query);
}