NotificationService.java 866 B

1234567891011121314151617181920212223242526272829303132
  1. package com.caimei.modules.sys.service;
  2. import com.caimei.modules.sys.dao.NotificationDao;
  3. import com.caimei.modules.sys.entity.Notification;
  4. import com.thinkgem.jeesite.common.persistence.Page;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import org.springframework.transaction.annotation.Transactional;
  8. import java.util.List;
  9. /**
  10. * Description
  11. *
  12. * @author : Charles
  13. * @date : 2022/7/20
  14. */
  15. @Service
  16. @Transactional(readOnly = true)
  17. public class NotificationService {
  18. @Autowired
  19. NotificationDao notificationDao;
  20. public Page<Notification> notificationPagen(Page<Notification> page, Notification notification) {
  21. notification.setPage(page);
  22. List<Notification> list= notificationDao.notification(notification);
  23. page.setList(list);
  24. return page;
  25. }
  26. }