From 2ffb83830cdad7e4b967249f68804cc4fa2db0f2 Mon Sep 17 00:00:00 2001
From: yanpeng200212 <32453@DESKTOP-HTJ2T0B>
Date: Thu, 8 Oct 2026 15:44:07 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9F=BA=E7=A1=80=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/SysGongyingshangController.cs | 61 +
.../Controllers/SysRegistryController.cs | 76 +
.../Controllers/SysWorkTypeController.cs | 123 +
.../Controllers/SysWuziGroupController.cs | 67 +
.../Controllers/SysWuziMuluController.cs | 68 +
.../SysYuanliaoZhuangkouController.cs | 63 +
.../Controllers/SysZhangqiController.cs | 84 +
.../F9WebAiTest.Api/f9_web_ai_test_rbac.db | Bin 352256 -> 638976 bytes
.../Commands/GongyingshangCommands.cs | 89 +
.../Queries/GongyingshangQueries.cs | 28 +
.../Registries/Commands/RegistryCommands.cs | 152 +
.../SYS/Registries/Queries/RegistryQueries.cs | 35 +
.../WorkTypes/Commands/WorkTypeCommands.cs | 178 +
.../SYS/WorkTypes/Queries/WorkTypeQueries.cs | 46 +
.../SYS/WuziMulus/Commands/WuziCommands.cs | 182 +
.../CQRS/SYS/WuziMulus/Queries/WuziQueries.cs | 91 +
.../Commands/YuanliaoZhuangkouCommands.cs | 122 +
.../Queries/YuanliaoZhuangkouQueries.cs | 40 +
.../CQRS/SYS/Zq/Commands/ZhangqiCommands.cs | 112 +
.../CQRS/SYS/Zq/Queries/ZhangqiQueries.cs | 97 +
.../SYS/Gongyingshangs/GongyingshangDtos.cs | 30 +
.../Dtos/SYS/Registries/RegistryDtos.cs | 21 +
.../Dtos/SYS/WorkTypes/WorkTypeDtos.cs | 26 +
.../Dtos/SYS/WuziMulus/WuziDtos.cs | 59 +
.../YuanliaoZhuangkouDtos.cs | 33 +
.../Dtos/SYS/Zq/ZhangqiDtos.cs | 19 +
.../IGongyingshangReadRepository.cs | 16 +
.../SYS/Registries/IRegistryReadRepository.cs | 16 +
.../SYS/WorkTypes/IWorkTypeReadRepository.cs | 19 +
.../SYS/WuziMulus/IWuziReadRepository.cs | 35 +
.../IYuanliaoZhuangkouReadRepository.cs | 24 +
.../SYS/Zq/IZhangqiReadRepository.cs | 22 +
.../SYS/Gongyingshangs/Gongyingshang.cs | 77 +
.../Entities/SYS/Registries/Registry.cs | 70 +
.../Entities/SYS/WorkTypes/WorkType.cs | 68 +
.../SYS/WorkTypes/WorkTypeDepartment.cs | 27 +
.../Entities/SYS/WorkTypes/WorkTypeRole.cs | 27 +
.../Entities/SYS/WuziMulus/WuziGroup.cs | 70 +
.../Entities/SYS/WuziMulus/WuziMulu.cs | 93 +
.../YuanliaoZhuangkous/YuanliaoZhuangkou.cs | 89 +
.../Entities/SYS/Zq/Zhangqi.cs | 62 +
.../Enums/SYS/Gongyingshangs/GysEnums.cs | 27 +
.../SYS/WuziMulus/WuziBusiness_Type_Enum.cs | 11 +
.../SYS/YuanliaoZhuangkous/BendiWaidi_Enum.cs | 11 +
.../Gongyingshang_ChangedDomainEvent.cs | 5 +
.../Registries/Registry_ChangedDomainEvent.cs | 5 +
.../WorkTypes/WorkType_ChangedDomainEvent.cs | 5 +
.../WuziMulus/WuziGroup_ChangedDomainEvent.cs | 5 +
.../WuziMulus/WuziMulu_ChangedDomainEvent.cs | 5 +
.../YuanliaoZhuangkou_ChangedDomainEvent.cs | 5 +
.../SYS/Zq/Zhangqi_ChangedDomainEvent.cs | 5 +
.../IGongyingshangWriteRepository.cs | 12 +
.../Registries/IRegistryWriteRepository.cs | 17 +
.../IWorkTypeDepartmentRepository.cs | 16 +
.../SYS/WorkTypes/IWorkTypeRoleRepository.cs | 16 +
.../SYS/WorkTypes/IWorkTypeWriteRepository.cs | 15 +
.../WuziMulus/IWuziGroupWriteRepository.cs | 21 +
.../IYuanliaoZhuangkouWriteRepository.cs | 14 +
.../SYS/Zq/IZhangqiWriteRepository.cs | 17 +
.../Data/BusinessSeedData.cs | 3 +-
.../Data/DbSeeder.cs | 155 +-
.../Data/GongyingshangSeedData.cs | 114 +
.../Data/RegistrySeedData.cs | 138 +
.../Data/SeedData/biz_base_gongyingshang.json | 1986 ++
.../Data/SeedData/biz_base_registry.json | 1892 ++
.../Data/SeedData/biz_base_worktype.json | 530 +
.../biz_base_worktype_department.json | 802 +
.../Data/SeedData/biz_base_worktype_role.json | 12 +
.../Data/SeedData/biz_base_wuzigroup.json | 482 +
.../Data/SeedData/biz_base_wuzimulu.json | 19002 ++++++++++++++++
.../SeedData/biz_base_yuanliaozhuangkou.json | 6248 +++++
.../Data/WorkTypeSeedData.cs | 293 +
.../Data/WuziSeedData.cs | 180 +
.../Data/YuanliaoZhuangkouSeedData.cs | 110 +
.../DependencyInjection.cs | 34 +
.../F9WebAiTest.Infrastructure.csproj | 5 +
.../GongyingshangRepositories.cs | 92 +
.../SYS/Registries/RegistryReadRepository.cs | 28 +
.../SYS/Registries/RegistryWriteRepository.cs | 37 +
.../SYS/WorkTypes/WorkTypeReadRepository.cs | 90 +
.../WorkTypes/WorkTypeRelationRepositories.cs | 51 +
.../SYS/WorkTypes/WorkTypeWriteRepository.cs | 39 +
.../SYS/WuziMulus/WuziGroupRepositories.cs | 78 +
.../SYS/WuziMulus/WuziMuluRepositories.cs | 128 +
.../YuanliaoZhuangkouReadRepository.cs | 145 +
.../YuanliaoZhuangkouWriteRepository.cs | 32 +
.../SYS/Zq/ZhangqiReadRepository.cs | 65 +
.../SYS/Zq/ZhangqiWriteRepository.cs | 39 +
web/src/router/index.js | 6 +
web/src/views/base/gongyingshang/index.vue | 257 +
web/src/views/base/registry/index.vue | 335 +
web/src/views/base/worktype/index.vue | 335 +
web/src/views/base/wuzimulu/index.vue | 530 +
.../views/base/yuanliaozhuangkou/index.vue | 406 +
web/src/views/base/zhangqi/index.vue | 256 +
95 files changed, 37759 insertions(+), 5 deletions(-)
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysGongyingshangController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysRegistryController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysWorkTypeController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysWuziGroupController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysWuziMuluController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysYuanliaoZhuangkouController.cs
create mode 100644 backend/F9WebAiTest.Api/Controllers/SysZhangqiController.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Gongyingshangs/Commands/GongyingshangCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Gongyingshangs/Queries/GongyingshangQueries.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Registries/Commands/RegistryCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Registries/Queries/RegistryQueries.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/WorkTypes/Commands/WorkTypeCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/WorkTypes/Queries/WorkTypeQueries.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/WuziMulus/Commands/WuziCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/WuziMulus/Queries/WuziQueries.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/YuanliaoZhuangkous/Commands/YuanliaoZhuangkouCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/YuanliaoZhuangkous/Queries/YuanliaoZhuangkouQueries.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Zq/Commands/ZhangqiCommands.cs
create mode 100644 backend/F9WebAiTest.Application/CQRS/SYS/Zq/Queries/ZhangqiQueries.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/Gongyingshangs/GongyingshangDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/Registries/RegistryDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/WorkTypes/WorkTypeDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/WuziMulus/WuziDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/YuanliaoZhuangkous/YuanliaoZhuangkouDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Dtos/SYS/Zq/ZhangqiDtos.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/Gongyingshangs/IGongyingshangReadRepository.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/Registries/IRegistryReadRepository.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/WorkTypes/IWorkTypeReadRepository.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/WuziMulus/IWuziReadRepository.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/YuanliaoZhuangkous/IYuanliaoZhuangkouReadRepository.cs
create mode 100644 backend/F9WebAiTest.Application/Interfaces/Repositories/SYS/Zq/IZhangqiReadRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/Gongyingshangs/Gongyingshang.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/Registries/Registry.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/WorkTypes/WorkType.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/WorkTypes/WorkTypeDepartment.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/WorkTypes/WorkTypeRole.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/WuziMulus/WuziGroup.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/WuziMulus/WuziMulu.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/YuanliaoZhuangkous/YuanliaoZhuangkou.cs
create mode 100644 backend/F9WebAiTest.Domain/Entities/SYS/Zq/Zhangqi.cs
create mode 100644 backend/F9WebAiTest.Domain/Enums/SYS/Gongyingshangs/GysEnums.cs
create mode 100644 backend/F9WebAiTest.Domain/Enums/SYS/WuziMulus/WuziBusiness_Type_Enum.cs
create mode 100644 backend/F9WebAiTest.Domain/Enums/SYS/YuanliaoZhuangkous/BendiWaidi_Enum.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/Gongyingshangs/Gongyingshang_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/Registries/Registry_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/WorkTypes/WorkType_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/WuziMulus/WuziGroup_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/WuziMulus/WuziMulu_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/YuanliaoZhuangkous/YuanliaoZhuangkou_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Events/SYS/Zq/Zhangqi_ChangedDomainEvent.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/Gongyingshangs/IGongyingshangWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/Registries/IRegistryWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/WorkTypes/IWorkTypeDepartmentRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/WorkTypes/IWorkTypeRoleRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/WorkTypes/IWorkTypeWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/WuziMulus/IWuziGroupWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/YuanliaoZhuangkous/IYuanliaoZhuangkouWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Domain/Interfaces/SYS/Zq/IZhangqiWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/GongyingshangSeedData.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/RegistrySeedData.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_gongyingshang.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_registry.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_worktype.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_worktype_department.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_worktype_role.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_wuzigroup.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_wuzimulu.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/SeedData/biz_base_yuanliaozhuangkou.json
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/WorkTypeSeedData.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/WuziSeedData.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/Data/YuanliaoZhuangkouSeedData.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/Gongyingshangs/GongyingshangRepositories.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/Registries/RegistryReadRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/Registries/RegistryWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/WorkTypes/WorkTypeReadRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/WorkTypes/WorkTypeRelationRepositories.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/WorkTypes/WorkTypeWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/WuziMulus/WuziGroupRepositories.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/WuziMulus/WuziMuluRepositories.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/YuanliaoZhuangkous/YuanliaoZhuangkouReadRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/YuanliaoZhuangkous/YuanliaoZhuangkouWriteRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/Zq/ZhangqiReadRepository.cs
create mode 100644 backend/F9WebAiTest.Infrastructure/FreeSqls/Repositories/SYS/Zq/ZhangqiWriteRepository.cs
create mode 100644 web/src/views/base/gongyingshang/index.vue
create mode 100644 web/src/views/base/registry/index.vue
create mode 100644 web/src/views/base/worktype/index.vue
create mode 100644 web/src/views/base/wuzimulu/index.vue
create mode 100644 web/src/views/base/yuanliaozhuangkou/index.vue
create mode 100644 web/src/views/base/zhangqi/index.vue
diff --git a/backend/F9WebAiTest.Api/Controllers/SysGongyingshangController.cs b/backend/F9WebAiTest.Api/Controllers/SysGongyingshangController.cs
new file mode 100644
index 0000000..b1cebf8
--- /dev/null
+++ b/backend/F9WebAiTest.Api/Controllers/SysGongyingshangController.cs
@@ -0,0 +1,61 @@
+using F9WebAiTest.Application.Common;
+using F9WebAiTest.Application.Common.Exceptions;
+using F9WebAiTest.Application.CQRS.SYS.Gongyingshangs.Commands;
+using F9WebAiTest.Application.CQRS.SYS.Gongyingshangs.Queries;
+using F9WebAiTest.Domain.Enums.SYS.Gongyingshangs;
+using MediatR;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
+
+namespace F9WebAiTest.Api.Controllers;
+
+/// 往来单位(供应商/客户)管理
+[ApiController]
+[Route("api/sys/gongyingshang")]
+[Authorize]
+public class SysGongyingshangController : ControllerBase
+{
+ private readonly IMediator _mediator;
+ public SysGongyingshangController(IMediator mediator) => _mediator = mediator;
+
+ /// 分页查询(业务类型 + 销售类型 + 关键字)
+ [HttpGet]
+ public async Task GetPaged([FromQuery] Gys_Type_Enum type = Gys_Type_Enum.干茧,
+ [FromQuery] Gys_SaleType_Enum? saleType = null, [FromQuery] string like = "",
+ [FromQuery] int pageIndex = 1, [FromQuery] int pageSize = 20)
+ => Ok(ApiResult