소스 검색

专家保存其它信息的标签

tags/24080901
PoffyZhang 1 년 전
부모
커밋
b219693876
2개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java
  2. +10
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/UserGuidanceManage.java

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/expert/service/impl/ExpertInfoServiceImpl.java 파일 보기

@@ -511,7 +511,8 @@ public class ExpertInfoServiceImpl implements ExpertInfoService {
// 删除专家来源标签 重新存入
iExpertTagService.remove(Wrappers.lambdaQuery(ExpertTag.class)
.eq(ExpertTag::getUserId, userId)
.eq(ExpertTag::getExpertInfoField, ExpertTagEnum.EXPERT_SOURCE.getKey()));
// .eq(ExpertTag::getExpertInfoField, ExpertTagEnum.EXPERT_SOURCE.getKey())
);

List<ExpertTag> saveExpertTagList = buildSaveExpertTagList(userId, expertTagList);
saveExpertTagList = saveExpertTagList.stream()


+ 10
- 0
pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/UserGuidanceManage.java 파일 보기

@@ -5,6 +5,9 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.google.common.collect.Lists;
import com.ningdatech.basic.function.VUtils;
import com.ningdatech.pmapi.common.constant.BizConst;
import com.ningdatech.pmapi.expert.entity.ExpertUserFullInfo;
import com.ningdatech.pmapi.expert.service.ExpertInfoService;
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService;
import com.ningdatech.pmapi.fiscal.entity.CompanyFiscalCode;
import com.ningdatech.pmapi.fiscal.service.ICompanyFiscalCodeService;
import com.ningdatech.pmapi.signature.entity.CompanySignature;
@@ -52,6 +55,8 @@ public class UserGuidanceManage {

private final ICompanySignatureService signatureService;

private final IExpertUserFullInfoService expertUserFullInfoService;

/**
* 查询用户引导 详情
* @param user
@@ -144,6 +149,11 @@ public class UserGuidanceManage {
.in(UserAuth::getUserId,repeatIds));
userRoleService.remove(Wrappers.lambdaQuery(UserRole.class)
.in(UserRole::getUserId,repeatIds));
for(Long repeatId : repeatIds){
ExpertUserFullInfo expert = expertUserFullInfoService.getByUserId(repeatId);
expert.setUserId(userId);
expertUserFullInfoService.updateById(expert);
}
return "删除成功";
}
return "不存在重复的用户";


불러오는 중...
취소
저장