Explorar el Código

修正根据工单类型查询逻辑

wangchenghong hace 3 años
padre
commit
30b5210477

+ 1 - 1
src/main/java/com/persagy/apm/energy/report/workorder/service/impl/IWorkOrderWebServiceImpl.java

@@ -70,7 +70,7 @@ public class IWorkOrderWebServiceImpl implements IWorkOrderWebService {
         }
         if (StringUtils.isNotEmpty(orderType)) {
             List<String> orderTypeList = JSONObject.parseArray(orderType, String.class);
-            queryBuilder.must(QueryBuilders.termsQuery("order_type.keyword", orderTypeList));
+            queryBuilder.must(QueryBuilders.termsQuery("order_type", orderTypeList));
         }
 
         if (StringUtils.isNotEmpty(orderState)) {