|
@ -566,6 +566,7 @@ public class CustomerStaffController { |
|
|
@PostMapping("enablestaff") |
|
|
@PostMapping("enablestaff") |
|
|
@RequirePermission(requirePermission = RequirePermissionEnum.ORG_STAFF_ENABLE) |
|
|
@RequirePermission(requirePermission = RequirePermissionEnum.ORG_STAFF_ENABLE) |
|
|
public Result enableStaff(@LoginUser TokenDto tokenDto, @RequestBody EnableStaffFormDTO fromDTO){ |
|
|
public Result enableStaff(@LoginUser TokenDto tokenDto, @RequestBody EnableStaffFormDTO fromDTO){ |
|
|
|
|
|
fromDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
if (tokenDto.getUserId().equals(fromDTO.getStaffId())) { |
|
|
if (tokenDto.getUserId().equals(fromDTO.getStaffId())) { |
|
|
throw new RenException("工作人员自己不能解禁自己"); |
|
|
throw new RenException("工作人员自己不能解禁自己"); |
|
|
} |
|
|
} |
|
|