Commit c96dd352 authored by 胡斌's avatar 胡斌

智能分析平台备份

parent e74ff109
This diff is collapsed.
No preview for this file type
...@@ -165,12 +165,11 @@ public class QualityRuleReportController { ...@@ -165,12 +165,11 @@ public class QualityRuleReportController {
@RequestParam(value = "reportSumStartTime") String reportSumStartTime, @RequestParam(value = "reportSumStartTime") String reportSumStartTime,
@RequestParam(value = "reportSumEndTime") String reportSumEndTime, @RequestParam(value = "reportSumEndTime") String reportSumEndTime,
HttpServletResponse response) throws ParseException{ HttpServletResponse response) throws ParseException{
SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
SimpleDateFormat sdf= new SimpleDateFormat("MMM d, yyyy K:m:s a", Locale.ENGLISH);
Long province = Long.parseLong(provinceId); Long province = Long.parseLong(provinceId);
Long kpi = Long.parseLong(kpiId); Long kpi = Long.parseLong(kpiId);
Timestamp startTime = Timestamp.valueOf(sd.format(sdf.parse(reportSumStartTime))); Timestamp startTime = Timestamp.valueOf(reportSumStartTime);
Timestamp endTime =Timestamp.valueOf(sd.format(sdf.parse(reportSumEndTime))); System.out.println(startTime);
Timestamp endTime =Timestamp.valueOf(reportSumEndTime);
List<QualityRuleInfo> qualityRuleInfo = (List<QualityRuleInfo>) qualityRuleInfoService.findBy(province,kpi,startTime,endTime); List<QualityRuleInfo> qualityRuleInfo = (List<QualityRuleInfo>) qualityRuleInfoService.findBy(province,kpi,startTime,endTime);
cmszOperationLogService.createLog("查询","数据质量规则运营","查询数据质量规则运营明细"); cmszOperationLogService.createLog("查询","数据质量规则运营","查询数据质量规则运营明细");
Gson gson = new Gson(); Gson gson = new Gson();
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<th width="6.4%">告警类型</th> <th width="6.4%">告警类型</th>
<th width="6.4%">指标监控时间</th> <th width="6.4%">指标监控时间</th>
<th width="6.4%">指标业务时间</th> <th width="6.4%">指标业务时间</th>
<th width="6.4%">是否过滤</th> <%--<th width="6.4%">是否过滤</th>--%>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
<td>${qualityRuleInfo.warningType}</td> <td>${qualityRuleInfo.warningType}</td>
<td>${qualityRuleInfo.kpiMonitorRunTime}</td> <td>${qualityRuleInfo.kpiMonitorRunTime}</td>
<td>${qualityRuleInfo.businessTime}</td> <td>${qualityRuleInfo.businessTime}</td>
<td> <%--<td>--%>
<c:if test="${qualityRuleInfo.ifFilter == '0'}">未过滤</c:if> <%--<c:if test="${qualityRuleInfo.ifFilter == '0'}">未过滤</c:if>--%>
<c:if test="${qualityRuleInfo.ifFilter == '1'}">已过滤</c:if> <%--<c:if test="${qualityRuleInfo.ifFilter == '1'}">已过滤</c:if>--%>
</td> <%--</td>--%>
</tr> </tr>
</c:forEach> </c:forEach>
</tbody> </tbody>
......
...@@ -331,6 +331,7 @@ table_pagging.prototype = { ...@@ -331,6 +331,7 @@ table_pagging.prototype = {
} }
if(k==1){ if(k==1){
console.log(this.objectlist[i])
tdContext = "<a href='javascript:;' onclick='selectOperation(\""+this.getData(this.objectlist[i],"provinceId")+"\",\""+this.getData(this.objectlist[i],"kpiId")+"\",\""+this.getData(this.objectlist[i],"reportSumStartTime")+"\",\""+this.getData(this.objectlist[i],"reportSumEndTime")+"\")'>"+this.getData(this.objectlist[i],this.header[k][1])+"</a>"; tdContext = "<a href='javascript:;' onclick='selectOperation(\""+this.getData(this.objectlist[i],"provinceId")+"\",\""+this.getData(this.objectlist[i],"kpiId")+"\",\""+this.getData(this.objectlist[i],"reportSumStartTime")+"\",\""+this.getData(this.objectlist[i],"reportSumEndTime")+"\")'>"+this.getData(this.objectlist[i],this.header[k][1])+"</a>";
} }
...@@ -529,7 +530,7 @@ table_pagging.prototype = { ...@@ -529,7 +530,7 @@ table_pagging.prototype = {
alert(this.tablename); alert(this.tablename);
} }
} };
//查看数据质量运营 //查看数据质量运营
function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){ function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){
$.dialog({ $.dialog({
...@@ -543,7 +544,7 @@ function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){ ...@@ -543,7 +544,7 @@ function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){
$.ajax({ $.ajax({
type : 'GET', type : 'GET',
contentType : 'application/json', contentType : 'application/json',
url: "/AnalysisSupport/QualityRuleReport/findOperation?provinceId="+provinceId+"&kpiId="+kpiId+"&reportSumStartTime="+reportSumStartTime+"&reportSumEndTime="+reportSumEndTime, url: "/AnalysisSupport/QualityRuleReport/findOperation?provinceId="+provinceId+"&kpiId="+kpiId+"&reportSumStartTime="+df.format(new Date(reportSumStartTime))+"&reportSumEndTime="+df.format(new Date(reportSumStartTime)),
dataType : 'text', dataType : 'text',
beforeSend: function(data) { beforeSend: function(data) {
}, },
......
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