Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
fd287c75
Commit
fd287c75
authored
Aug 20, 2025
by
罗显健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【编号:21348】打包工具:增加二周选项,永久目录改为2999-
parent
7a63ecf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
FrmMain.cs
Ftt.PatchPack/FrmMain.cs
+1
-0
Project.cs
Ftt.PatchPack/Project.cs
+4
-4
No files found.
Ftt.PatchPack/FrmMain.cs
View file @
fd287c75
...
...
@@ -54,6 +54,7 @@ namespace Ftt.PatchPack
Dictionary
<
int
,
string
>
dic
=
new
Dictionary
<
int
,
string
>
{
{
0
,
"默认"
},
{
14
,
"二周"
},
{
30
,
"30天"
},
{
45
,
"45天"
},
{
60
,
"2个月"
},
...
...
Ftt.PatchPack/Project.cs
View file @
fd287c75
...
...
@@ -77,10 +77,10 @@ namespace Ftt.PatchPack
static
string
MergeSqlRelativePath
=
"MergeTemp"
;
/// <summary>
/// 永久有效的年份标记:2
0
99
/// 永久有效的年份标记:2
9
99
/// <para>该年份文件夹内的文件、在有效期内的需要打包</para>
/// </summary>
static
int
ForeverValidYear
=
2
0
99
;
static
int
ForeverValidYear
=
2
9
99
;
#
endregion
...
...
@@ -342,8 +342,8 @@ namespace Ftt.PatchPack
FileInfo
destMergeFile
=
null
;
//合并文件锚点
foreach
(
var
sourceFile
in
sqlFiles
)
{
//2
0
99-xx-xx 的文件夹内,还有子文件夹。层级比其他日期的要多一层,合并时用到的临时目录也需要多一层。
if
(
sourceFile
.
RelativePatchPath
.
StartsWith
(
"DB\\2099
"
))
//2
9
99-xx-xx 的文件夹内,还有子文件夹。层级比其他日期的要多一层,合并时用到的临时目录也需要多一层。
if
(
sourceFile
.
RelativePatchPath
.
StartsWith
(
$"DB\\
{
ForeverValidYear
}
"
))
{
var
subPath
=
Path
.
Combine
(
MergeSqlTempFullPath
,
sourceFile
.
RelativePatchPath
);
if
(!
Directory
.
Exists
(
subPath
))
Directory
.
CreateDirectory
(
subPath
);
//创建所有层级的子目录,打包结束会被删除
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment