Commit f831ac0d authored by tianyiming's avatar tianyiming

两个规定bug

parent be630f9c
......@@ -56,6 +56,7 @@ import org.apache.commons.compress.utils.Sets;
//import org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
//import org.apache.shardingsphere.transaction.annotation.ShardingSphereTransactionType;
//import org.apache.shardingsphere.transaction.core.TransactionType;
import org.apache.lucene.queryparser.classic.QueryParser;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RequestOptions;
......@@ -1603,7 +1604,8 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if (!ObjectUtils.isEmpty(params.get("userId"))) {
BoolQueryBuilder meBuilder = QueryBuilders.boolQuery();
meBuilder.must(QueryBuilders.matchPhraseQuery("userId", "*" + params.get("userId") + "*"));
String test = QueryParser.escape(params.get("userId").toString());
meBuilder.must(QueryBuilders.wildcardQuery("userId", "*" + test + "*"));
boolMust.must(meBuilder);
}
if (!ObjectUtils.isEmpty(params.get("orgCode"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment