package com.ibiz.core.repository ;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.ibiz.core.repository.po.ORG;
import com.ibiz.core.external.filter.ORGSearchContext;

/**
 * 实体 [机构] 存储对象
 */
public interface ORGRepository extends Repository<ORG> {
    
    /**
	 * 查询集合 [DEFAULT]
	 * @param context
	 * @return
	 */
    Page<ORG> searchDefault(ORGSearchContext context);

    /**
	 * 查询集合 [顶级组织]
	 * @param context
	 * @return
	 */
    Page<ORG> searchTopOrg(ORGSearchContext context);

    /**
	 * 查询集合 [当前组织]
	 * @param context
	 * @return
	 */
    Page<ORG> searchCurOrg(ORGSearchContext context);


    ORG convert2PO(com.ibiz.core.external.domain.ORG domain , ORG po) ;
	
    com.ibiz.core.external.domain.ORG convert2Domain( ORG po ,com.ibiz.core.external.domain.ORG domain) ;

}
