diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java index 2baafa6..ba9fee0 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java @@ -144,10 +144,10 @@ public class ExpertManage { UserInfo userInfo = iUserInfoService.getUserInfoByPhoneNo(phoneNo); if (Objects.isNull(userInfo)) { userInfo = UserInfo.builder() -// .accountId(dingEmployeeInfo.getAccountId()) + //.accountId(dingEmployeeInfo.getAccountId()) .username(basicInfo.getName()) .realName(basicInfo.getName()) -// .employeeCode(dingEmployeeInfo.getEmployeeCode()) + //.employeeCode(dingEmployeeInfo.getEmployeeCode()) .available(UserAvailableEnum.DISABLE.name()) .mobile(phoneNo) .createBy(operatorId) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java index 412e5e4..4845abf 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java @@ -34,7 +34,10 @@ import com.ningdatech.pmapi.sys.model.entity.UserRole; import com.ningdatech.pmapi.sys.service.IRoleService; import com.ningdatech.pmapi.sys.service.IUserRoleService; import com.ningdatech.pmapi.sys.service.impl.UserRoleServiceImpl; +import com.ningdatech.pmapi.user.constant.UserAvailableEnum; +import com.ningdatech.pmapi.user.entity.UserInfo; import com.ningdatech.pmapi.user.entity.enumeration.RoleEnum; +import com.ningdatech.pmapi.user.service.IUserInfoService; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.ningdatech.yxt.utils.JSONUtils; import lombok.RequiredArgsConstructor; @@ -65,6 +68,7 @@ public class ExpertInfoServiceImpl implements ExpertInfoService { private final IRoleService roleService; private final IUserRoleService userRoleService; private final IExpertSensitiveInfoModifyDetailRecordService iExpertSensitiveInfoModifyDetailRecordService; + private final IUserInfoService userInfoService; /** @@ -390,6 +394,11 @@ public class ExpertInfoServiceImpl implements ExpertInfoService { expertUserFullInfo.setRemark(cmd.getRemark()); expertUserFullInfo.setRegionCode(cmd.getJoinRegionCode()); expertUserFullInfo.setRegionLevel(cmd.getJoinRegionLevel()); + // 账号启用 + LambdaUpdateWrapper userInfoUpdate = Wrappers.lambdaUpdate(UserInfo.class) + .eq(UserInfo::getId,expertUserId) + .set(UserInfo::getAvailable, UserAvailableEnum.ENABLE); + userInfoService.update(userInfoUpdate); // 保存所有专家标签字段 List saveExpertTagList = buildSaveExpertTagList(expertUserId, cmd.getOther());