|
@@ -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.IRoleService; |
|
|
import com.ningdatech.pmapi.sys.service.IUserRoleService; |
|
|
import com.ningdatech.pmapi.sys.service.IUserRoleService; |
|
|
import com.ningdatech.pmapi.sys.service.impl.UserRoleServiceImpl; |
|
|
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.entity.enumeration.RoleEnum; |
|
|
|
|
|
import com.ningdatech.pmapi.user.service.IUserInfoService; |
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
import com.ningdatech.pmapi.user.util.LoginUserUtil; |
|
|
import com.ningdatech.yxt.utils.JSONUtils; |
|
|
import com.ningdatech.yxt.utils.JSONUtils; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
@@ -65,6 +68,7 @@ public class ExpertInfoServiceImpl implements ExpertInfoService { |
|
|
private final IRoleService roleService; |
|
|
private final IRoleService roleService; |
|
|
private final IUserRoleService userRoleService; |
|
|
private final IUserRoleService userRoleService; |
|
|
private final IExpertSensitiveInfoModifyDetailRecordService iExpertSensitiveInfoModifyDetailRecordService; |
|
|
private final IExpertSensitiveInfoModifyDetailRecordService iExpertSensitiveInfoModifyDetailRecordService; |
|
|
|
|
|
private final IUserInfoService userInfoService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@@ -390,6 +394,11 @@ public class ExpertInfoServiceImpl implements ExpertInfoService { |
|
|
expertUserFullInfo.setRemark(cmd.getRemark()); |
|
|
expertUserFullInfo.setRemark(cmd.getRemark()); |
|
|
expertUserFullInfo.setRegionCode(cmd.getJoinRegionCode()); |
|
|
expertUserFullInfo.setRegionCode(cmd.getJoinRegionCode()); |
|
|
expertUserFullInfo.setRegionLevel(cmd.getJoinRegionLevel()); |
|
|
expertUserFullInfo.setRegionLevel(cmd.getJoinRegionLevel()); |
|
|
|
|
|
// 账号启用 |
|
|
|
|
|
LambdaUpdateWrapper<UserInfo> userInfoUpdate = Wrappers.lambdaUpdate(UserInfo.class) |
|
|
|
|
|
.eq(UserInfo::getId,expertUserId) |
|
|
|
|
|
.set(UserInfo::getAvailable, UserAvailableEnum.ENABLE); |
|
|
|
|
|
userInfoService.update(userInfoUpdate); |
|
|
|
|
|
|
|
|
// 保存所有专家标签字段 |
|
|
// 保存所有专家标签字段 |
|
|
List<ExpertTag> saveExpertTagList = buildSaveExpertTagList(expertUserId, cmd.getOther()); |
|
|
List<ExpertTag> saveExpertTagList = buildSaveExpertTagList(expertUserId, cmd.getOther()); |
|
|