|
@@ -108,33 +108,57 @@ public class VisualizationController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询 接口审批分析-子页 自动获取近三年
|
|
|
+ * 审批分析 - 可视化二级页(右下) 自动获取近三年数据
|
|
|
+ * 目前显示接口应用审批、数据应用审批、证照应用审批。按照这三类进行查询。
|
|
|
* */
|
|
|
- @PostMapping("subJkspfx")
|
|
|
+ @PostMapping("subSpfx")//zzzzzzzzz
|
|
|
@ResponseBody
|
|
|
- public JSONObject subJkspfx(String deptId){
|
|
|
+ public JSONObject subSpfx(String deptId){
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
//年份数据
|
|
|
- jsonObject.put("years",getYears());
|
|
|
+ jsonObject.put("years", getYears());//获取当前年和前两年的年份
|
|
|
//类别数组
|
|
|
- List<SysDictData> list = DictUtils.getDictCache("share_type");
|
|
|
- String[] types = new String[list.size()];
|
|
|
- for(int i=0;i<list.size();i++){
|
|
|
- types[i] = list.get(i).getDictLabel();
|
|
|
- }
|
|
|
- jsonObject.put("types",types);
|
|
|
- for(int i=0;i<getYears().length;i++){
|
|
|
- TUInterfaceinfo subJkspfx = interfaceinfoService.getSubJkspfx(deptId,getYears()[i]);
|
|
|
- String[] jkspfxData = new String[4];
|
|
|
- jkspfxData[0] = subJkspfx.getShareType1();
|
|
|
- jkspfxData[1] = subJkspfx.getShareType2();
|
|
|
- jkspfxData[2] = subJkspfx.getShareType3();
|
|
|
- jkspfxData[3] = subJkspfx.getShareType4();
|
|
|
- jsonObject.put(getYears()[i],jkspfxData);
|
|
|
+ String[] types = {"接口应用审批", "数据应用审批", "证照应用审批"};
|
|
|
+ jsonObject.put("types", types);
|
|
|
+ for(int i = 0; i < getYears().length; i++){
|
|
|
+ TUInterfaceinfo subJkspfx = interfaceinfoService.getSubSpfx(deptId, getYears()[i]);
|
|
|
+ String[] jkspfxData = new String[3];
|
|
|
+ jkspfxData[0] = subJkspfx.getShareType1();//接口应用审批
|
|
|
+ jkspfxData[1] = subJkspfx.getShareType2();//数据应用审批
|
|
|
+ jkspfxData[2] = subJkspfx.getShareType3();//证照应用审批
|
|
|
+ jsonObject.put(getYears()[i], jkspfxData);
|
|
|
}
|
|
|
return jsonObject;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询 接口审批分析-子页 自动获取近三年
|
|
|
+ * */
|
|
|
+// @PostMapping("subJkspfx")
|
|
|
+// @ResponseBody
|
|
|
+// public JSONObject subJkspfx(String deptId){
|
|
|
+// JSONObject jsonObject = new JSONObject();
|
|
|
+// //年份数据
|
|
|
+// jsonObject.put("years",getYears());
|
|
|
+// //类别数组
|
|
|
+// List<SysDictData> list = DictUtils.getDictCache("share_type");
|
|
|
+// String[] types = new String[list.size()];
|
|
|
+// for(int i=0;i<list.size();i++){
|
|
|
+// types[i] = list.get(i).getDictLabel();
|
|
|
+// }
|
|
|
+// jsonObject.put("types",types);
|
|
|
+// for(int i=0;i<getYears().length;i++){
|
|
|
+// TUInterfaceinfo subJkspfx = interfaceinfoService.getSubJkspfx(deptId,getYears()[i]);
|
|
|
+// String[] jkspfxData = new String[4];
|
|
|
+// jkspfxData[0] = subJkspfx.getShareType1();
|
|
|
+// jkspfxData[1] = subJkspfx.getShareType2();
|
|
|
+// jkspfxData[2] = subJkspfx.getShareType3();
|
|
|
+// jkspfxData[3] = subJkspfx.getShareType4();
|
|
|
+// jsonObject.put(getYears()[i],jkspfxData);
|
|
|
+// }
|
|
|
+// return jsonObject;
|
|
|
+// }
|
|
|
+
|
|
|
/**获取当前年和前两年的年份**/
|
|
|
private String[] getYears() {
|
|
|
String[] arr = new String[3];
|