52 lines
1.4 KiB
Java
52 lines
1.4 KiB
Java
package com.ruoyi.task.service.impl;
|
|
|
|
import com.ruoyi.task.domain.api.ITaskTempDomain;
|
|
import com.ruoyi.task.domain.model.TaskTemp;
|
|
import com.ruoyi.task.service.api.ITaskTempService;
|
|
import com.ruoyi.task.service.convert.TaskTempServiceConvert;
|
|
import com.ruoyi.task.service.dto.TaskTempDTO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 任务临时表Service业务层处理
|
|
*
|
|
* @author ruoyi
|
|
* @date 2026-01-17
|
|
*/
|
|
@Service
|
|
public class TaskTempServiceImpl implements ITaskTempService
|
|
{
|
|
@Autowired
|
|
private ITaskTempDomain taskTempDomain;
|
|
|
|
/**
|
|
* 查询任务临时表列表
|
|
*
|
|
* @param taskTempDTO 任务临时表
|
|
* @return 任务临时表集合
|
|
*/
|
|
@Override
|
|
public List<TaskTempDTO> selectTaskTempList(TaskTempDTO taskTempDTO)
|
|
{
|
|
TaskTemp model = TaskTempServiceConvert.toModel(taskTempDTO);
|
|
List<TaskTemp> modelList = taskTempDomain.selectTaskTempList(model);
|
|
return TaskTempServiceConvert.toDTOList(modelList);
|
|
}
|
|
|
|
/**
|
|
* 根据ID查询任务临时表
|
|
*
|
|
* @param id 主键ID
|
|
* @return 任务临时表
|
|
*/
|
|
@Override
|
|
public TaskTempDTO selectTaskTempById(String id)
|
|
{
|
|
TaskTemp model = taskTempDomain.selectTaskTempById(id);
|
|
return TaskTempServiceConvert.toDTO(model);
|
|
}
|
|
}
|