|
|
@@ -45,7 +45,8 @@ public class SearchController {
|
|
|
@RequestMapping("")
|
|
|
@ResponseBody
|
|
|
public SPage<Long> searchIds(String keyword, String tableName, Integer page, Integer size,
|
|
|
- String keywordSearchColumns, String filters, String multiValueField, String sort, String notEqualFilters) {
|
|
|
+ String keywordSearchColumns, String filters, String multiValueField, String sort, String notEqualFilters,
|
|
|
+ String multiValueNotField) {
|
|
|
Table_name tbName = null;
|
|
|
if (!StringUtils.isEmpty(tableName)) {
|
|
|
tbName = Table_name.valueOf(tableName.toUpperCase());
|
|
|
@@ -92,6 +93,15 @@ public class SearchController {
|
|
|
if (!StringUtils.isEmpty(notEqualFilters)) {
|
|
|
notEqualFiltersMap.putAll(JSONObject.parseObject(notEqualFilters));
|
|
|
}
|
|
|
+ if (!StringUtils.isEmpty(multiValueNotField)) {
|
|
|
+ JSONArray jsonArray = JSONObject.parseArray(multiValueNotField);
|
|
|
+ for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
+ JSONObject jsonObject = jsonArray.getJSONObject(i);
|
|
|
+ String field = jsonObject.getString("field");
|
|
|
+ MultiValue multiValue = jsonObject.getObject("multiValue", MultiValue.class);
|
|
|
+ notEqualFiltersMap.put(field, multiValue);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!CollectionUtils.isEmpty(notEqualFiltersMap)) {
|
|
|
pageParams.setNotEqualFilters(notEqualFiltersMap);
|
|
|
}
|