Explorar o código

fix 发布车票账号模糊查询

zoujiajian hai 9 meses
pai
achega
7895157df0

+ 2 - 2
netflix-web/src/main/java/com/cyksj/web/controller/manage/group/CmsGroupController.java

@@ -127,7 +127,7 @@ public class CmsGroupController {
             mapBuilder.field(GroupsTrips::getId, groupId);
         }
         SearchResult<GroupsTrips> search = beanSearcher.search(GroupsTrips.class, mapBuilder
-                .field(GroupsTrips::getAccount, StringUtils.isBlank(account) ? null : account).op(Operator.EndWith)
+                .field(GroupsTrips::getAccount, StringUtils.isBlank(account) ? null : account).op(Operator.Contain)
                 .build()
         );
         search.getDataList().forEach(data -> {
@@ -162,7 +162,7 @@ public class CmsGroupController {
         }
 
         List<ExcelGroupRelationData> list = beanSearcher.searchAll(ExcelGroupRelationData.class, mapBuilder
-                .field(ExcelGroupRelationData::getAccount, StringUtils.isBlank(account) ? null : account).op(Operator.EndWith)
+                .field(ExcelGroupRelationData::getAccount, StringUtils.isBlank(account) ? null : account).op(Operator.Contain)
                 .build()
         );
         EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, ExcelGroupRelationData.class, list, "发布车票列表", "发布车票列表", ExcelTypeEnum.XLSX, null);