|
@@ -44,17 +44,22 @@ public class PersonnelController {
|
|
return Response.success(true);
|
|
return Response.success(true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@checkAuth(FunId = "/admin/user/delete")
|
|
@checkAuth(FunId = "/admin/user/delete")
|
|
@PostMapping("/delete")
|
|
@PostMapping("/delete")
|
|
@Operation(summary = "删除人员")
|
|
@Operation(summary = "删除人员")
|
|
public String deleteApplication(PersonnelVO personnelVO) {
|
|
public String deleteApplication(PersonnelVO personnelVO) {
|
|
|
|
+
|
|
return personnelService.deletePersonnel(personnelVO);
|
|
return personnelService.deletePersonnel(personnelVO);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@checkAuth(FunId = "/admin/user/modify")
|
|
@checkAuth(FunId = "/admin/user/modify")
|
|
@PostMapping("/update")
|
|
@PostMapping("/update")
|
|
@Operation(summary = "修改人员")
|
|
@Operation(summary = "修改人员")
|
|
public String updateApplication(@RequestBody PersonnelVO personnelVO) {
|
|
public String updateApplication(@RequestBody PersonnelVO personnelVO) {
|
|
|
|
+
|
|
Personnel personnel = personnelService.updatePersonnel(personnelVO);
|
|
Personnel personnel = personnelService.updatePersonnel(personnelVO);
|
|
if (personnel.getPersonnelName().equals("没有设置系统管理员角色的权限")) {
|
|
if (personnel.getPersonnelName().equals("没有设置系统管理员角色的权限")) {
|
|
return Response.error("没有设置系统管理员角色的权限");
|
|
return Response.error("没有设置系统管理员角色的权限");
|
|
@@ -66,27 +71,33 @@ public class PersonnelController {
|
|
@PostMapping("/queryPageList")
|
|
@PostMapping("/queryPageList")
|
|
@Operation(summary = "分页查询人员")
|
|
@Operation(summary = "分页查询人员")
|
|
public String queryPageList(@RequestBody PersonnelVO personnelVO) {
|
|
public String queryPageList(@RequestBody PersonnelVO personnelVO) {
|
|
|
|
+
|
|
return personnelService.queryPageList(personnelVO);
|
|
return personnelService.queryPageList(personnelVO);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@GetMapping("/getPersonnelList")
|
|
@GetMapping("/getPersonnelList")
|
|
@Operation(summary = "查询所有人员")
|
|
@Operation(summary = "查询所有人员")
|
|
public String getPersonnelList() {
|
|
public String getPersonnelList() {
|
|
return personnelService.getPersonnelList(0);
|
|
return personnelService.getPersonnelList(0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@GetMapping("/getPerson")
|
|
@GetMapping("/getPerson")
|
|
@Operation(summary = "根据id查询人员")
|
|
@Operation(summary = "根据id查询人员")
|
|
public String getPerson(Integer id) {
|
|
public String getPerson(Integer id) {
|
|
return Response.success(personnelService.getPerson(id));
|
|
return Response.success(personnelService.getPerson(id));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@GetMapping("/getPersonnelListForRole")
|
|
@GetMapping("/getPersonnelListForRole")
|
|
@Operation(summary = "查询所有人员给角色服务")
|
|
@Operation(summary = "查询所有人员给角色服务")
|
|
public String getPersonnelListForRole(Integer roleId) {
|
|
public String getPersonnelListForRole(Integer roleId) {
|
|
return personnelService.getPersonnelList(roleId);
|
|
return personnelService.getPersonnelList(roleId);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@PostMapping("/getPersonnelIds")
|
|
@PostMapping("/getPersonnelIds")
|
|
@Operation(summary = "查询租户下人员Ids")
|
|
@Operation(summary = "查询租户下人员Ids")
|
|
public List<Integer> getDataSourceByTableName(Integer tenantId) {
|
|
public List<Integer> getDataSourceByTableName(Integer tenantId) {
|
|
@@ -94,6 +105,7 @@ public class PersonnelController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
@PostMapping("/updateSelf")
|
|
@PostMapping("/updateSelf")
|
|
@Operation(summary = "修改自己的信息")
|
|
@Operation(summary = "修改自己的信息")
|
|
public String updateSelf(@RequestBody PersonnelVO personnelVO) {
|
|
public String updateSelf(@RequestBody PersonnelVO personnelVO) {
|
|
@@ -104,6 +116,8 @@ public class PersonnelController {
|
|
return Response.success(true);
|
|
return Response.success(true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
@PostMapping("/changePwd")
|
|
@PostMapping("/changePwd")
|
|
@Operation(summary = "用户修改密码")
|
|
@Operation(summary = "用户修改密码")
|
|
public String changePwd(String oldPassword, String newPassword) {
|
|
public String changePwd(String oldPassword, String newPassword) {
|