Compare commits

...

No commits in common. 'master' and 'main' have entirely different histories.
master ... main

@ -1,51 +0,0 @@
# 该工作流用于构建 .NET 项目
# 更多信息参考https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
# 工作流名称
name: .NET
# 触发条件:指定事件触发工作流
on:
# 1. 当代码推送到 master 分支时触发
push:
branches: [ "master" ]
# 2. 当向 master 分支提交拉取请求PR时触发
pull_request:
branches: [ "master" ]
# 定义作业Job一个工作流可包含多个作业默认串行执行
jobs:
# 作业名称build构建
build:
# 作业运行环境:基于最新版 Ubuntu 系统
runs-on: ubuntu-latest
# 作业步骤:按顺序执行的具体操作
steps:
# 步骤1拉取代码仓库到运行环境
# 使用官方 actionactions/checkout@v4负责获取仓库源码
- uses: actions/checkout@v4
# 步骤2配置 .NET 环境
# 使用官方 actionactions/setup-dotnet@v4安装指定版本 .NET SDK
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
# 指定要安装的 .NET 版本9.0.x 表示最新的 9.0 系列版本)
dotnet-version: 9.0.x
# 步骤3还原项目依赖
# 执行 dotnet restore 命令,恢复项目所需的 NuGet 包
- name: Restore dependencies
run: dotnet restore ./src/KopSoftWms
# 步骤4构建项目
# 执行 dotnet build 命令构建项目,--no-restore 表示跳过依赖还原(已单独执行过)
- name: Build
run: dotnet build ./src/KopSoftWms --no-restore
# 步骤5测试项目已注释暂不执行
# 执行 dotnet test 命令运行单元测试,--no-build 表示跳过构建(已单独执行过)
# --verbosity normal 表示输出普通详细程度的日志
# - name: Test
# run: dotnet test ./src/KopSoftWms --no-build --verbosity normal

331
.gitignore vendored

@ -1,331 +0,0 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
#[Ll]og/
# Visual Studio 2015/2017 cache/options directory
.vs/
#.vscode/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush
.cr/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/

@ -1,34 +0,0 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/KopSoftWms/bin/Debug/net9.0/KopSoftWms.dll",
"args": [],
"cwd": "${workspaceFolder}/src/KopSoftWms",
"stopAtEntry": false,
"launchBrowser": {
"enabled": true
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}

43
.vscode/tasks.json vendored

@ -1,43 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/KopSoftWms/KopSoftWms.csproj"
],
"problemMatcher": "$tsc"
},
{
"label": "publish",
"command":"dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/KopSoftWms/KopSoftWms.csproj",
],
"problemMatcher": "$tsc",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"${workspaceFolder}/src/KopSoftWms/KopSoftWms.csproj"
],
"options": {
"cwd": "${workspaceFolder}/src/KopSoftWms"
},
"problemMatcher": "$tsc"
}
]
}

