企业端推送沧州矿石

2024年1月19日V01.00.51
zhaoyu 2024-01-18 16:29:47 +08:00
parent 1539163515
commit 0aec1ad946
1 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,7 @@
package com.zcloud.controller.keyProjects; package com.zcloud.controller.keyProjects;
import com.alibaba.fastjson.JSON;
import com.zcloud.aspect.DockAnnotation;
import com.zcloud.controller.base.BaseController; import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.Page; import com.zcloud.entity.Page;
import com.zcloud.entity.PageData; import com.zcloud.entity.PageData;
@ -37,6 +39,7 @@ public class PersonnelManagementController extends BaseController {
@RequestMapping(value = "/add") @RequestMapping(value = "/add")
@RequiresPermissions("personnelmanagement:add") @RequiresPermissions("personnelmanagement:add")
@ResponseBody @ResponseBody
@DockAnnotation
public Object add() throws Exception { public Object add() throws Exception {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success"; String errInfo = "success";
@ -49,6 +52,8 @@ public class PersonnelManagementController extends BaseController {
pd.put("ISDELETE", "0"); //是否删除 pd.put("ISDELETE", "0"); //是否删除
pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("PHONENUM"), Const.DEFAULT_PASSWORD).toString()); pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("PHONENUM"), Const.DEFAULT_PASSWORD).toString());
personnelmanagementService.save(pd); personnelmanagementService.save(pd);
pd.put("sendAllCorp",1);
map.put("dockData", JSON.toJSONString(pd));
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }
@ -62,6 +67,7 @@ public class PersonnelManagementController extends BaseController {
@RequestMapping(value = "/delete") @RequestMapping(value = "/delete")
@RequiresPermissions("personnelmanagement:del") @RequiresPermissions("personnelmanagement:del")
@ResponseBody @ResponseBody
@DockAnnotation
public Object delete() throws Exception { public Object delete() throws Exception {
Map<String, String> map = new HashMap<String, String>(); Map<String, String> map = new HashMap<String, String>();
String errInfo = "success"; String errInfo = "success";
@ -76,6 +82,8 @@ public class PersonnelManagementController extends BaseController {
map.put("msg", "只用添加人" + state + "可以删除相关方人员!"); map.put("msg", "只用添加人" + state + "可以删除相关方人员!");
} }
pd.put("sendAllCorp",1);
map.put("dockData", JSON.toJSONString(pd));
map.put("result", errInfo); //返回结果 map.put("result", errInfo); //返回结果
return map; return map;
} }
@ -89,6 +97,7 @@ public class PersonnelManagementController extends BaseController {
@RequestMapping(value = "/edit") @RequestMapping(value = "/edit")
@RequiresPermissions("personnelmanagement:edit") @RequiresPermissions("personnelmanagement:edit")
@ResponseBody @ResponseBody
@DockAnnotation
public Object edit() throws Exception { public Object edit() throws Exception {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success"; String errInfo = "success";
@ -103,6 +112,8 @@ public class PersonnelManagementController extends BaseController {
map.put("msg", "只用添加人" + state + "可以删除相关方人员!"); map.put("msg", "只用添加人" + state + "可以删除相关方人员!");
} }
pd.put("sendAllCorp",1);
map.put("dockData", JSON.toJSONString(pd));
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }
@ -309,6 +320,7 @@ public class PersonnelManagementController extends BaseController {
@RequestMapping(value = "/resetPwd") @RequestMapping(value = "/resetPwd")
@ResponseBody @ResponseBody
@DockAnnotation
public Object resetPwd(Page page) throws Exception { public Object resetPwd(Page page) throws Exception {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
String errInfo = "success"; String errInfo = "success";
@ -320,7 +332,8 @@ public class PersonnelManagementController extends BaseController {
updateUser.put("PASSWORD", pwd); updateUser.put("PASSWORD", pwd);
updateUser.put("PERSONNELMANAGEMENT_ID", pageData.getString("PERSONNELMANAGEMENT_ID")); updateUser.put("PERSONNELMANAGEMENT_ID", pageData.getString("PERSONNELMANAGEMENT_ID"));
personnelmanagementService.editPassword(updateUser); personnelmanagementService.editPassword(updateUser);
pd.put("sendAllCorp",1);
map.put("dockData", JSON.toJSONString(pd));
map.put("result", errInfo); map.put("result", errInfo);
return map; return map;
} }