chore:code format

This commit is contained in:
michael 2024-01-19 10:19:58 +08:00
parent eb1a84b3ef
commit f79abc50fc

View File

@ -327,10 +327,10 @@ public class RelationManager {
//通过中间表关联查询
if (relation.isRelationByMiddleTable()) {
targetValues = new HashSet<>();
Set selfFieldValues = relation.getSelfFieldValues(entities);
// 当数据对应的字段没有值的情况下直接返回
if(selfFieldValues.isEmpty()) {
if (selfFieldValues.isEmpty()) {
return;
}
QueryWrapper queryWrapper = QueryWrapper.create().select()
@ -346,6 +346,8 @@ public class RelationManager {
return;
}
targetValues = new HashSet<>();
for (Row mappingData : mappingRows) {
Object targetValue = mappingData.getIgnoreCase(relation.getJoinTargetColumn());
if (targetValue != null) {