| | |
| | | import com.yeshi.makemoney.app.entity.user.UserLoginRecord; |
| | | import com.yeshi.makemoney.app.service.inter.user.UserLoginRecordService; |
| | | import com.yeshi.makemoney.app.service.query.user.UserLoginRecordQuery; |
| | | import org.springframework.data.domain.Sort; |
| | | import org.springframework.data.mongodb.core.query.Criteria; |
| | | import org.springframework.data.mongodb.core.query.Query; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import org.yeshi.utils.bean.BeanUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | } catch (IllegalAccessException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | daoQuery.sortList= Arrays.asList(new Sort.Order[]{Sort.Order.desc("createTime")}); |
| | | |
| | | daoQuery.start = (page - 1) * pageSize; |
| | | daoQuery.count = pageSize; |
| | | return userLoginRecordDao.list(daoQuery); |