|
|
@@ -826,6 +826,15 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
if(ObjectUtil.isNotEmpty(ids)){
|
|
|
List<ContractLog> contractLogList = jdbcTemplate.query("select * from u_contract_log where id in (" + ids + ")", new BeanPropertyRowMapper<>(ContractLog.class));
|
|
|
ContractLog contractLog = contractLogList.get(0);
|
|
|
+ //将原来的OSS文件删除
|
|
|
+ if(contractLog!=null&&StringUtils.isNotEmpty(contractLog.getPdfUrl())){
|
|
|
+ String pdfUrlResult = contractLog.getPdfUrl();
|
|
|
+ int lastIndex = pdfUrlResult.lastIndexOf("upload");
|
|
|
+ if (lastIndex != -1) {
|
|
|
+ String fileName = pdfUrlResult.substring(lastIndex);
|
|
|
+ this.newIOSSClient.removeFile(fileName);
|
|
|
+ }
|
|
|
+ }
|
|
|
String oldDataId1 = contractLog.getOldDataId();
|
|
|
if (ObjectUtil.isNotEmpty(oldDataId1)){
|
|
|
oldDataId = oldDataId1+","+ids;
|