Commit 55dbd079 by fudahua

Merge branch 'feature-2023-04' into 'developer'

feat: 删除文件

See merge request !93
parents 9f51e377 fb63201a
......@@ -14,6 +14,7 @@ import com.gic.cloud.data.hook.service.MysqlHelper;
import com.gic.cloud.data.hook.service.dao.DownloadRecordDao;
import com.gic.cloud.data.hook.service.dao.DownloadTaskDao;
import com.gic.cloud.data.hook.service.dao.RiskModeRecordDao;
import com.gic.thirdparty.cloudfile.CloudFileUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.opencsv.CSVWriter;
......@@ -163,6 +164,7 @@ public class DownloadTaskServiceImpl implements IDownloadTaskService {
}
}
this.downloadTaskDao.deleteDownloadTask(task.getId());
CloudFileUtil.delFileByUrl(task.getFilePath());
return true;
} else return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment