mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
chore:code format
This commit is contained in:
parent
eb1a84b3ef
commit
f79abc50fc
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user