package com.sinosig.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.sinosig.core.repository.po.ORG;
import com.sinosig.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.sinosig.core.external.domain.ORG domain , ORG po) ;
	
    com.sinosig.core.external.domain.ORG convert2Domain( ORG po ,com.sinosig.core.external.domain.ORG domain) ;

}
