Selaa lähdekoodia

专家报名查重校验

tags/24080901
niohe·erbao 1 vuosi sitten
vanhempi
commit
5dac72f83f
4 muutettua tiedostoa jossa 13 lisäystä ja 6 poistoa
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertAdminManage.java
  2. +6
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java
  3. +3
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertMetaApplyManage.java
  4. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/model/cmd/MetaApplyListQuery.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertAdminManage.java Näytä tiedosto

@@ -180,6 +180,9 @@ public class ExpertAdminManage {
public ExpertBasicInfoModifyResultVO adminModifyExpertBasicInfo(AdminExpertBasicInfoModifyRequest request) {
Long adminUserId = LoginUserUtil.getUserId();
Long expertUserId = request.getExpertUserId();
// 手机号不能更改
request.getBasicInfo().setPhoneNo(null);

// 校验当前是否有信息变更审核 如有,无法变更信息
LambdaQueryWrapper<ExpertMetaApply> infoModifyEq = Wrappers.lambdaQuery(ExpertMetaApply.class)
.eq(ExpertMetaApply::getUserId, expertUserId)


+ 6
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertManage.java Näytä tiedosto

@@ -120,7 +120,7 @@ public class ExpertManage {
// 增加用户专家角色
Role expertRole = iRoleService.getOne(Wrappers.lambdaQuery(Role.class).eq(Role::getCode, RoleEnum.EXPERT.name()));
UserRole expertUserRole = iUserRoleService.getOne(Wrappers.lambdaQuery(UserRole.class)
.eq(UserRole::getRoleId, expertRole.getId()).eq(UserRole::getUserId,userId));
.eq(UserRole::getRoleId, expertRole.getId()).eq(UserRole::getUserId, userId));
if (Objects.isNull(expertUserRole)) {
expertUserRole = new UserRole();
expertUserRole.setUserId(userId);
@@ -195,6 +195,11 @@ public class ExpertManage {
.build();
iUserInfoService.save(userInfo);
}
ExpertUserFullInfo one = iExpertUserFullInfoService.getOne(Wrappers.lambdaQuery(ExpertUserFullInfo.class)
.eq(ExpertUserFullInfo::getPhoneNo, phoneNo));
if (Objects.nonNull(one)) {
throw new BizException("该手机号已被专家注册,请确认后再填写");
}
return userInfo.getId();
}
}

+ 3
- 4
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertMetaApplyManage.java Näytä tiedosto

@@ -88,7 +88,6 @@ public class ExpertMetaApplyManage {
// 查找符合专家条件的用户id
ExpertAdminExpertManageQueryCmd queryCmd = buildExpertAdminExpertManageQueryCmd(req);
List<Long> filterExpertUserIdList = expertAdminManageService.filterExpertUserIdList(queryCmd);
// TODO 获取所有的专家审核列表
if (CollUtil.isEmpty(filterExpertUserIdList)) {
return PageVo.empty();
}
@@ -386,9 +385,9 @@ public class ExpertMetaApplyManage {
}

List<RegionContainsBO> containsRegion = null;
if (Objects.nonNull(query.getExpertRegion())) {
RegionContainsBO containsRegionBo = regionLimitHelper.getContainsRegionBo(query.getExpertRegion().getRegionLevel()
, query.getExpertRegion().getRegionCode());
if (Objects.nonNull(query.getExpertRegionInfo())) {
RegionContainsBO containsRegionBo = regionLimitHelper.getContainsRegionBo(query.getExpertRegionInfo().getRegionLevel()
, query.getExpertRegionInfo().getRegionCode());
containsRegion = CollUtil.toList(containsRegionBo);
}



+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/model/cmd/MetaApplyListQuery.java Näytä tiedosto

@@ -35,7 +35,7 @@ public class MetaApplyListQuery extends PagePo {
private String titleLevelDictionaryCode;

@ApiModelProperty("专家层级")
private ExpertRegionInfo expertRegion;
private ExpertRegionInfo expertRegionInfo;

@ApiModelProperty("筛选开始时间")
private LocalDateTime applyStartTime;


Loading…
Peruuta
Tallenna