package com.doumee.service.system.impl;
|
|
import com.doumee.core.model.PageData;
|
import com.doumee.core.model.PageWrap;
|
import com.doumee.dao.system.dto.QuerySystemJobListDTO;
|
import com.doumee.dao.system.vo.SystemJobListVO;
|
import com.doumee.service.system.SystemJobListService;
|
import com.doumee.dao.system.SystemJobListMapper;
|
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageInfo;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 定时任务列表Service实现
|
* @author Eva.Caesar Liu
|
* @since 2025/03/31 16:44
|
*/
|
@Service
|
public class SystemJobListServiceImpl implements SystemJobListService {
|
|
@Autowired
|
private SystemJobListMapper systemJobListMapper;
|
|
@Override
|
public PageData<SystemJobListVO> findPage(PageWrap<QuerySystemJobListDTO> pageWrap) {
|
PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity());
|
List<SystemJobListVO> result = systemJobListMapper.selectList(pageWrap.getModel());
|
return PageData.from(new PageInfo<>(result));
|
}
|
}
|