cp状态处理

(cherry picked from commit c4ea4225903a11a8869dba59bdff134b267e9c66)
This commit is contained in:
tianfeng 2026-04-29 21:17:02 +08:00
parent 37d953f5ba
commit 42be66921b

View File

@ -8,6 +8,7 @@ import com.red.circle.other.infra.database.rds.service.user.user.CpApplyService;
import com.red.circle.other.infra.database.rds.service.user.user.CpRelationshipService;
import com.red.circle.other.infra.database.rds.service.user.user.CpValueService;
import com.red.circle.other.app.inner.convertor.user.UserCpInnerConvertor;
import com.red.circle.other.infra.enums.user.user.CpRelationshipStatus;
import com.red.circle.other.inner.model.cmd.user.CpApplyQryCmd;
import com.red.circle.other.inner.model.dto.user.CpRelationshipDTO;
import com.red.circle.other.inner.model.dto.user.CpUserInfoDTO;
@ -100,6 +101,7 @@ public class UserCpClientServiceImpl implements UserCpClientService {
}
List<CpRelationship> list = cpRelationshipService.query()
.select(CpRelationship::getUserId, CpRelationship::getCpUserId, CpRelationship::getCpValId)
.eq(CpRelationship::getStatus, CpRelationshipStatus.NORMAL.name())
.in(CpRelationship::getUserId, userIds)
.list();
if (CollectionUtils.isEmpty(list)) {