# 恢复被注释的note块的PowerShell脚本

# 恢复Entity_ClassDiagram.md中的note块
(Get-Content "Entity_ClassDiagram.md") -replace "    %% note right of OrderScoreInfo", "    note right of OrderScoreInfo" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Used to display work orders I created", "        Used to display work orders I created" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Contains basic work order information and creator information", "        Contains basic work order information and creator information" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "Entity_ClassDiagram.md"

(Get-Content "Entity_ClassDiagram.md") -replace "    %% note right of OrderScoreInfo", "    note right of OrderScoreInfo" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Used to display work orders I processed", "        Used to display work orders I processed" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Contains work order processing related information", "        Contains work order processing related information" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Processing personnel determined through flow records", "        Processing personnel determined through flow records" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "Entity_ClassDiagram.md"

(Get-Content "Entity_ClassDiagram.md") -replace "    %% note right of OrderScoreInfo", "    note right of OrderScoreInfo" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Used to display work orders related to me", "        Used to display work orders related to me" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Contains work order related personnel information", "        Contains work order related personnel information" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Related personnel determined through personnel association table", "        Related personnel determined through personnel association table" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "Entity_ClassDiagram.md"

(Get-Content "Entity_ClassDiagram.md") -replace "    %% note right of OrderScoreInfo", "    note right of OrderScoreInfo" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Used to display my pending work orders", "        Used to display my pending work orders" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Contains work order pending status and related personnel information", "        Contains work order pending status and related personnel information" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %%     Filtered based on user permissions and work order status", "        Filtered based on user permissions and work order status" | Set-Content "Entity_ClassDiagram.md"
(Get-Content "Entity_ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "Entity_ClassDiagram.md"

# 恢复ClassDiagram.md中的note块
(Get-Content "ClassDiagram.md") -replace "    %% note right of GxtOrderMineController", "    note right of GxtOrderMineController" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     Controller layer calls Service layer's", "        Controller layer calls Service layer's" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     selectUnionOrderListMyCreate method", "        selectUnionOrderListMyCreate method" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     to get work orders I created", "        to get work orders I created" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "ClassDiagram.md"

(Get-Content "ClassDiagram.md") -replace "    %% note right of GxtOrderMineController", "    note right of GxtOrderMineController" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     Controller layer calls Service layer's", "        Controller layer calls Service layer's" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     selectUnionOrderListMyDone method", "        selectUnionOrderListMyDone method" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     to get work orders I processed", "        to get work orders I processed" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "ClassDiagram.md"

(Get-Content "ClassDiagram.md") -replace "    %% note right of GxtOrderMineController", "    note right of GxtOrderMineController" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     Controller layer calls Service layer's", "        Controller layer calls Service layer's" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     selectUnionOrderListMyRelate method", "        selectUnionOrderListMyRelate method" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     to get work orders related to me", "        to get work orders related to me" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "ClassDiagram.md"

(Get-Content "ClassDiagram.md") -replace "    %% note right of GxtOrderMineController", "    note right of GxtOrderMineController" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     Controller layer calls Service layer's", "        Controller layer calls Service layer's" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     selectUnionOrderListMyTodo method", "        selectUnionOrderListMyTodo method" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %%     to get my pending work orders", "        to get my pending work orders" | Set-Content "ClassDiagram.md"
(Get-Content "ClassDiagram.md") -replace "    %% end note", "    end note" | Set-Content "ClassDiagram.md"

Write-Host "所有note块已恢复"
