商业合作伙伴 total显示问题

This commit is contained in:
zhaoqing
2026-05-14 08:44:26 +08:00
parent b15fd4f105
commit 17bc4b1416
3 changed files with 21 additions and 10 deletions
@@ -55,18 +55,20 @@ public class BusinessPartnerApplicationService {
userShipperQueryDTO.setOrganizationId(String.valueOf(businessPartnerDTO.getOrganizationId()));
}
AjaxResult<?> result = userServiceFeign.userShipperList(userShipperQueryDTO);
if ("200".equals((String.valueOf(result.get("code"))))){
List<?> list = (List<?>) result.get("data");
try {
TableDataInfo userTableDataInfo = userServiceFeign.userShipperList(userShipperQueryDTO);
TableDataInfo tableDataInfo = new TableDataInfo();
tableDataInfo.setData(list);
tableDataInfo.setTotal(list.size());
tableDataInfo.setData(userTableDataInfo.getData());
tableDataInfo.setTotal(userTableDataInfo.getTotal());
tableDataInfo.setCode(200);
return tableDataInfo;
} catch (Exception e) {
log.error("查询托运人列表异常: {}", e.getMessage());
TableDataInfo tableDataInfo = new TableDataInfo();
tableDataInfo.setCode(500);
return tableDataInfo;
}
return null;
}
@@ -77,6 +79,7 @@ public class BusinessPartnerApplicationService {
LoginUser loginUser = SecurityUtils.getLoginUser();
Long pushBy = loginUser != null ? loginUser.getUserid() : null;
String pushByName = loginUser != null ? loginUser.getUsername() : null;
Long organizationId = loginUser != null ? loginUser.getUserPo().getOrganizationId() : null;
Long topOrganizationId = loginUser != null ? loginUser.getUserPo().getTopOrganizationId() : null;
String organizationName = loginUser != null ? loginUser.getUserPo().getOrganizationName() : null;