Commit c18b9c9e authored by 胡斌's avatar 胡斌

Merge remote-tracking branch 'origin/liuna'

# Conflicts: # .idea/workspace.xml
parents 7b778386 3f1e7665
...@@ -48,8 +48,8 @@ public interface KpiDao extends JpaSpecificationExecutor<Kpi>,PagingAndSortingRe ...@@ -48,8 +48,8 @@ public interface KpiDao extends JpaSpecificationExecutor<Kpi>,PagingAndSortingRe
List<Object[]> findAllKpiIdAndKpiNameByBusinessId(@Param("businessIdList") List<Long> businessIdList); List<Object[]> findAllKpiIdAndKpiNameByBusinessId(@Param("businessIdList") List<Long> businessIdList);
//由业务,采集频率联动得到指标 //由业务,采集频率联动得到指标
@Query("select kpi.kpiId, kpi.kpiName 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 ") @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[]> findKpiIdAndKpiNameByBusinessIds(@Param("businessIds")List<Long> businessIdList, @Param("calCycleValue") String calCycleValue); List<Object[]> findKpiIdAndKpiNameAndKpiCodeByBusinessIds(@Param("businessIds")List<Long> businessIdList, @Param("calCycleValue") String calCycleValue);
//由单个业务ID得到指标 //由单个业务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") @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 { ...@@ -178,7 +178,7 @@ public class QualityRuleConfigurationController {
for(int i=0;i<strs.length;i++) { for(int i=0;i<strs.length;i++) {
businessIdlist.add(Long.valueOf(strs[i])); businessIdlist.add(Long.valueOf(strs[i]));
} }
List<Object[]> businessKpiList = (List<Object[]>)kpiDao.findKpiIdAndKpiNameByBusinessIds(businessIdlist,calCycleValue); List<Object[]> businessKpiList = kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(businessIdlist,calCycleValue);
Gson gson = new Gson(); Gson gson = new Gson();
response.setContentType("text/Xml;charset=gbk"); response.setContentType("text/Xml;charset=gbk");
......
...@@ -168,7 +168,7 @@ public class QualityRuleMaintainController { ...@@ -168,7 +168,7 @@ public class QualityRuleMaintainController {
for(int i=0;i<strs.length;i++) { for(int i=0;i<strs.length;i++) {
businessIdlist.add(Long.valueOf(strs[i])); businessIdlist.add(Long.valueOf(strs[i]));
} }
List<Object[]> businessKpiList = (List<Object[]>)kpiDao.findKpiIdAndKpiNameByBusinessIds(businessIdlist,calCycleValue); List<Object[]> businessKpiList = (List<Object[]>)kpiDao.findKpiIdAndKpiNameAndKpiCodeByBusinessIds(businessIdlist,calCycleValue);
Gson gson = new Gson(); Gson gson = new Gson();
response.setContentType("text/Xml;charset=gbk"); response.setContentType("text/Xml;charset=gbk");
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
//form表单提交 //form表单提交
$("#ruleSubmit").click(function(){ $("#ruleSubmit").click(function(){
if($.trim($("#kpiMonitorTime").val())==""){ if($.trim($("#frequencyValue").val())==""){
$.alert("指标监控时间不能为空"); $.alert("指标监控时间不能为空");
}else if($("#businessTime").val()==""){ }else if($("#businessTime").val()==""){
$.alert("指标业务时间不能为空"); $.alert("指标业务时间不能为空");
...@@ -441,7 +441,8 @@ ...@@ -441,7 +441,8 @@
td.empty(); td.empty();
data = JSON.parse(data) data = JSON.parse(data)
data.forEach(function(t){ data.forEach(function(t){
td.append("<input type='checkbox' name='kpiinput' class='kpiItem' value='"+t[0]+"' >"+t[1]+"</input>") console.log(data)
td.append("<input type='checkbox' title='kpiCode' name='kpiinput' class='kpiItem' value='"+t[0]+"' >"+t[1]+"</input>")
}); });
} }
}); });
......
...@@ -261,7 +261,7 @@ $("#addParam").click(function(){ ...@@ -261,7 +261,7 @@ $("#addParam").click(function(){
//form表单提交 //form表单提交
$("#ruleSubmit").click(function(){ $("#ruleSubmit").click(function(){
if($.trim($("#kpiMonitorTimeValue").val())==""){ if($.trim($("#frequencyValue").val())==""){
$.alert("指标监控时间不能为空"); $.alert("指标监控时间不能为空");
}else if($("#businessTime").val()==""){ }else if($("#businessTime").val()==""){
$.alert("指标业务时间不能为空"); $.alert("指标业务时间不能为空");
......
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