|
|
@@ -43,7 +43,7 @@ public class SearchController {
|
|
|
@RequestMapping("")
|
|
|
@ResponseBody
|
|
|
public SPage<Long> searchIds(String keyword, String tableName, Integer page, Integer size, String filters,
|
|
|
- String multiValueField, String sort) {
|
|
|
+ String multiValueField, String sort, String notEqualFilters) {
|
|
|
Table_name tbName = null;
|
|
|
if (!StringUtils.isEmpty(tableName)) {
|
|
|
tbName = Table_name.valueOf(tableName.toUpperCase());
|
|
|
@@ -74,6 +74,15 @@ public class SearchController {
|
|
|
if (!CollectionUtils.isEmpty(filtersMap)) {
|
|
|
pageParams.setFilters(filtersMap);
|
|
|
}
|
|
|
+
|
|
|
+ Map<String, Object> notEqualFiltersMap = new HashMap<>();
|
|
|
+ if (!StringUtils.isEmpty(notEqualFilters)) {
|
|
|
+ notEqualFiltersMap.putAll(JSONObject.parseObject(notEqualFilters));
|
|
|
+ }
|
|
|
+ if (!CollectionUtils.isEmpty(notEqualFiltersMap)) {
|
|
|
+ pageParams.setNotEqualFilters(notEqualFiltersMap);
|
|
|
+ }
|
|
|
+
|
|
|
return searchService.searchIds(keyword, tbName, pageParams);
|
|
|
}
|
|
|
|