|
|
|
@ -17,14 +17,9 @@ public class MatchmakerMarriageInformationQueryServiceImpl implements Matchmaker |
|
|
|
private MatchmakerMarriageInformationDao matchmakerMarriageInformationDao; |
|
|
|
|
|
|
|
@Override |
|
|
|
public MatchmakerMarriageInformation queryByRecommend(Long userId, Long miId) { |
|
|
|
public MatchmakerMarriageInformation queryByRecommend(Long userId) { |
|
|
|
LambdaQueryWrapper<MatchmakerMarriageInformation> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(MatchmakerMarriageInformation::getUserId, userId); |
|
|
|
if (Objects.nonNull(miId)) { |
|
|
|
wrapper.eq(MatchmakerMarriageInformation::getMiId, miId); |
|
|
|
} else { |
|
|
|
wrapper.isNull(MatchmakerMarriageInformation::getMiId); |
|
|
|
} |
|
|
|
wrapper.eq(MatchmakerMarriageInformation::getRelationType, RelationTypeEnum.RECOMMEND); |
|
|
|
wrapper.last("limit 1"); |
|
|
|
return matchmakerMarriageInformationDao.selectOne(wrapper); |
|
|
|
|