feat: 微信登录获取用户信息,客户列表按最后登录排序
This commit is contained in:
@@ -66,6 +66,11 @@ public class Customer {
|
||||
*/
|
||||
private LocalDateTime lastLoginAt;
|
||||
|
||||
/**
|
||||
* 最后登录时间(用于订单客户排序)
|
||||
*/
|
||||
private LocalDateTime lastLoginAt;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
|
||||
@@ -32,6 +32,9 @@ public class AuthServiceImpl implements AuthService {
|
||||
@Autowired
|
||||
private CustomerMapper customerMapper;
|
||||
|
||||
@Autowired
|
||||
private CustomerMapper customerMapper;
|
||||
|
||||
@Autowired
|
||||
private JwtUtil jwtUtil;
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ public class CustomerServiceImpl implements CustomerService {
|
||||
.like(Customer::getPhone, keyword);
|
||||
}
|
||||
wrapper.orderByDesc(Customer::getLastLoginAt);
|
||||
wrapper.orderByDesc(Customer::getLastLoginAt);
|
||||
wrapper.orderByDesc(Customer::getCreatedAt);
|
||||
return customerMapper.selectPage(pageParam, wrapper);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user