|
@@ -43,6 +43,7 @@ import org.springblade.manager.service.IExcelTabService;
|
|
import org.springblade.manager.service.IWbsTreeContractService;
|
|
import org.springblade.manager.service.IWbsTreeContractService;
|
|
import org.springblade.manager.service.IWbsTreePrivateService;
|
|
import org.springblade.manager.service.IWbsTreePrivateService;
|
|
import org.springblade.manager.vo.ExcelTabVO;
|
|
import org.springblade.manager.vo.ExcelTabVO;
|
|
|
|
+import org.springblade.resource.feign.NewIOSSClient;
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@@ -77,7 +78,7 @@ public class TableFileController extends BladeController {
|
|
|
|
|
|
private final InformationQueryClient informationQueryClient;
|
|
private final InformationQueryClient informationQueryClient;
|
|
|
|
|
|
-
|
|
|
|
|
|
+ private final NewIOSSClient newIOSSClient;
|
|
|
|
|
|
|
|
|
|
// excel 基本信息表
|
|
// excel 基本信息表
|
|
@@ -98,6 +99,10 @@ public class TableFileController extends BladeController {
|
|
TableFile tableFile = tableFileService.getById(ids);
|
|
TableFile tableFile = tableFileService.getById(ids);
|
|
// 删除数据
|
|
// 删除数据
|
|
tableFileService.delDataById(ids, null);
|
|
tableFileService.delDataById(ids, null);
|
|
|
|
+ //删除远程服务器中的文件
|
|
|
|
+ String pdfName = tableFile.getDomainPdfUrl().split("upload")[1];
|
|
|
|
+ this.newIOSSClient.removeFile("upload" + pdfName);
|
|
|
|
+
|
|
//如果为节点附件,则不去做其他处理,只删除
|
|
//如果为节点附件,则不去做其他处理,只删除
|
|
if (tableFile.getType() == 1 || tableFile.getType() == 2) {
|
|
if (tableFile.getType() == 1 || tableFile.getType() == 2) {
|
|
List<TableFileVO> fileVOList = tableFileService.selectTableFileList(Long.parseLong(tableFile.getTabId()));
|
|
List<TableFileVO> fileVOList = tableFileService.selectTableFileList(Long.parseLong(tableFile.getTabId()));
|