From 3eb9944300d3eb7c6b8f11fb9305629cf0e61dc5 Mon Sep 17 00:00:00 2001
From: "747575620@qq.com" <747575620@qq.com>
Date: Tue, 11 Jul 2023 11:47:47 +0800
Subject: [PATCH] =?UTF-8?q?=E8=83=96=E5=AD=90=E5=A4=A9=E9=AA=84=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitignore | 3 +
.../BPA.MES.Base.Application.csproj | 36 +
.../BPA.MES.Base.Application.xml | 2846 +++++++++++++++++
.../Const/ClaimConst.cs | 64 +
.../Entitys/Base/DeviceRecipeEntity.cs | 22 +
.../Entitys/Base/DevicesInfoEntity.cs | 23 +
.../Entitys/Base/GroupInfoEntity.cs | 21 +
.../Entitys/Base/MaterialsInfoEntity.cs | 31 +
.../Entitys/Base/RecipeMaterialEntity.cs | 33 +
.../Entitys/Base/RecipesGroupEntity.cs | 21 +
.../Entitys/Base/RecipesInfoEntity.cs | 25 +
.../Entitys/Base/StoreInfoEntity.cs | 30 +
.../Entitys/Sys/AccountEntity.cs | 29 +
.../Entitys/Sys/AuthorizeTemplateEntity.cs | 29 +
.../Sys/AuthorizeTemplateItemEntity.cs | 27 +
.../Entitys/Sys/AuthorizeTemplateMapEntity.cs | 30 +
.../Entitys/Sys/EmployeeEntity.cs | 69 +
.../Entitys/Sys/ModuleEntity.cs | 46 +
.../Entitys/Sys/RoleEntity.cs | 32 +
.../BPA.MES.Base.Application/GlobalUsings.cs | 19 +
.../DeviceService/Dtos/DeviceRecipeDto.cs | 99 +
.../DeviceService/Dtos/DevicesInfoDto.cs | 51 +
.../Services/DeviceRecipeService.cs | 145 +
.../Services/DevicesInfoService.cs | 111 +
.../Services/IDeviceRecipeService.cs | 49 +
.../Services/IDevicesInfoService.cs | 49 +
.../MaterialService/Dtos/MaterialsInfoDto.cs | 58 +
.../Services/IMaterialsInfoService.cs | 48 +
.../Services/MaterialsInfoService.cs | 115 +
.../RecipesService/Dtos/GroupInfoDto.cs | 54 +
.../RecipesService/Dtos/RecipeMaterialDto.cs | 91 +
.../RecipesService/Dtos/RecipesInfoDto.cs | 66 +
.../Services/GroupInfoService.cs | 97 +
.../Services/IGroupInfoService.cs | 43 +
.../Services/IRecipeMaterialService.cs | 49 +
.../Services/IRecipesInfoService.cs | 54 +
.../Services/RecipeMaterialService.cs | 131 +
.../Services/RecipesInfoService.cs | 132 +
.../SystemService/Dtos/AccountInput.cs | 94 +
.../SystemService/Dtos/AccountOutput.cs | 29 +
.../SystemService/Dtos/AuthorModuleInput.cs | 134 +
.../Dtos/AuthorModuleItemInput.cs | 70 +
.../Dtos/AuthorModuleItemOutput.cs | 12 +
.../SystemService/Dtos/AuthorModuleOutput.cs | 68 +
.../SystemService/Dtos/AuthorizeInput.cs | 97 +
.../SystemService/Dtos/AuthorizeOutput.cs | 27 +
.../Dtos/AuthorizeTemplateInput.cs | 74 +
.../Dtos/AuthorizeTemplateOutput.cs | 24 +
.../SystemService/Dtos/EmployeeInput.cs | 141 +
.../SystemService/Dtos/EmployeeOutput.cs | 69 +
.../Services/SystemService/Dtos/Mapper.cs | 8 +
.../SystemService/Dtos/ModuleInput.cs | 97 +
.../SystemService/Dtos/ModuleOutput.cs | 48 +
.../SystemService/Dtos/ModuleTreeInput.cs | 108 +
.../SystemService/Dtos/ModuleTreeOutput.cs | 59 +
.../Services/SystemService/Dtos/RoleInput.cs | 71 +
.../Services/SystemService/Dtos/RoleOutput.cs | 24 +
.../SystemService/Dtos/UserRoleCacheDto.cs | 62 +
.../Services/AuthorizeService.cs | 645 ++++
.../Services/IAuthorizeService.cs | 63 +
.../applicationsettings.json | 12 +
.../BPA.MES.Base.Core.csproj | 23 +
.../BPA.MES.Base.Core/BPA.MES.Base.Core.xml | 131 +
backend/BPA.MES.Base.Core/DEntityBase.cs | 27 +
backend/BPA.MES.Base.Core/EmptyExtensions.cs | 21 +
backend/BPA.MES.Base.Core/RequestPage.cs | 22 +
.../BPA.MES.Base.Core/SqlSugarPagedList.cs | 109 +
backend/BPA.MES.Base.Core/SqlsugarSetup.cs | 41 +
backend/BPA.MES.Base.Core/TreeExtensions.cs | 65 +
.../BPA.MES.Base.Web.Core.csproj | 19 +
.../BPA.MES.Base.Web.Core.xml | 8 +
.../Handlers/JwtHandler.cs | 16 +
backend/BPA.MES.Base.Web.Core/Startup.cs | 52 +
.../BPA.MES.Base.Web.Entry.csproj | 21 +
.../BPA.MES.Base.Web.Entry.csproj.user | 9 +
backend/BPA.MES.Base.Web.Entry/Program.cs | 1 +
.../Properties/launchSettings.json | 31 +
.../SingleFilePublish.cs | 22 +
.../appsettings.Development.json | 10 +
.../BPA.MES.Base.Web.Entry/appsettings.json | 18 +
backend/BPA.MES.Base.sln | 43 +
frontend/.editorconfig | 16 +
frontend/.eslintignore | 8 +
frontend/.eslintrc.js | 7 +
frontend/.gitignore | 41 +
frontend/.prettierignore | 22 +
frontend/.prettierrc.js | 21 +
frontend/README.md | 57 +
frontend/config/config.ts | 126 +
frontend/config/defaultSettings.ts | 28 +
frontend/config/proxy.ts | 16 +
frontend/config/routes.ts | 20 +
frontend/jest.config.ts | 23 +
frontend/jsconfig.json | 11 +
frontend/package.json | 103 +
frontend/playwright.config.ts | 22 +
frontend/public/03.gif | Bin 0 -> 327753 bytes
frontend/public/CNAME | 1 +
frontend/public/favicon.ico | Bin 0 -> 4286 bytes
frontend/public/icons/icon-128x128.png | Bin 0 -> 1329 bytes
frontend/public/icons/icon-192x192.png | Bin 0 -> 1856 bytes
frontend/public/icons/icon-512x512.png | Bin 0 -> 5082 bytes
frontend/public/logo.png | Bin 0 -> 244136 bytes
frontend/public/logo.svg | 1 +
frontend/public/nc.png | Bin 0 -> 366817 bytes
frontend/public/pro_icon.svg | 5 +
frontend/src/api/AuthTemplate.ts | 119 +
frontend/src/api/DeviceInfo.ts | 112 +
frontend/src/api/Material.ts | 334 ++
frontend/src/api/ModuleAPI.ts | 45 +
frontend/src/api/Role.ts | 52 +
frontend/src/api/User.ts | 110 +
frontend/src/api/accountService.ts | 52 +
frontend/src/api/groupService.ts | 52 +
frontend/src/api/materialService.ts | 59 +
frontend/src/api/recipeService.ts | 83 +
frontend/src/api/storeService.ts | 59 +
frontend/src/app.tsx | 141 +
frontend/src/assets/images/loginFace.png | Bin 0 -> 53185 bytes
frontend/src/assets/images/logo.png | Bin 0 -> 109743 bytes
frontend/src/components/Footer/index.less | 8 +
frontend/src/components/Footer/index.tsx | 43 +
.../src/components/HeaderRight/index.less | 11 +
frontend/src/components/HeaderRight/index.tsx | 113 +
.../src/components/SelectSearchPage/index.tsx | 44 +
frontend/src/global.less | 54 +
frontend/src/global.tsx | 90 +
frontend/src/manifest.json | 22 +
frontend/src/pages/404.tsx | 18 +
frontend/src/pages/deviceInfo/index.tsx | 345 ++
frontend/src/pages/locales/zh-CN.js | 0
frontend/src/pages/logs/index.tsx | 9 +
frontend/src/pages/materials/index.tsx | 227 ++
frontend/src/pages/recipe/index.less | 37 +
frontend/src/pages/recipe/index.tsx | 802 +++++
frontend/src/pages/storeinfo/index.tsx | 225 ++
frontend/src/pages/system/account/index.tsx | 204 ++
.../src/pages/system/authTemplate/index.less | 0
.../src/pages/system/authTemplate/index.tsx | 519 +++
frontend/src/pages/system/module/index.less | 0
frontend/src/pages/system/module/index.tsx | 348 ++
frontend/src/pages/system/role/index.less | 54 +
frontend/src/pages/system/role/index.tsx | 202 ++
frontend/src/pages/system/user/index.less | 163 +
frontend/src/pages/system/user/index.tsx | 499 +++
frontend/src/pages/user/login/index.less | 161 +
frontend/src/pages/user/login/index.tsx | 97 +
frontend/src/pages/welcome/index.tsx | 17 +
frontend/src/requestErrorConfig.ts | 97 +
frontend/src/service-worker.js | 65 +
frontend/src/types/Account.d.ts | 46 +
frontend/src/types/AuthTemplateTypes.d.ts | 80 +
frontend/src/types/ClassGroup.d.ts | 120 +
frontend/src/types/CraftFunc.d.ts | 196 ++
frontend/src/types/DeviceInfo.d.ts | 163 +
frontend/src/types/GroupInfo.d.ts | 13 +
frontend/src/types/Materials.d.ts | 15 +
frontend/src/types/ModuleTypes.d.ts | 16 +
frontend/src/types/MyResponse.d.ts | 14 +
frontend/src/types/Recipe.d.ts | 31 +
frontend/src/types/RoleTypes.d.ts | 17 +
frontend/src/types/StoreInfo.d.ts | 15 +
frontend/src/types/UnitTypes.d.ts | 26 +
frontend/src/types/UserTypes.d.ts | 95 +
frontend/src/typings.d.ts | 26 +
frontend/src/utils/Token.ts | 12 +
frontend/src/utils/eventEmitter.ts | 43 +
frontend/tsconfig.json | 23 +
frontend/types/cache/cache.json | 1 +
frontend/types/cache/mock/mock.cache.js | 0
lib/资料.txt | 0
171 files changed, 14775 insertions(+)
create mode 100644 .gitignore
create mode 100644 backend/BPA.MES.Base.Application/BPA.MES.Base.Application.csproj
create mode 100644 backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml
create mode 100644 backend/BPA.MES.Base.Application/Const/ClaimConst.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/DeviceRecipeEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/DevicesInfoEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/GroupInfoEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/MaterialsInfoEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/RecipeMaterialEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/RecipesGroupEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/RecipesInfoEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Base/StoreInfoEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/AccountEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateItemEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateMapEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/EmployeeEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/ModuleEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/Entitys/Sys/RoleEntity.cs
create mode 100644 backend/BPA.MES.Base.Application/GlobalUsings.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DeviceRecipeDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DevicesInfoDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Services/DeviceRecipeService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Services/DevicesInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDeviceRecipeService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDevicesInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/MaterialService/Dtos/MaterialsInfoDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/MaterialService/Services/IMaterialsInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/MaterialService/Services/MaterialsInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/GroupInfoDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipeMaterialDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipesInfoDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/GroupInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/IGroupInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipeMaterialService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipesInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipeMaterialService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipesInfoService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/Mapper.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleInput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleOutput.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Dtos/UserRoleCacheDto.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Services/AuthorizeService.cs
create mode 100644 backend/BPA.MES.Base.Application/Services/SystemService/Services/IAuthorizeService.cs
create mode 100644 backend/BPA.MES.Base.Application/applicationsettings.json
create mode 100644 backend/BPA.MES.Base.Core/BPA.MES.Base.Core.csproj
create mode 100644 backend/BPA.MES.Base.Core/BPA.MES.Base.Core.xml
create mode 100644 backend/BPA.MES.Base.Core/DEntityBase.cs
create mode 100644 backend/BPA.MES.Base.Core/EmptyExtensions.cs
create mode 100644 backend/BPA.MES.Base.Core/RequestPage.cs
create mode 100644 backend/BPA.MES.Base.Core/SqlSugarPagedList.cs
create mode 100644 backend/BPA.MES.Base.Core/SqlsugarSetup.cs
create mode 100644 backend/BPA.MES.Base.Core/TreeExtensions.cs
create mode 100644 backend/BPA.MES.Base.Web.Core/BPA.MES.Base.Web.Core.csproj
create mode 100644 backend/BPA.MES.Base.Web.Core/BPA.MES.Base.Web.Core.xml
create mode 100644 backend/BPA.MES.Base.Web.Core/Handlers/JwtHandler.cs
create mode 100644 backend/BPA.MES.Base.Web.Core/Startup.cs
create mode 100644 backend/BPA.MES.Base.Web.Entry/BPA.MES.Base.Web.Entry.csproj
create mode 100644 backend/BPA.MES.Base.Web.Entry/BPA.MES.Base.Web.Entry.csproj.user
create mode 100644 backend/BPA.MES.Base.Web.Entry/Program.cs
create mode 100644 backend/BPA.MES.Base.Web.Entry/Properties/launchSettings.json
create mode 100644 backend/BPA.MES.Base.Web.Entry/SingleFilePublish.cs
create mode 100644 backend/BPA.MES.Base.Web.Entry/appsettings.Development.json
create mode 100644 backend/BPA.MES.Base.Web.Entry/appsettings.json
create mode 100644 backend/BPA.MES.Base.sln
create mode 100644 frontend/.editorconfig
create mode 100644 frontend/.eslintignore
create mode 100644 frontend/.eslintrc.js
create mode 100644 frontend/.gitignore
create mode 100644 frontend/.prettierignore
create mode 100644 frontend/.prettierrc.js
create mode 100644 frontend/README.md
create mode 100644 frontend/config/config.ts
create mode 100644 frontend/config/defaultSettings.ts
create mode 100644 frontend/config/proxy.ts
create mode 100644 frontend/config/routes.ts
create mode 100644 frontend/jest.config.ts
create mode 100644 frontend/jsconfig.json
create mode 100644 frontend/package.json
create mode 100644 frontend/playwright.config.ts
create mode 100644 frontend/public/03.gif
create mode 100644 frontend/public/CNAME
create mode 100644 frontend/public/favicon.ico
create mode 100644 frontend/public/icons/icon-128x128.png
create mode 100644 frontend/public/icons/icon-192x192.png
create mode 100644 frontend/public/icons/icon-512x512.png
create mode 100644 frontend/public/logo.png
create mode 100644 frontend/public/logo.svg
create mode 100644 frontend/public/nc.png
create mode 100644 frontend/public/pro_icon.svg
create mode 100644 frontend/src/api/AuthTemplate.ts
create mode 100644 frontend/src/api/DeviceInfo.ts
create mode 100644 frontend/src/api/Material.ts
create mode 100644 frontend/src/api/ModuleAPI.ts
create mode 100644 frontend/src/api/Role.ts
create mode 100644 frontend/src/api/User.ts
create mode 100644 frontend/src/api/accountService.ts
create mode 100644 frontend/src/api/groupService.ts
create mode 100644 frontend/src/api/materialService.ts
create mode 100644 frontend/src/api/recipeService.ts
create mode 100644 frontend/src/api/storeService.ts
create mode 100644 frontend/src/app.tsx
create mode 100644 frontend/src/assets/images/loginFace.png
create mode 100644 frontend/src/assets/images/logo.png
create mode 100644 frontend/src/components/Footer/index.less
create mode 100644 frontend/src/components/Footer/index.tsx
create mode 100644 frontend/src/components/HeaderRight/index.less
create mode 100644 frontend/src/components/HeaderRight/index.tsx
create mode 100644 frontend/src/components/SelectSearchPage/index.tsx
create mode 100644 frontend/src/global.less
create mode 100644 frontend/src/global.tsx
create mode 100644 frontend/src/manifest.json
create mode 100644 frontend/src/pages/404.tsx
create mode 100644 frontend/src/pages/deviceInfo/index.tsx
create mode 100644 frontend/src/pages/locales/zh-CN.js
create mode 100644 frontend/src/pages/logs/index.tsx
create mode 100644 frontend/src/pages/materials/index.tsx
create mode 100644 frontend/src/pages/recipe/index.less
create mode 100644 frontend/src/pages/recipe/index.tsx
create mode 100644 frontend/src/pages/storeinfo/index.tsx
create mode 100644 frontend/src/pages/system/account/index.tsx
create mode 100644 frontend/src/pages/system/authTemplate/index.less
create mode 100644 frontend/src/pages/system/authTemplate/index.tsx
create mode 100644 frontend/src/pages/system/module/index.less
create mode 100644 frontend/src/pages/system/module/index.tsx
create mode 100644 frontend/src/pages/system/role/index.less
create mode 100644 frontend/src/pages/system/role/index.tsx
create mode 100644 frontend/src/pages/system/user/index.less
create mode 100644 frontend/src/pages/system/user/index.tsx
create mode 100644 frontend/src/pages/user/login/index.less
create mode 100644 frontend/src/pages/user/login/index.tsx
create mode 100644 frontend/src/pages/welcome/index.tsx
create mode 100644 frontend/src/requestErrorConfig.ts
create mode 100644 frontend/src/service-worker.js
create mode 100644 frontend/src/types/Account.d.ts
create mode 100644 frontend/src/types/AuthTemplateTypes.d.ts
create mode 100644 frontend/src/types/ClassGroup.d.ts
create mode 100644 frontend/src/types/CraftFunc.d.ts
create mode 100644 frontend/src/types/DeviceInfo.d.ts
create mode 100644 frontend/src/types/GroupInfo.d.ts
create mode 100644 frontend/src/types/Materials.d.ts
create mode 100644 frontend/src/types/ModuleTypes.d.ts
create mode 100644 frontend/src/types/MyResponse.d.ts
create mode 100644 frontend/src/types/Recipe.d.ts
create mode 100644 frontend/src/types/RoleTypes.d.ts
create mode 100644 frontend/src/types/StoreInfo.d.ts
create mode 100644 frontend/src/types/UnitTypes.d.ts
create mode 100644 frontend/src/types/UserTypes.d.ts
create mode 100644 frontend/src/typings.d.ts
create mode 100644 frontend/src/utils/Token.ts
create mode 100644 frontend/src/utils/eventEmitter.ts
create mode 100644 frontend/tsconfig.json
create mode 100644 frontend/types/cache/cache.json
create mode 100644 frontend/types/cache/mock/mock.cache.js
create mode 100644 lib/资料.txt
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c29e8cf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+.vs
+obj
+bin
diff --git a/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.csproj b/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.csproj
new file mode 100644
index 0000000..eb7c73f
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.csproj
@@ -0,0 +1,36 @@
+
+
+
+
+ net6.0
+ 1701;1702;1591
+ BPA.MES.Base.Application.xml
+ enable
+
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml b/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml
new file mode 100644
index 0000000..d7773a6
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml
@@ -0,0 +1,2846 @@
+
+
+
+ BPA.MES.Base.Application
+
+
+
+
+ 名 称 :
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/4 10:15:54
+ 描 述 :
+
+
+
+
+ 用户Id
+
+
+
+
+ 账号
+
+
+
+
+ 名称
+
+
+
+
+ 头像
+
+
+
+
+ 电话
+
+
+
+
+ 性别
+
+
+
+
+ 是否授权
+
+
+
+
+ 微信session_key
+
+
+
+
+ 是否超级管理
+
+
+
+
+ 租户Id
+
+
+
+
+ 用户组织机构Id
+
+
+
+
+ 用户组织机构名称
+
+
+
+
+ 是否是管理员
+
+
+
+
+ 名 称 :设备配方表
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 13:57:00
+ 描 述 :
+
+
+
+
+ 设备Id
+
+
+
+
+ 配方Id
+
+
+
+
+ 名 称 :设备
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 13:51:45
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 编码
+
+
+
+
+ 名 称 :分组信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/10 14:01:15
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 介绍
+
+
+
+
+ 名 称 :物料
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 13:52:00
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 编码
+
+
+
+
+ 单位
+
+
+
+
+ 每秒出水量(g)
+
+
+
+
+ 名 称 :配方物料信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 13:58:19
+ 描 述 :
+
+
+
+
+ 物料Id
+
+
+
+
+ 配方Id
+
+
+
+
+ 通道
+
+
+
+
+ 顺序
+
+
+
+
+ 时间(s)
+
+
+
+
+ 名 称 :配方分组
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/10 14:56:03
+ 描 述 :
+
+
+
+
+ 组Id
+
+
+
+
+ 产品Id
+
+
+
+
+ 名 称 :配方信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 13:57:15
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 自定义编码
+
+
+
+
+ 图标
+
+
+
+
+ 名 称 :店铺信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 13:52:13
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 地址
+
+
+
+
+ 联系电话
+
+
+
+
+ 负责人
+
+
+
+
+ 名 称 :账户信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/3 10:18:43
+ 描 述 :
+
+
+
+
+ 账号
+
+
+
+
+ 密码
+
+
+
+
+ 员工表Id
+
+
+
+
+ 名 称 授权模板表
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:31:11
+ 描 述 :
+
+
+
+
+ 名称
+
+
+
+
+ 描述
+
+
+
+
+ 创建时间
+
+
+
+
+ 是否删除
+
+
+
+
+ 名 称 : 授权模板子项表
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:31:27
+ 描 述 :
+
+
+
+
+ 模板编号
+
+
+
+
+ 模块编号
+
+
+
+
+ 是否删除
+
+
+
+
+ 名 称 :授权对象表
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:31:39
+ 描 述 :
+
+
+
+
+ 授权模板编号
+
+
+
+
+ 授权对象编号(用户编号,角色编号)
+
+
+
+
+ 授权类型 1:用户,2:角色
+
+
+
+
+ 是否删除
+
+
+
+
+ 名 称 :员工信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:44:31
+ 描 述 :
+
+
+
+
+ 员工姓名
+
+
+
+
+ 1男2女
+
+
+
+
+ 手机号
+
+
+
+
+ 员工IC卡
+
+
+
+
+ 头像
+
+
+
+
+ 入职时间
+
+
+
+
+ 身份证
+
+
+
+
+ 1在职2出差3离职
+
+
+
+
+ 超管
+
+
+
+
+ 角色Id
+
+
+
+
+ 是否删除
+
+
+
+
+ 名 称 :模块菜单表
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:32:15
+ 描 述 :
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 状态
+
+
+
+
+ 名 称 :角色信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:32:32
+ 描 述 :
+
+
+
+
+ 角色名称
+
+
+
+
+ 角色类型 1超级管理员,2其他
+
+
+
+
+ 角色描述
+
+
+
+
+ 是否删除
+
+
+
+
+ 名 称 :设备Dto类
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 16:12:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 不分页
+
+
+
+
+ 设备Id
+
+
+
+
+ 分页
+
+
+
+
+ 设备Id
+
+
+
+
+ 配方数组
+
+
+
+
+ 输出
+
+
+
+
+ 设备名称
+
+
+
+
+ 配方名称
+
+
+
+
+ 配方代码
+
+
+
+
+ 分组Id
+
+
+
+
+ 分组名称
+
+
+
+
+ 配方图片地址
+
+
+
+
+ 名 称 :设备Dto类
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 16:12:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 分页
+
+
+
+
+ 输出
+
+
+
+
+ 名 称 :设备服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :店铺数据维护
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 批量下发配方
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ 名 称 :设备服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :店铺数据维护
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 下拉
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ 名 称 :设备配方服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 18:30:58
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 批量下发配方
+
+
+
+
+
+
+ 名 称 :设备服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 18:30:58
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 下拉列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 名 称 :设备Dto类
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/2 16:12:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 分页
+
+
+
+
+ 名称
+
+
+
+
+ 编码
+
+
+
+
+ 输出
+
+
+
+
+ 名 称 :物料服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 18:31:53
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 下拉列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 名 称 :物料服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :店铺数据维护
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 下拉
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ 名 称 :产品分组
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/10 13:59:43
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 分页
+
+
+
+
+ 名称
+
+
+
+
+ 输出
+
+
+
+
+ 名 称 :配方物料Dto类
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:12:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 物料Id
+
+
+
+
+ 配方Id
+
+
+
+
+ 通道
+
+
+
+
+ 顺序
+
+
+
+
+ 时间(s)
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 不分页
+
+
+
+
+ 配方Id
+
+
+
+
+ 分页
+
+
+
+
+ 输出
+
+
+
+
+ 配方名称
+
+
+
+
+ 物料名称
+
+
+
+
+ 物料编码
+
+
+
+
+ 名 称 :配方Dto类
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:12:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+ 更新
+
+
+
+
+ 删除
+
+
+
+
+ 主键
+
+
+
+
+ 分页
+
+
+
+
+ 名称
+
+
+
+
+ 分组id
+
+
+
+
+ 输出
+
+
+
+
+ 分组Id
+
+
+
+
+ 名 称 :分组信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/3/10 14:03:06
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ 名 称 :分组信息
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/10 14:03:21
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 名 称 :配方物料服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 18:33:18
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 批量增加
+
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 名 称 :配方服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 18:33:18
+ 描 述 :
+
+
+
+
+ 增加
+
+
+
+
+
+ 移除
+
+
+
+
+
+ 更新
+
+
+
+
+
+ 不分页列表
+
+
+
+
+
+ 分页列表
+
+
+
+
+
+ 下拉列表
+
+
+
+
+
+ 查询单条
+
+
+
+
+
+
+ 更改物料分组
+
+
+
+
+
+
+ 名 称 :配方物料服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :配方物料数据维护
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 批量增加
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ 名 称 :物料服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :店铺数据维护
+
+
+
+
+ 增加
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+ 列表
+
+
+
+
+
+
+ 分页
+
+
+
+
+
+
+ 下拉
+
+
+
+
+
+
+ 更新
+
+
+
+
+
+
+
+ [账号信息]入参基础
+
+
+
+
+ 账号
+
+ admin
+
+
+
+ 密码
+
+ e10adc3949ba59abbe56e057f20f883e
+
+
+
+ [账号信息]添加入参
+
+
+
+
+ 员工编号
+
+
+
+
+ [账号信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ 员工编号
+
+
+
+
+ [账号信息]修改密码
+
+
+
+
+ 新密码
+
+
+
+
+ [账号信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 设备名称
+
+
+
+
+ 名 称 :[账号信息]输出实体
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/3 10:22:37
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 账号
+
+
+
+
+ 密码
+
+
+
+
+ 员工id
+
+
+
+
+ [授权信息]入参基础
+
+
+
+
+ 关键字
+
+
+
+
+ 模板Id
+
+
+
+
+ 授权类型 1:用户,2:角色
+
+
+
+
+ 授权对象
+
+
+
+
+ [授权信息]添加入参
+
+
+
+
+ [授权信息]角色授权入参
+
+
+
+
+ 模板编号
+
+
+
+
+ 授权类型 1用户 2角色
+
+
+
+
+ 授权对象
+
+
+
+
+ [授权信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 名 称 :授权信息输出
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:24:21
+ 描 述 :
+
+
+
+
+ 编号
+
+
+
+
+ 名称
+
+
+
+
+ 已授权
+
+
+
+
+ [授权模块]入参基础
+
+
+
+
+ 名称
+
+
+
+
+ 描述
+
+
+
+
+ [授权模块]添加入参
+
+
+
+
+ [授权模块]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 关键字
+
+
+
+
+ 名 称 :授权模块输出
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 9:48:24
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 名称
+
+
+
+
+ 描述
+
+
+
+
+ [授权模块]入参基础
+
+
+
+
+ 子级列表
+
+
+
+
+ 拥有权限
+
+
+
+
+ 模块编号
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ 子集
+
+
+
+
+ [授权模块]添加入参
+
+
+
+
+ [授权模块]批量授权信息
+
+
+
+
+ 模板名称
+
+
+
+
+ 授权模块
+
+
+
+
+ [授权模块]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权模块]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]入参基础
+
+
+
+
+ 模板Id
+
+
+
+
+ 模块Id
+
+
+
+
+ [账号信息]添加入参
+
+
+
+
+ [账号信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [账号信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 名 称 :
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:20:51
+ 描 述 :
+
+
+
+
+ 名 称 :授权模块输出
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:18:24
+ 描 述 :
+
+
+
+
+ 子级列表
+
+
+
+
+ 拥有权限
+
+
+
+
+ 模块编号
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ 子集
+
+
+
+
+ 名 称 :
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/5 15:15:50
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 排序
+
+
+
+
+ 员工姓名
+
+
+
+
+ 1男2女
+
+
+
+
+ 手机号
+
+
+
+
+ 员工IC卡
+
+
+
+
+ 头像
+
+
+
+
+ 入职时间
+
+
+
+
+ 离职时间
+
+
+
+
+ 身份证
+
+
+
+
+ 1在职2出差3离职
+
+
+
+
+ 角色Id
+
+
+
+
+ 是否存在账号
+
+
+
+
+ 账号
+
+
+
+
+ [授权信息]添加入参
+
+
+
+
+ [授权信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [授权信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 关键字
+
+
+
+
+ 状态
+
+
+
+
+ 性别
+
+
+
+
+ 入职时间
+
+
+
+
+ 名 称 :[员工信息]
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/5 15:18:02
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 排序
+
+
+
+
+ 员工姓名
+
+
+
+
+ 1男2女
+
+
+
+
+ 手机号
+
+
+
+
+ 员工IC卡
+
+
+
+
+ 头像
+
+
+
+
+ 入职时间
+
+
+
+
+ 离职时间
+
+
+
+
+ 身份证
+
+
+
+
+ 1在职2出差3离职
+
+
+
+
+ 角色Id
+
+
+
+
+ 是否存在账号
+
+
+
+
+ 账号
+
+
+
+
+ [模块信息]入参基础
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ [模块信息]添加入参
+
+
+
+
+ 主键
+
+
+
+
+ [模块信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [模块信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [模块信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [模块信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 名 称 :
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 9:48:24
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ [菜单模块树]入参基础
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ 子集
+
+
+
+
+ [菜单模块树]添加入参
+
+
+
+
+ [菜单模块树]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [菜单模块树]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [菜单模块树]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 名称
+
+
+
+
+ [菜单模块树]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 名 称 :[菜单模块树]输出
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 16:14:43
+ 描 述 :
+
+
+
+
+ 模块编号
+
+
+
+
+ 类别 1:菜单,2:视图,3:功能
+
+
+
+
+ 菜单打开方式 0:框架内嵌,1:新开页面
+
+
+
+
+ 父级编号
+
+
+
+
+ 名称
+
+
+
+
+ 图标
+
+
+
+
+ 地址
+
+
+
+
+ 排序码
+
+
+
+
+ 启用禁用
+
+
+
+
+ 子集
+
+
+
+
+ 名 称 :[角色信息]
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 9:43:25
+ 描 述 :
+
+
+
+
+ 角色名称
+
+
+
+
+ 角色描述
+
+
+
+
+ [角色信息]添加入参
+
+
+
+
+ [角色信息]修改入参
+
+
+
+
+ 主键
+
+
+
+
+ [角色信息]删除入参
+
+
+
+
+ 主键
+
+
+
+
+ [角色信息]普通查询入参
+
+
+
+
+ 主键
+
+
+
+
+ [角色信息]分页查询入参
+
+
+
+
+ 主键
+
+
+
+
+ 关键字
+
+
+
+
+ 名 称 :角色信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 9:43:42
+ 描 述 :
+
+
+
+
+ 主键
+
+
+
+
+ 角色名称
+
+
+
+
+ 角色描述
+
+
+
+
+ 名 称 :个人角色信息
+ 创 建 人 :yangxiao
+ 创建时间 : 2023/1/4 17:46:47
+ 描 述 :
+
+
+
+
+ 个人菜单信息
+
+
+
+
+ 主键
+
+
+
+
+ 菜单名称
+
+
+
+
+ 菜单地址
+
+
+
+
+ 菜单图标
+
+
+
+
+ 菜单子项
+
+
+
+
+ 父级Id
+
+
+
+
+ 分页信息
+
+
+
+
+ 打开类型
+
+
+
+
+ 类别
+
+
+
+
+ 名 称 :授权服务
+ 创 建 人 :yangxiao
+ 创建时间 :2023/3/2 16:11:04
+ 描 述 :授权服务数据维护
+
+
+
+
+ 登录
+
+
+
+
+
+
+ 获取个人信息
+
+
+
+
+
+ 获取用户权限
+
+
+
+
+
+ 获取权限模块编号
+
+
+
+
+
+
+
+ 获取账户信息
+
+
+
+
+
+
+ 添加账户
+
+
+
+
+
+
+ 修改账户信息
+
+
+
+
+
+
+ 删除账户
+
+
+
+
+
+
+ 获取授权模块编号
+
+
+
+
+
+
diff --git a/backend/BPA.MES.Base.Application/Const/ClaimConst.cs b/backend/BPA.MES.Base.Application/Const/ClaimConst.cs
new file mode 100644
index 0000000..705d722
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Const/ClaimConst.cs
@@ -0,0 +1,64 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/4 10:15:54
+ /// 描 述 :
+ ///
+ public class ClaimConst
+ {
+ ///
+ /// 用户Id
+ ///
+ public const string CLAINM_USERID = "UserId";
+ ///
+ /// 账号
+ ///
+ public const string CLAINM_ACCOUNT = "Account";
+ ///
+ /// 名称
+ ///
+ public const string CLAINM_NAME = "Name";
+ ///
+ /// 头像
+ ///
+ public const string CLAINM_AVATARURL = "AvatarUrl";
+ ///
+ /// 电话
+ ///
+ public const string CLAINM_PHONE = "Phone";
+ ///
+ /// 性别
+ ///
+ public const string CLAINM_SEX = "0";
+ ///
+ /// 是否授权
+ ///
+ public const string CLAINM_ISAUTH = "0";
+ ///
+ /// 微信session_key
+ ///
+ public const string SESSION_KEY = "session_key";
+ ///
+ /// 是否超级管理
+ ///
+ public const string CLAINM_SUPERADMIN = "SuperAdmin";
+ ///
+ /// 租户Id
+ ///
+ public const string TENANT_ID = "TenantId";
+ ///
+ /// 用户组织机构Id
+ ///
+ public const string CLAINM_ORGID = "OrgId";
+ ///
+ /// 用户组织机构名称
+ ///
+ public const string CLAINM_ORGNAME = "OrgName";
+ ///
+ /// 是否是管理员
+ ///
+ public const bool ISADMIN = false;
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/DeviceRecipeEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/DeviceRecipeEntity.cs
new file mode 100644
index 0000000..a7d7750
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/DeviceRecipeEntity.cs
@@ -0,0 +1,22 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备配方表
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 13:57:00
+ /// 描 述 :
+ ///
+ [SugarTable("devices_recipes")]
+ public class DeviceRecipeEntity : DEntityBase
+ {
+ ///
+ /// 设备Id
+ ///
+ public string DeviceId { get; set; }
+ ///
+ /// 配方Id
+ ///
+ public string RecipesId { get; set; }
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/DevicesInfoEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/DevicesInfoEntity.cs
new file mode 100644
index 0000000..a233b87
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/DevicesInfoEntity.cs
@@ -0,0 +1,23 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 13:51:45
+ /// 描 述 :
+ ///
+ [SugarTable("devices_info")]
+ public class DevicesInfoEntity: DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ [Required(ErrorMessage = "名称不能为空")]
+ public string Name { get; set; }
+ ///
+ /// 编码
+ ///
+ [Required(ErrorMessage = "编码不能为空")]
+ public string Code { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/GroupInfoEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/GroupInfoEntity.cs
new file mode 100644
index 0000000..2bbf3b3
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/GroupInfoEntity.cs
@@ -0,0 +1,21 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :分组信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/10 14:01:15
+ /// 描 述 :
+ ///
+ [SugarTable("group_info")]
+ public class GroupInfoEntity: DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 介绍
+ ///
+ public string Des { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/MaterialsInfoEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/MaterialsInfoEntity.cs
new file mode 100644
index 0000000..3f8ec05
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/MaterialsInfoEntity.cs
@@ -0,0 +1,31 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :物料
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 13:52:00
+ /// 描 述 :
+ ///
+ [SugarTable("materials_info")]
+ public class MaterialsInfoEntity: DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ [Required(ErrorMessage = "名称不能为空")]
+ public string Name { get; set; }
+ ///
+ /// 编码
+ ///
+ [Required(ErrorMessage = "编码不能为空")]
+ public string Code { get; set; }
+ ///
+ /// 单位
+ ///
+ public string Unit { get; set; }
+ ///
+ /// 每秒出水量(g)
+ ///
+ public string Wos { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/RecipeMaterialEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/RecipeMaterialEntity.cs
new file mode 100644
index 0000000..d757e03
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/RecipeMaterialEntity.cs
@@ -0,0 +1,33 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方物料信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 13:58:19
+ /// 描 述 :
+ ///
+ [SugarTable("recipes_material")]
+ public class RecipeMaterialEntity : DEntityBase
+ {
+ ///
+ /// 物料Id
+ ///
+ public string MaterialId { get; set; }
+ ///
+ /// 配方Id
+ ///
+ public string RecipesId { get; set; }
+ ///
+ /// 通道
+ ///
+ public string Outlet { get; set; }
+ ///
+ /// 顺序
+ ///
+ public string Sort { get; set; }
+ ///
+ /// 时间(s)
+ ///
+ public string Time { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/RecipesGroupEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/RecipesGroupEntity.cs
new file mode 100644
index 0000000..1518fdd
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/RecipesGroupEntity.cs
@@ -0,0 +1,21 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方分组
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/10 14:56:03
+ /// 描 述 :
+ ///
+ [SugarTable("recipes_group")]
+ public class RecipesGroupEntity
+ {
+ ///
+ /// 组Id
+ ///
+ public string GroupId { get; set; }
+ ///
+ /// 产品Id
+ ///
+ public string RecipesId { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/RecipesInfoEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/RecipesInfoEntity.cs
new file mode 100644
index 0000000..5f6932c
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/RecipesInfoEntity.cs
@@ -0,0 +1,25 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 13:57:15
+ /// 描 述 :
+ ///
+ [SugarTable("recipes_info")]
+ public class RecipesInfoEntity : DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 自定义编码
+ ///
+ public string Code { get; set; }
+ ///
+ /// 图标
+ ///
+ public string PicUrl { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Base/StoreInfoEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Base/StoreInfoEntity.cs
new file mode 100644
index 0000000..6a5c6ef
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Base/StoreInfoEntity.cs
@@ -0,0 +1,30 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :店铺信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 13:52:13
+ /// 描 述 :
+ ///
+ [SugarTable("store_info")]
+ public class StoreInfoEntity : DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ [Required(ErrorMessage = "名称不能为空")]
+ public string Name { get; set; }
+ ///
+ /// 地址
+ ///
+ public string Address { get; set; }
+ ///
+ /// 联系电话
+ ///
+ public string Phone { get; set; }
+ ///
+ /// 负责人
+ ///
+ public string Directors { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/AccountEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/AccountEntity.cs
new file mode 100644
index 0000000..8c0955b
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/AccountEntity.cs
@@ -0,0 +1,29 @@
+
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :账户信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/3 10:18:43
+ /// 描 述 :
+ ///
+ [SugarTable("sys_account")]
+ public class AccountEntity : DEntityBase
+ {
+ ///
+ /// 账号
+ ///
+ [SugarColumn(IsNullable = false)]
+ public string Account { get; set; }
+ ///
+ /// 密码
+ ///
+ [SugarColumn(IsNullable = false)]
+ public string Pwd { get; set; }
+ ///
+ /// 员工表Id
+ ///
+ [SugarColumn(IsNullable = false)]
+ public string EmployeeId { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateEntity.cs
new file mode 100644
index 0000000..c95181f
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateEntity.cs
@@ -0,0 +1,29 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 授权模板表
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:31:11
+ /// 描 述 :
+ ///
+ [SugarTable("sys_authorizetemplate")]
+ public class AuthorizeTemplateEntity : DEntityBase
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 描述
+ ///
+ public string Remark { get; set; }
+ ///
+ /// 创建时间
+ ///
+ public DateTime? CreateAt { get; set; }
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateItemEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateItemEntity.cs
new file mode 100644
index 0000000..3a3489a
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateItemEntity.cs
@@ -0,0 +1,27 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 : 授权模板子项表
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:31:27
+ /// 描 述 :
+ ///
+ [SugarTable("sys_authorizetemplate_item")]
+ public class AuthorizeTemplateItemEntity : DEntityBase
+ {
+ ///
+ /// 模板编号
+ ///
+ public string TB_TemplateId { get; set; }
+
+ ///
+ /// 模块编号
+ ///
+ public string TB_ModuleId { get; set; }
+
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateMapEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateMapEntity.cs
new file mode 100644
index 0000000..90f33fa
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/AuthorizeTemplateMapEntity.cs
@@ -0,0 +1,30 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :授权对象表
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:31:39
+ /// 描 述 :
+ ///
+ [SugarTable("sys_authorizetemplatemap")]
+ public class AuthorizeTemplateMapEntity : DEntityBase
+ {
+ ///
+ /// 授权模板编号
+ ///
+ public string TemplateId { get; set; }
+
+ ///
+ /// 授权对象编号(用户编号,角色编号)
+ ///
+ public string ObjectId { get; set; }
+ ///
+ /// 授权类型 1:用户,2:角色
+ ///
+ public int AuthorizeType { get; set; }
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/EmployeeEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/EmployeeEntity.cs
new file mode 100644
index 0000000..0e3594c
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/EmployeeEntity.cs
@@ -0,0 +1,69 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :员工信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:44:31
+ /// 描 述 :
+ ///
+ [SugarTable("sys_employee")]
+ public class EmployeeEntity : DEntityBase
+ {
+ ///
+ /// 员工姓名
+ ///
+ [SugarColumn(IsNullable = false)]
+ public string Name { get; set; }
+ ///
+ /// 1男2女
+ ///
+ [SugarColumn(IsNullable = true)]
+ public int Gender { get; set; }
+ ///
+ /// 手机号
+ ///
+ [SugarColumn(IsNullable = false)]
+ public string Phone { get; set; }
+ ///
+ /// 员工IC卡
+ ///
+ [SugarColumn(IsNullable = true)]
+ public string ICCard { get; set; }
+ ///
+ /// 头像
+ ///
+ [SugarColumn(IsNullable = true)]
+ public string Header { get; set; }
+
+ [SugarColumn(IsNullable = false)]
+ public DateTime JoinDate { get; set; }
+ ///
+ /// 入职时间
+ ///
+ [SugarColumn(IsNullable = true)]
+ public DateTime? OutDate { get; set; }
+ ///
+ /// 身份证
+ ///
+ [SugarColumn(IsNullable = true)]
+ public string IdCard { get; set; }
+ ///
+ /// 1在职2出差3离职
+ ///
+ [SugarColumn(IsNullable = false)]
+ public int Stutas { get; set; }
+ ///
+ /// 超管
+ ///
+ [SugarColumn(IsNullable = false)]
+ public bool IsAdmin { get; set; }
+ ///
+ /// 角色Id
+ ///
+ public string TB_RoleId { get; set; }
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/ModuleEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/ModuleEntity.cs
new file mode 100644
index 0000000..b9ef298
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/ModuleEntity.cs
@@ -0,0 +1,46 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :模块菜单表
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:32:15
+ /// 描 述 :
+ ///
+ [SugarTable("sys_module")]
+ public class ModuleEntity : DEntityBase
+ {
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 状态
+ ///
+ public bool IsDisabled { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Entitys/Sys/RoleEntity.cs b/backend/BPA.MES.Base.Application/Entitys/Sys/RoleEntity.cs
new file mode 100644
index 0000000..43522ff
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Entitys/Sys/RoleEntity.cs
@@ -0,0 +1,32 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :角色信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:32:32
+ /// 描 述 :
+ ///
+ [SugarTable("sys_role")]
+ public class RoleEntity : DEntityBase
+ {
+ ///
+ /// 角色名称
+ ///
+ public string Name { get; set; }
+
+ ///
+ /// 角色类型 1超级管理员,2其他
+ ///
+ public int? RoleType { get; set; }
+
+ ///
+ /// 角色描述
+ ///
+ public string Description { get; set; }
+
+ ///
+ /// 是否删除
+ ///
+ public bool IsDeleted { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/GlobalUsings.cs b/backend/BPA.MES.Base.Application/GlobalUsings.cs
new file mode 100644
index 0000000..d3511cb
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/GlobalUsings.cs
@@ -0,0 +1,19 @@
+global using Furion;
+global using Furion.DataEncryption;
+global using Furion.DataValidation;
+global using Furion.DependencyInjection;
+global using Furion.DynamicApiController;
+global using Furion.Extensions;
+global using Furion.FriendlyException;
+global using Furion.Logging;
+global using Mapster;
+global using Microsoft.AspNetCore.Authorization;
+global using Microsoft.AspNetCore.Http;
+global using Microsoft.AspNetCore.Mvc;
+global using Microsoft.CodeAnalysis;
+global using BPA.MES.Base.Core;
+global using static BPA.MES.Base.Core.TreeExtensions;
+global using System.ComponentModel.DataAnnotations;
+global using BPA.MES.Base.Application.Entitys;
+global using Furion.DataEncryption.Extensions;
+global using SqlSugar;
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DeviceRecipeDto.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DeviceRecipeDto.cs
new file mode 100644
index 0000000..2a370bc
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DeviceRecipeDto.cs
@@ -0,0 +1,99 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备Dto类
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 16:12:06
+ /// 描 述 :
+ ///
+ public class DeviceRecipeDto : DeviceRecipeEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class DeviceRecipeAddInput : DeviceRecipeDto
+ {
+
+ }
+ ///
+ /// 更新
+ ///
+ public class DeviceRecipeUpdateInput : DeviceRecipeDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class DeviceRecipeDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 不分页
+ ///
+ public class DeviceRecipeQueryInput
+ {
+ ///
+ /// 设备Id
+ ///
+ public string DeviceId { get; set; }
+
+ }
+ ///
+ /// 分页
+ ///
+ public class DeviceRecipeQueryPageInput : RequestPage
+ {
+
+ }
+
+ public class DeviceRecipeBatchAddInput
+ {
+ ///
+ /// 设备Id
+ ///
+ public string DeviceId { get; set; }
+ ///
+ /// 配方数组
+ ///
+ public List RecipesIds { get; set; } = new();
+ }
+
+
+ ///
+ /// 输出
+ ///
+ public class DeviceRecipeOutput : DeviceRecipeDto
+ {
+ ///
+ /// 设备名称
+ ///
+ public string DeviceName { get; set; }
+ ///
+ /// 配方名称
+ ///
+ public string RecipeName { get; set; }
+ ///
+ /// 配方代码
+ ///
+ public string RecipeCode { get; set; }
+ ///
+ /// 分组Id
+ ///
+ public string GroupId { get; set; }
+ ///
+ /// 分组名称
+ ///
+ public string GroupName { get; set; }
+ ///
+ /// 配方图片地址
+ ///
+ public string RecipesPic { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DevicesInfoDto.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DevicesInfoDto.cs
new file mode 100644
index 0000000..124537e
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Dtos/DevicesInfoDto.cs
@@ -0,0 +1,51 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备Dto类
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 16:12:06
+ /// 描 述 :
+ ///
+ public class DevicesInfoDto : DevicesInfoEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class DevicesInfoAddInput : DevicesInfoDto
+ {
+
+ }
+ ///
+ /// 更新
+ ///
+ public class DevicesInfoUpdateInput : DevicesInfoDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class DevicesInfoDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 分页
+ ///
+ public class DevicesInfoQueryPageInput : RequestPage
+ {
+
+ }
+ ///
+ /// 输出
+ ///
+ public class DevicesInfoOutput : DevicesInfoDto
+ {
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DeviceRecipeService.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DeviceRecipeService.cs
new file mode 100644
index 0000000..c52a918
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DeviceRecipeService.cs
@@ -0,0 +1,145 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :店铺数据维护
+ ///
+ [ApiDescriptionSettings(Name = "DeviceRecipe", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class DeviceRecipeService : IDeviceRecipeService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public DeviceRecipeService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(DeviceRecipeAddInput input)
+ {
+ var r_entity = await _dbContext.Queryable().FirstAsync(x => x.DeviceId == input.DeviceId && x.RecipesId==input.RecipesId);
+ if (r_entity != null)
+ {
+ throw Oops.Bah("名称已存在!");
+ }
+ DeviceRecipeEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 批量下发配方
+ ///
+ ///
+ ///
+ ///
+
+ public async Task BatchUpdate(DeviceRecipeBatchAddInput input)
+ {
+ bool result = false;
+ List dr_entitys = new();
+ foreach (var item in input.RecipesIds)
+ {
+ DeviceRecipeEntity entity = new();
+ entity.RecipesId = item;
+ entity.DeviceId = input.DeviceId;
+ dr_entitys.Add(entity);
+ }
+ try
+ {
+ _dbContext.Ado.BeginTran();
+ await _dbContext.Deleteable().Where(x => x.DeviceId == input.DeviceId).ExecuteCommandAsync();
+ if (input.RecipesIds.Any())
+ {
+ await _dbContext.Insertable(dr_entitys).ExecuteCommandAsync();
+ }
+ _dbContext.Ado.CommitTran();
+ result = true;
+ }
+ catch (Exception ex)
+ {
+ throw Oops.Bah("更新失败!");
+ }
+ return result;
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(DeviceRecipeDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x => x.Id == Id);
+ DeviceRecipeOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpPost,AllowAnonymous]
+ public async Task> List(DeviceRecipeQueryInput input)
+ {
+ var output = await _dbContext.Queryable()
+ .LeftJoin((a,b)=>a.RecipesId==b.Id)
+ .LeftJoin((a,b,c)=>a.RecipesId==c.RecipesId)
+ .LeftJoin((a, b, c,d)=>c.GroupId==d.Id)
+ .WhereIF(!string.IsNullOrEmpty(input.DeviceId),a=>a.DeviceId==input.DeviceId)
+ .Select((a, b, c,d) => new DeviceRecipeOutput
+ {
+ DeviceId = a.DeviceId,
+ RecipeName = b.Name,
+ RecipeCode = b.Code,
+ RecipesId = a.RecipesId,
+ RecipesPic =b.PicUrl,
+ GroupId = c.GroupId,
+ GroupName = d.Name
+ })
+ .ToListAsync();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(DeviceRecipeQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(DeviceRecipeUpdateInput input)
+ {
+ var res = await _dbContext.Updateable().ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DevicesInfoService.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DevicesInfoService.cs
new file mode 100644
index 0000000..44131ee
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/DevicesInfoService.cs
@@ -0,0 +1,111 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :店铺数据维护
+ ///
+ [ApiDescriptionSettings(Name = "DevicesInfo", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class DevicesInfoService : IDevicesInfoService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public DevicesInfoService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(DevicesInfoAddInput input)
+ {
+ var r_entity = await _dbContext.Queryable().FirstAsync(x => x.Name == input.Name);
+ if (r_entity != null)
+ {
+ throw Oops.Bah("名称已存在!");
+ }
+ DevicesInfoEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(DevicesInfoDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x => x.Id == Id);
+ DevicesInfoOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task> List()
+ {
+ var entity = await _dbContext.Queryable().ToListAsync();
+ List output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(DevicesInfoQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 下拉
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task SelectList()
+ {
+ var entity = await _dbContext.Queryable().Select(x => new
+ {
+ key = x.Id,
+ value = x.Name
+ }).ToListAsync();
+ return entity;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(DevicesInfoUpdateInput input)
+ {
+ var res = await _dbContext.Updateable().ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDeviceRecipeService.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDeviceRecipeService.cs
new file mode 100644
index 0000000..7965b6e
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDeviceRecipeService.cs
@@ -0,0 +1,49 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备配方服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 18:30:58
+ /// 描 述 :
+ ///
+ public interface IDeviceRecipeService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(DeviceRecipeAddInput input);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(DeviceRecipeDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(DeviceRecipeUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List(DeviceRecipeQueryInput input);
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(DeviceRecipeQueryPageInput input);
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+ ///
+ /// 批量下发配方
+ ///
+ ///
+ ///
+ Task BatchUpdate(DeviceRecipeBatchAddInput input);
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDevicesInfoService.cs b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDevicesInfoService.cs
new file mode 100644
index 0000000..289acce
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/DeviceService/Services/IDevicesInfoService.cs
@@ -0,0 +1,49 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 18:30:58
+ /// 描 述 :
+ ///
+ public interface IDevicesInfoService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(DevicesInfoAddInput input);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(DevicesInfoDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(DevicesInfoUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List();
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(DevicesInfoQueryPageInput input);
+ ///
+ /// 下拉列表
+ ///
+ ///
+ Task SelectList();
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/MaterialService/Dtos/MaterialsInfoDto.cs b/backend/BPA.MES.Base.Application/Services/MaterialService/Dtos/MaterialsInfoDto.cs
new file mode 100644
index 0000000..c511140
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/MaterialService/Dtos/MaterialsInfoDto.cs
@@ -0,0 +1,58 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :设备Dto类
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/2 16:12:06
+ /// 描 述 :
+ ///
+ public class MaterialsInfoDto : MaterialsInfoEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class MaterialsInfoAddInput : MaterialsInfoDto
+ {
+
+ }
+ ///
+ /// 更新
+ ///
+ public class MaterialsInfoUpdateInput : MaterialsInfoDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class MaterialsInfoDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 分页
+ ///
+ public class MaterialsInfoQueryPageInput : RequestPage
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 编码
+ ///
+ public string Code { get; set; }
+ }
+ ///
+ /// 输出
+ ///
+ public class MaterialsInfoOutput : MaterialsInfoDto
+ {
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/MaterialService/Services/IMaterialsInfoService.cs b/backend/BPA.MES.Base.Application/Services/MaterialService/Services/IMaterialsInfoService.cs
new file mode 100644
index 0000000..d9dbd7e
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/MaterialService/Services/IMaterialsInfoService.cs
@@ -0,0 +1,48 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :物料服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 18:31:53
+ /// 描 述 :
+ ///
+ public interface IMaterialsInfoService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(MaterialsInfoAddInput input);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(MaterialsInfoDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(MaterialsInfoUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List();
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(MaterialsInfoQueryPageInput input);
+ ///
+ /// 下拉列表
+ ///
+ ///
+ Task SelectList();
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/MaterialService/Services/MaterialsInfoService.cs b/backend/BPA.MES.Base.Application/Services/MaterialService/Services/MaterialsInfoService.cs
new file mode 100644
index 0000000..11b37ff
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/MaterialService/Services/MaterialsInfoService.cs
@@ -0,0 +1,115 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :物料服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :店铺数据维护
+ ///
+ [ApiDescriptionSettings(Name = "MaterialsInfo", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class MaterialsInfoService : IMaterialsInfoService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public MaterialsInfoService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(MaterialsInfoAddInput input)
+ {
+ var r_entity = await _dbContext.Queryable().FirstAsync(x => x.Name == input.Name);
+ if (r_entity != null)
+ {
+ throw Oops.Bah("名称已存在!");
+ }
+ MaterialsInfoEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(MaterialsInfoDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x => x.Id == Id);
+ MaterialsInfoOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task> List()
+ {
+ var entity = await _dbContext.Queryable().ToListAsync();
+ List output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(MaterialsInfoQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .WhereIF(!string.IsNullOrEmpty(input.Name),x=>x.Name.Contains(input.Name))
+ .WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code))
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 下拉
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task SelectList()
+ {
+ var entity = await _dbContext.Queryable().Select(x => new
+ {
+ key = x.Id,
+ value = x.Name
+ }).ToListAsync();
+ return entity;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(MaterialsInfoUpdateInput input)
+ {
+ var entity = await _dbContext.Queryable().Where(x => x.Id == input.Id).FirstAsync();
+ entity = input.Adapt();
+ var res = await _dbContext.Updateable(entity).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/GroupInfoDto.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/GroupInfoDto.cs
new file mode 100644
index 0000000..0c0d230
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/GroupInfoDto.cs
@@ -0,0 +1,54 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :产品分组
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/10 13:59:43
+ /// 描 述 :
+ ///
+ public class GroupInfoDto : GroupInfoEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class GroupInfoAddInput : GroupInfoDto
+ {
+
+ }
+ ///
+ /// 更新
+ ///
+ public class GroupInfoUpdateInput : GroupInfoDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class GroupInfoDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 分页
+ ///
+ public class GroupInfoQueryPageInput : RequestPage
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ }
+ ///
+ /// 输出
+ ///
+ public class GroupInfoOutput : GroupInfoDto
+ {
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipeMaterialDto.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipeMaterialDto.cs
new file mode 100644
index 0000000..78d2c65
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipeMaterialDto.cs
@@ -0,0 +1,91 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方物料Dto类
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:12:06
+ /// 描 述 :
+ ///
+ public class RecipeMaterialDto : RecipeMaterialEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class RecipeMaterialAddInput
+ {
+ ///
+ /// 物料Id
+ ///
+ public string MaterialId { get; set; }
+ ///
+ /// 配方Id
+ ///
+ public string RecipesId { get; set; }
+ ///
+ /// 通道
+ ///
+ public string Outlet { get; set; }
+ ///
+ /// 顺序
+ ///
+ public string Sort { get; set; }
+ ///
+ /// 时间(s)
+ ///
+ public string Time { get; set; }
+ }
+ ///
+ /// 更新
+ ///
+ public class RecipeMaterialUpdateInput : RecipeMaterialDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class RecipeMaterialDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 不分页
+ ///
+ public class RecipeMaterialQueryInput
+ {
+ ///
+ /// 配方Id
+ ///
+ public string RecipesId { get; set; }
+ }
+ ///
+ /// 分页
+ ///
+ public class RecipeMaterialQueryPageInput : RequestPage
+ {
+
+ }
+ ///
+ /// 输出
+ ///
+ public class RecipeMaterialOutput : RecipeMaterialDto
+ {
+ ///
+ /// 配方名称
+ ///
+ public string RecipesName { get; set; }
+ ///
+ /// 物料名称
+ ///
+ public string MaterialName { get; set; }
+ ///
+ /// 物料编码
+ ///
+ public string MaterialCode { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipesInfoDto.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipesInfoDto.cs
new file mode 100644
index 0000000..f952324
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Dtos/RecipesInfoDto.cs
@@ -0,0 +1,66 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方Dto类
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:12:06
+ /// 描 述 :
+ ///
+ public class RecipesInfoDto : RecipesInfoEntity
+ {
+
+ }
+ ///
+ /// 增加
+ ///
+ public class RecipesInfoAddInput : RecipesInfoDto
+ {
+
+ }
+ ///
+ /// 更新
+ ///
+ public class RecipesInfoUpdateInput : RecipesInfoDto
+ {
+
+ }
+ ///
+ /// 删除
+ ///
+ public class RecipesInfoDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// 分页
+ ///
+ public class RecipesInfoQueryPageInput : RequestPage
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 分组id
+ ///
+ public string GroupId { get; set; }
+ }
+ ///
+ /// 输出
+ ///
+ public class RecipesInfoOutput : RecipesInfoDto
+ {
+ ///
+ /// 分组Id
+ ///
+ public string GroupId { get; set; }
+ }
+
+ public class RecipesGroupInput : RecipesGroupEntity
+ {
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/GroupInfoService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/GroupInfoService.cs
new file mode 100644
index 0000000..c7b1a8a
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/GroupInfoService.cs
@@ -0,0 +1,97 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :分组信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/3/10 14:03:06
+ /// 描 述 :
+ ///
+ [ApiDescriptionSettings(Name = "GroupInfo", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class GroupInfoService : IGroupInfoService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public GroupInfoService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(GroupInfoAddInput input)
+ {
+ GroupInfoEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(GroupInfoDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x=>x.Id==input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync();
+ GroupInfoOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpPost, AllowAnonymous]
+ public async Task> List()
+ {
+ var entity = await _dbContext.Queryable().ToListAsync();
+ List output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(GroupInfoQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(GroupInfoUpdateInput input)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x=>x.Id==input.Id);
+ if (entity == null)
+ {
+ throw Oops.Bah("数据不存在!");
+ }
+ entity = input.Adapt();
+ var res = await _dbContext.Updateable(entity).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IGroupInfoService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IGroupInfoService.cs
new file mode 100644
index 0000000..4db6760
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IGroupInfoService.cs
@@ -0,0 +1,43 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :分组信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/10 14:03:21
+ /// 描 述 :
+ ///
+ public interface IGroupInfoService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(GroupInfoAddInput input);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(GroupInfoDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(GroupInfoUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List();
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(GroupInfoQueryPageInput input);
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipeMaterialService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipeMaterialService.cs
new file mode 100644
index 0000000..b5f6c3d
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipeMaterialService.cs
@@ -0,0 +1,49 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方物料服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 18:33:18
+ /// 描 述 :
+ ///
+ public interface IRecipeMaterialService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(RecipeMaterialAddInput input);
+ ///
+ /// 批量增加
+ ///
+ ///
+ ///
+ Task BatchAdd(List inputs);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(RecipeMaterialDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(RecipeMaterialUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List(RecipeMaterialQueryInput input);
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(RecipeMaterialQueryPageInput input);
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipesInfoService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipesInfoService.cs
new file mode 100644
index 0000000..bb6bf5c
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/IRecipesInfoService.cs
@@ -0,0 +1,54 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 18:33:18
+ /// 描 述 :
+ ///
+ public interface IRecipesInfoService
+ {
+ ///
+ /// 增加
+ ///
+ ///
+ Task Add(RecipesInfoAddInput input);
+ ///
+ /// 移除
+ ///
+ ///
+ Task Del(RecipesInfoDelInput input);
+ ///
+ /// 更新
+ ///
+ ///
+ Task Update(RecipesInfoUpdateInput input);
+ ///
+ /// 不分页列表
+ ///
+ ///
+ Task> List();
+ ///
+ /// 分页列表
+ ///
+ ///
+ Task> PagedList(RecipesInfoQueryPageInput input);
+ ///
+ /// 下拉列表
+ ///
+ ///
+ Task SelectList();
+ ///
+ /// 查询单条
+ ///
+ ///
+ ///
+ Task Detail(string Id);
+ ///
+ /// 更改物料分组
+ ///
+ ///
+ ///
+ Task ChangeGroup(RecipesGroupInput input);
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipeMaterialService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipeMaterialService.cs
new file mode 100644
index 0000000..58e69be
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipeMaterialService.cs
@@ -0,0 +1,131 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :配方物料服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :配方物料数据维护
+ ///
+ [ApiDescriptionSettings(Name = "RecipeMaterial", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class RecipeMaterialService : IRecipeMaterialService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public RecipeMaterialService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(RecipeMaterialAddInput input)
+ {
+ RecipeMaterialEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 批量增加
+ ///
+ ///
+ ///
+ ///
+ public async Task BatchAdd(List inputs)
+ {
+ bool result = false;
+ List entitys = inputs.Adapt>();
+ try
+ {
+ _dbContext.Ado.BeginTran();
+ await _dbContext.Deleteable().Where(x => x.RecipesId == inputs[0].RecipesId).ExecuteCommandAsync();
+ await _dbContext.Insertable(entitys).ExecuteCommandAsync();
+ _dbContext.Ado.CommitTran();
+ result = true;
+ }
+ catch (Exception ex)
+ {
+ _dbContext.Ado.RollbackTran();
+ throw Oops.Bah("保存失败!");
+ }
+ return result;
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(RecipeMaterialDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x => x.Id == Id);
+ RecipeMaterialOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpPost,AllowAnonymous]
+ public async Task> List(RecipeMaterialQueryInput input)
+ {
+ var output = await _dbContext.Queryable()
+ .LeftJoin((a,b)=>a.RecipesId==b.Id)
+ .LeftJoin((a,b,c)=>a.MaterialId==c.Id)
+ .WhereIF(!string.IsNullOrEmpty(input.RecipesId),(a,b,c)=>a.RecipesId==input.RecipesId)
+ .Select((a,b,c)=>new RecipeMaterialOutput
+ {
+ MaterialName = c.Name,
+ MaterialCode = c.Code,
+ MaterialId = c.Id,
+ RecipesId = a.RecipesId,
+ RecipesName = b.Name,
+ Sort = a.Sort,
+ Time = a.Time,
+ Outlet = a.Outlet
+ })
+ .ToListAsync();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(RecipeMaterialQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(RecipeMaterialUpdateInput input)
+ {
+ var res = await _dbContext.Updateable().ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipesInfoService.cs b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipesInfoService.cs
new file mode 100644
index 0000000..5cae33a
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/RecipesService/Services/RecipesInfoService.cs
@@ -0,0 +1,132 @@
+namespace BPA.MES.Base.Application.Entitys
+{
+ ///
+ /// 名 称 :物料服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :店铺数据维护
+ ///
+ [ApiDescriptionSettings(Name = "RecipesInfo", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class RecipesInfoService : IRecipesInfoService, ITransient, IDynamicApiController
+ {
+ private readonly ISqlSugarClient _dbContext;
+ public RecipesInfoService(ISqlSugarClient db)
+ {
+ _dbContext = db;
+ }
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Add(RecipesInfoAddInput input)
+ {
+ var r_entity = await _dbContext.Queryable().FirstAsync(x => x.Name == input.Name);
+ if (r_entity != null)
+ {
+ throw Oops.Bah("名称已存在!");
+ }
+ RecipesInfoEntity entity = input.Adapt();
+ return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Del(RecipesInfoDelInput input)
+ {
+ var res = await _dbContext.Deleteable().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ ///
+ /// 详情
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task Detail(string Id)
+ {
+ var entity = await _dbContext.Queryable().FirstAsync(x => x.Id == Id);
+ RecipesInfoOutput output = entity.Adapt();
+ return output;
+ }
+ ///
+ /// 列表
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task> List()
+ {
+ var entity = await _dbContext.Queryable().ToListAsync();
+ List output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task> PagedList(RecipesInfoQueryPageInput input)
+ {
+ var entity = await _dbContext.Queryable()
+ .LeftJoin((a,b)=>a.Id==b.RecipesId)
+ .WhereIF(!string.IsNullOrEmpty(input.Name), (a, b) => a.Name.Contains(input.Name))
+ .WhereIF(!string.IsNullOrEmpty(input.GroupId), (a, b) => b.GroupId==input.GroupId)
+ .Select()
+ .ToPagedListAsync(input.PageIndex, input.PageSize);
+ SqlSugarPagedList output = entity.Adapt>();
+ return output;
+ }
+ ///
+ /// 下拉
+ ///
+ ///
+ ///
+ [HttpGet]
+ public async Task SelectList()
+ {
+ var entity = await _dbContext.Queryable().Select(x => new
+ {
+ key = x.Id,
+ value = x.Name
+ }).ToListAsync();
+ return entity;
+ }
+ ///
+ /// 更新
+ ///
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Update(RecipesInfoUpdateInput input)
+ {
+ var entity = await _dbContext.Queryable().Where(x => x.Id == input.Id).FirstAsync();
+ entity = input.Adapt();
+ var res = await _dbContext.Updateable(entity).ExecuteCommandHasChangeAsync();
+ return res;
+ }
+ [HttpPost]
+ public async Task ChangeGroup(RecipesGroupInput input)
+ {
+ var isExit = await _dbContext.Queryable().FirstAsync(x=>x.RecipesId==input.RecipesId);
+ var entity = input.Adapt();
+ if (isExit==null)
+ {
+ return await _dbContext.Insertable(entity).ExecuteCommandIdentityIntoEntityAsync();
+ }
+ else
+ {
+ return await _dbContext.Updateable(entity).Where(x => x.RecipesId == input.RecipesId).ExecuteCommandHasChangeAsync();
+ }
+
+ }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountInput.cs
new file mode 100644
index 0000000..60aebc1
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountInput.cs
@@ -0,0 +1,94 @@
+///
+/// 名 称 :[账号信息]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述 :
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [账号信息]入参基础
+ ///
+ public class AccountInput
+ {
+ ///
+ /// 账号
+ ///
+ /// admin
+ public string Account { get; set; }
+ ///
+ /// 密码
+ ///
+ /// e10adc3949ba59abbe56e057f20f883e
+ public string Pwd { get; set; }
+
+ }
+ ///
+ /// [账号信息]添加入参
+ ///
+ public class AccountAddInput : AccountInput
+ {
+ ///
+ /// 员工编号
+ ///
+ public string TB_Employee_Id { get; set; }
+ }
+ ///
+ /// [账号信息]修改入参
+ ///
+ public class AccountUpdateInput : AccountInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 员工编号
+ ///
+ public string TB_Employee_Id { get; set; }
+ }
+ ///
+ /// [账号信息]修改密码
+ ///
+ public class AccountUpdatePwdInput: AccountInput
+ {
+ ///
+ /// 新密码
+ ///
+ public string NewPwd { get; set; }
+ }
+ ///
+ /// [账号信息]删除入参
+ ///
+ public class AccountDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [账号信息]普通查询入参
+ ///
+ public class AccountQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [账号信息]分页查询入参
+ ///
+ public class AccountQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 设备名称
+ ///
+ public string Name { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountOutput.cs
new file mode 100644
index 0000000..ea06298
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AccountOutput.cs
@@ -0,0 +1,29 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :[账号信息]输出实体
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/3 10:22:37
+ /// 描 述 :
+ ///
+ public class AccountOutput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get;set; }
+ ///
+ /// 账号
+ ///
+ public string Account { get; set; }
+ ///
+ /// 密码
+ ///
+ public string Pwd { get; set; }
+ ///
+ /// 员工id
+ ///
+ public string TB_Employee_Id { get; set; }
+
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleInput.cs
new file mode 100644
index 0000000..2584501
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleInput.cs
@@ -0,0 +1,134 @@
+///
+/// 名 称 :[授权模块]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [授权模块]入参基础
+ ///
+ public class AuthorModuleInput
+ {
+ ///
+ /// 子级列表
+ ///
+ public List? Childrens { get; set; }
+ ///
+ /// 拥有权限
+ ///
+ public bool HasPermission { get; set; }
+ ///
+ /// 模块编号
+ ///
+ public string Id { get; set; }
+
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+
+ ///
+ /// 子集
+ ///
+ public List? Children { get; set; }
+ }
+ ///
+ /// [授权模块]添加入参
+ ///
+ public class AuthorModuleAddInput : AuthorModuleInput
+ {
+
+ }
+
+ ///
+ /// [授权模块]批量授权信息
+ ///
+ public class AuthorModulesAddInput
+ {
+ ///
+ /// 模板名称
+ ///
+ public string TemplateName { set; get; }
+
+ ///
+ /// 授权模块
+ ///
+ public List ModuleIds { get; set; }
+ }
+
+ ///
+ /// [授权模块]修改入参
+ ///
+ public class AuthorModuleUpdateInput : AuthorModuleInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]删除入参
+ ///
+ public class AuthorModuleDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]普通查询入参
+ ///
+ public class AuthorModuleQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]分页查询入参
+ ///
+ public class AuthorModuleQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemInput.cs
new file mode 100644
index 0000000..0efce1f
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemInput.cs
@@ -0,0 +1,70 @@
+///
+/// 名 称 :[账号信息]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [账号信息]入参基础
+ ///
+ public class AuthorModuleItemInput
+ {
+ ///
+ /// 模板Id
+ ///
+ public string TB_TemplateId { get; set; }
+ ///
+ /// 模块Id
+ ///
+ public List TB_ModuleIds { get; set; }
+ }
+ ///
+ /// [账号信息]添加入参
+ ///
+ public class AuthorModuleItemAddInput : AuthorModuleItemInput
+ {
+
+ }
+ ///
+ /// [账号信息]修改入参
+ ///
+ public class AuthorModuleItemUpdateInput : AuthorModuleItemInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [账号信息]删除入参
+ ///
+ public class AuthorModuleItemDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [账号信息]普通查询入参
+ ///
+ public class AuthorModuleItemQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [账号信息]分页查询入参
+ ///
+ public class AuthorModuleItemQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemOutput.cs
new file mode 100644
index 0000000..8334c97
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleItemOutput.cs
@@ -0,0 +1,12 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:20:51
+ /// 描 述 :
+ ///
+ public class AuthorModuleItemOutput
+ {
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleOutput.cs
new file mode 100644
index 0000000..2836c5e
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorModuleOutput.cs
@@ -0,0 +1,68 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :授权模块输出
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:18:24
+ /// 描 述 :
+ ///
+ public class AuthorModuleOutput
+ {
+ ///
+ /// 子级列表
+ ///
+ public List? Childrens { get; set; }
+ ///
+ /// 拥有权限
+ ///
+ public bool HasPermission { get; set; }
+ ///
+ /// 模块编号
+ ///
+ public string Id { get; set; }
+
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+
+ ///
+ /// 子集
+ ///
+ public List? Children { get; set; }
+ }
+
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeInput.cs
new file mode 100644
index 0000000..4562531
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeInput.cs
@@ -0,0 +1,97 @@
+///
+/// 名 称 :[授权信息]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [授权信息]入参基础
+ ///
+ public class AuthorizeInput
+ {
+ ///
+ /// 关键字
+ ///
+ public string Keyword { get; set; }
+ ///
+ /// 模板Id
+ ///
+ public string TemplateId { get; set; }
+ ///
+ /// 授权类型 1:用户,2:角色
+ ///
+ public int Type { get; set; }
+ ///
+ /// 授权对象
+ ///
+ public List? ObjectIds { get; set; }
+ }
+ ///
+ /// [授权信息]添加入参
+ ///
+ public class AuthorizeAddInput : AuthorizeInput
+ {
+
+ }
+ ///
+ /// [授权信息]角色授权入参
+ ///
+ public class AuthorMapAddInput
+ {
+ ///
+ /// 模板编号
+ ///
+ public List TemplateIds { get; set; }
+ ///
+ /// 授权类型 1用户 2角色
+ ///
+
+ public int AuthorizeType { get; set; }
+ ///
+ /// 授权对象
+ ///
+ public string ObjectId { get; set; }
+ }
+ ///
+ /// [授权信息]修改入参
+ ///
+ public class AuthorizeUpdateInput : AuthorizeInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]删除入参
+ ///
+ public class AuthorizeDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]普通查询入参
+ ///
+ public class AuthorizeQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]分页查询入参
+ ///
+ public class AuthorizeQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeOutput.cs
new file mode 100644
index 0000000..7ef3dc9
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeOutput.cs
@@ -0,0 +1,27 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :授权信息输出
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:24:21
+ /// 描 述 :
+ ///
+ public class AuthorizeOutput
+ {
+ ///
+ /// 编号
+ ///
+ public string Id { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+
+ ///
+ /// 已授权
+ ///
+ public bool IsAuthorized { get; set; }
+ }
+
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateInput.cs
new file mode 100644
index 0000000..8f6111d
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateInput.cs
@@ -0,0 +1,74 @@
+///
+/// 名 称 :[授权模块]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [授权模块]入参基础
+ ///
+ public class AuthorizeTemplateInput
+ {
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 描述
+ ///
+ public string Remark { get; set; }
+ }
+ ///
+ /// [授权模块]添加入参
+ ///
+ public class AuthorizeTemplateAddInput : AuthorizeTemplateInput
+ {
+
+ }
+ ///
+ /// [授权模块]修改入参
+ ///
+ public class AuthorizeTemplateUpdateInput : AuthorizeTemplateInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]删除入参
+ ///
+ public class AuthorizeTemplateDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]普通查询入参
+ ///
+ public class AuthorizeTemplateQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权模块]分页查询入参
+ ///
+ public class AuthorizeTemplateQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 关键字
+ ///
+ public string Keyword { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateOutput.cs
new file mode 100644
index 0000000..17e228d
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/AuthorizeTemplateOutput.cs
@@ -0,0 +1,24 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// Ȩģ
+ /// yangxiao
+ /// ʱ 2023/1/4 9:48:24
+ ///
+ ///
+ public class AuthorizeTemplateOutput
+ {
+ ///
+ ///
+ ///
+ public string Id { get; set; }
+ ///
+ ///
+ ///
+ public string Name { get; set; }
+ ///
+ ///
+ ///
+ public string Remark { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeInput.cs
new file mode 100644
index 0000000..c665bbc
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeInput.cs
@@ -0,0 +1,141 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/5 15:15:50
+ /// 描 述 :
+ ///
+ public class EmployeeInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ ///
+ /// 排序
+ ///
+ public int Sort { get; set; }
+ ///
+ /// 员工姓名
+ ///
+
+ public string Name { get; set; }
+ ///
+ /// 1男2女
+ ///
+
+ public int Gender { get; set; }
+ ///
+ /// 手机号
+ ///
+
+ public string Phone { get; set; }
+ ///
+ /// 员工IC卡
+ ///
+
+ public string ICCard { get; set; }
+ ///
+ /// 头像
+ ///
+
+ public string Header { get; set; }
+ ///
+ /// 入职时间
+ ///
+
+ public DateTime JoinDate { get; set; }
+
+ ///
+ /// 离职时间
+ ///
+ public DateTime? OutDate { get; set; }
+ ///
+ /// 身份证
+ ///
+
+ public string IdCard { get; set; }
+ ///
+ /// 1在职2出差3离职
+ ///
+
+ public int Stutas { get; set; }
+ ///
+ /// 角色Id
+ ///
+ public string TB_RoleId { get; set; }
+ ///
+ /// 是否存在账号
+ ///
+ public bool IsAccount { get; set; }
+ ///
+ /// 账号
+ ///
+ public string Account { get; set; }
+ }
+
+ ///
+ /// [授权信息]添加入参
+ ///
+ public class EmployeeAddInput : EmployeeInput
+ {
+
+ }
+ ///
+ /// [授权信息]修改入参
+ ///
+ public class EmployeeUpdateInput : EmployeeInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]删除入参
+ ///
+ public class EmployeeDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]普通查询入参
+ ///
+ public class EmployeeQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [授权信息]分页查询入参
+ ///
+ public class EmployeeQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 关键字
+ ///
+ public string Keyword { get; set; }
+ ///
+ /// 状态
+ ///
+ public int Status { get; set; }
+ ///
+ /// 性别
+ ///
+ public int Gender { get; set; }
+ ///
+ /// 入职时间
+ ///
+ public DateTime? JoinDate { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeOutput.cs
new file mode 100644
index 0000000..be0e839
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/EmployeeOutput.cs
@@ -0,0 +1,69 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :[员工信息]
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/5 15:18:02
+ /// 描 述 :
+ ///
+ public class EmployeeOutput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ ///
+ /// 排序
+ ///
+ public int Sort { get; set; }
+ ///
+ /// 员工姓名
+ ///
+ public string Name { get; set; }
+ ///
+ /// 1男2女
+ ///
+
+ public int Gender { get; set; }
+ ///
+ /// 手机号
+ ///
+ public string Phone { get; set; }
+ ///
+ /// 员工IC卡
+ ///
+ public string ICCard { get; set; }
+ ///
+ /// 头像
+ ///
+ public string Header { get; set; }
+ ///
+ /// 入职时间
+ ///
+ public DateTime JoinDate { get; set; }
+ ///
+ /// 离职时间
+ ///
+ public DateTime? OutDate { get; set; }
+ ///
+ /// 身份证
+ ///
+ public string IdCard { get; set; }
+ ///
+ /// 1在职2出差3离职
+ ///
+ public int Stutas { get; set; }
+ ///
+ /// 角色Id
+ ///
+ public string TB_RoleId { get; set; }
+ ///
+ /// 是否存在账号
+ ///
+ public bool IsAccount { get; set; }
+ ///
+ /// 账号
+ ///
+ public string Account { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/Mapper.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/Mapper.cs
new file mode 100644
index 0000000..8487bf4
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/Mapper.cs
@@ -0,0 +1,8 @@
+namespace BPA.MES.Base.Application;
+
+public class Mapper : IRegister
+{
+ public void Register(TypeAdapterConfig config)
+ {
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleInput.cs
new file mode 100644
index 0000000..cad95fe
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleInput.cs
@@ -0,0 +1,97 @@
+///
+/// 名 称 :[模块信息]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [模块信息]入参基础
+ ///
+ public class ModuleInput
+ {
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+ }
+ ///
+ /// [模块信息]添加入参
+ ///
+ public class ModuleAddInput : ModuleInput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ }
+ ///
+ /// [模块信息]修改入参
+ ///
+ public class ModuleUpdateInput : ModuleInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [模块信息]删除入参
+ ///
+ public class ModuleDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [模块信息]普通查询入参
+ ///
+ public class ModuleQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [模块信息]分页查询入参
+ ///
+ public class ModuleQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleOutput.cs
new file mode 100644
index 0000000..ae5b46b
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleOutput.cs
@@ -0,0 +1,48 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 9:48:24
+ /// 描 述 :
+ ///
+ public class ModuleOutput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeInput.cs
new file mode 100644
index 0000000..9113544
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeInput.cs
@@ -0,0 +1,108 @@
+///
+/// 名 称 :[菜单模块树]实体基础
+/// 创 建 人 :yangxiao
+/// 创建时间 : 2023/1/3 10:21:42
+/// 描 述
+///
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// [菜单模块树]入参基础
+ ///
+ public class ModuleTreeInput
+ {
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+
+ ///
+ /// 子集
+ ///
+ public List Children { get; set; }
+ }
+ ///
+ /// [菜单模块树]添加入参
+ ///
+ public class ModuleTreeAddInput : ModuleTreeInput
+ {
+
+ }
+ ///
+ /// [菜单模块树]修改入参
+ ///
+ public class ModuleTreeUpdateInput : ModuleTreeInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [菜单模块树]删除入参
+ ///
+ public class ModuleTreeDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [菜单模块树]普通查询入参
+ ///
+ public class ModuleTreeQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 名称
+ ///
+ public string Name { get; set; }
+ }
+ ///
+ /// [菜单模块树]分页查询入参
+ ///
+ public class ModuleTreeQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeOutput.cs
new file mode 100644
index 0000000..a8771bd
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/ModuleTreeOutput.cs
@@ -0,0 +1,59 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :[菜单模块树]输出
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 16:14:43
+ /// 描 述 :
+ ///
+ public class ModuleTreeOutput
+ {
+ ///
+ /// 模块编号
+ ///
+ public string Id { get; set; }
+
+ ///
+ /// 类别 1:菜单,2:视图,3:功能
+ ///
+ public int Category { get; set; }
+
+ ///
+ /// 菜单打开方式 0:框架内嵌,1:新开页面
+ ///
+ public int OpenType { get; set; }
+
+ ///
+ /// 父级编号
+ ///
+ public string ParentId { get; set; }
+
+ ///
+ /// 名称
+ ///
+ public string Name { set; get; }
+
+ ///
+ /// 图标
+ ///
+ public string Icon { set; get; }
+
+ ///
+ /// 地址
+ ///
+ public string Url { set; get; }
+ ///
+ /// 排序码
+ ///
+ public int Sort { set; get; }
+ ///
+ /// 启用禁用
+ ///
+ public bool IsDisabled { get; set; }
+
+ ///
+ /// 子集
+ ///
+ public List Children { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleInput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleInput.cs
new file mode 100644
index 0000000..69e5a12
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleInput.cs
@@ -0,0 +1,71 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :[角色信息]
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 9:43:25
+ /// 描 述 :
+ ///
+ public class RoleInput
+ {
+ ///
+ /// 角色名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 角色描述
+ ///
+ public string Description { get; set; }
+ }
+ ///
+ /// [角色信息]添加入参
+ ///
+ public class RoleAddInput : RoleInput
+ {
+
+ }
+ ///
+ /// [角色信息]修改入参
+ ///
+ public class RoleUpdateInput : RoleInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [角色信息]删除入参
+ ///
+ public class RoleDelInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [角色信息]普通查询入参
+ ///
+ public class RoleQueryInput
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ }
+ ///
+ /// [角色信息]分页查询入参
+ ///
+ public class RoleQueryPageInput : RequestPage
+ {
+ ///
+ /// 主键
+ ///
+ public string? Id { get; set; }
+ ///
+ /// 关键字
+ ///
+ public string Keyword { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleOutput.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleOutput.cs
new file mode 100644
index 0000000..423080d
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/RoleOutput.cs
@@ -0,0 +1,24 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :角色信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 9:43:42
+ /// 描 述 :
+ ///
+ public class RoleOutput
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ ///
+ /// 角色名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 角色描述
+ ///
+ public string Description { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/UserRoleCacheDto.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/UserRoleCacheDto.cs
new file mode 100644
index 0000000..112a260
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Dtos/UserRoleCacheDto.cs
@@ -0,0 +1,62 @@
+
+
+
+
+
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :个人角色信息
+ /// 创 建 人 :yangxiao
+ /// 创建时间 : 2023/1/4 17:46:47
+ /// 描 述 :
+ ///
+ public class UserRoleCacheDto
+ {
+ public List AuthorizationCodes { get; set; }
+ public List Menus { get; set; }
+ }
+
+///
+/// 个人菜单信息
+///
+public class UserMenu : ITree
+ {
+ ///
+ /// 主键
+ ///
+ public string Id { get; set; }
+ ///
+ /// 菜单名称
+ ///
+ public string Name { get; set; }
+ ///
+ /// 菜单地址
+ ///
+ public string Url { get; set; }
+ ///
+ /// 菜单图标
+ ///
+ public string Icon { get; set; }
+ ///
+ /// 菜单子项
+ ///
+ public List Children { get; set; }
+ ///
+ /// 父级Id
+ ///
+ public string ParentId { get; set; }
+ ///
+ /// 分页信息
+ ///
+ public string Sort { get; set; }
+ ///
+ /// 打开类型
+ ///
+ public int OpenType { get; set; }
+ ///
+ /// 类别
+ ///
+ public int Category { get; set; }
+ }
+}
diff --git a/backend/BPA.MES.Base.Application/Services/SystemService/Services/AuthorizeService.cs b/backend/BPA.MES.Base.Application/Services/SystemService/Services/AuthorizeService.cs
new file mode 100644
index 0000000..db1f84c
--- /dev/null
+++ b/backend/BPA.MES.Base.Application/Services/SystemService/Services/AuthorizeService.cs
@@ -0,0 +1,645 @@
+namespace BPA.MES.Base.Application
+{
+ ///
+ /// 名 称 :授权服务
+ /// 创 建 人 :yangxiao
+ /// 创建时间 :2023/3/2 16:11:04
+ /// 描 述 :授权服务数据维护
+ ///
+ [ApiDescriptionSettings(Name = "Authorize", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
+ public class AuthorizeService : IAuthorizeService, ITransient, IDynamicApiController
+ {
+ private readonly IHttpContextAccessor _httpContextAccessor;
+ private readonly ISqlSugarClient db;
+ private readonly ISqlSugarClient _dbContext;
+ public AuthorizeService(ISqlSugarClient db, IHttpContextAccessor httpContextAccessor)
+ {
+ this.db = db;
+ _dbContext = db;
+ _httpContextAccessor = httpContextAccessor;
+ }
+ #region 当前用户
+ ///
+ /// 登录
+ ///
+ ///
+ ///
+
+ [AllowAnonymous]
+ public async Task Login(AccountInput input)
+ {
+ var Info = await db.Queryable().FirstAsync(t => t.Account == input.Account && t.Pwd == input.Pwd);
+ if (Info == null)
+ throw Oops.Bah("请输入正确的账号和密码");
+ var User = await db.Queryable().FirstAsync(t => t.Id == Info.EmployeeId);
+ if (User == null)
+ {
+ throw Oops.Bah("账号没有权限");
+ }
+ //return ResolveService().CreateAccessToken(new UserIdentity
+ //{
+ // Id = User.Id,
+ // UserName = User.Name,
+ // IsAdmin = User.IsAdmin,
+ //});
+
+ // 生成Token令牌
+ //var accessToken = await _jwtBearerManager.CreateTokenAdmin(user);
+ var accessToken = JWTEncryption.Encrypt(new Dictionary
+ {
+ {ClaimConst.CLAINM_USERID, User.Id},
+ {ClaimConst.CLAINM_NAME,User.Name},
+ {ClaimConst.CLAINM_ISAUTH,User.IsAdmin},
+ },20);
+ // 设置Swagger自动登录
+ _httpContextAccessor.HttpContext.SigninToSwagger(accessToken);
+ // 生成刷新Token令牌
+ var refreshToken =
+ JWTEncryption.GenerateRefreshToken(accessToken, 25);
+
+ _httpContextAccessor.HttpContext.Response.Headers["access-token"] = accessToken;
+ // 设置刷新Token令牌
+ _httpContextAccessor.HttpContext.Response.Headers["x-access-token"] = refreshToken;
+ return true;
+ }
+ ///
+ /// 获取个人信息
+ ///
+ ///
+ public async Task