@ -1,657 +0,0 @@
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 50739
Source Host : localhost:3306
Source Schema : kopsoftwms
Target Server Type : MySQL
Target Server Version : 50739
File Encoding : 65001
Date: 08/12/2022 20:46:25
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`DeptId` bigint(20) NOT NULL,
`DeptNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`DeptName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`DeptId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict` (
`DictId` bigint(20) NOT NULL,
`DictNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`DictName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`DictType` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`DictId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_dict
-- ----------------------------
-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log` (
`LogId` bigint(20) NOT NULL,
`LogType` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
`Url` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Browser` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
`LogIp` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`LogId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_log
-- ----------------------------
-- ----------------------------
-- Table structure for sys_menu_wms
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu_wms`;
CREATE TABLE `sys_menu_wms` (
`MenuId` bigint(20) NOT NULL,
`MenuName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`MenuUrl` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`MenuIcon` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`MenuParent` bigint(20) NULL DEFAULT NULL,
`Sort` int(11) NULL DEFAULT NULL,
`Status` tinyint(4) NULL DEFAULT NULL COMMENT '启用1 禁用0',
`MenuType` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'menu btn',
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`MenuId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_menu_wms
-- ----------------------------
INSERT INTO `sys_menu_wms` VALUES (1, '系统管理', '#', NULL, -1, 1, 1, 'menu', 1, NULL, NULL, '2018-09-24 12:10:42', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (2, '用户管理', '/User', NULL, 1, 4, 1, 'menu', 1, NULL, NULL, '2018-09-24 12:12:56', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (3, '部门管理', '/Dept', NULL, 1, 3, 1, 'menu', 1, NULL, NULL, '2018-09-24 12:14:38', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (4, '角色管理', '/Role', NULL, 1, 2, 1, 'menu', 1, NULL, NULL, '2018-09-24 12:14:57', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (5, '数据字典', '/Dict', NULL, 1, 5, 1, 'menu', 1, NULL, NULL, '2018-10-21 14:44:30', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (6, '基础资料', '#', NULL, -1, 6, 1, 'menu', 1, NULL, NULL, '2018-09-24 12:19:07', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (7, '物料管理', '/Material', NULL, 6, 7, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:50:37', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (8, '客户管理', '/Customer', NULL, 6, 8, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:50:44', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (9, '供应商管理', '/Supplier', NULL, 6, 9, 1, 'menu', 1, NULL, NULL, '2018-10-21 10:25:53', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (10, '承运商管理', '/Carrier', NULL, 6, 10, 1, 'menu', 1, NULL, NULL, '2018-10-21 10:25:58', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (11, '仓库管理', '#', NULL, -1, 11, 1, 'menu', 1, NULL, NULL, '2018-12-18 23:01:36', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (12, '仓库管理', '/Warehouse', NULL, 11, 12, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:48:09', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (13, '库区管理', '/ReservoirArea', NULL, 11, 13, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:49:11', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (14, '货架管理', '/StorageRack', '', 11, 14, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:49:14', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (15, '设备管理', '#', '', -1, 15, 1, 'menu', 1, NULL, NULL, '2018-11-25 22:32:33', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (16, '设备单元', '/Device', NULL, 15, 16, 1, 'menu', 1, NULL, NULL, '2018-11-26 22:28:25', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (17, '生产管理', '#', '', -1, 17, 1, 'menu', 1, NULL, NULL, '2018-11-30 21:22:54', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (18, '生产工单', '/ProductionOrder', NULL, 17, 18, 1, 'menu', 1, NULL, NULL, '2018-11-30 21:24:22', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (19, '工艺管理', '#', NULL, -1, 19, 1, 'menu', 1, NULL, NULL, '2018-12-06 15:43:58', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (20, 'BOM管理', '/BOM', NULL, 19, 20, 1, 'menu', 1, NULL, NULL, '2018-12-06 15:44:58', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (21, '工艺路线', '/Routing', NULL, 19, 21, 1, 'menu', 1, NULL, NULL, '2018-12-17 23:04:45', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (22, '日志管理', '#', '', -1, 22, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:50:51', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (23, '系统日志', '/Log', NULL, 22, 23, 1, 'menu', 1, NULL, NULL, '2018-10-09 08:50:54', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (24, '入库管理', '/StockIn', NULL, 11, 24, 1, 'menu', 1, NULL, NULL, '2018-12-19 14:09:08', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (25, '条码系统', '#', NULL, -1, 25, 1, 'menu', 1, NULL, NULL, '2018-12-26 14:26:25', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (26, '报表管理', '#', NULL, -1, 26, 1, 'menu', 1, NULL, NULL, '2018-12-26 14:29:30', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (27, '出库管理', '/StockOut', NULL, 11, 27, 1, 'menu', 1, NULL, NULL, '2019-01-22 11:06:17', NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (28, '设备报修', '/Devicerepair', NULL, 15, 28, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (29, '库存查询', '/Inventory', NULL, 11, 29, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (30, '库存记录', '/InventoryRecord', NULL, 11, 30, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (31, '登录统计', '/Log/Bar', NULL, 22, 31, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (32, '发货记录', '/Delivery', NULL, 11, 32, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sys_menu_wms` VALUES (33, '库存移动', '/InventoryMove', NULL, 11, 33, 1, 'menu', 1, NULL, NULL, NULL, NULL, NULL);
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`RoleId` bigint(20) NOT NULL,
`RoleName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`RoleType` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'admin #',
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (494712986628259840, '系统管理员', 'admin', 1, '系统管理员', 491786087098744832, '2018-09-27 11:32:43', 504990858139926528, '2019-03-03 20:46:05');
-- ----------------------------
-- Table structure for sys_rolemenu
-- ----------------------------
DROP TABLE IF EXISTS `sys_rolemenu`;
CREATE TABLE `sys_rolemenu` (
`RoleMenuId` bigint(20) NOT NULL,
`RoleId` bigint(20) NULL DEFAULT NULL,
`MenuId` bigint(20) NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`RoleMenuId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_rolemenu
-- ----------------------------
INSERT INTO `sys_rolemenu` VALUES (494712986762477568, 494712986628259840, 1, 491786087098744832, '2018-09-27 11:32:47', 491786087098744832, '2018-12-11 22:26:00');
INSERT INTO `sys_rolemenu` VALUES (494712986762477569, 494712986628259840, 2, 491786087098744832, '2018-09-27 11:32:47', 491786087098744832, '2018-12-11 22:26:00');
INSERT INTO `sys_rolemenu` VALUES (494712986762477570, 494712986628259840, 3, 491786087098744832, '2018-09-27 11:32:47', 491786087098744832, '2018-12-11 22:26:00');
INSERT INTO `sys_rolemenu` VALUES (494712986762477571, 494712986628259840, 4, 491786087098744832, '2018-09-27 11:32:47', 491786087098744832, '2018-12-11 22:26:00');
INSERT INTO `sys_rolemenu` VALUES (494712986762477572, 494712986628259840, 5, 491786087098744832, '2018-09-27 11:32:47', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681041502208, 494712986628259840, 6, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681083445248, 494712986628259840, 7, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681137971200, 494712986628259840, 8, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681158942720, 494712986628259840, 9, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681188302848, 494712986628259840, 12, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:01');
INSERT INTO `sys_rolemenu` VALUES (499030681217662976, 494712986628259840, 10, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (499030681247023104, 494712986628259840, 11, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (499030681272188928, 494712986628259840, 13, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (499030681427378176, 494712986628259840, 14, 491786087098744832, '2018-10-09 09:29:46', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (503408458121347072, 494712986628259840, 15, 491786087098744832, '2018-10-21 11:25:29', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (503408458222010368, 494712986628259840, 16, 491786087098744832, '2018-10-21 11:25:29', 491786087098744832, '2018-12-11 22:26:02');
INSERT INTO `sys_rolemenu` VALUES (503408458251370496, 494712986628259840, 17, 491786087098744832, '2018-10-21 11:25:29', 491786087098744832, '2018-12-11 22:26:03');
INSERT INTO `sys_rolemenu` VALUES (503466471221886976, 494712986628259840, 18, 491786087098744832, '2018-10-21 15:16:01', 491786087098744832, '2018-12-11 22:26:03');
INSERT INTO `sys_rolemenu` VALUES (517164210220695552, 494712986628259840, 19, 504990858139926528, '2018-11-28 10:25:56', 491786087098744832, '2018-12-11 22:26:03');
INSERT INTO `sys_rolemenu` VALUES (517164210333941760, 494712986628259840, 20, 504990858139926528, '2018-11-28 10:25:56', 491786087098744832, '2018-12-11 22:26:03');
INSERT INTO `sys_rolemenu` VALUES (522056475653177344, 494712986628259840, 21, 491786087098744832, '2018-12-11 22:26:03', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (522056476315877376, 494712986628259840, 22, 491786087098744832, '2018-12-11 22:26:03', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (522056476953411584, 494712986628259840, 23, 491786087098744832, '2018-12-11 22:26:03', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (522056477603528704, 494712986628259840, 24, 491786087098744832, '2018-12-11 22:26:04', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (524603534847508480, 494712986628259840, 26, 504990858139926528, '2018-12-18 23:07:09', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (524603762120065024, 494712986628259840, 25, 504990858139926528, '2018-12-18 23:08:04', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (537140827936260096, 494712986628259840, 28, 504990858139926528, '2019-01-22 13:25:53', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (537141837408763904, 494712986628259840, 29, 504990858139926528, '2019-01-22 13:29:54', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (537141837408763905, 494712986628259840, 30, 504990858139926528, '2019-01-22 13:29:54', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (537177594374651904, 494712986628259840, 27, 504990858139926528, '2019-01-22 15:51:59', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (537507366317326336, 494712986628259840, 31, 504990858139926528, '2019-01-23 13:42:23', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (548367997115301888, 494712986628259840, 32, 504990858139926528, '2019-02-22 12:58:39', NULL, NULL);
INSERT INTO `sys_rolemenu` VALUES (551747124224589824, 494712986628259840, 33, 504990858139926528, '2019-03-03 20:46:05', NULL, NULL);
-- ----------------------------
-- Table structure for sys_serialnum
-- ----------------------------
DROP TABLE IF EXISTS `sys_serialnum`;
CREATE TABLE `sys_serialnum` (
`SerialNumberId` int(11) NOT NULL,
`SerialNumber` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`SerialCount` int(11) NULL DEFAULT NULL,
`TableName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表名',
`Prefix` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前缀',
`Digit` int(11) NULL DEFAULT NULL COMMENT '位数',
`Mantissa` int(11) NULL DEFAULT NULL COMMENT '尾数',
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`SerialNumberId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_serialnum
-- ----------------------------
INSERT INTO `sys_serialnum` VALUES (1, 'R20190301002520000001', 1, 'Wms_stockin', 'R', 22, 6, 1, '入库单', 1, '2019-01-07 11:16:09', 504990858139926528, '2019-03-01 00:25:20');
INSERT INTO `sys_serialnum` VALUES (2, 'C20190303212032000001', 1, 'Wms_stockout', 'C', 22, 6, 1, '出库单', 1, '2019-02-13 09:24:58', 504990858139926528, '2019-03-03 21:20:32');
INSERT INTO `sys_serialnum` VALUES (3, 'M20190304224033000002', 2, 'Wms_inventorymove', 'M', 22, 6, 1, '库存移动', 1, '2019-03-03 13:16:43', 504990858139926528, '2019-03-04 22:40:34');
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`UserId` bigint(20) NOT NULL,
`UserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`UserNickname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Pwd` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Sort` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Tel` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Mobile` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`Sex` tinyint(4) NULL DEFAULT NULL COMMENT '0男 1女',
`DeptId` bigint(20) NULL DEFAULT NULL,
`LoginIp` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`LoginDate` datetime NULL DEFAULT NULL,
`LoginTime` int(11) NULL DEFAULT NULL,
`IsEabled` tinyint(4) NULL DEFAULT NULL COMMENT '1 启用 0 禁用',
`IsDel` tinyint(4) NOT NULL COMMENT '1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
`RoleId` bigint(20) NULL DEFAULT NULL,
`HeadImg` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`UserId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (491786087098744832, 'admin', 'admin', '1616c059c4a731ede06e26d3373bdd54', NULL, 'william.yang@kopsoft.cn', '15262337653', NULL, 1, 0, '127.0.0.1', '2022-12-08 20:45:26', 1, 1, 1, '系统管理员', 491786087098744832, '2018-09-19 09:42:20', 491786087098744832, '2022-12-08 20:15:34', 494712986628259840, 'upload\\head\\666633556364425888df1a11bdc083da.jpg');
-- ----------------------------
-- Table structure for wms_delivery
-- ----------------------------
DROP TABLE IF EXISTS `wms_delivery`;
CREATE TABLE `wms_delivery` (
`DeliveryId` bigint(20) NOT NULL COMMENT '发货主键',
`StockOutId` bigint(20) NULL DEFAULT NULL COMMENT '出库单主表Id',
`CarrierId` bigint(20) NULL DEFAULT NULL COMMENT '承运商Id',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
`DeliveryDate` datetime NULL DEFAULT NULL COMMENT '发货日期',
`TrackingNo` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '快递单号',
PRIMARY KEY (`DeliveryId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_delivery
-- ----------------------------
-- ----------------------------
-- Table structure for wms_inventory
-- ----------------------------
DROP TABLE IF EXISTS `wms_inventory`;
CREATE TABLE `wms_inventory` (
`InventoryId` bigint(20) NOT NULL,
`MaterialId` bigint(20) NULL DEFAULT NULL,
`StoragerackId` bigint(20) NULL DEFAULT NULL,
`Qty` decimal(18, 2) NULL DEFAULT NULL,
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NOT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`InventoryId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_inventory
-- ----------------------------
-- ----------------------------
-- Table structure for wms_inventorymove
-- ----------------------------
DROP TABLE IF EXISTS `wms_inventorymove`;
CREATE TABLE `wms_inventorymove` (
`InventorymoveId` bigint(20) NOT NULL COMMENT '库存移动主键',
`InventorymoveNo` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库存移动编号',
`SourceStoragerackId` bigint(20) NULL DEFAULT NULL COMMENT '原货架Id',
`AimStoragerackId` bigint(20) NULL DEFAULT NULL COMMENT '目标货架',
`Status` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`InventorymoveId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_inventorymove
-- ----------------------------
-- ----------------------------
-- Table structure for wms_inventoryrecord
-- ----------------------------
DROP TABLE IF EXISTS `wms_inventoryrecord`;
CREATE TABLE `wms_inventoryrecord` (
`InventoryrecordId` bigint(20) NOT NULL,
`StockInDetailId` bigint(20) NULL DEFAULT NULL,
`Qty` decimal(18, 2) NULL DEFAULT NULL,
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NOT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`InventoryrecordId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_inventoryrecord
-- ----------------------------
-- ----------------------------
-- Table structure for wms_invmovedetail
-- ----------------------------
DROP TABLE IF EXISTS `wms_invmovedetail`;
CREATE TABLE `wms_invmovedetail` (
`MoveDetailId` bigint(20) NOT NULL COMMENT '主键',
`InventorymoveId` bigint(20) NULL DEFAULT NULL COMMENT '库存移动Id',
`Status` tinyint(4) NULL DEFAULT NULL,
`MaterialId` bigint(20) NULL DEFAULT NULL COMMENT '物料',
`PlanQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '计划数量',
`ActQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '实际数量',
`AuditinId` bigint(20) NULL DEFAULT NULL COMMENT '审核人',
`AuditinTime` datetime NULL DEFAULT NULL COMMENT '审核时间',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`MoveDetailId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_invmovedetail
-- ----------------------------
-- ----------------------------
-- Table structure for wms_material
-- ----------------------------
DROP TABLE IF EXISTS `wms_material`;
CREATE TABLE `wms_material` (
`MaterialId` bigint(20) NOT NULL,
`MaterialNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品编号',
`MaterialName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品名称',
`MaterialType` bigint(20) NULL DEFAULT NULL COMMENT '产品类型',
`Unit` bigint(20) NULL DEFAULT NULL COMMENT '单位',
`StoragerackId` bigint(20) NULL DEFAULT NULL COMMENT '默认所属货架',
`ReservoirAreaId` bigint(20) NULL DEFAULT NULL COMMENT '默认所属库区',
`WarehouseId` bigint(20) NULL DEFAULT NULL COMMENT '默认所属仓库',
`Qty` decimal(18, 0) NULL DEFAULT NULL COMMENT '安全库存',
`ExpiryDate` decimal(18, 0) NULL DEFAULT NULL COMMENT '有效期',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`MaterialId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_material
-- ----------------------------
-- ----------------------------
-- Table structure for wms_reservoirarea
-- ----------------------------
DROP TABLE IF EXISTS `wms_reservoirarea`;
CREATE TABLE `wms_reservoirarea` (
`ReservoirAreaId` bigint(20) NOT NULL COMMENT '主键',
`ReservoirAreaNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '库区编号',
`ReservoirAreaName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '库区名称',
`WarehouseId` bigint(20) NOT NULL COMMENT '所属仓库ID',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`ReservoirAreaId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_reservoirarea
-- ----------------------------
-- ----------------------------
-- Table structure for wms_stockin
-- ----------------------------
DROP TABLE IF EXISTS `wms_stockin`;
CREATE TABLE `wms_stockin` (
`StockInId` bigint(20) NOT NULL COMMENT '主键',
`StockInNo` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '入库单号',
`StockInType` bigint(20) NULL DEFAULT NULL COMMENT '入库类型',
`SupplierId` bigint(20) NULL DEFAULT NULL COMMENT '供应商',
`OrderNo` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单号',
`StockInStatus` tinyint(4) NULL DEFAULT NULL,
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`StockInId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_stockin
-- ----------------------------
-- ----------------------------
-- Table structure for wms_stockindetail
-- ----------------------------
DROP TABLE IF EXISTS `wms_stockindetail`;
CREATE TABLE `wms_stockindetail` (
`StockInDetailId` bigint(20) NOT NULL COMMENT '主键',
`StockInId` bigint(20) NULL DEFAULT NULL COMMENT '入库单号',
`Status` tinyint(4) NULL DEFAULT NULL,
`MaterialId` bigint(20) NULL DEFAULT NULL COMMENT '物料',
`PlanInQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '计划数量',
`ActInQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '实际数量',
`StoragerackId` bigint(20) NULL DEFAULT NULL COMMENT '货架',
`AuditinId` bigint(20) NULL DEFAULT NULL COMMENT '审核人',
`AuditinTime` datetime NULL DEFAULT NULL COMMENT '审核时间',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`StockInDetailId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_stockindetail
-- ----------------------------
-- ----------------------------
-- Table structure for wms_stockout
-- ----------------------------
DROP TABLE IF EXISTS `wms_stockout`;
CREATE TABLE `wms_stockout` (
`StockOutId` bigint(20) NOT NULL,
`StockOutNo` varchar(22) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出库单,系统自动生成',
`OrderNo` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出库订单',
`StockOutType` bigint(20) NULL DEFAULT NULL COMMENT '出库类型',
`CustomerId` bigint(20) NULL DEFAULT NULL COMMENT '客户',
`StockOutStatus` tinyint(4) NULL DEFAULT NULL,
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`StockOutId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_stockout
-- ----------------------------
-- ----------------------------
-- Table structure for wms_stockoutdetail
-- ----------------------------
DROP TABLE IF EXISTS `wms_stockoutdetail`;
CREATE TABLE `wms_stockoutdetail` (
`StockOutDetailId` bigint(20) NOT NULL COMMENT '主键',
`StockOutId` bigint(20) NULL DEFAULT NULL COMMENT '出库单',
`Status` tinyint(4) NULL DEFAULT NULL,
`MaterialId` bigint(20) NULL DEFAULT NULL COMMENT '物料',
`PlanOutQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '计划数量',
`ActOutQty` decimal(18, 0) NULL DEFAULT NULL COMMENT '实际数量',
`StoragerackId` bigint(20) NULL DEFAULT NULL COMMENT '货架',
`AuditinId` bigint(20) NULL DEFAULT NULL COMMENT '审核人',
`AuditinTime` datetime NULL DEFAULT NULL COMMENT '审核时间',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`StockOutDetailId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_stockoutdetail
-- ----------------------------
-- ----------------------------
-- Table structure for wms_storagerack
-- ----------------------------
DROP TABLE IF EXISTS `wms_storagerack`;
CREATE TABLE `wms_storagerack` (
`StorageRackId` bigint(20) NOT NULL COMMENT '货架Id',
`StorageRackNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '货架编号',
`StorageRackName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '货架名称',
`ReservoirAreaId` bigint(20) NOT NULL COMMENT '所属库区',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
`WarehouseId` bigint(20) NULL DEFAULT NULL,
PRIMARY KEY (`StorageRackId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_storagerack
-- ----------------------------
-- ----------------------------
-- Table structure for wms_warehouse
-- ----------------------------
DROP TABLE IF EXISTS `wms_warehouse`;
CREATE TABLE `wms_warehouse` (
`WarehouseId` bigint(20) NOT NULL,
`WarehouseNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '仓库编号',
`WarehouseName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '仓库名称',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '是否删除 1未删除 0删除',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`WarehouseId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of wms_warehouse
-- ----------------------------
-- ----------------------------
-- Table structure for wms_supplier
-- ----------------------------
DROP TABLE IF EXISTS `wms_supplier`;
CREATE TABLE `wms_supplier` (
`SupplierId` bigint(20) NOT NULL,
`SupplierNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '供应商编号',
`SupplierName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '供应商名称',
`Address` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商地址',
`Tel` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`SupplierPerson` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人',
`SupplierLevel` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '级别',
`Email` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'Email',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`SupplierId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for wms_carrier
-- ----------------------------
DROP TABLE IF EXISTS `wms_carrier`;
CREATE TABLE `wms_carrier` (
`CarrierId` bigint(20) NOT NULL,
`CarrierNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '承运商编号',
`CarrierName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '承运商名称',
`Address` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '承运商地址',
`Tel` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`CarrierPerson` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人',
`CarrierLevel` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '级别',
`Email` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'Email',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`CarrierId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Table structure for wms_customer
-- ----------------------------
DROP TABLE IF EXISTS `wms_customer`;
CREATE TABLE `wms_customer` (
`CustomerId` bigint(20) NOT NULL,
`CustomerNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户编号',
`CustomerName` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户名称',
`Address` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户地址',
`Tel` varchar(13) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`CustomerPerson` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人',
`CustomerLevel` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '级别',
`Email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'Email',
`Remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
`IsDel` tinyint(4) NULL DEFAULT NULL COMMENT '1 0',
`CreateBy` bigint(20) NULL DEFAULT NULL COMMENT '创建人',
`CreateDate` datetime NULL DEFAULT NULL COMMENT '创建时间',
`ModifiedBy` bigint(20) NULL DEFAULT NULL COMMENT '修改人',
`ModifiedDate` datetime NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`CustomerId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<LatestDevTFM>net9.0</LatestDevTFM>
<ReleaseTFMs>net6.0;net7.0;net8.0;net9.0</ReleaseTFMs>
<TestTFMs>net6.0;net7.0;net8.0;net9.0</TestTFMs>
</PropertyGroup>
</Project>

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 lysilver
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -1,30 +1,2 @@
[![Build Status](https://lysilver.visualstudio.com/kopsoftwms/_apis/build/status/lysilver.KopSoftWms?branchName=master)](https://lysilver.visualstudio.com/kopsoftwms/_build/latest?definitionId=3&branchName=master)
# wms
## DotNet开源免费WMS仓库管理系统
* kopSoftWMS仓库管理系统 http://wms.kopsoft.cn/
* Gitee https://gitee.com/yulou/kopSoftWMS
* GitHub https://github.com/lysilver/kopSoftWMS
*
* 开源不易更多商业产品ERP企业资源计划,WMS仓库管理系统,MES制造执行系统,EMS设备管理系统,QMS质量管理系统请移步 http://mom.kopsoft.cn/
## kopSoftWMS功能模块
* 用户管理,部门管理,角色管理,物料管理,供应商管理,
* 入库管理(采购入库、生产入库、销售退货、拆包装入库),
* 出库管理(生产领料、采购退货、销售发货、拆包装出库、报废出库),
* 盘点管理等,
## 技术栈
* 基于微软.NET 9.0开发,支持 sqlserver、mysql 等主流数据库ORM 采用国内开源 ORM 框架 SqlSugar
* 前端采用 bootstrap、adminlte、layer、bootstrap-datetimepicker、bootstrap-table、bootstrap-select等
* 后端采用 asp.net mvc core、fluentValidation、nlog、Jil、DI、Ganss 、雪花算法、Xunit、npoi等
| 版本 | 分支 |
| ---- | ---- |
| netcore9.0 | master |
## 申明
* 本项目仅供个人学习使用商业授权请联系kopSoft原作者。

@ -1,31 +0,0 @@
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '9.0.304'
includePreviewVersions: true
- task: DeleteFiles@1
displayName: 'Remove unneeded files'
inputs:
contents: |
**/bin/*
**/obj/*
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)'

@ -1,9 +0,0 @@
.dockerignore
.env
.git
.gitignore
.vs
.vscode
*/bin
*/obj
**/.toolstarget

@ -1,30 +0,0 @@
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 5000
ENV ASPNETCORE_URLS http://+5000
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY ["KopSoftWms/KopSoftWms.csproj", "KopSoftWms/"]
COPY ["Orm/Orm.csproj", "Orm/"]
COPY ["YL.Utils/YL.Utils.csproj", "YL.Utils/"]
COPY ["NetCore/YL.NetCore.csproj", "NetCore/"]
COPY ["IServices/IServices.csproj", "IServices/"]
COPY ["Dto/Dto.csproj", "Dto/"]
COPY ["Entity/Entity.csproj", "Entity/"]
COPY ["Repository/Repository.csproj", "Repository/"]
COPY ["IRepository/IRepository.csproj", "IRepository/"]
COPY ["Services/Services.csproj", "Services/"]
COPY ["NetCoreApp/YL.NetCoreApp.csproj", "NetCoreApp/"]
RUN dotnet restore "KopSoftWms/KopSoftWms.csproj"
COPY . .
WORKDIR "/src/KopSoftWms"
RUN dotnet build "KopSoftWms.csproj" -c Release -o /app
FROM build AS publish
RUN dotnet publish "KopSoftWms.csproj" -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "KopSoftWms.dll", "--urls","http://*:5000"]

@ -1,13 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(LatestDevTFM)</TargetFramework>
<RootNamespace>YL.Core.Dto</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Entity\Entity.csproj" />
<ProjectReference Include="..\YL.Utils\YL.Utils.csproj" />
</ItemGroup>
</Project>

@ -1,8 +0,0 @@
namespace YL.Core.Dto
{
public class IssuePie
{
public string Description { get; set; }
public string Count { get; set; }
}
}

@ -1,10 +0,0 @@
namespace YL.Core.Dto
{
public class LineChart
{
public string DeptName { get; set; }
public string PlatformNo { get; set; }
public string DateMonth { get; set; }
public string Count { get; set; }
}
}

@ -1,13 +0,0 @@
using System.Collections.Generic;
namespace YL.Core.Dto
{
public class MenuDto
{
public string MenuId { get; set; }
public string MenuName { get; set; }
public List<MenuDto> Children { get; set; }
}
}

@ -1,28 +0,0 @@
using System.Collections.Generic;
using YL.Core.Entity;
namespace YL.Core.Dto
{
public class PermissionMenu
{
public string Id { get; set; }
public string Name { get; set; }
public string ParentId { get; set; }
public string Url { get; set; }
public string Icon { get; set; }
public List<PermissionMenu> Children { get; set; } = new List<PermissionMenu>();
public static PermissionMenu Create(Sys_menu permission)
{
PermissionMenu ret = new PermissionMenu()
{
Id = permission.MenuId.ToString(),
Name = permission.MenuName,
ParentId = permission.MenuParent.ToString(),
Url = permission.MenuUrl,
Icon = permission.MenuIcon,
};
return ret;
}
}
}

@ -1,11 +0,0 @@
namespace YL.Core.Dto
{
/// <summary>
/// 系统描述,从配置文件中读取
/// </summary>
public class ProjectDes
{
public string Project { get; set; }
public string[] Content { get; set; }
}
}

@ -1,57 +0,0 @@
using static YL.Utils.Table.Bootstrap;
namespace YL.Core.Dto
{
public class PubParams
{
/// <summary>
/// 设备查询参数
/// </summary>
public class DeviceBootstrapParams : BootstrapParams
{
public string DeptId { get; set; }
public string DeviceType { get; set; }
public string PropertyType { get; set; }
}
/// <summary>
/// 字典查询参数
/// </summary>
public class DictBootstrapParams : BootstrapParams
{
public string DictType { get; set; }
}
/// <summary>
/// 入库单查询参数
/// </summary>
public class StockInBootstrapParams : BootstrapParams
{
public string StockInType { get; set; }
public string StockInStatus { get; set; }
}
/// <summary>
/// 库存查询参数
/// </summary>
public class InventoryBootstrapParams : BootstrapParams
{
public string StorageRackId { get; set; }
public string MaterialId { get; set; }
}
/// <summary>
/// 出库单查询参数
/// </summary>
public class StockOutBootstrapParams : BootstrapParams
{
public string StockOutType { get; set; }
public string StockOutStatus { get; set; }
}
public class StatusBootstrapParams : BootstrapParams
{
public string Status { get; set; }
}
}
}

@ -1,17 +0,0 @@
using System.Collections.Generic;
using YL.Core.Entity;
namespace YL.Core.Dto
{
public class RoleMenuDto
{
public string RoleId { get; set; }
public string RoleName { get; set; }
public string RoleType { get; set; }
public string Remark { get; set; }
public List<Sys_rolemenu> Children { get; set; }
}
}

@ -1,35 +0,0 @@
using System.Text.Json.Serialization;
namespace YL.Core.Dto
{
/// <summary>
/// h5 Server-Sent-Events
/// event data id retry
/// </summary>
public class ServerSentEventsDto
{
/// <summary>
/// 表示该行用来声明事件的类型。浏览器在收到数据时,会产生对应类型的事件
/// </summary>
[JsonPropertyName("event")]
public string Event { get; set; }
/// <summary>
/// 表示该行包含的是数据。以 data 开头的行可以出现多次。所有这些行都是该事件的数据。
/// </summary>
[JsonPropertyName("data")]
public string Data { get; set; }
/// <summary>
///表示该行用来声明事件的标识符(即数据的编号),不常用
/// </summary>
[JsonPropertyName("id")]
public string Id { get; set; }
/// <summary>
/// 表示该行用来声明浏览器在连接断开之后进行再次连接之前的等待时间
/// </summary>
[JsonPropertyName("retry")]
public string Retry { get; set; }
}
}

@ -1,45 +0,0 @@
using System;
namespace YL.Core.Dto
{
public class SysUserDto
{
public long UserId { get; set; }
public long? RoleId { get; set; }
public string UserNickname { get; set; }
public string HeadImg { get; set; }
public string Pwd { get; set; }
public string UserName { get; set; }
public string CName { get; set; }
public string UName { get; set; }
public string Email { get; set; }
public string Tel { get; set; }
public string Mobile { get; set; }
public byte? IsEabled { get; set; }
public string LoginIp { get; set; }
public DateTime? LoginDate { get; set; }
public int? LoginTime { get; set; }
public byte? Sex { get; set; }
public byte? IsDel { get; set; }
public string Remark { get; set; }
public long? CreateBy { get; set; }
public DateTime? CreateDate { get; set; }
public long? ModifiedBy { get; set; }
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,124 +0,0 @@
using System;
using System.Collections.Generic;
using YL.Core.Entity;
namespace YL.Core.Dto
{
public class Wms_invmovedetailDto : Wms_invmovedetail
{
public long? SourceStoragerackId { get; set; }
public string SourceStoragerack { get; set; }
public long? AimStoragerackId { get; set; }
public string AimStoragerack { get; set; }
public string Pid { get; set; } //InventorymoveId
public List<Wmsinvmovedetail> Detail { get; set; }
}
public partial class Wmsinvmovedetail
{
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
public string MoveDetailId { get; set; }
/// <summary>
/// Desc:库存移动Id
/// Default:
/// Nullable:True
/// </summary>
public string InventorymoveId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:物料
/// Default:
/// Nullable:True
/// </summary>
public string MaterialId { get; set; }
/// <summary>
/// Desc:计划数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? PlanQty { get; set; }
public decimal? Qty { get; set; }
public string MaterialNo { get; set; }
public string MaterialName { get; set; }
/// <summary>
/// Desc:实际数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? ActQty { get; set; }
/// <summary>
/// Desc:审核人
/// Default:
/// Nullable:True
/// </summary>
public string AuditinId { get; set; }
/// <summary>
/// Desc:审核时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? AuditinTime { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public string CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public string ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,49 +0,0 @@
using System;
namespace YL.Core.Entity
{
public class BaseEntity
{
/// <summary>
/// Desc:1未删除
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; } = 1;
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:False
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; } = DateTime.Now;
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,15 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(LatestDevTFM)</TargetFramework>
<RootNamespace>YL.Core.Entity</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentValidation" Version="12.0.0" />
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.1" />
<PackageReference Include="MediatR" Version="12.5.0" />
<PackageReference Include="sqlSugarCore" Version="5.1.4.199" />
</ItemGroup>
</Project>

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class CarrierFluent : AbstractValidator<Wms_Carrier>
{
public CarrierFluent()
{
RuleFor(x => x.CarrierNo).NotNull().NotEmpty().WithMessage("承运商编号不能为空").Length(1, 20).WithMessage("承运商编号长度不能超过20");
RuleFor(x => x.CarrierName).NotNull().NotEmpty().WithMessage("承运商名称不能为空").Length(1, 50).WithMessage("承运商编号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,18 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class CustomerFluent : AbstractValidator<Wms_Customer>
{
public CustomerFluent()
{
RuleFor(x => x.CustomerNo).NotNull().NotEmpty().WithMessage("客户编号不能为空").Length(1, 20).WithMessage("客户编号长度不能超过20");
RuleFor(x => x.CustomerName).NotNull().NotEmpty().WithMessage("客户名称不能为空").Length(1, 50).WithMessage("客户名称长度不能超过50");
RuleFor(x => x.Email).MaximumLength(50).WithMessage("Email长度不能超过50");
RuleFor(x => x.CustomerPerson).MaximumLength(50).WithMessage("联系人长度不能超过30");
RuleFor(x => x.Tel).MaximumLength(13).WithMessage("号码长度不能超过13");
RuleFor(x => x.Address).MaximumLength(200).WithMessage("地址长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class DeliveryFluent : AbstractValidator<Wms_delivery>
{
public DeliveryFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class DeviceFluent : AbstractValidator<Wms_device>
{
public DeviceFluent()
{
RuleFor(x => x.PlatformNo).NotNull().NotEmpty().WithMessage("机台号不能为空").Length(1, 20).WithMessage("机台号长度不能超过20");
RuleFor(x => x.SerialNo).NotNull().NotEmpty().WithMessage("机身号不能为空").Length(1, 50).WithMessage("机身号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class InventoryMoveFluent : AbstractValidator<Wms_inventorymove>
{
public InventoryMoveFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class InvmovedetailFluent : AbstractValidator<Wms_invmovedetail>
{
public InvmovedetailFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class MaterialFluent : AbstractValidator<Wms_material>
{
public MaterialFluent()
{
RuleFor(x => x.MaterialNo).NotNull().NotEmpty().WithMessage("库区编号不能为空").Length(1, 20).WithMessage("库区编号长度不能超过20");
RuleFor(x => x.MaterialName).NotNull().NotEmpty().WithMessage("库区名称不能为空").Length(1, 50).WithMessage("库区编号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class ReservoirareaFluent : AbstractValidator<Wms_reservoirarea>
{
public ReservoirareaFluent()
{
RuleFor(x => x.ReservoirAreaNo).NotNull().NotEmpty().WithMessage("库区编号不能为空").Length(1, 20).WithMessage("库区编号长度不能超过20");
RuleFor(x => x.ReservoirAreaName).NotNull().NotEmpty().WithMessage("库区名称不能为空").Length(1, 50).WithMessage("库区编号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class StockInDetailFluent : AbstractValidator<Wms_stockindetail>
{
public StockInDetailFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,13 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class StockInFluent : AbstractValidator<Wms_stockin>
{
public StockInFluent()
{
//RuleFor(x => x.StockInNo).NotNull().NotEmpty().WithMessage("入库单号不能为空").Length(1, 32).WithMessage("入库单号不能超过32");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class StockOutDetailFluent : AbstractValidator<Wms_stockoutdetail>
{
public StockOutDetailFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,12 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class StockOutFluent : AbstractValidator<Wms_stockout>
{
public StockOutFluent()
{
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class StorageRackFluent : AbstractValidator<Wms_storagerack>
{
public StorageRackFluent()
{
RuleFor(x => x.StorageRackNo).NotNull().NotEmpty().WithMessage("货架编号不能为空").Length(1, 20).WithMessage("货架编号长度不能超过20");
RuleFor(x => x.StorageRackName).NotNull().NotEmpty().WithMessage("货架名称不能为空").Length(1, 50).WithMessage("货架编号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SupplierFluent : AbstractValidator<Wms_supplier>
{
public SupplierFluent()
{
RuleFor(x => x.SupplierNo).NotNull().NotEmpty().WithMessage("供应商编号不能为空").Length(1, 20).WithMessage("供应商编号长度不能超过20");
RuleFor(x => x.SupplierName).NotNull().NotEmpty().WithMessage("供应商名称不能为空").Length(1, 50).WithMessage("供应商名称长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SysDeptFluent : AbstractValidator<Sys_dept>
{
public SysDeptFluent()
{
RuleFor(x => x.DeptNo).NotNull().NotEmpty().WithMessage("部门编号不能为空").Length(1, 20).WithMessage("部门编号长度不能超过20");
RuleFor(x => x.DeptName).NotNull().NotEmpty().WithMessage("部门名称不能为空").Length(1, 50).WithMessage("部门名称长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SysDictFluent : AbstractValidator<Sys_dict>
{
public SysDictFluent()
{
RuleFor(x => x.DictName).NotNull().NotEmpty().WithMessage("字典名称不能为空").Length(1, 50).WithMessage("字典名称长度不能超过50");
RuleFor(x => x.DictType).NotNull().NotEmpty().WithMessage("字典类型不能为空");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SysLogFluent : AbstractValidator<Sys_log>
{
public SysLogFluent()
{
RuleFor(x => x.Browser).MaximumLength(460).WithMessage("浏览器长度不能超过460");
RuleFor(x => x.Description).MaximumLength(990).WithMessage("描述不能超过990");
RuleFor(x => x.Url).MaximumLength(140).WithMessage("Url长度不能超过140");
}
}
}

@ -1,13 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SysRoleFluent : AbstractValidator<Sys_role>
{
public SysRoleFluent()
{
RuleFor(x => x.RoleName).NotNull().NotEmpty().WithMessage("角色名称不能为空").Length(1, 50).WithMessage("角色名称长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,16 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class SysUserFluent : AbstractValidator<Sys_user>
{
public SysUserFluent()
{
RuleFor(x => x.UserName).NotNull().NotEmpty().WithMessage("姓名不能为空").Length(1, 50).WithMessage("姓名长度不能超过50");
RuleFor(x => x.UserNickname).NotNull().NotEmpty().WithMessage("昵称不能为空").Length(1, 50).WithMessage("昵称长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
RuleFor(x => x.Email).MaximumLength(20).WithMessage("邮件长度不能超过20");
RuleFor(x => x.Tel).MaximumLength(200).WithMessage("手机长度不能超过12");
}
}
}

@ -1,14 +0,0 @@
using FluentValidation;
namespace YL.Core.Entity.Fluent.Validation
{
public class WarehouseFluent : AbstractValidator<Wms_warehouse>
{
public WarehouseFluent()
{
RuleFor(x => x.WarehouseNo).NotNull().NotEmpty().WithMessage("仓库编号不能为空").Length(1, 20).WithMessage("仓库编号长度不能超过20");
RuleFor(x => x.WarehouseName).NotNull().NotEmpty().WithMessage("仓库名称不能为空").Length(1, 50).WithMessage("仓库编号长度不能超过50");
RuleFor(x => x.Remark).MaximumLength(200).WithMessage("备注长度不能超过200");
}
}
}

@ -1,80 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_dept")]
public partial class Sys_dept
{
public Sys_dept()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long DeptId { get; set; }
/// <summary>
/// Desc:部门编号
/// Default:
/// Nullable:True
/// </summary>
public string DeptNo { get; set; }
/// <summary>
/// Desc:部门名称
/// Default:
/// Nullable:True
/// </summary>
public string DeptName { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; } = 1;
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:False
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; } = DateTime.Now;
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,89 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_dict")]
public partial class Sys_dict
{
public Sys_dict()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long DictId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string DictNo { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string DictName { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string DictType { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:1
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,88 +0,0 @@
using MediatR;
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_log")]
public partial class Sys_log : INotification
{
public Sys_log()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long LogId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string LogIp { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string LogType { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Description { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Url { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Browser { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; } = DateTime.Now;
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,115 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_menu_wms")]
public partial class Sys_menu
{
public Sys_menu()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long MenuId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string MenuName { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string MenuUrl { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string MenuIcon { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? MenuParent { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public int? Sort { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:menu btn
/// Default:
/// Nullable:True
/// </summary>
public string MenuType { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; } = 1;
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:False
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; } = DateTime.Now;
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,82 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_role")]
public partial class Sys_role
{
public Sys_role()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long RoleId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string RoleName { get; set; }
/// <summary>
/// Desc:admin #
/// Default:
/// Nullable:True
/// </summary>
public string RoleType { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:1
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,67 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_rolemenu")]
public partial class Sys_rolemenu
{
public Sys_rolemenu()
{
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long RoleMenuId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? RoleId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? MenuId { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,105 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_serialnum")]
public partial class Sys_serialnum
{
public Sys_serialnum()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public int SerialNumberId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
public string SerialNumber { get; set; }
public int SerialCount { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string TableName { get; set; }
/// <summary>
/// Desc:前缀
/// Default:
/// Nullable:True
/// </summary>
public string Prefix { get; set; }
/// <summary>
/// Desc:位数
/// Default:
/// Nullable:True
/// </summary>
public int? Digit { get; set; }
/// <summary>
/// Desc:尾数
/// Default:
/// Nullable:True
/// </summary>
public int? Mantissa { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:False
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,161 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "sys_user")]
public partial class Sys_user
{
public Sys_user()
{
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long UserId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string UserName { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string UserNickname { get; set; }
public long? RoleId { get; set; }
public string HeadImg { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Pwd { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Sort { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Mobile { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? DeptId { get; set; }
/// <summary>
/// Desc:1 启用 0 禁用
/// Default:
/// Nullable:True
/// </summary>
public byte? IsEabled { get; set; } = 1;
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string LoginIp { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? LoginDate { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public int? LoginTime { get; set; }
/// <summary>
/// Desc:0男 1女
/// Default:
/// Nullable:True
/// </summary>
public byte? Sex { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; } = 1;
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:False
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; } = DateTime.Now;
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,114 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
[SugarTable(tableName: "wms_carrier")]
public partial class Wms_Carrier
{
public Wms_Carrier()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:承运商id
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long CarrierId { get; set; }
/// <summary>
/// Desc:承运商编号
/// Default:
/// Nullable:False
/// </summary>
public string CarrierNo { get; set; }
/// <summary>
/// Desc:承运商名称
/// Default:
/// Nullable:False
/// </summary>
public string CarrierName { get; set; }
/// <summary>
/// Desc:地址
/// Default:
/// Nullable:False
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:联系人
/// Default:
/// Nullable:False
/// </summary>
public string CarrierPerson { get; set; }
/// <summary>
/// Desc:级别
/// Default:
/// Nullable:False
/// </summary>
public string CarrierLevel { get; set; }
/// <summary>
/// Desc:邮件
/// Default:
/// Nullable:True
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:电话
/// Default:
/// Nullable:True
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:是否删除 1未删除 0删除
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,114 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
[SugarTable(tableName: "wms_customer")]
public class Wms_Customer
{
public Wms_Customer()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:客户id
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long CustomerId { get; set; }
/// <summary>
/// Desc:客户编号
/// Default:
/// Nullable:False
/// </summary>
public string CustomerNo { get; set; }
/// <summary>
/// Desc:客户名称
/// Default:
/// Nullable:False
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// Desc:地址
/// Default:
/// Nullable:False
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:联系人
/// Default:
/// Nullable:False
/// </summary>
public string CustomerPerson { get; set; }
/// <summary>
/// Desc:级别
/// Default:
/// Nullable:False
/// </summary>
public string CustomerLevel { get; set; }
/// <summary>
/// Desc:邮件
/// Default:
/// Nullable:True
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:电话
/// Default:
/// Nullable:True
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:是否删除 1未删除 0删除
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,96 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_delivery")]
public partial class Wms_delivery
{
public Wms_delivery()
{
CreateDate = DateTime.Now;
IsDel = 1;
}
/// <summary>
/// Desc:发货主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long DeliveryId { get; set; }
/// <summary>
/// Desc:出库单主表Id
/// Default:
/// Nullable:True
/// </summary>
public long? StockOutId { get; set; }
/// <summary>
/// Desc:承运商Id
/// Default:
/// Nullable:True
/// </summary>
public long? CarrierId { get; set; }
/// <summary>
/// Desc:发货日期
/// Default:
/// Nullable:True
/// </summary>
public DateTime? DeliveryDate { get; set; }
/// <summary>
/// Desc:快递单号
/// Default:
/// Nullable:True
/// </summary>
public string TrackingNo { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,98 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_device")]
public partial class Wms_device
{
public Wms_device()
{
this.CreateDate = DateTime.Now;
this.IsDel = 1;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long DeviceId { get; set; }
/// <summary>
/// Desc:机台号
/// Default:
/// Nullable:True
/// </summary>
public string PlatformNo { get; set; }
/// <summary>
/// Desc:机身编号
/// Default:
/// Nullable:True
/// </summary>
public string SerialNo { get; set; }
/// <summary>
/// Desc:部门Id
/// Default:
/// Nullable:True
/// </summary>
public long? DeptId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? DeviceType { get; set; }
public long? PropertyType { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
/// <summary>
/// Desc:1未删除 0删除
/// Default:1
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
}
}

@ -1,89 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_inventory")]
public partial class Wms_inventory
{
public Wms_inventory()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long InventoryId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? MaterialId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? StoragerackId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public decimal? Qty { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,96 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///库存移动
///</summary>
[SugarTable(tableName: "wms_inventorymove")]
public partial class Wms_inventorymove
{
public Wms_inventorymove()
{
CreateDate = DateTime.Now;
IsDel = 1;
}
/// <summary>
/// Desc:库存移动主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long InventorymoveId { get; set; }
/// <summary>
/// Desc:库存移动编号
/// Default:
/// Nullable:True
/// </summary>
public string InventorymoveNo { get; set; }
/// <summary>
/// Desc:原货架Id
/// Default:
/// Nullable:True
/// </summary>
public long? SourceStoragerackId { get; set; }
/// <summary>
/// Desc:目标货架
/// Default:
/// Nullable:True
/// </summary>
public long? AimStoragerackId { get; set; }
/// <summary>
/// Desc:状态
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,82 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_inventoryrecord")]
public partial class Wms_inventoryrecord
{
public Wms_inventoryrecord()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long InventoryrecordId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public long? StockInDetailId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public decimal? Qty { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:False
/// </summary>
public byte IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,117 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_invmovedetail")]
public partial class Wms_invmovedetail
{
public Wms_invmovedetail()
{
CreateDate = DateTime.Now;
IsDel = 1;
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long MoveDetailId { get; set; }
/// <summary>
/// Desc:库存移动Id
/// Default:
/// Nullable:True
/// </summary>
public long? InventorymoveId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:物料
/// Default:
/// Nullable:True
/// </summary>
public long? MaterialId { get; set; }
/// <summary>
/// Desc:计划数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? PlanQty { get; set; }
/// <summary>
/// Desc:实际数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? ActQty { get; set; }
/// <summary>
/// Desc:审核人
/// Default:
/// Nullable:True
/// </summary>
public long? AuditinId { get; set; }
/// <summary>
/// Desc:审核时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? AuditinTime { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,131 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_material")]
public partial class Wms_material
{
public Wms_material()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long MaterialId { get; set; }
/// <summary>
/// Desc:产品编号
/// Default:
/// Nullable:False
/// </summary>
public string MaterialNo { get; set; }
/// <summary>
/// Desc:产品名称
/// Default:
/// Nullable:False
/// </summary>
public string MaterialName { get; set; }
/// <summary>
/// Desc:产品类型
/// Default:
/// Nullable:True
/// </summary>
public long? MaterialType { get; set; }
/// <summary>
/// Desc:单位
/// Default:
/// Nullable:True
/// </summary>
public long? Unit { get; set; }
/// <summary>
/// Desc:默认所属货架
/// Default:
/// Nullable:True
/// </summary>
public long? StoragerackId { get; set; }
/// <summary>
/// Desc:默认所属库区
/// Default:
/// Nullable:True
/// </summary>
public long? ReservoirAreaId { get; set; }
/// <summary>
/// Desc:默认所属仓库
/// Default:
/// Nullable:True
/// </summary>
public long? WarehouseId { get; set; }
/// <summary>
/// Desc:安全库存
/// Default:
/// Nullable:True
/// </summary>
public decimal? Qty { get; set; }
/// <summary>
/// Desc:有效期
/// Default:
/// Nullable:True
/// </summary>
public decimal? ExpiryDate { get; set; }
/// <summary>
/// Desc:1 0
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,89 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_reservoirarea")]
public partial class Wms_reservoirarea
{
public Wms_reservoirarea()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long ReservoirAreaId { get; set; }
/// <summary>
/// Desc:库区编号
/// Default:
/// Nullable:False
/// </summary>
public string ReservoirAreaNo { get; set; }
/// <summary>
/// Desc:库区名称
/// Default:
/// Nullable:False
/// </summary>
public string ReservoirAreaName { get; set; }
/// <summary>
/// Desc:所属仓库ID
/// Default:
/// Nullable:False
/// </summary>
public long? WarehouseId { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,103 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_stockin")]
public partial class Wms_stockin
{
public Wms_stockin()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long StockInId { get; set; }
/// <summary>
/// Desc:入库单号
/// Default:
/// Nullable:True
/// </summary>
public string StockInNo { get; set; }
/// <summary>
/// Desc:入库类型
/// Default:
/// Nullable:True
/// </summary>
public long? StockInType { get; set; }
/// <summary>
/// Desc:供应商
/// Default:
/// Nullable:True
/// </summary>
public long? SupplierId { get; set; }
/// <summary>
/// Desc:订单号
/// Default:
/// Nullable:True
/// </summary>
public string OrderNo { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? StockInStatus { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,124 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_stockindetail")]
public partial class Wms_stockindetail
{
public Wms_stockindetail()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long StockInDetailId { get; set; }
/// <summary>
/// Desc:入库单号
/// Default:
/// Nullable:True
/// </summary>
public long? StockInId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:物料
/// Default:
/// Nullable:True
/// </summary>
public long? MaterialId { get; set; }
/// <summary>
/// Desc:计划数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? PlanInQty { get; set; }
/// <summary>
/// Desc:实际数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? ActInQty { get; set; }
/// <summary>
/// Desc:货架
/// Default:
/// Nullable:True
/// </summary>
public long? StoragerackId { get; set; }
/// <summary>
/// Desc:审核人
/// Default:
/// Nullable:True
/// </summary>
public long? AuditinId { get; set; }
/// <summary>
/// Desc:审核时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? AuditinTime { get; set; }
/// <summary>
/// Desc:1 0
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,103 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_stockout")]
public partial class Wms_stockout
{
public Wms_stockout()
{
IsDel = 1;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long StockOutId { get; set; }
/// <summary>
/// Desc:出库单,系统自动生成
/// Default:
/// Nullable:True
/// </summary>
public string StockOutNo { get; set; }
/// <summary>
/// Desc:出库订单
/// Default:
/// Nullable:True
/// </summary>
public string OrderNo { get; set; }
/// <summary>
/// Desc:出库类型
/// Default:
/// Nullable:True
/// </summary>
public long? StockOutType { get; set; }
/// <summary>
/// Desc:客户
/// Default:
/// Nullable:True
/// </summary>
public long? CustomerId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? StockOutStatus { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,124 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_stockoutdetail")]
public partial class Wms_stockoutdetail
{
public Wms_stockoutdetail()
{
IsDel = 1; ;
CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:主键
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long StockOutDetailId { get; set; }
/// <summary>
/// Desc:出库单
/// Default:
/// Nullable:True
/// </summary>
public long? StockOutId { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public byte? Status { get; set; }
/// <summary>
/// Desc:物料
/// Default:
/// Nullable:True
/// </summary>
public long? MaterialId { get; set; }
/// <summary>
/// Desc:计划数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? PlanOutQty { get; set; }
/// <summary>
/// Desc:实际数量
/// Default:
/// Nullable:True
/// </summary>
public decimal? ActOutQty { get; set; }
/// <summary>
/// Desc:货架
/// Default:
/// Nullable:True
/// </summary>
public long? StoragerackId { get; set; }
/// <summary>
/// Desc:审核人
/// Default:
/// Nullable:True
/// </summary>
public long? AuditinId { get; set; }
/// <summary>
/// Desc:审核时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? AuditinTime { get; set; }
/// <summary>
/// Desc:1 0
/// Default:
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,96 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_storagerack")]
public partial class Wms_storagerack
{
public Wms_storagerack()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:货架Id
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long StorageRackId { get; set; }
/// <summary>
/// Desc:货架编号
/// Default:
/// Nullable:False
/// </summary>
public string StorageRackNo { get; set; }
/// <summary>
/// Desc:货架名称
/// Default:
/// Nullable:True
/// </summary>
public string StorageRackName { get; set; }
/// <summary>
/// Desc:所属仓库
/// Default:
/// Nullable:False
/// </summary>
public long? WarehouseId { get; set; }
/// <summary>
/// Desc:所属库区
/// Default:
/// Nullable:False
/// </summary>
public long? ReservoirAreaId { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:1 0
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,114 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
[SugarTable(tableName: "wms_supplier")]
public class Wms_supplier
{
public Wms_supplier()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:供应商id
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long SupplierId { get; set; }
/// <summary>
/// Desc:供应商编号
/// Default:
/// Nullable:False
/// </summary>
public string SupplierNo { get; set; }
/// <summary>
/// Desc:供应商名称
/// Default:
/// Nullable:False
/// </summary>
public string SupplierName { get; set; }
/// <summary>
/// Desc:供应商地址
/// Default:
/// Nullable:False
/// </summary>
public string Address { get; set; }
/// <summary>
/// Desc:供应商电话
/// Default:
/// Nullable:True
/// </summary>
public string Tel { get; set; }
/// <summary>
/// Desc:联系人
/// Default:
/// Nullable:False
/// </summary>
public string SupplierPerson { get; set; }
/// <summary>
/// Desc:级别
/// Default:
/// Nullable:False
/// </summary>
public string SupplierLevel { get; set; }
/// <summary>
/// Desc:邮件
/// Default:
/// Nullable:True
/// </summary>
public string Email { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:是否删除 1未删除 0删除
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,82 +0,0 @@
using SqlSugar;
using System;
namespace YL.Core.Entity
{
///<summary>
///
///</summary>
[SugarTable(tableName: "wms_warehouse")]
public partial class Wms_warehouse
{
public Wms_warehouse()
{
this.IsDel = 1;
this.CreateDate = DateTime.Now;
}
/// <summary>
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long WarehouseId { get; set; }
/// <summary>
/// Desc:仓库编号
/// Default:
/// Nullable:False
/// </summary>
public string WarehouseNo { get; set; }
/// <summary>
/// Desc:仓库名称
/// Default:
/// Nullable:False
/// </summary>
public string WarehouseName { get; set; }
/// <summary>
/// Desc:是否删除 1未删除 0删除
/// Default:1
/// Nullable:True
/// </summary>
public byte? IsDel { get; set; }
/// <summary>
/// Desc:备注
/// Default:
/// Nullable:True
/// </summary>
public string Remark { get; set; }
/// <summary>
/// Desc:创建人
/// Default:
/// Nullable:True
/// </summary>
public long? CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:DateTime.Now
/// Nullable:True
/// </summary>
public DateTime? CreateDate { get; set; }
/// <summary>
/// Desc:修改人
/// Default:
/// Nullable:True
/// </summary>
public long? ModifiedBy { get; set; }
/// <summary>
/// Desc:修改时间
/// Default:
/// Nullable:True
/// </summary>
public DateTime? ModifiedDate { get; set; }
}
}

@ -1,140 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using YL.NetCore;
using YL.Utils.Table;
namespace IRepository
{
public interface IBaseRepository<T> : IDependency where T : class, new()
{
#region add
bool Insert(T t, bool IgnoreNullColumn = true);
Task<bool> InsertAsync(T t, bool IgnoreNullColumn = true);
bool InsertIgnoreNullColumn(T t);
bool InsertIgnoreNullColumn(T t, params string[] columns);
bool Insert(SqlSugarClient client, T t);
long InsertBigIdentity(T t);
bool Insert(List<T> t);
bool InsertIgnoreNullColumn(List<T> t);
bool InsertIgnoreNullColumn(List<T> t, params string[] columns);
DbResult<bool> InsertTran(T t);
DbResult<bool> InsertTran(List<T> t);
T InsertReturnEntity(T t);
T InsertReturnEntity(T t, string sqlWith = SqlWith.UpdLock);
bool ExecuteCommand(string sql, object parameters);
bool ExecuteCommand(string sql, params SugarParameter[] parameters);
bool ExecuteCommand(string sql, List<SugarParameter> parameters);
#endregion add
#region update
bool UpdateEntity(T entity);
bool Update(T entity, Expression<Func<T, bool>> expression);
/// <summary>
/// 只更新表达式的值
/// </summary>
/// <param name="entity"></param>
/// <param name="expression"></param>
/// <returns></returns>
bool Update(T entity, Expression<Func<T, object>> expression);
bool Update(T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
bool Update(SqlSugarClient client, T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
/// <summary>
///
/// </summary>
/// <param name="entity">T</param>
/// <param name="list">忽略更新</param>
/// <param name="isNull">Null不更新</param>
/// <returns></returns>
bool Update(T entity, List<string> list = null, bool isNull = true);
bool Update(List<T> entity);
#endregion update
DbResult<bool> UseTran(Action action);
DbResult<bool> UseTran(SqlSugarClient client, Action action);
bool UseTran2(Action action);
#region delete
bool Delete(Expression<Func<T, bool>> expression);
bool Delete<PkType>(PkType[] primaryKeyValues);
bool Delete(object obj);
#endregion delete
#region query
bool IsAny(Expression<Func<T, bool>> expression);
ISugarQueryable<T> Queryable();
ISugarQueryable<ExpandoObject> Queryable(string tableName, string shortName);
//ISugarQueryable<T, T1, T2> Queryable<T1, T2>() where T1 : class where T2 : new();
List<T> QueryableToList(Expression<Func<T, bool>> expression);
Task<List<T>> QueryableToListAsync(Expression<Func<T, bool>> expression);
string QueryableToJson(string select, Expression<Func<T, bool>> expressionWhere);
List<T> QueryableToList(string tableName);
T QueryableToEntity(Expression<Func<T, bool>> expression);
List<T> QueryableToList(string tableName, Expression<Func<T, bool>> expression);
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, int pageIndex = 0, int pageSize = 10);
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, string order, int pageIndex = 0, int pageSize = 10);
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, Expression<Func<T, object>> orderFiled, string orderBy, int pageIndex = 0, int pageSize = 10);
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, Bootstrap.BootstrapParams bootstrap);
List<T> SqlQueryToList(string sql, object obj = null);
#endregion query
#region Procedure
DataTable UseStoredProcedureToDataTable(string procedureName, List<SugarParameter> parameters);
(DataTable, List<SugarParameter>) UseStoredProcedureToTuple(string procedureName, List<SugarParameter> parameters);
#endregion Procedure
}
}

@ -1,15 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(LatestDevTFM)</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="sqlSugarCore" Version="5.1.4.199" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Entity\Entity.csproj" />
<ProjectReference Include="..\NetCore\YL.NetCore.csproj" />
</ItemGroup>
</Project>

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_deptRepository : IBaseRepository<Sys_dept>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_dictRepository : IBaseRepository<Sys_dict>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_logRepository : IBaseRepository<Sys_log>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_menuRepository : IBaseRepository<Sys_menu>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_roleRepository : IBaseRepository<Sys_role>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_rolemenuRepository : IBaseRepository<Sys_rolemenu>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_serialnumRepository : IBaseRepository<Sys_serialnum>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface ISys_userRepository : IBaseRepository<Sys_user>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_CarrierRepository : IBaseRepository<Wms_Carrier>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_CustomerRepository : IBaseRepository<Wms_Customer>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_deliveryRepository : IBaseRepository<Wms_delivery>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_deviceRepository : IBaseRepository<Wms_device>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_inventoryRepository : IBaseRepository<Wms_inventory>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_inventorymoveRepository : IBaseRepository<Wms_inventorymove>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_inventoryrecordRepository : IBaseRepository<Wms_inventoryrecord>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_invmovedetailRepository : IBaseRepository<Wms_invmovedetail>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_materialRepository : IBaseRepository<Wms_material>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_reservoirareaRepository : IBaseRepository<Wms_reservoirarea>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_stockinRepository : IBaseRepository<Wms_stockin>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_stockindetailRepository : IBaseRepository<Wms_stockindetail>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_stockoutRepository : IBaseRepository<Wms_stockout>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_stockoutdetailRepository : IBaseRepository<Wms_stockoutdetail>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_storagerackRepository : IBaseRepository<Wms_storagerack>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_supplierRepository : IBaseRepository<Wms_supplier>
{
}
}

@ -1,8 +0,0 @@
using YL.Core.Entity;
namespace IRepository
{
public interface IWms_warehouseRepository : IBaseRepository<Wms_warehouse>
{
}
}

@ -1,379 +0,0 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using YL.NetCore;
using YL.Utils.Table;
namespace IServices
{
/// <summary>
/// 基础服务接口,定义了通用的数据访问操作方法
/// 泛型T表示实体类型约束为类且具有无参构造函数
/// 继承IDependency接口表明该接口需要依赖注入容器管理
/// </summary>
/// <typeparam name="T">实体类型</typeparam>
public interface IBaseServices<T> : IDependency where T : class, new()
{
#region 新增操作
/// <summary>
/// 插入单个实体
/// </summary>
/// <param name="t">实体对象</param>
/// <param name="IgnoreNullColumn">是否忽略空值列默认true</param>
/// <returns>是否插入成功</returns>
bool Insert(T t, bool IgnoreNullColumn = true);
/// <summary>
/// 插入单个实体(忽略空值列)
/// </summary>
/// <param name="t">实体对象</param>
/// <returns>是否插入成功</returns>
bool InsertIgnoreNullColumn(T t);
/// <summary>
/// 插入单个实体(忽略空值列,并指定特定列)
/// </summary>
/// <param name="t">实体对象</param>
/// <param name="columns">指定要插入的列</param>
/// <returns>是否插入成功</returns>
bool InsertIgnoreNullColumn(T t, params string[] columns);
/// <summary>
/// 使用指定的SqlSugar客户端插入单个实体
/// </summary>
/// <param name="client">SqlSugar客户端实例</param>
/// <param name="t">实体对象</param>
/// <returns>是否插入成功</returns>
bool Insert(SqlSugarClient client, T t);
/// <summary>
/// 插入单个实体并返回大整数类型的自增ID
/// </summary>
/// <param name="t">实体对象</param>
/// <returns>自增ID</returns>
long InsertBigIdentity(T t);
/// <summary>
/// 批量插入实体列表
/// </summary>
/// <param name="t">实体列表</param>
/// <returns>是否插入成功</returns>
bool Insert(List<T> t);
/// <summary>
/// 批量插入实体列表(忽略空值列)
/// </summary>
/// <param name="t">实体列表</param>
/// <returns>是否插入成功</returns>
bool InsertIgnoreNullColumn(List<T> t);
/// <summary>
/// 批量插入实体列表(忽略空值列,并指定特定列)
/// </summary>
/// <param name="t">实体列表</param>
/// <param name="columns">指定要插入的列</param>
/// <returns>是否插入成功</returns>
bool InsertIgnoreNullColumn(List<T> t, params string[] columns);
/// <summary>
/// 事务中插入单个实体
/// </summary>
/// <param name="t">实体对象</param>
/// <returns>包含执行结果的DbResult对象</returns>
DbResult<bool> InsertTran(T t);
/// <summary>
/// 事务中批量插入实体列表
/// </summary>
/// <param name="t">实体列表</param>
/// <returns>包含执行结果的DbResult对象</returns>
DbResult<bool> InsertTran(List<T> t);
/// <summary>
/// 插入实体并返回插入后的实体包含自增ID等数据库生成的值
/// </summary>
/// <param name="t">实体对象</param>
/// <returns>插入后的实体</returns>
T InsertReturnEntity(T t);
/// <summary>
/// 插入实体并返回插入后的实体支持指定SQL锁
/// </summary>
/// <param name="t">实体对象</param>
/// <param name="sqlWith">SQL锁类型默认更新锁</param>
/// <returns>插入后的实体</returns>
T InsertReturnEntity(T t, string sqlWith = SqlWith.UpdLock);
/// <summary>
/// 执行SQL命令带参数对象
/// </summary>
/// <param name="sql">SQL语句</param>
/// <param name="parameters">参数对象</param>
/// <returns>是否执行成功</returns>
bool ExecuteCommand(string sql, object parameters);
/// <summary>
/// 执行SQL命令带SugarParameter参数数组
/// </summary>
/// <param name="sql">SQL语句</param>
/// <param name="parameters">SugarParameter参数数组</param>
/// <returns>是否执行成功</returns>
bool ExecuteCommand(string sql, params SugarParameter[] parameters);
/// <summary>
/// 执行SQL命令带SugarParameter参数列表
/// </summary>
/// <param name="sql">SQL语句</param>
/// <param name="parameters">SugarParameter参数列表</param>
/// <returns>是否执行成功</returns>
bool ExecuteCommand(string sql, List<SugarParameter> parameters);
#endregion 新增操作
#region 更新操作
/// <summary>
/// 更新实体(根据主键)
/// </summary>
/// <param name="entity">实体对象</param>
/// <returns>是否更新成功</returns>
bool UpdateEntity(T entity);
/// <summary>
/// 根据条件更新实体
/// </summary>
/// <param name="entity">实体对象(含更新值)</param>
/// <param name="expression">更新条件表达式</param>
/// <returns>是否更新成功</returns>
bool Update(T entity, Expression<Func<T, bool>> expression);
/// <summary>
/// 更新实体的指定列(全表更新)
/// </summary>
/// <param name="entity">实体对象(含更新值)</param>
/// <param name="expression">指定要更新的列</param>
/// <returns>是否更新成功</returns>
bool Update(T entity, Expression<Func<T, object>> expression);
/// <summary>
/// 根据条件更新实体的指定列
/// </summary>
/// <param name="entity">实体对象(含更新值)</param>
/// <param name="expression">指定要更新的列</param>
/// <param name="where">更新条件表达式</param>
/// <returns>是否更新成功</returns>
bool Update(T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
/// <summary>
/// 使用指定的SqlSugar客户端根据条件更新实体的指定列
/// </summary>
/// <param name="client">SqlSugar客户端实例</param>
/// <param name="entity">实体对象(含更新值)</param>
/// <param name="expression">指定要更新的列</param>
/// <param name="where">更新条件表达式</param>
/// <returns>是否更新成功</returns>
bool Update(SqlSugarClient client, T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
/// <summary>
/// 更新实体(可指定列和空值处理)
/// </summary>
/// <param name="entity">实体对象</param>
/// <param name="list">指定要更新的列null则更新所有列</param>
/// <param name="isNull">是否忽略空值true不更新空值列</param>
/// <returns>是否更新成功</returns>
bool Update(T entity, List<string> list = null, bool isNull = true);
/// <summary>
/// 批量更新实体列表
/// </summary>
/// <param name="entity">实体列表</param>
/// <returns>是否更新成功</returns>
bool Update(List<T> entity);
#endregion 更新操作
/// <summary>
/// 在事务中执行操作
/// </summary>
/// <param name="action">要执行的操作</param>
/// <returns>包含事务执行结果的DbResult对象</returns>
DbResult<bool> UseTran(Action action);
/// <summary>
/// 使用指定的SqlSugar客户端在事务中执行操作
/// </summary>
/// <param name="client">SqlSugar客户端实例</param>
/// <param name="action">要执行的操作</param>
/// <returns>包含事务执行结果的DbResult对象</returns>
DbResult<bool> UseTran(SqlSugarClient client, Action action);
/// <summary>
/// 另一种事务执行方式(可能是自定义实现)
/// </summary>
/// <param name="action">要执行的操作</param>
/// <returns>是否执行成功</returns>
bool UseTran2(Action action);
#region 删除操作
/// <summary>
/// 根据条件删除数据
/// </summary>
/// <param name="expression">删除条件表达式</param>
/// <returns>是否删除成功</returns>
bool Delete(Expression<Func<T, bool>> expression);
/// <summary>
/// 根据主键数组删除数据
/// </summary>
/// <typeparam name="PkType">主键类型</typeparam>
/// <param name="primaryKeyValues">主键值数组</param>
/// <returns>是否删除成功</returns>
bool Delete<PkType>(PkType[] primaryKeyValues);
/// <summary>
/// 根据实体对象删除数据(根据主键)
/// </summary>
/// <param name="obj">实体对象(含主键)</param>
/// <returns>是否删除成功</returns>
bool Delete(object obj);
#endregion 删除操作
#region 查询操作
/// <summary>
/// 判断是否存在符合条件的数据
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <returns>是否存在</returns>
bool IsAny(Expression<Func<T, bool>> expression);
/// <summary>
/// 获取查询对象(用于链式查询)
/// </summary>
/// <returns>ISugarQueryable查询对象</returns>
ISugarQueryable<T> Queryable();
/// <summary>
/// 根据表名获取动态查询对象返回ExpandoObject
/// </summary>
/// <param name="tableName">表名</param>
/// <param name="shortName">表别名</param>
/// <returns>动态查询对象</returns>
ISugarQueryable<ExpandoObject> Queryable(string tableName, string shortName);
/// <summary>
/// 根据条件查询并返回实体列表
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <returns>实体列表</returns>
List<T> QueryableToList(Expression<Func<T, bool>> expression);
/// <summary>
/// 异步根据条件查询并返回实体列表
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <returns>包含实体列表的Task</returns>
Task<List<T>> QueryableToListAsync(Expression<Func<T, bool>> expression);
/// <summary>
/// 根据条件查询并返回JSON字符串
/// </summary>
/// <param name="select">要查询的列</param>
/// <param name="expressionWhere">查询条件表达式</param>
/// <returns>JSON字符串</returns>
string QueryableToJson(string select, Expression<Func<T, bool>> expressionWhere);
/// <summary>
/// 根据表名查询并返回实体列表
/// </summary>
/// <param name="tableName">表名</param>
/// <returns>实体列表</returns>
List<T> QueryableToList(string tableName);
/// <summary>
/// 根据条件查询并返回单个实体(第一条)
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <returns>实体对象</returns>
T QueryableToEntity(Expression<Func<T, bool>> expression);
/// <summary>
/// 根据表名和条件查询并返回实体列表
/// </summary>
/// <param name="tableName">表名</param>
/// <param name="expression">查询条件表达式</param>
/// <returns>实体列表</returns>
List<T> QueryableToList(string tableName, Expression<Func<T, bool>> expression);
/// <summary>
/// 分页查询
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <param name="pageIndex">页码默认0</param>
/// <param name="pageSize">页大小默认10</param>
/// <returns>元组(当前页数据列表,总条数)</returns>
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, int pageIndex = 0, int pageSize = 10);
/// <summary>
/// 带排序的分页查询
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <param name="order">排序字符串(如"Id DESC"</param>
/// <param name="pageIndex">页码默认0</param>
/// <param name="pageSize">页大小默认10</param>
/// <returns>元组(当前页数据列表,总条数)</returns>
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, string order, int pageIndex = 0, int pageSize = 10);
/// <summary>
/// 带排序字段和排序方式的分页查询
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <param name="orderFiled">排序字段表达式</param>
/// <param name="orderBy">排序方式(如"ASC"或"DESC"</param>
/// <param name="pageIndex">页码默认0</param>
/// <param name="pageSize">页大小默认10</param>
/// <returns>元组(当前页数据列表,总条数)</returns>
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, Expression<Func<T, object>> orderFiled, string orderBy, int pageIndex = 0, int pageSize = 10);
/// <summary>
/// 根据Bootstrap参数进行分页查询适配前端分页组件
/// </summary>
/// <param name="expression">查询条件表达式</param>
/// <param name="bootstrap">Bootstrap分页参数对象</param>
/// <returns>元组(当前页数据列表,总条数)</returns>
(List<T>, int) QueryableToPage(Expression<Func<T, bool>> expression, Bootstrap.BootstrapParams bootstrap);
/// <summary>
/// 执行SQL查询并返回实体列表
/// </summary>
/// <param name="sql">SQL语句</param>
/// <param name="obj">参数对象(可选)</param>
/// <returns>实体列表</returns>
List<T> SqlQueryToList(string sql, object obj = null);
#endregion 查询操作
/// <summary>
/// 执行存储过程并返回DataTable
/// </summary>
/// <param name="procedureName">存储过程名</param>
/// <param name="parameters">存储过程参数列表</param>
/// <returns>查询结果DataTable</returns>
DataTable UseStoredProcedureToDataTable(string procedureName, List<SugarParameter> parameters);
/// <summary>
/// 执行存储过程并返回DataTable和输出参数
/// </summary>
/// <param name="procedureName">存储过程名</param>
/// <param name="parameters">存储过程参数列表(含输出参数)</param>
/// <returns>元组查询结果DataTable包含输出值的参数列表</returns>
(DataTable, List<SugarParameter>) UseStoredProcedureToTuple(string procedureName, List<SugarParameter> parameters);
}
}

@ -1,17 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(LatestDevTFM)</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="sqlSugarCore" Version="5.1.4.199" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dto\Dto.csproj" />
<ProjectReference Include="..\Entity\Entity.csproj" />
<ProjectReference Include="..\NetCore\YL.NetCore.csproj" />
</ItemGroup>
</Project>

@ -1,10 +0,0 @@
using YL.Core.Entity;
using YL.Utils.Table;
namespace IServices
{
public interface ISys_deptServices : IBaseServices<Sys_dept>
{
string PageList(Bootstrap.BootstrapParams bootstrap);
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save