xiangpei
2024-05-31 16d10cef208de048f8b325facd143c54b7be9963
src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java
@@ -2,11 +2,11 @@
import com.ycl.jxkg.domain.Message;
import com.ycl.jxkg.domain.MessageUser;
import com.ycl.jxkg.repository.MessageMapper;
import com.ycl.jxkg.repository.MessageUserMapper;
import com.ycl.jxkg.mapper.MessageMapper;
import com.ycl.jxkg.mapper.MessageUserMapper;
import com.ycl.jxkg.service.MessageService;
import com.ycl.jxkg.viewmodel.admin.message.MessagePageRequestVM;
import com.ycl.jxkg.viewmodel.student.user.MessageRequestVM;
import com.ycl.jxkg.vo.admin.message.MessagePageRequestVO;
import com.ycl.jxkg.vo.student.user.MessageRequestVO;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
@@ -34,14 +34,14 @@
    }
    @Override
    public PageInfo<MessageUser> studentPage(MessageRequestVM requestVM) {
    public PageInfo<MessageUser> studentPage(MessageRequestVO requestVM) {
        return PageHelper.startPage(requestVM.getPageIndex(), requestVM.getPageSize(), "id desc").doSelectPageInfo(() ->
                messageUserMapper.studentPage(requestVM)
        );
    }
    @Override
    public PageInfo<Message> page(MessagePageRequestVM requestVM) {
    public PageInfo<Message> page(MessagePageRequestVO requestVM) {
        return PageHelper.startPage(requestVM.getPageIndex(), requestVM.getPageSize(), "id desc").doSelectPageInfo(() ->
                messageMapper.page(requestVM)
        );