fix: 78188 企标--导入--导入的压缩包下有多个文件夹提示语错误

This commit is contained in:
2023-11-06 16:55:59 +08:00
parent 17a448f385
commit 21ae194bc9
5 changed files with 9 additions and 4 deletions
@@ -87,4 +87,6 @@ public class ResultCommon {
//该展示区域有关联数据,无法删除!
public static final String TAG_ERROR_2 = "tag.error.2";
public static final String FOLDER_ONLY_ONE = "folder.only.one";
}
@@ -1418,7 +1418,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
int length = Objects.requireNonNull(fileTemp.listFiles()).length;
if (length > 2) {
FileUnZip.deleteDir(saveDirectory);
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.IMPORT_TEMPLATE_ERROR));
throw new JeroBootException(MessageUtils.getMessage(ResultCommon.FOLDER_ONLY_ONE));
}
File fileNew = new File(zipEntryName);
List<File> fileList = new ArrayList<>();