@@ -24,6 +24,10 @@ public interface BusinessDao extends JpaSpecificationExecutor<Business>,
//加入isActive=N || add by August 2014-3-27
@Query("select business.businessId, business.businessName from Business business where business.isActive = 'Y' and business.businessId >= 0 order by business.businessId")
List<Object[]>findAllBusinessIdAndBusinessName();
@Query("from Business business where business.isActive = 'Y' and business.businessId >= 0 order by business.businessId")
@Query("select kpi.kpiId, kpi.kpiName from Kpi kpi where kpi.kpiId >=0")
List<Object[]>findAllKpiIdAndKpiName();
//由指标名得到指标周期类型
//由指标名得到指标周期类型
@Query("select kpiCycleType.isHourKpi from Kpi kpi,KpiCycleType kpiCycleType where kpi.kpiCycleTypeId=kpiCycleType.kpiCycleTypeId and kpi.kpiName IN (:kpiName) and kpi.kpiId >=0")