| | |
| | | package com.panzhihua.sangeshenbian.service.impl; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.sangeshenbian.dao.MessageNotificationMapper; |
| | | import com.panzhihua.sangeshenbian.model.MessageNotification; |
| | | import com.panzhihua.sangeshenbian.model.entity.MessageNotification; |
| | | import com.panzhihua.sangeshenbian.model.query.BasePage; |
| | | import com.panzhihua.sangeshenbian.model.vo.MessageNotificationVO; |
| | | import com.panzhihua.sangeshenbian.service.IMessageNotificationService; |
| | | import com.panzhihua.sangeshenbian.warpper.MessageNotificationList; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | IPage<MessageNotification> list = this.baseMapper.list(page, query); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public Page<MessageNotificationVO> getMessageList(BasePage basePage, Long userId) { |
| | | //TODO 待完善 |
| | | Page<MessageNotification> page = lambdaQuery().page(new Page<>(basePage.getPageNum(),basePage.getPageSize())); |
| | | return (Page<MessageNotificationVO>) page.convert(item-> BeanUtil.copyProperties(item, MessageNotificationVO.class)); |
| | | } |
| | | } |