|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.com.taiji.common.repo.jpa.AbstractJpaRepo; |
|
|
import cn.com.taiji.common.repo.jpa.AbstractJpaRepo; |
|
|
import cn.com.taiji.core.entity.comm.PortalConfig; |
|
|
import cn.com.taiji.core.entity.comm.PortalConfig; |
|
|
import cn.com.taiji.core.entity.dict.user.RbacSource; |
|
|
|
|
|
|
|
|
import cn.com.taiji.core.entity.dict.basic.SourceType; |
|
|
import org.springframework.data.jpa.repository.Query; |
|
|
import org.springframework.data.jpa.repository.Query; |
|
|
|
|
|
|
|
|
/*** |
|
|
/*** |
|
|
|
|
|
|
|
|
public interface PortalConfigRepo extends AbstractJpaRepo<PortalConfig, String> { |
|
|
public interface PortalConfigRepo extends AbstractJpaRepo<PortalConfig, String> { |
|
|
|
|
|
|
|
|
@Query("select count(*) from PortalConfig where source=?1") |
|
|
@Query("select count(*) from PortalConfig where source=?1") |
|
|
long countBySource(RbacSource source); |
|
|
|
|
|
|
|
|
long countBySource(SourceType source); |
|
|
|
|
|
|
|
|
@Query("from PortalConfig where id=?1") |
|
|
@Query("from PortalConfig where id=?1") |
|
|
PortalConfig getById(String id); |
|
|
PortalConfig getById(String id); |
|
|
|
|
|
|
|
|
@Query("from PortalConfig where source=?1") |
|
|
@Query("from PortalConfig where source=?1") |
|
|
PortalConfig findBySource(RbacSource source); |
|
|
|
|
|
|
|
|
PortalConfig findBySource(SourceType source); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |