Commit fd287c75 authored by 罗显健's avatar 罗显健

【编号:21348】打包工具:增加二周选项,永久目录改为2999-

parent 7a63ecf0
...@@ -54,6 +54,7 @@ namespace Ftt.PatchPack ...@@ -54,6 +54,7 @@ namespace Ftt.PatchPack
Dictionary<int, string> dic = new Dictionary<int, string> Dictionary<int, string> dic = new Dictionary<int, string>
{ {
{ 0, "默认" }, { 0, "默认" },
{ 14, "二周" },
{ 30, "30天" }, { 30, "30天" },
{ 45, "45天" }, { 45, "45天" },
{ 60, "2个月" }, { 60, "2个月" },
......
...@@ -77,10 +77,10 @@ namespace Ftt.PatchPack ...@@ -77,10 +77,10 @@ namespace Ftt.PatchPack
static string MergeSqlRelativePath = "MergeTemp"; static string MergeSqlRelativePath = "MergeTemp";
/// <summary> /// <summary>
/// 永久有效的年份标记:2099 /// 永久有效的年份标记:2999
/// <para>该年份文件夹内的文件、在有效期内的需要打包</para> /// <para>该年份文件夹内的文件、在有效期内的需要打包</para>
/// </summary> /// </summary>
static int ForeverValidYear = 2099; static int ForeverValidYear = 2999;
#endregion #endregion
...@@ -342,8 +342,8 @@ namespace Ftt.PatchPack ...@@ -342,8 +342,8 @@ namespace Ftt.PatchPack
FileInfo destMergeFile = null;//合并文件锚点 FileInfo destMergeFile = null;//合并文件锚点
foreach (var sourceFile in sqlFiles) foreach (var sourceFile in sqlFiles)
{ {
//2099-xx-xx 的文件夹内,还有子文件夹。层级比其他日期的要多一层,合并时用到的临时目录也需要多一层。 //2999-xx-xx 的文件夹内,还有子文件夹。层级比其他日期的要多一层,合并时用到的临时目录也需要多一层。
if (sourceFile.RelativePatchPath.StartsWith("DB\\2099")) if (sourceFile.RelativePatchPath.StartsWith($"DB\\{ForeverValidYear}"))
{ {
var subPath = Path.Combine(MergeSqlTempFullPath, sourceFile.RelativePatchPath); var subPath = Path.Combine(MergeSqlTempFullPath, sourceFile.RelativePatchPath);
if (!Directory.Exists(subPath)) Directory.CreateDirectory(subPath); //创建所有层级的子目录,打包结束会被删除 if (!Directory.Exists(subPath)) Directory.CreateDirectory(subPath); //创建所有层级的子目录,打包结束会被删除
......
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