feat: 微信登录获取用户信息,客户列表按最后登录排序

This commit is contained in:
Agent
2026-03-24 03:24:10 +00:00
parent 4fb18fc40e
commit cffb88d368
3 changed files with 9 additions and 0 deletions

View File

@@ -66,6 +66,11 @@ public class Customer {
*/
private LocalDateTime lastLoginAt;
/**
* 最后登录时间(用于订单客户排序)
*/
private LocalDateTime lastLoginAt;
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdAt;

View File

@@ -32,6 +32,9 @@ public class AuthServiceImpl implements AuthService {
@Autowired
private CustomerMapper customerMapper;
@Autowired
private CustomerMapper customerMapper;
@Autowired
private JwtUtil jwtUtil;

View File

@@ -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);
}