Răsfoiți Sursa

更新员工逻辑错误

imndx 2 ani în urmă
părinte
comite
80354a7892

+ 1 - 1
organization-server/src/main/java/cn/wildfirechat/org/ServiceImpl.java

@@ -1095,7 +1095,7 @@ public class ServiceImpl implements Service {
     @Override
     public RestResult updateEmployee(EmployeePojo employeePojo) throws IMServerException {
         EmployeeEntity entity = convertEmployee(employeePojo);
-        if (!StringUtils.isNullOrEmpty(entity.employeeId)) {
+        if (StringUtils.isNullOrEmpty(entity.employeeId)) {
             return RestResult.error(ERROR_INVALID_PARAMETER);
         }