6/19 完善了对注销用户的订单查询处理
This commit is contained in:
parent
485142fdd8
commit
95d0ba95f4
@ -59,7 +59,12 @@ public class OrdersController {
|
||||
|
||||
List<OrdersDTO> ordersDTOS = page.getList().stream().map(ordersDTO -> {
|
||||
UserDTO userDTO = userService.get(ordersDTO.getUserId());
|
||||
if(userDTO!=null) {
|
||||
ordersDTO.setUserName(userDTO.getName());
|
||||
}
|
||||
else {
|
||||
ordersDTO.setUserName("账号已注销");
|
||||
}
|
||||
return ordersDTO;
|
||||
}).collect(Collectors.toList());
|
||||
page.setList(ordersDTOS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user