Commit 846f70c6 by java-lixy

工作台 举报状态添加已关闭

parent 94a33638
...@@ -22,6 +22,7 @@ public class WorkbenchBean { ...@@ -22,6 +22,7 @@ public class WorkbenchBean {
private int unProcess = 0; private int unProcess = 0;
private int processing = 0; private int processing = 0;
private int processed = 0; private int processed = 0;
private int closed = 0;
//举报结果 //举报结果
private int repResultTotal = 0; private int repResultTotal = 0;
...@@ -346,4 +347,12 @@ public class WorkbenchBean { ...@@ -346,4 +347,12 @@ public class WorkbenchBean {
public void setiAndD(int iAndD) { public void setiAndD(int iAndD) {
this.iAndD = iAndD; this.iAndD = iAndD;
} }
public int getClosed() {
return closed;
}
public void setClosed(int closed) {
this.closed = closed;
}
} }
...@@ -74,6 +74,9 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> { ...@@ -74,6 +74,9 @@ public class WorkbenchService extends CrudService<ReportDao, ReportEntity> {
}else if("0".equals(String.valueOf(status.get("REPORT_STATUS")))){ }else if("0".equals(String.valueOf(status.get("REPORT_STATUS")))){
//未处理 //未处理
workbench.setUnProcess(Integer.valueOf(String.valueOf(status.get("COUNT(REPORT_STATUS)")))); workbench.setUnProcess(Integer.valueOf(String.valueOf(status.get("COUNT(REPORT_STATUS)"))));
}else if("3".equals(String.valueOf(status.get("REPORT_STATUS")))){
//已关闭
workbench.setClosed(Integer.valueOf(String.valueOf(status.get("COUNT(REPORT_STATUS)"))));
} }
} }
} }
......
...@@ -66,6 +66,7 @@ public class WorkbenchController extends BaseController { ...@@ -66,6 +66,7 @@ public class WorkbenchController extends BaseController {
res.put("unProcess",bean.getUnProcess()); res.put("unProcess",bean.getUnProcess());
res.put("processing",bean.getProcessing()); res.put("processing",bean.getProcessing());
res.put("processed",bean.getProcessed()); res.put("processed",bean.getProcessed());
res.put("closed",bean.getClosed());
//举报结果 //举报结果
res.put("invalid",bean.getInvalid()); res.put("invalid",bean.getInvalid());
res.put("complainNum",bean.getComplainNum()); res.put("complainNum",bean.getComplainNum());
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
}, },
subtitle: {//副标题 subtitle: {//副标题
align: 'right', align: 'right',
text: '总数&nbsp;:&nbsp;'+result.bench.repStatusTotal+'<br/><br/>未处理&nbsp;:&nbsp;'+result.unProcess+'<br/><br/>跟踪中&nbsp;:&nbsp;'+result.processing+'<br/><br/>已处理&nbsp;:&nbsp;'+result.processed, text: '总数&nbsp;:&nbsp;'+result.bench.repStatusTotal+'<br/>未处理&nbsp;:&nbsp;'+result.unProcess+'<br/>跟踪中&nbsp;:&nbsp;'+result.processing+'<br/>已处理&nbsp;:&nbsp;'+result.processed+'<br/>已关闭&nbsp;:&nbsp;'+result.closed,
useHTML: true, useHTML: true,
verticalAlign: 'top' , verticalAlign: 'top' ,
x: -5 , x: -5 ,
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
['未处理', result.unProcess], ['未处理', result.unProcess],
['跟踪中', result.processing], ['跟踪中', result.processing],
['已处理', result.processed], ['已处理', result.processed],
['已关闭', result.closed],
// { // {
// name: 'Chrome', // name: 'Chrome',
// y: 12.8, // y: 12.8,
......
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