瀏覽代碼

新增办件中心首页-模块列表

chenjun 11 月之前
父節點
當前提交
3b06ac5ac2

+ 19 - 0
zjugis-workflow/src/main/java/com/zjugis/z_workflow/controller/HandlerCaseCenterController.java

@@ -121,6 +121,25 @@ public class HandlerCaseCenterController extends BaseController {
 		return resultPage(viewMap);
 	}
 
+    /**
+     * 办件中心首页-模块列表
+     * @return
+     */
+    @ResponseBody
+    @RequestMapping
+    public String indexModuleList() {
+        Map viewMap = Maps.newHashMap();
+        String modules = keyValueService.getRedisValueByKey(GlobalConstant.OFFICE_CENTER_MODULE);
+        List<OfficeCenterModuleDto> moduleList = new ArrayList<>();
+        if (!StringUtils.isBlank(modules)) {
+            moduleList = JSON.parseArray(modules, OfficeCenterModuleDto.class);
+            moduleList = moduleList.stream().filter(t -> t.getiEnable() == 1).collect(Collectors.toList());
+        }
+        //endregion
+        viewMap.put("moduleList", moduleList);
+        return ok(viewMap);
+    }
+
 
     /**
      * 移动端办件中心