@@ -25,6 +25,10 @@ public interface BusinessDao extends JpaSpecificationExecutor<Business>,
...
@@ -25,6 +25,10 @@ public interface BusinessDao extends JpaSpecificationExecutor<Business>,
@Query("select business.businessId, business.businessName from Business business where business.isActive = 'Y' and business.businessId >= 0 order by business.businessId")
@Query("select business.businessId, business.businessName from Business business where business.isActive = 'Y' and business.businessId >= 0 order by business.businessId")
List<Object[]>findAllBusinessIdAndBusinessName();
List<Object[]>findAllBusinessIdAndBusinessName();
@Query("from Business business where business.isActive = 'Y' and business.businessId >= 0 order by business.businessId")
List<Business>findAllBusiness();
//加入isActive=N || add by August 2014-3-27
//加入isActive=N || add by August 2014-3-27
//由数据来源和渠道得到业务
//由数据来源和渠道得到业务
@Query("select business.businessId, business.businessName from Business business,ChannelDataSourceMap channelDataSourceMap where business.channelDataSourceMapId=channelDataSourceMap.channelDataSourceMapId and channelDataSourceMap.channelId IN (:channelIdList) and channelDataSourceMap.dataSourceId IN (:datasourceIdList) and business.isActive = 'Y' and business.businessId >= 0 order by business.businessId ")
@Query("select business.businessId, business.businessName from Business business,ChannelDataSourceMap channelDataSourceMap where business.channelDataSourceMapId=channelDataSourceMap.channelDataSourceMapId and channelDataSourceMap.channelId IN (:channelIdList) and channelDataSourceMap.dataSourceId IN (:datasourceIdList) and business.isActive = 'Y' and business.businessId >= 0 order by business.businessId ")