Commit 618b4b67 authored by 胡斌's avatar 胡斌

智能分析平台备份

parent 2e3a0ecd
This diff is collapsed.
No preview for this file type
......@@ -49,7 +49,7 @@ public interface KpiDao extends JpaSpecificationExecutor<Kpi>,PagingAndSortingRe
//由业务,采集频率联动得到指标
@Query("select kpi.kpiId, kpi.kpiName, kpi.kpiCode from Kpi kpi,Business business where business.businessId = kpi.businessId and kpi.isActive = 'Y' and kpi.calCycle=:calCycleValue and business.businessId in (:businessIds) and kpi.kpiId>=0 order by kpi.kpiId ")
List<Object[]> findKpiIdAndKpiNameAndKpiCodeByBusinessIds(@Param("businessIds")List<Long> businessIdList, @Param("calCycleValue") String calCycleValue);
List<Object[]> findKpiIdAndKpiNameAndKpiCodeByBusinessIds( @Param("calCycleValue") String calCycleValue,@Param("businessIds")List<Long> businessIdList);
//由单个业务ID得到指标
@Query("select kpi.kpiId, kpi.kpiName from Kpi kpi,Business business where kpi.businessId=business.businessId and business.businessId = :businessIdList and kpi.kpiId >=0")
......
......@@ -178,7 +178,7 @@ public class QualityRuleConfigurationController {
for(int i=0;i<strs.length;i++) {
businessIdlist.add(Long.valueOf(strs[i]));
}
List<Object[]> businessKpiList = kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(businessIdlist,calCycleValue);
List<Object[]> businessKpiList = kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(calCycleValue,businessIdlist);
Gson gson = new Gson();
response.setContentType("text/Xml;charset=gbk");
......
......@@ -168,7 +168,7 @@ public class QualityRuleMaintainController {
for(int i=0;i<strs.length;i++) {
businessIdlist.add(Long.valueOf(strs[i]));
}
List<Object[]> businessKpiList = (List<Object[]>)kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(businessIdlist,calCycleValue);
List<Object[]> businessKpiList = kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(calCycleValue,businessIdlist);
Gson gson = new Gson();
response.setContentType("text/Xml;charset=gbk");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment