1;代理管理页 table分页问题

This commit is contained in:
wangshuai 2024-07-27 15:47:48 +08:00
parent 6feaacc076
commit e98904cf2a
1 changed files with 8 additions and 2 deletions

View File

@ -70,6 +70,7 @@ public class BusAgentInfoController extends BaseController {
busAgentInfo.setSuperiorAgentCode(user.getUserId());
}
List<BusAgentInfo> list = busAgentInfoService.selectBusAgentInfoList(busAgentInfo);
TableDataInfo rspData = getDataTable(list);
list = list.stream().map(bean -> {
BusStoreInfo busStoreInfo = new BusStoreInfo();
busStoreInfo.setBindUser(bean.getAgentAccount());
@ -101,9 +102,14 @@ public class BusAgentInfoController extends BaseController {
bean.setLoginNum(llll.size());
return bean;
}).collect(Collectors.toList());
return getDataTable(list);
rspData.setRows(list);
return rspData;
}
@GetMapping("/listA")
public AjaxResult listA(BusAgentInfo busAgentInfo) {
List<BusAgentInfo> list = busAgentInfoService.selectBusAgentInfoList(busAgentInfo);
return success(list);
}
/**
* 导出代理管理列表
*/