From 0aec1ad9465c6f39a67aef357453e9abbb559fff Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Thu, 18 Jan 2024 16:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B2=A7=E5=B7=9E=E7=9F=BF=E7=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonnelManagementController.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java b/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java index 35d66633..57a18522 100644 --- a/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.java +++ b/src/main/java/com/zcloud/controller/keyProjects/PersonnelManagementController.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; @@ -37,6 +39,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/add") @RequiresPermissions("personnelmanagement:add") @ResponseBody + @DockAnnotation public Object add() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -49,6 +52,8 @@ public class PersonnelManagementController extends BaseController { pd.put("ISDELETE", "0"); //是否删除 pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("PHONENUM"), Const.DEFAULT_PASSWORD).toString()); personnelmanagementService.save(pd); + pd.put("sendAllCorp",1); + map.put("dockData", JSON.toJSONString(pd)); map.put("result", errInfo); return map; } @@ -62,6 +67,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"; @@ -76,6 +82,8 @@ public class PersonnelManagementController extends BaseController { map.put("msg", "只用添加人" + state + "可以删除相关方人员!"); } + pd.put("sendAllCorp",1); + map.put("dockData", JSON.toJSONString(pd)); map.put("result", errInfo); //返回结果 return map; } @@ -89,6 +97,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/edit") @RequiresPermissions("personnelmanagement:edit") @ResponseBody + @DockAnnotation public Object edit() throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -103,6 +112,8 @@ public class PersonnelManagementController extends BaseController { map.put("msg", "只用添加人" + state + "可以删除相关方人员!"); } + pd.put("sendAllCorp",1); + map.put("dockData", JSON.toJSONString(pd)); map.put("result", errInfo); return map; } @@ -309,6 +320,7 @@ public class PersonnelManagementController extends BaseController { @RequestMapping(value = "/resetPwd") @ResponseBody + @DockAnnotation public Object resetPwd(Page page) throws Exception { Map map = new HashMap(); String errInfo = "success"; @@ -320,7 +332,8 @@ public class PersonnelManagementController extends BaseController { updateUser.put("PASSWORD", pwd); updateUser.put("PERSONNELMANAGEMENT_ID", pageData.getString("PERSONNELMANAGEMENT_ID")); personnelmanagementService.editPassword(updateUser); - + pd.put("sendAllCorp",1); + map.put("dockData", JSON.toJSONString(pd)); map.put("result", errInfo); return map; }