package cn.cslg.pas.service;

import cn.cslg.pas.common.model.FileSource;
import cn.cslg.pas.common.utils.FileUtils;
import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.cslg.pas.domain.WebTask;
import cn.cslg.pas.mapper.WebTaskMapper;
import org.apache.poi.hssf.usermodel.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
* @author admin
* @description 针对表【web_task(网络拉取任务)】的数据库操作Service实现
* @createDate 2023-03-08 18:51:06
*/
@Service
public class WebTaskService extends ServiceImpl<WebTaskMapper, WebTask>

   {
       @Autowired
       private FileUtils fileUtils;
  public Integer addWebTask(WebTask webTask){
     webTask.insert();
     return  webTask.getId();

  }
}




