@Override
public AjaxResult testSearchList(UserShopingAddressDTO userShopingAddressDTO) {
if (userShopingAddressDTO == null){
return getDataTable(new ArrayList<>(), 0L);
}
List<UserShopingAddressDTO> returnList = new ArrayList<>();
com.github.pagehelper.Page<MessageInfoDTO> page = PageHelper.startPage(userShopingAddressDTO.getPageNum(), userShopingAddressDTO.getPageSize());
List<UserShopingAddressDTO> list = userShoppingAddressService.searchList(userShopingAddressDTO);
for (UserShopingAddressDTO forList : list) {
if (1L == forList.getProvinceId()){
forList.setProvinceZh("辽宁");
}
if (19L == forList.getCityId()){
forList.setCityZh("大连");
}
returnList.add(forList);
}
return getDataTable(returnList, page.getTotal());
}
# JAVA 分页#
最新推荐文章于 2023-03-29 13:54:07 发布