mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
增加过滤条件的查询
This commit is contained in:
@@ -314,6 +314,10 @@ public class CaseSyncServiceImpl implements ICaseSyncService{
|
||||
if(record.getStatus()!=null) {
|
||||
query.addFilter(FieldFilters.eq("status", record.getStatus()));
|
||||
}
|
||||
//特定的需求过滤
|
||||
if(StringUtils.isNotBlank(record.getErrorInfo())) {
|
||||
query.addFilter(FieldFilters.ne("errorInfo", record.getErrorInfo()));
|
||||
}
|
||||
}
|
||||
|
||||
return recordDao.findPage(query.builder());
|
||||
|
||||
Reference in New Issue
Block a user