浏览代码

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

wangchenghong 3 年之前
父节点
当前提交
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)) {