From 745db61979904cc2c0940a1d5ad044831a3c4d20 Mon Sep 17 00:00:00 2001 From: z Date: Tue, 19 Dec 2023 17:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E5=B7=A5=E7=A8=8B=E9=83=A8?= =?UTF-8?q?=E5=88=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonnelManagementController.java | 4 ++++ .../keyProjects/VideoResourcesController.java | 16 ++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java b/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java index 273ba0ae..830b9336 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java @@ -66,6 +66,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/delete") @RequiresPermissions("personnelmanagement:del") @ResponseBody + @DockAnnotation public Object delete() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -93,6 +94,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/edit") @RequiresPermissions("personnelmanagement:edit") @ResponseBody + @DockAnnotation(isAdd = true) public Object edit() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -164,6 +166,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/deleteAll") @RequiresPermissions("personnelmanagement:del") @ResponseBody + @DockAnnotation public Object deleteAll() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -313,6 +316,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/resetPwd") @ResponseBody + @DockAnnotation(isAdd = true) public Object resetPwd(Page page) throws Exception { Map map = new HashMap(); String errInfo = "success"; diff --git a/src/main/java/com/zcloud/controller/keyProjects/VideoResourcesController.java b/src/main/java/com/zcloud/controller/keyProjects/VideoResourcesController.java index 659c68be..2f5836c4 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/VideoResourcesController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/VideoResourcesController.java @@ -1,5 +1,7 @@ package com.zcloud.controller.keyProjects; +import com.alibaba.fastjson.JSON; +import com.zcloud.aspect.DockAnnotation; import com.zcloud.controller.base.BaseController; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; @@ -40,6 +42,7 @@ public class VideoResourcesController extends BaseController { @RequestMapping(value = "/add") @RequiresPermissions("videomanager:add") @ResponseBody + @DockAnnotation(isAdd = true) public Object add() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -52,6 +55,7 @@ public class VideoResourcesController extends BaseController { pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //操作人 pd.put("ISDELETE", "0"); //是否删除 videoResourcesService.save(pd); + map.put("dockData", JSON.toJSONString(pd)); map.put("result", errInfo); return map; } @@ -102,12 +106,12 @@ public class VideoResourcesController extends BaseController { return map; } - /** - * 修改 - * - * @param - * @throws Exception - */ + /** + * 修改 + * + * @param + * @throws Exception + */ @RequestMapping(value = "/edit") @RequiresPermissions("videomanager:edit") @ResponseBody