|
|
|
@ -118,9 +118,10 @@ public class AdminController {
|
|
|
|
|
User recipient = userService.getById(records.getGetUserId());
|
|
|
|
|
User addressee = userService.getById(records.getAddresseeId());
|
|
|
|
|
User courier = userService.getById(records.getExpressId());
|
|
|
|
|
// 查询地址信息
|
|
|
|
|
Address address = addressService.getById(records.getAddressId());
|
|
|
|
|
ExpressListDTO expressListDTO = new ExpressListDTO(records, goods, sender, recipient, addressee, courier, address);
|
|
|
|
|
// 查询地址信息: 从哪里送的 送到哪里
|
|
|
|
|
Address addressTo = addressService.getById(records.getAddressId());
|
|
|
|
|
Address addressFrom = addressService.getById(records.getAddressFrom());
|
|
|
|
|
ExpressListDTO expressListDTO = new ExpressListDTO(records, goods, sender, recipient, addressee, courier, addressFrom, addressTo);
|
|
|
|
|
expressListDTOList.add(expressListDTO);
|
|
|
|
|
}
|
|
|
|
|
Page<ExpressListDTO> expressDTOPage = new Page<>(recordsPage.getCurrent(), recordsPage.getSize(), recordsPage.getTotal());
|
|
|
|
|