企业端推送沧州矿石

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;
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<String, Object> map = new HashMap<String, Object>();
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<String, String> map = new HashMap<String, String>();
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<String, Object> map = new HashMap<String, Object>();
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<String, Object> map = new HashMap<String, Object>();
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;
}