商业合作伙伴 total显示问题
This commit is contained in:
+10
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user