| | |
| | | package com.ycl.jxkg.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.jxkg.domain.UserEventLog; |
| | | import com.ycl.jxkg.domain.other.KeyValue; |
| | | import com.ycl.jxkg.repository.UserEventLogMapper; |
| | | import com.ycl.jxkg.mapper.UserEventLogMapper; |
| | | import com.ycl.jxkg.service.UserEventLogService; |
| | | import com.ycl.jxkg.utility.DateTimeUtil; |
| | | import com.ycl.jxkg.viewmodel.admin.user.UserEventPageRequestVM; |
| | | import com.ycl.jxkg.utils.DateTimeUtil; |
| | | import com.ycl.jxkg.vo.admin.user.UserEventPageRequestVO; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service |
| | | public class UserEventLogServiceImpl extends BaseServiceImpl<UserEventLog> implements UserEventLogService { |
| | | @RequiredArgsConstructor |
| | | public class UserEventLogServiceImpl extends ServiceImpl<UserEventLogMapper, UserEventLog> implements UserEventLogService { |
| | | |
| | | private final UserEventLogMapper userEventLogMapper; |
| | | |
| | | @Autowired |
| | | public UserEventLogServiceImpl(UserEventLogMapper userEventLogMapper) { |
| | | super(userEventLogMapper); |
| | | this.userEventLogMapper = userEventLogMapper; |
| | | } |
| | | |
| | | @Override |
| | | public List<UserEventLog> getUserEventLogByUserId(Integer id) { |
| | |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<UserEventLog> page(UserEventPageRequestVM requestVM) { |
| | | public PageInfo<UserEventLog> page(UserEventPageRequestVO requestVM) { |
| | | return PageHelper.startPage(requestVM.getPageIndex(), requestVM.getPageSize(), "id desc").doSelectPageInfo(() -> |
| | | userEventLogMapper.page(requestVM) |
| | | ); |