Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
skills
Project
Project
Details
Activity
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
allen.wang
skills
Commits
62507a1d
Commit
62507a1d
authored
Apr 11, 2026
by
allen.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:init
parent
594861cb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1676 additions
and
0 deletions
+1676
-0
vip-report-campaign-s11-sync.ps1
vip-report/bin/vip-report-campaign-s11-sync.ps1
+62
-0
sync_campaign_s11_assets.py
vip-report/scripts/sync_campaign_s11_assets.py
+1614
-0
No files found.
vip-report/bin/vip-report-campaign-s11-sync.ps1
0 → 100644
View file @
62507a1d
<#
用途:
- 同步 S11(Campaign-年货节)来源数据,落盘校验结果并生成 render-ops。
- 可选直接渲染 PPT 并执行 compare。
#>
param
(
[
string
]
$ConfigPath
=
"C:\Users\niuniu\.codex\vip-report\config.yaml"
,
[
string
]
$Slides
=
"S11"
,
[
string
]
$ReportMonth
=
""
,
[
int
]
$ReportYear
=
0,
[
int
]
$CompareYear
=
0,
[
int
]
$ShopId
=
20,
[
switch
]
$DisableStrictJanuaryCheck
,
[
switch
]
$Render
,
[
string
]
$OutputPath
=
"C:\workspace\cursor\output\vip-report\generated-campaign-s11-live.pptx"
,
[
string
]
$CompareOutputPath
=
"C:\workspace\cursor\output\vip-report\generated-campaign-s11-live.compare.json"
)
$ErrorActionPreference
=
"Stop"
$root
=
Split-Path
-Parent
$PSScriptRoot
$opsPath
=
"C:\workspace\cursor\output\vip-report\render-ops.campaign-s11.live.json"
$templatePath
=
"C:\Users\niuniu\Desktop\Report.pptx"
$pythonArgs
=
@
(
"
$root
\scripts\sync_campaign_s11_assets.py"
,
"--config"
,
"
$ConfigPath
"
,
"--slides"
,
"
$Slides
"
,
"--shop-id"
,
"
$ShopId
"
)
if
(
$ReportMonth
)
{
$pythonArgs
+
=
@
(
"--report-month"
,
"
$ReportMonth
"
)
}
if
(
$ReportYear
-gt 0
)
{
$pythonArgs
+
=
@
(
"--report-year"
,
"
$ReportYear
"
)
}
if
(
$CompareYear
-gt 0
)
{
$pythonArgs
+
=
@
(
"--compare-year"
,
"
$CompareYear
"
)
}
if
(
$DisableStrictJanuaryCheck
)
{
$pythonArgs
+
=
@
(
"--disable-strict-january-check"
)
}
python @pythonArgs
if
(
$LASTEXITCODE
-ne 0
)
{
throw
"sync_campaign_s11_assets.py failed with exit code
$LASTEXITCODE
"
}
if
(
$Render
)
{
powershell -ExecutionPolicy Bypass -File
"
$root
\bin\vip-report-render.ps1"
-TemplatePath
"
$templatePath
"
-OutputPath
"
$OutputPath
"
-OperationsPath
"
$opsPath
"
| Out-Null
if
(
$LASTEXITCODE
-ne 0
)
{
throw
"vip-report-render.ps1 failed with exit code
$LASTEXITCODE
"
}
python
"
$root
\scripts\compare_pptx.py"
"
$templatePath
"
"
$OutputPath
"
--output
"
$CompareOutputPath
"
if
(
$LASTEXITCODE
-ne 0
)
{
throw
"compare_pptx.py failed with exit code
$LASTEXITCODE
"
}
Write-Output
$OutputPath
Write-Output
$CompareOutputPath
}
else
{
Write-Output
$opsPath
}
vip-report/scripts/sync_campaign_s11_assets.py
0 → 100644
View file @
62507a1d
This diff is collapsed.
Click to expand it.
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