TaskMapper.java 539 B

123456789101112131415161718
  1. package cn.sagacloud.mybatis.mapper;
  2. import cn.sagacloud.mybatis.model.DownloadTaskModel;
  3. import cn.sagacloud.mybatis.model.TaskModel;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.ArrayList;
  6. import java.util.List;
  7. public interface TaskMapper {
  8. int addTask(TaskModel task);
  9. int addDownload(@Param("list")List<DownloadTaskModel> downloadTaskModelList, @Param("taskId")int id) ;
  10. ArrayList<TaskModel> getTasksByIds(List<Integer> idList);
  11. ArrayList<TaskModel> getTasksByStatus(List<Integer> statusList);
  12. }