|
@@ -29,6 +29,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import static com.ruoyi.common.config.RuoYiConfig.getProfile;
|
|
|
+
|
|
|
/**
|
|
|
* 考察主Service业务层处理
|
|
|
*
|
|
@@ -221,7 +223,7 @@ public class InvestigateTableServiceImpl implements IInvestigateTableService {
|
|
|
investigateUserMapper.batchDispositionUser(investigateUserList);
|
|
|
}
|
|
|
|
|
|
- //todo 删除服务器文件
|
|
|
+
|
|
|
|
|
|
//删除原先的考察配置与考察主表关联表信息
|
|
|
investigateDispositionTableMapper.deleteInvestigateDispositionTableByInvestigateTableId(investigateTable.getInvestigateTableId());
|
|
@@ -230,6 +232,16 @@ public class InvestigateTableServiceImpl implements IInvestigateTableService {
|
|
|
List<InvestigateDispositionTable> investigateDispositionTableList = investigateTable.getInvestigateDispositionTableList();
|
|
|
|
|
|
if (investigateDispositionTableList != null && investigateDispositionTableList.size() > 0) {
|
|
|
+ for (InvestigateDispositionTable investigateDispositionTable : investigateDispositionTableList) {
|
|
|
+ String url = investigateDispositionTable.getUrl();
|
|
|
+ String path= url.replace("/profile",getProfile());
|
|
|
+ //todo 删除服务器文件
|
|
|
+ try {
|
|
|
+ Runtime.getRuntime().exec("rm -f "+path);
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
insertInvestigateDispositionTable(investigateDispositionTableList);
|
|
|
}
|
|
|
|