feat:[REQ-3488] 自测, 解决json查询报错问题
This commit is contained in:
parent
ffa22f6f7c
commit
94fd1421c8
@ -288,6 +288,17 @@ public interface NodeUserQueryRepository {
|
||||
}
|
||||
this.profileQueries.add(jsonQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加ext搜索条件
|
||||
* @param jsonQuery
|
||||
*/
|
||||
public void addExtraQueries(MybatisPlusOperatorProcessor.JSONQuery jsonQuery) {
|
||||
if (this.extraQueries == null) {
|
||||
this.extraQueries = new ArrayList<>();
|
||||
}
|
||||
this.extraQueries.add(jsonQuery);
|
||||
}
|
||||
}
|
||||
|
||||
@NoArgsConstructor
|
||||
|
||||
@ -183,10 +183,10 @@ public class NodeUserServiceImpl implements NodeUserService {
|
||||
}
|
||||
// directManagerPersonId
|
||||
if (req.getDirectManagerPersonId() != null) {
|
||||
listReq.setExtraQueries(QueryConditionAssembler.assemble(listReq.getExtraQueries(), ImmutableList.of(MybatisPlusOperatorProcessor.JSONQuery.builder()
|
||||
listReq.addExtraQueries(MybatisPlusOperatorProcessor.JSONQuery.builder()
|
||||
.jsonPath("$.directManagerPersonId")
|
||||
.data(req.getDirectManagerPersonId())
|
||||
.build())));
|
||||
.build());
|
||||
}
|
||||
// dataPermissionCacheKey
|
||||
if (StrUtil.isNotBlank(req.getDataPermissionCacheKey())) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user