1
This commit is contained in:
parent
20b95da384
commit
73d4d112a2
4
.gitignore
vendored
4
.gitignore
vendored
@ -12,4 +12,6 @@ riderModule.iml
|
||||
|
||||
Logs/
|
||||
|
||||
node_modules/
|
||||
node_modules/
|
||||
|
||||
*.lscache
|
||||
@ -10,6 +10,7 @@
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AIAggregateRoot_00601_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fa1494e50f25d476db4fff59a546c2b857800_003F7b_003Fe45647d2_003FIAggregateRoot_00601_002Ecs_002Fz_003A2_002D1/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AIEntity_00601_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fa1494e50f25d476db4fff59a546c2b857800_003F59_003F8ca0c929_003FIEntity_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AIRepository_00601_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F6015bad29db142679ead208ae4ecd55c7800_003F85_003Fa6db724e_003FIRepository_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AIRepository_00601_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F98ce6bfbfce34b1eabb7b03e820f0eea7800_003F66_003F56b27e93_003FIRepository_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AIRepository_00601_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fa1494e50f25d476db4fff59a546c2b857800_003Fcc_003F73f30804_003FIRepository_00601_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AObjectMethodExecutorAwaitable_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F61426bb2f5bd47ebb048d0e7051942f91de910_003Fe1_003F409ba3a2_003FObjectMethodExecutorAwaitable_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AQueryBuilder_002Ecs_002Fl_003AC_0021_003FUsers_003FBSI_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F38bf349295324397b2c739e7e632b4bd2d5000_003Fc7_003F431a0b15_003FQueryBuilder_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
|
||||
197
db.sql
197
db.sql
@ -12,7 +12,6 @@ SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
DROP TABLE IF EXISTS `t_warehouse_address`;
|
||||
DROP TABLE IF EXISTS `t_recharge_record`;
|
||||
DROP TABLE IF EXISTS `t_customer_sub_account`;
|
||||
DROP TABLE IF EXISTS `t_customer`;
|
||||
DROP TABLE IF EXISTS `t_label_print_record`;
|
||||
DROP TABLE IF EXISTS `t_outbound_record`;
|
||||
@ -48,7 +47,7 @@ DROP TABLE IF EXISTS `t_order_template`;
|
||||
DROP TABLE IF EXISTS `t_order`;
|
||||
|
||||
CREATE TABLE `t_order` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`RequestId` VARCHAR(64) NULL COMMENT '请求幂等ID',
|
||||
`ServiceNo` VARCHAR(64) NOT NULL COMMENT '运单号',
|
||||
`ClientNo` VARCHAR(64) NULL COMMENT '客户单号',
|
||||
@ -58,11 +57,11 @@ CREATE TABLE `t_order` (
|
||||
`ConsigneeCountry` VARCHAR(8) NULL COMMENT '国家二字码',
|
||||
`CargoAttribute` VARCHAR(32) NULL COMMENT '货物属性:general/electronics/sensitive',
|
||||
`OrderStatus` VARCHAR(32) NOT NULL COMMENT '订单状态',
|
||||
`WarehouseId` BIGINT NULL COMMENT '仓库ID',
|
||||
`CustomerId` BIGINT NULL COMMENT '客户ID',
|
||||
`SenderId` BIGINT NULL COMMENT '发件人ID',
|
||||
`RecipientId` BIGINT NULL COMMENT '收件人ID',
|
||||
`DeclarationId` BIGINT NULL COMMENT '申报信息ID',
|
||||
`WarehouseId` INT NULL COMMENT '仓库ID',
|
||||
`CustomerId` INT NULL COMMENT '客户ID',
|
||||
`SenderId` INT NULL COMMENT '发件人ID',
|
||||
`RecipientId` INT NULL COMMENT '收件人ID',
|
||||
`DeclarationId` INT NULL COMMENT '申报信息ID',
|
||||
`ReceiveTime` DATETIME NULL COMMENT '收货时间',
|
||||
`ShipTime` DATETIME NULL COMMENT '发货时间',
|
||||
`PayTime` DATETIME NULL COMMENT '支付时间',
|
||||
@ -95,11 +94,11 @@ CREATE TABLE `t_order` (
|
||||
) COMMENT='订单表';
|
||||
|
||||
CREATE TABLE `t_order_template` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Name` VARCHAR(64) NOT NULL COMMENT '模板名称',
|
||||
`Type` VARCHAR(16) NOT NULL COMMENT 'standard/custom',
|
||||
`TemplateKey` VARCHAR(64) NULL COMMENT '模板标识',
|
||||
`CustomerId` BIGINT NULL COMMENT '客户ID(自定义模板)',
|
||||
`CustomerId` INT NULL COMMENT '客户ID(自定义模板)',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -112,14 +111,14 @@ CREATE TABLE `t_order_template` (
|
||||
) COMMENT='下单模板表';
|
||||
|
||||
CREATE TABLE `t_order_task` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`TaskName` VARCHAR(128) NOT NULL COMMENT '任务名称',
|
||||
`Quantity` INT NULL COMMENT '数量',
|
||||
`SuccessCount` INT NULL COMMENT '成功数',
|
||||
`FailCount` INT NULL COMMENT '失败数',
|
||||
`Status` VARCHAR(16) NOT NULL COMMENT '任务状态:processing/completed/pending',
|
||||
`TemplateId` BIGINT NULL COMMENT '模板ID',
|
||||
`CustomerId` BIGINT NULL COMMENT '客户ID',
|
||||
`TemplateId` INT NULL COMMENT '模板ID',
|
||||
`CustomerId` INT NULL COMMENT '客户ID',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -132,8 +131,8 @@ CREATE TABLE `t_order_task` (
|
||||
) COMMENT='下单任务表';
|
||||
|
||||
CREATE TABLE `t_order_task_fail` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`TaskId` BIGINT NOT NULL COMMENT '任务ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`TaskId` INT NOT NULL COMMENT '任务ID',
|
||||
`RowNumber` INT NOT NULL COMMENT 'Excel行号',
|
||||
`Reason` VARCHAR(512) NOT NULL COMMENT '失败原因',
|
||||
`RawDataJson` JSON NULL COMMENT '原始行数据',
|
||||
@ -148,8 +147,8 @@ CREATE TABLE `t_order_task_fail` (
|
||||
) COMMENT='下单任务失败明细表';
|
||||
|
||||
CREATE TABLE `t_order_sender` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` BIGINT NOT NULL COMMENT '订单ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` INT NOT NULL COMMENT '订单ID',
|
||||
`SenderName` VARCHAR(50) NULL COMMENT '姓名',
|
||||
`Company` VARCHAR(255) NULL COMMENT '公司',
|
||||
`Country` INT NULL COMMENT '国家',
|
||||
@ -175,8 +174,8 @@ CREATE TABLE `t_order_sender` (
|
||||
) COMMENT='订单发件人表';
|
||||
|
||||
CREATE TABLE `t_order_recipient` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` BIGINT NOT NULL COMMENT '订单ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` INT NOT NULL COMMENT '订单ID',
|
||||
`RecipientsName` VARCHAR(30) NULL COMMENT '收件人名称',
|
||||
`CompanyName` VARCHAR(60) NULL COMMENT '收件人公司名称',
|
||||
`Country` INT NULL COMMENT '国家',
|
||||
@ -208,8 +207,8 @@ CREATE TABLE `t_order_recipient` (
|
||||
) COMMENT='订单收件人表';
|
||||
|
||||
CREATE TABLE `t_order_declaration` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` BIGINT NOT NULL COMMENT '订单ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` INT NOT NULL COMMENT '订单ID',
|
||||
`CnName` VARCHAR(500) NULL COMMENT '品名-中文',
|
||||
`EnName` VARCHAR(500) NULL COMMENT '品名-英文',
|
||||
`Sku` VARCHAR(255) NULL COMMENT 'SKU',
|
||||
@ -248,8 +247,8 @@ CREATE TABLE `t_order_declaration` (
|
||||
) COMMENT='订单申报信息表';
|
||||
|
||||
CREATE TABLE `t_order_weight` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` BIGINT NOT NULL COMMENT '订单ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` INT NOT NULL COMMENT '订单ID',
|
||||
`Type` VARCHAR(16) NOT NULL COMMENT '类型:forecast/receive/ship/downstream',
|
||||
`Length` DECIMAL(10,2) NULL COMMENT '长(cm)',
|
||||
`Width` DECIMAL(10,2) NULL COMMENT '宽(cm)',
|
||||
@ -268,8 +267,8 @@ CREATE TABLE `t_order_weight` (
|
||||
) COMMENT='订单件重尺表';
|
||||
|
||||
CREATE TABLE `t_order_fee` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` BIGINT NOT NULL COMMENT '订单ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`OrderId` INT NOT NULL COMMENT '订单ID',
|
||||
`Type` VARCHAR(16) NOT NULL COMMENT '类型:receivable/payable',
|
||||
`CostItem` VARCHAR(64) NOT NULL COMMENT '费用项',
|
||||
`Amount` DECIMAL(18,4) NOT NULL COMMENT '金额',
|
||||
@ -289,18 +288,18 @@ CREATE TABLE `t_order_fee` (
|
||||
) COMMENT='订单费用表';
|
||||
|
||||
CREATE TABLE `t_sales_product` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ProductCode` VARCHAR(64) NOT NULL COMMENT '产品编码',
|
||||
`ProductName` VARCHAR(128) NOT NULL COMMENT '产品名称',
|
||||
`ProductGroup` VARCHAR(32) NULL COMMENT '分组(专线/快递/邮政)',
|
||||
`MinTimeliness` INT NULL COMMENT '最小时效(天)',
|
||||
`MaxTimeliness` INT NULL COMMENT '最大时效(天)',
|
||||
`CustomerWaybill` VARCHAR(32) NULL COMMENT '系统面单/客户面单',
|
||||
`BlacklistAreaId` BIGINT NULL COMMENT '黑名单区ID',
|
||||
`RemoteAreaId` BIGINT NULL COMMENT '偏远分区ID',
|
||||
`PriceAreaId` BIGINT NULL COMMENT '价格分区ID',
|
||||
`WeightRuleId` BIGINT NULL COMMENT '计重规则ID',
|
||||
`WeightRoundingId` BIGINT NULL COMMENT '计重进位ID',
|
||||
`BlacklistAreaId` INT NULL COMMENT '黑名单区ID',
|
||||
`RemoteAreaId` INT NULL COMMENT '偏远分区ID',
|
||||
`PriceAreaId` INT NULL COMMENT '价格分区ID',
|
||||
`WeightRuleId` INT NULL COMMENT '计重规则ID',
|
||||
`WeightRoundingId` INT NULL COMMENT '计重进位ID',
|
||||
`ProductDescription` TEXT COMMENT '产品描述',
|
||||
`PreStorageScript` TEXT COMMENT '入库前脚本',
|
||||
`IsActive` TINYINT NOT NULL DEFAULT 1 COMMENT '是否启用',
|
||||
@ -320,8 +319,8 @@ CREATE TABLE `t_sales_product` (
|
||||
) COMMENT='销售产品表';
|
||||
|
||||
CREATE TABLE `t_sales_product_price` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` BIGINT NOT NULL COMMENT '销售产品ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` INT NOT NULL COMMENT '销售产品ID',
|
||||
`SerialNumber` INT NOT NULL COMMENT '序号',
|
||||
`Status` TINYINT NOT NULL DEFAULT 1 COMMENT '状态:0-禁用,1-启用',
|
||||
`PriceName` VARCHAR(64) NOT NULL COMMENT '价格名称',
|
||||
@ -341,8 +340,8 @@ CREATE TABLE `t_sales_product_price` (
|
||||
) COMMENT='产品卖价表';
|
||||
|
||||
CREATE TABLE `t_sales_product_price_factor` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` BIGINT NOT NULL COMMENT '产品卖价ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` INT NOT NULL COMMENT '产品卖价ID',
|
||||
`SerialNumber` INT NOT NULL COMMENT '序号(决定因素排序)',
|
||||
`Factor` VARCHAR(64) NOT NULL COMMENT '因素:货物类型/分区/重量/仓库/客户',
|
||||
`FactorValues` JSON NULL COMMENT '因素值数组',
|
||||
@ -356,8 +355,8 @@ CREATE TABLE `t_sales_product_price_factor` (
|
||||
) COMMENT='产品卖价计费因素表';
|
||||
|
||||
CREATE TABLE `t_sales_product_price_detail` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` BIGINT NOT NULL COMMENT '产品卖价ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` INT NOT NULL COMMENT '产品卖价ID',
|
||||
`FactorValuesJson` JSON NULL COMMENT '非客户因素组合',
|
||||
`CalculationFormula` VARCHAR(32) NOT NULL COMMENT '计算公式:总价/单价/续单价',
|
||||
`CalculatedValue` DECIMAL(18,4) NULL COMMENT '计算值',
|
||||
@ -372,11 +371,11 @@ CREATE TABLE `t_sales_product_price_detail` (
|
||||
) COMMENT='产品卖价价格明细表';
|
||||
|
||||
CREATE TABLE `t_sales_product_allocation_provider` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` BIGINT NOT NULL COMMENT '销售产品ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` INT NOT NULL COMMENT '销售产品ID',
|
||||
`SerialNumber` INT NOT NULL COMMENT '序号',
|
||||
`ProviderName` VARCHAR(128) NOT NULL COMMENT '服务商名称',
|
||||
`ServiceChannelId` BIGINT NULL COMMENT '服务渠道ID',
|
||||
`ServiceChannelId` INT NULL COMMENT '服务渠道ID',
|
||||
`Weight` INT NOT NULL COMMENT '权重(评分用)',
|
||||
`CustomerIds` JSON NULL COMMENT '指定客户ID数组,空表示全部',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
@ -390,8 +389,8 @@ CREATE TABLE `t_sales_product_allocation_provider` (
|
||||
) COMMENT='排货规则服务商表';
|
||||
|
||||
CREATE TABLE `t_sales_product_publish_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` BIGINT NOT NULL COMMENT '销售产品ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`SalesProductId` INT NOT NULL COMMENT '销售产品ID',
|
||||
`Version` VARCHAR(32) NOT NULL COMMENT '版本号,如 20231227112339',
|
||||
`OperatorType` VARCHAR(16) NOT NULL COMMENT '操作类型:price/rules',
|
||||
`Status` VARCHAR(16) NOT NULL COMMENT '状态:生效/回滚/无效',
|
||||
@ -410,10 +409,10 @@ CREATE TABLE `t_sales_product_publish_record` (
|
||||
) COMMENT='销售产品发布记录表';
|
||||
|
||||
CREATE TABLE `t_service_channel_group` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Name` VARCHAR(128) NOT NULL COMMENT '渠道组名称',
|
||||
`AppId` BIGINT NOT NULL COMMENT '应用ID',
|
||||
`ApiServiceProviderId` BIGINT NOT NULL COMMENT 'API服务商ID',
|
||||
`AppId` INT NOT NULL COMMENT '应用ID',
|
||||
`ApiServiceProviderId` INT NOT NULL COMMENT 'API服务商ID',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -426,8 +425,8 @@ CREATE TABLE `t_service_channel_group` (
|
||||
) COMMENT='服务渠道组表';
|
||||
|
||||
CREATE TABLE `t_service_channel` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`GroupId` BIGINT NULL COMMENT '渠道组ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`GroupId` INT NULL COMMENT '渠道组ID',
|
||||
`ChannelCode` VARCHAR(64) NOT NULL COMMENT '渠道编码',
|
||||
`ChannelName` VARCHAR(128) NOT NULL COMMENT '渠道名称',
|
||||
`MinTime` INT NULL COMMENT '最小时效(天)',
|
||||
@ -450,8 +449,8 @@ CREATE TABLE `t_service_channel` (
|
||||
) COMMENT='服务渠道表';
|
||||
|
||||
CREATE TABLE `t_service_channel_price` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ServiceChannelId` BIGINT NOT NULL COMMENT '服务渠道ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ServiceChannelId` INT NOT NULL COMMENT '服务渠道ID',
|
||||
`SerialNumber` INT NOT NULL COMMENT '序号',
|
||||
`Status` TINYINT NOT NULL DEFAULT 1 COMMENT '状态:0-禁用,1-启用',
|
||||
`PriceName` VARCHAR(64) NOT NULL COMMENT '价格名称',
|
||||
@ -471,8 +470,8 @@ CREATE TABLE `t_service_channel_price` (
|
||||
) COMMENT='渠道买价表';
|
||||
|
||||
CREATE TABLE `t_service_channel_price_factor` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` BIGINT NOT NULL COMMENT '渠道买价ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` INT NOT NULL COMMENT '渠道买价ID',
|
||||
`SerialNumber` INT NOT NULL COMMENT '序号',
|
||||
`Factor` VARCHAR(64) NOT NULL COMMENT '因素:货物类型/分区/重量/仓库/客户',
|
||||
`FactorValues` JSON NULL COMMENT '因素值数组',
|
||||
@ -486,8 +485,8 @@ CREATE TABLE `t_service_channel_price_factor` (
|
||||
) COMMENT='渠道买价计费因素表';
|
||||
|
||||
CREATE TABLE `t_service_channel_price_detail` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` BIGINT NOT NULL COMMENT '渠道买价ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`PriceId` INT NOT NULL COMMENT '渠道买价ID',
|
||||
`FactorValuesJson` JSON NULL COMMENT '非客户因素组合',
|
||||
`CalculationFormula` VARCHAR(32) NOT NULL COMMENT '计算公式:总价/单价/续单价',
|
||||
`CalculatedValue` DECIMAL(18,4) NULL COMMENT '计算值',
|
||||
@ -502,8 +501,8 @@ CREATE TABLE `t_service_channel_price_detail` (
|
||||
) COMMENT='渠道买价价格明细表';
|
||||
|
||||
CREATE TABLE `t_service_channel_publish_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ServiceChannelId` BIGINT NOT NULL COMMENT '服务渠道ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ServiceChannelId` INT NOT NULL COMMENT '服务渠道ID',
|
||||
`Version` VARCHAR(32) NOT NULL COMMENT '版本号',
|
||||
`OperatorType` VARCHAR(16) NOT NULL COMMENT '操作类型:price/rules',
|
||||
`Status` VARCHAR(16) NOT NULL COMMENT '状态:生效/回滚/无效',
|
||||
@ -522,7 +521,7 @@ CREATE TABLE `t_service_channel_publish_record` (
|
||||
) COMMENT='服务渠道发布记录表';
|
||||
|
||||
CREATE TABLE `t_kpi_area` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`AppKey` VARCHAR(64) NOT NULL COMMENT '应用标识',
|
||||
`AreaType` VARCHAR(32) NOT NULL COMMENT '类型:blacklist/remote/warning',
|
||||
`Name` VARCHAR(128) NOT NULL COMMENT '分区名称',
|
||||
@ -539,8 +538,8 @@ CREATE TABLE `t_kpi_area` (
|
||||
) COMMENT='分区表';
|
||||
|
||||
CREATE TABLE `t_kpi_area_info` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`AreaId` BIGINT NOT NULL COMMENT '分区ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`AreaId` INT NOT NULL COMMENT '分区ID',
|
||||
`CountryCode` VARCHAR(8) NULL COMMENT '国家二字码',
|
||||
`CountryName` VARCHAR(64) NULL COMMENT '国家名称',
|
||||
`Province` VARCHAR(128) NULL COMMENT '省份',
|
||||
@ -558,7 +557,7 @@ CREATE TABLE `t_kpi_area_info` (
|
||||
) COMMENT='分区明细表';
|
||||
|
||||
CREATE TABLE `t_weight_rule` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`AppKey` VARCHAR(64) NOT NULL COMMENT '应用标识',
|
||||
`Name` VARCHAR(128) NOT NULL COMMENT '规则名称',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
@ -572,8 +571,8 @@ CREATE TABLE `t_weight_rule` (
|
||||
) COMMENT='计重规则表';
|
||||
|
||||
CREATE TABLE `t_weight_rule_info` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`RuleId` BIGINT NOT NULL COMMENT '计重规则ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`RuleId` INT NOT NULL COMMENT '计重规则ID',
|
||||
`Client` VARCHAR(128) NOT NULL COMMENT '客户/客户组',
|
||||
`Condition` VARCHAR(256) NOT NULL COMMENT '条件表达式',
|
||||
`BillableWeight` VARCHAR(64) NOT NULL COMMENT '计费重取值',
|
||||
@ -588,7 +587,7 @@ CREATE TABLE `t_weight_rule_info` (
|
||||
) COMMENT='计重规则明细表';
|
||||
|
||||
CREATE TABLE `t_weight_rounding` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`AppKey` VARCHAR(64) NOT NULL COMMENT '应用标识',
|
||||
`Name` VARCHAR(128) NOT NULL COMMENT '进位名称',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
@ -602,8 +601,8 @@ CREATE TABLE `t_weight_rounding` (
|
||||
) COMMENT='计重进位表';
|
||||
|
||||
CREATE TABLE `t_weight_rounding_info` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`RoundingId` BIGINT NOT NULL COMMENT '计重进位ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`RoundingId` INT NOT NULL COMMENT '计重进位ID',
|
||||
`StartValue` DECIMAL(18,4) NOT NULL COMMENT '起始值(kg)',
|
||||
`EndValue` DECIMAL(18,4) NOT NULL COMMENT '结束值(kg)',
|
||||
`Public` VARCHAR(32) NULL COMMENT '公共进位值',
|
||||
@ -619,7 +618,7 @@ CREATE TABLE `t_weight_rounding_info` (
|
||||
) COMMENT='计重进位明细表';
|
||||
|
||||
CREATE TABLE `t_auto_trigger` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Status` TINYINT NOT NULL DEFAULT 1 COMMENT '是否启用',
|
||||
`Operation` VARCHAR(32) NULL COMMENT '操作:拦截/警告/问题件',
|
||||
`TriggerTiming` VARCHAR(32) NULL COMMENT '触发时机:下单/入库/出库',
|
||||
@ -638,7 +637,7 @@ CREATE TABLE `t_auto_trigger` (
|
||||
) COMMENT='自动触发表';
|
||||
|
||||
CREATE TABLE `t_label_template` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Name` VARCHAR(128) NOT NULL COMMENT '模板名称',
|
||||
`TemplateJson` JSON NULL COMMENT 'vg-print 模板 JSON',
|
||||
`TemplateType` VARCHAR(32) NULL COMMENT '尾程/客户/入库/出库/sku',
|
||||
@ -653,17 +652,17 @@ CREATE TABLE `t_label_template` (
|
||||
) COMMENT='标签模板表';
|
||||
|
||||
CREATE TABLE `t_inbound_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`WaybillNo` VARCHAR(64) NOT NULL COMMENT '运单号',
|
||||
`Weight` DECIMAL(10,2) NULL COMMENT '实重(kg)',
|
||||
`Length` DECIMAL(10,2) NULL COMMENT '长(cm)',
|
||||
`Width` DECIMAL(10,2) NULL COMMENT '宽(cm)',
|
||||
`Height` DECIMAL(10,2) NULL COMMENT '高(cm)',
|
||||
`SalesProductId` BIGINT NULL COMMENT '销售产品ID',
|
||||
`SalesProductId` INT NULL COMMENT '销售产品ID',
|
||||
`DestinationCountry` VARCHAR(8) NULL COMMENT '目的国',
|
||||
`WarehouseId` BIGINT NULL COMMENT '仓库ID',
|
||||
`WarehouseId` INT NULL COMMENT '仓库ID',
|
||||
`OperateTime` DATETIME NOT NULL COMMENT '操作时间',
|
||||
`OperatorId` BIGINT NULL COMMENT '操作人ID',
|
||||
`OperatorId` INT NULL COMMENT '操作人ID',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -677,11 +676,11 @@ CREATE TABLE `t_inbound_record` (
|
||||
) COMMENT='入库记录表';
|
||||
|
||||
CREATE TABLE `t_outbound_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`WaybillNo` VARCHAR(64) NOT NULL COMMENT '运单号',
|
||||
`WarehouseId` BIGINT NULL COMMENT '仓库ID',
|
||||
`WarehouseId` INT NULL COMMENT '仓库ID',
|
||||
`OperateTime` DATETIME NOT NULL COMMENT '操作时间',
|
||||
`OperatorId` BIGINT NULL COMMENT '操作人ID',
|
||||
`OperatorId` INT NULL COMMENT '操作人ID',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -694,15 +693,15 @@ CREATE TABLE `t_outbound_record` (
|
||||
) COMMENT='出库记录表';
|
||||
|
||||
CREATE TABLE `t_label_print_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`WaybillNo` VARCHAR(64) NOT NULL COMMENT '运单号',
|
||||
`CustomerOrderNo` VARCHAR(64) NULL COMMENT '客户单号',
|
||||
`TrackingNo` VARCHAR(64) NULL COMMENT '跟踪号',
|
||||
`OtherNumber` VARCHAR(64) NULL COMMENT '其他单号',
|
||||
`LabelTemplateId` BIGINT NULL COMMENT '标签模板ID',
|
||||
`LabelTemplateId` INT NULL COMMENT '标签模板ID',
|
||||
`PrintSuccess` TINYINT NOT NULL DEFAULT 0 COMMENT '是否打印成功',
|
||||
`PrintTime` DATETIME NOT NULL COMMENT '打印时间',
|
||||
`OperatorId` BIGINT NULL COMMENT '操作人ID',
|
||||
`OperatorId` INT NULL COMMENT '操作人ID',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人',
|
||||
@ -716,7 +715,9 @@ CREATE TABLE `t_label_print_record` (
|
||||
) COMMENT='标签打印记录表';
|
||||
|
||||
CREATE TABLE `t_customer` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ParentCustomerId` INT NULL COMMENT '父客户ID,NULL表示主客户',
|
||||
`UserId` INT NOT NULL COMMENT '关联用户表自增userid',
|
||||
`CustomerCode` VARCHAR(32) NOT NULL COMMENT '客户编号,规则:前缀w+年份+序号',
|
||||
`CustomerName` VARCHAR(128) NOT NULL COMMENT '客户名称',
|
||||
`WechatAvatar` VARCHAR(255) NULL COMMENT '微信头像URL',
|
||||
@ -735,7 +736,6 @@ CREATE TABLE `t_customer` (
|
||||
`Salesman` VARCHAR(32) NULL COMMENT '所属销售员账号',
|
||||
`CustomerService` VARCHAR(32) NULL COMMENT '所属客服账号',
|
||||
`CustomerGroup` TINYINT NULL COMMENT '客户分组:0-普通客户,1-VIP1,2-VIP2,3-VIP3,4-VIP4,5-VIP5',
|
||||
`Role` VARCHAR(64) NULL COMMENT '角色,用于菜单权限',
|
||||
`LastLoginIp` VARCHAR(64) NULL COMMENT '最后在线IP',
|
||||
`LastLoginTime` DATETIME NULL COMMENT '最后在线时间',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
@ -744,39 +744,18 @@ CREATE TABLE `t_customer` (
|
||||
`Password` VARCHAR(64) NOT NULL COMMENT '密码(MD5加密存储)',
|
||||
PRIMARY KEY (`Id`),
|
||||
UNIQUE KEY `uk_cus_code` (`CustomerCode`),
|
||||
UNIQUE KEY `uk_cus_user` (`UserId`),
|
||||
UNIQUE KEY `uk_cus_phone` (`Phone`),
|
||||
UNIQUE KEY `uk_cus_email` (`Email`),
|
||||
UNIQUE KEY `uk_cus_openid` (`WechatOpenid`),
|
||||
KEY `idx_cus_parent_status` (`ParentCustomerId`, `Status`),
|
||||
KEY `idx_cus_status_group` (`Status`, `CustomerGroup`),
|
||||
KEY `idx_cus_sales_service` (`Salesman`, `CustomerService`)
|
||||
) COMMENT='客户表';
|
||||
|
||||
CREATE TABLE `t_customer_sub_account` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`MainCustomerId` BIGINT NOT NULL COMMENT '主客户ID',
|
||||
`SubAccountCode` VARCHAR(32) NOT NULL COMMENT '子账号编号',
|
||||
`SubWechatAvatar` VARCHAR(255) NULL COMMENT '子账号微信头像',
|
||||
`SubWechatNickname` VARCHAR(64) NULL COMMENT '子账号微信昵称',
|
||||
`SubPhone` VARCHAR(16) NOT NULL COMMENT '子账号手机号',
|
||||
`SubEmail` VARCHAR(64) NULL COMMENT '子账号邮箱',
|
||||
`SubPassword` VARCHAR(64) NOT NULL COMMENT '子账号密码(MD5加密)',
|
||||
`SubStatus` TINYINT NOT NULL DEFAULT 1 COMMENT '子账号状态:0-禁用,1-正常',
|
||||
`CreateUserId` INT NOT NULL DEFAULT 0 COMMENT '创建人(主客户/管理员)',
|
||||
`CreateTime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`UpdateUserId` INT NULL COMMENT '更新人',
|
||||
`UpdateTime` DATETIME NULL COMMENT '更新时间',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
PRIMARY KEY (`Id`),
|
||||
UNIQUE KEY `uk_csa_code` (`SubAccountCode`),
|
||||
UNIQUE KEY `uk_csa_phone` (`SubPhone`),
|
||||
KEY `idx_csa_main_status` (`MainCustomerId`, `SubStatus`),
|
||||
KEY `idx_csa_email` (`SubEmail`)
|
||||
) COMMENT='客户子账号表';
|
||||
|
||||
CREATE TABLE `t_recharge_record` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`CustomerId` BIGINT NOT NULL COMMENT '客户ID(主账号/子账号关联主账号ID)',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`CustomerId` INT NOT NULL COMMENT '客户ID(主账号/子账号关联主账号ID)',
|
||||
`SerialNumber` VARCHAR(64) NOT NULL COMMENT '流水号',
|
||||
`RechargeTime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '充值提交时间',
|
||||
`PayType` TINYINT NOT NULL COMMENT '支付方式:1-微信,2-支付宝',
|
||||
@ -799,7 +778,7 @@ CREATE TABLE `t_recharge_record` (
|
||||
) COMMENT='充值记录表';
|
||||
|
||||
CREATE TABLE `t_country` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`ChineseName` VARCHAR(128) NOT NULL COMMENT '国家中文名',
|
||||
`EnglishName` VARCHAR(128) NOT NULL COMMENT '国家英文名',
|
||||
`CountryCode` VARCHAR(2) NOT NULL COMMENT 'ISO 3166-1 alpha-2 国家二字码',
|
||||
@ -815,7 +794,7 @@ CREATE TABLE `t_country` (
|
||||
) COMMENT='国家表';
|
||||
|
||||
CREATE TABLE `t_dict` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`DictType` VARCHAR(64) NOT NULL COMMENT '字典类型',
|
||||
`DictSort` INT NOT NULL DEFAULT 0 COMMENT '排序值',
|
||||
`DictCode` VARCHAR(64) NOT NULL COMMENT '字典编码',
|
||||
@ -832,7 +811,7 @@ CREATE TABLE `t_dict` (
|
||||
) COMMENT='系统字典表';
|
||||
|
||||
CREATE TABLE `t_notice` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`NoticeType` VARCHAR(16) NOT NULL COMMENT '通知类型:notice/message',
|
||||
`Title` VARCHAR(200) NOT NULL COMMENT '通知标题',
|
||||
`Content` TEXT NOT NULL COMMENT '通知内容',
|
||||
@ -851,10 +830,10 @@ CREATE TABLE `t_notice` (
|
||||
) COMMENT='公告通知表';
|
||||
|
||||
CREATE TABLE `t_notice_read` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`NoticeId` BIGINT NOT NULL COMMENT '通知ID',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`NoticeId` INT NOT NULL COMMENT '通知ID',
|
||||
`ReceiverType` VARCHAR(16) NOT NULL COMMENT '接收对象:user/customer',
|
||||
`ReceiverId` BIGINT NOT NULL COMMENT '接收主体ID',
|
||||
`ReceiverId` INT NOT NULL COMMENT '接收主体ID',
|
||||
`ReadTime` DATETIME NOT NULL COMMENT '已读时间',
|
||||
`IsDeleted` TINYINT NOT NULL DEFAULT 0 COMMENT '软删除:0-否,1-是',
|
||||
`ConcurrencyStamp` CHAR(36) NOT NULL DEFAULT (UUID()) COMMENT '并发戳',
|
||||
@ -928,7 +907,7 @@ VALUES
|
||||
('墨西哥', 'Mexico', 'MX', 0, 0, CURRENT_TIMESTAMP, NULL, NULL);
|
||||
|
||||
CREATE TABLE `t_warehouse_address` (
|
||||
`Id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`Id` INT NOT NULL AUTO_INCREMENT COMMENT '主键,自增,步长 1',
|
||||
`WarehouseName` VARCHAR(128) NOT NULL COMMENT '仓库名称',
|
||||
`WarehouseType` VARCHAR(32) NOT NULL COMMENT 'main/transit/return/other',
|
||||
`Recipient` VARCHAR(64) NULL COMMENT '收件人',
|
||||
|
||||
@ -8,7 +8,7 @@ public class AutoTriggerOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态。
|
||||
|
||||
@ -10,7 +10,7 @@ public class AutoTriggerSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态。
|
||||
|
||||
@ -8,7 +8,7 @@ public class ChannelPriceDetailInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 因子取值 JSON。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ChannelPriceDetailOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价格项主键。
|
||||
/// </summary>
|
||||
public long PriceId { get; set; }
|
||||
public int PriceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 因子取值 JSON。
|
||||
|
||||
@ -8,7 +8,7 @@ public class ChannelPriceFactorInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ChannelPriceFactorOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价格项主键。
|
||||
/// </summary>
|
||||
public long PriceId { get; set; }
|
||||
public int PriceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class KpiAreaInfoListInput
|
||||
/// <summary>
|
||||
/// 分区主键。
|
||||
/// </summary>
|
||||
public long AreaId { get; set; }
|
||||
public int AreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码,从 1 开始。
|
||||
|
||||
@ -8,12 +8,12 @@ public class KpiAreaInfoOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分区主键。
|
||||
/// </summary>
|
||||
public long AreaId { get; set; }
|
||||
public int AreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 国家/地区代码。
|
||||
|
||||
@ -8,12 +8,12 @@ public class KpiAreaInfoSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分区主键。
|
||||
/// </summary>
|
||||
public long AreaId { get; set; }
|
||||
public int AreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 国家/地区代码。
|
||||
|
||||
@ -8,7 +8,7 @@ public class KpiAreaOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -8,7 +8,7 @@ public class KpiAreaSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -8,7 +8,7 @@ public class LabelTemplateSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称。
|
||||
|
||||
@ -8,7 +8,7 @@ public class LabelTemplateSaveOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductAllocationOutput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 方案编码。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductAllocationProviderInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
@ -23,7 +23,7 @@ public class SalesProductAllocationProviderInput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long? ServiceChannelId { get; set; }
|
||||
public int? ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重量。
|
||||
@ -33,5 +33,5 @@ public class SalesProductAllocationProviderInput
|
||||
/// <summary>
|
||||
/// 客户主键集合。
|
||||
/// </summary>
|
||||
public List<long> CustomerIds { get; set; } = [];
|
||||
public List<int> CustomerIds { get; set; } = [];
|
||||
}
|
||||
|
||||
@ -8,12 +8,12 @@ public class SalesProductAllocationProviderOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
@ -28,7 +28,7 @@ public class SalesProductAllocationProviderOutput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long? ServiceChannelId { get; set; }
|
||||
public int? ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务渠道名称。
|
||||
@ -43,7 +43,7 @@ public class SalesProductAllocationProviderOutput
|
||||
/// <summary>
|
||||
/// 客户主键集合。
|
||||
/// </summary>
|
||||
public List<long> CustomerIds { get; set; } = [];
|
||||
public List<int> CustomerIds { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductAllocationSaveInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否发布。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductDetailOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品编码。
|
||||
@ -43,27 +43,27 @@ public class SalesProductDetailOutput
|
||||
/// <summary>
|
||||
/// 黑名单分区主键。
|
||||
/// </summary>
|
||||
public long? BlacklistAreaId { get; set; }
|
||||
public int? BlacklistAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 偏远分区主键。
|
||||
/// </summary>
|
||||
public long? RemoteAreaId { get; set; }
|
||||
public int? RemoteAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价格分区主键。
|
||||
/// </summary>
|
||||
public long? PriceAreaId { get; set; }
|
||||
public int? PriceAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRuleId { get; set; }
|
||||
public int? WeightRuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重进位规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRoundingId { get; set; }
|
||||
public int? WeightRoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品描述。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductListOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品编码。
|
||||
@ -43,27 +43,27 @@ public class SalesProductListOutput
|
||||
/// <summary>
|
||||
/// 黑名单分区主键。
|
||||
/// </summary>
|
||||
public long? BlacklistAreaId { get; set; }
|
||||
public int? BlacklistAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 偏远分区主键。
|
||||
/// </summary>
|
||||
public long? RemoteAreaId { get; set; }
|
||||
public int? RemoteAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价格分区主键。
|
||||
/// </summary>
|
||||
public long? PriceAreaId { get; set; }
|
||||
public int? PriceAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRuleId { get; set; }
|
||||
public int? WeightRuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重进位规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRoundingId { get; set; }
|
||||
public int? WeightRoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品描述。
|
||||
|
||||
@ -8,12 +8,12 @@ public class SalesProductPriceListOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductPriceSaveAllInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否发布。
|
||||
|
||||
@ -10,12 +10,12 @@ public class SalesProductPriceSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductPublishInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型。
|
||||
|
||||
@ -8,7 +8,7 @@ public class SalesProductPublishListInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码,从 1 开始。
|
||||
|
||||
@ -8,12 +8,12 @@ public class SalesProductPublishRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 版本号。
|
||||
|
||||
@ -8,12 +8,12 @@ public class SalesProductRollbackInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录主键。
|
||||
/// </summary>
|
||||
public long RecordId { get; set; }
|
||||
public int RecordId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型。
|
||||
|
||||
@ -10,7 +10,7 @@ public class SalesProductSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品编码。
|
||||
@ -45,27 +45,27 @@ public class SalesProductSaveInput
|
||||
/// <summary>
|
||||
/// 黑名单分区主键。
|
||||
/// </summary>
|
||||
public long? BlacklistAreaId { get; set; }
|
||||
public int? BlacklistAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 偏远分区主键。
|
||||
/// </summary>
|
||||
public long? RemoteAreaId { get; set; }
|
||||
public int? RemoteAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价格分区主键。
|
||||
/// </summary>
|
||||
public long? PriceAreaId { get; set; }
|
||||
public int? PriceAreaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRuleId { get; set; }
|
||||
public int? WeightRuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计重进位规则主键。
|
||||
/// </summary>
|
||||
public long? WeightRoundingId { get; set; }
|
||||
public int? WeightRoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 产品描述。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ServiceChannelDetailOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组主键。
|
||||
/// </summary>
|
||||
public long? GroupId { get; set; }
|
||||
public int? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组名称。
|
||||
|
||||
@ -10,7 +10,7 @@ public class ServiceChannelGroupSaveInput
|
||||
/// <summary>
|
||||
/// 分组主键,新增时可不传。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(128)]
|
||||
@ -22,10 +22,10 @@ public class ServiceChannelGroupSaveInput
|
||||
/// <summary>
|
||||
/// 业务应用ID。
|
||||
/// </summary>
|
||||
public long AppId { get; set; }
|
||||
public int AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// API服务商ID。
|
||||
/// </summary>
|
||||
public long ApiServiceProviderId { get; set; }
|
||||
public int ApiServiceProviderId { get; set; }
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ public class ServiceChannelListInput
|
||||
/// <summary>
|
||||
/// 分组主键。
|
||||
/// </summary>
|
||||
public long? GroupId { get; set; }
|
||||
public int? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关键词。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ServiceChannelListOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组主键。
|
||||
/// </summary>
|
||||
public long? GroupId { get; set; }
|
||||
public int? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组名称。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ServiceChannelPriceListOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class ServiceChannelPriceSaveAllInput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否发布。
|
||||
|
||||
@ -10,12 +10,12 @@ public class ServiceChannelPriceSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class ServiceChannelPublishInput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型。
|
||||
|
||||
@ -8,7 +8,7 @@ public class ServiceChannelPublishListInput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码,从 1 开始。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ServiceChannelPublishRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 版本号。
|
||||
|
||||
@ -8,12 +8,12 @@ public class ServiceChannelRollbackInput
|
||||
/// <summary>
|
||||
/// 服务渠道主键。
|
||||
/// </summary>
|
||||
public long ServiceChannelId { get; set; }
|
||||
public int ServiceChannelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 记录主键。
|
||||
/// </summary>
|
||||
public long RecordId { get; set; }
|
||||
public int RecordId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作类型。
|
||||
|
||||
@ -10,12 +10,12 @@ public class ServiceChannelSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分组主键。
|
||||
/// </summary>
|
||||
public long? GroupId { get; set; }
|
||||
public int? GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 渠道编码。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRoundingInfoListInput
|
||||
/// <summary>
|
||||
/// 进位主键。
|
||||
/// </summary>
|
||||
public long RoundingId { get; set; }
|
||||
public int RoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码,从 1 开始。
|
||||
|
||||
@ -8,12 +8,12 @@ public class WeightRoundingInfoOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 进位主键。
|
||||
/// </summary>
|
||||
public long RoundingId { get; set; }
|
||||
public int RoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起始值。
|
||||
|
||||
@ -8,12 +8,12 @@ public class WeightRoundingInfoSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 进位主键。
|
||||
/// </summary>
|
||||
public long RoundingId { get; set; }
|
||||
public int RoundingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 起始值。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRoundingOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRoundingSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRuleInfoListInput
|
||||
/// <summary>
|
||||
/// 规则主键。
|
||||
/// </summary>
|
||||
public long RuleId { get; set; }
|
||||
public int RuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页码,从 1 开始。
|
||||
|
||||
@ -8,12 +8,12 @@ public class WeightRuleInfoOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则主键。
|
||||
/// </summary>
|
||||
public long RuleId { get; set; }
|
||||
public int RuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client。
|
||||
|
||||
@ -8,12 +8,12 @@ public class WeightRuleInfoSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规则主键。
|
||||
/// </summary>
|
||||
public long RuleId { get; set; }
|
||||
public int RuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRuleOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WeightRuleSaveInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long? Id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用标识。
|
||||
|
||||
@ -52,7 +52,7 @@ public class CreateCustomerInput
|
||||
/// 密码。
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(64)]
|
||||
[StringLength(64, MinimumLength = 6)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
@ -101,9 +101,4 @@ public class CreateCustomerInput
|
||||
/// </summary>
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色编码,控制客户登录后的菜单权限。
|
||||
/// </summary>
|
||||
[StringLength(64)]
|
||||
public string? Role { get; set; }
|
||||
}
|
||||
|
||||
15
src/Oms.Application/Dtos/Customers/CreateSubCustomerInput.cs
Normal file
15
src/Oms.Application/Dtos/Customers/CreateSubCustomerInput.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Oms.Application.Dtos.Customers;
|
||||
|
||||
/// <summary>
|
||||
/// 创建子客户入参。
|
||||
/// </summary>
|
||||
public class CreateSubCustomerInput : CreateCustomerInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 子客户权限编码列表,不能超出当前客户已拥有权限。
|
||||
/// </summary>
|
||||
[MaxLength(200)]
|
||||
public List<string> Permissions { get; set; } = [];
|
||||
}
|
||||
@ -10,7 +10,17 @@ public class CustomerOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父客户ID,空表示主客户。
|
||||
/// </summary>
|
||||
public int? ParentCustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联用户编号。
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户编码。
|
||||
@ -82,11 +92,6 @@ public class CustomerOutput
|
||||
/// </summary>
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色。
|
||||
/// </summary>
|
||||
public string? Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后登录 IP。
|
||||
/// </summary>
|
||||
|
||||
@ -8,9 +8,14 @@ namespace Oms.Application.Dtos.Customers;
|
||||
public class CustomerPaginatedOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// 父客户ID,空表示主客户。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int? ParentCustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 关联用户编号。
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户编码。
|
||||
@ -82,11 +87,6 @@ public class CustomerPaginatedOutput
|
||||
/// </summary>
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色编码。
|
||||
/// </summary>
|
||||
public string? Role { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后登录 IP。
|
||||
/// </summary>
|
||||
|
||||
@ -11,7 +11,7 @@ public class ResetCustomerPasswordInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(64)]
|
||||
|
||||
@ -12,7 +12,7 @@ public class UpdateCustomerInput
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
[Required]
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户编号。
|
||||
@ -100,9 +100,4 @@ public class UpdateCustomerInput
|
||||
/// </summary>
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 角色编码,控制客户登录后的菜单权限。
|
||||
/// </summary>
|
||||
[StringLength(64)]
|
||||
public string? Role { get; set; }
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ public class CreateInboundRecordInput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long? SalesProductId { get; set; }
|
||||
public int? SalesProductId { get; set; }
|
||||
|
||||
[StringLength(8)]
|
||||
/// <summary>
|
||||
@ -48,5 +48,5 @@ public class CreateInboundRecordInput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
}
|
||||
|
||||
@ -17,5 +17,5 @@ public class CreateOutboundRecordInput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ public class InboundRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运单号。
|
||||
@ -38,7 +38,7 @@ public class InboundRecordOutput
|
||||
/// <summary>
|
||||
/// 销售产品主键。
|
||||
/// </summary>
|
||||
public long? SalesProductId { get; set; }
|
||||
public int? SalesProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售产品名称。
|
||||
@ -53,7 +53,7 @@ public class InboundRecordOutput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
@ -68,7 +68,7 @@ public class InboundRecordOutput
|
||||
/// <summary>
|
||||
/// 操作人主键。
|
||||
/// </summary>
|
||||
public long? OperatorId { get; set; }
|
||||
public int? OperatorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人名称。
|
||||
|
||||
@ -10,7 +10,7 @@ public class LabelPrintRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运单号。
|
||||
@ -35,7 +35,7 @@ public class LabelPrintRecordOutput
|
||||
/// <summary>
|
||||
/// 标签模板主键。
|
||||
/// </summary>
|
||||
public long? LabelTemplateId { get; set; }
|
||||
public int? LabelTemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标签模板名称。
|
||||
@ -55,7 +55,7 @@ public class LabelPrintRecordOutput
|
||||
/// <summary>
|
||||
/// 操作人主键。
|
||||
/// </summary>
|
||||
public long? OperatorId { get; set; }
|
||||
public int? OperatorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人名称。
|
||||
|
||||
@ -8,7 +8,7 @@ public class LabelTemplateDropdownOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OutboundRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运单号。
|
||||
@ -18,7 +18,7 @@ public class OutboundRecordOutput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
@ -33,7 +33,7 @@ public class OutboundRecordOutput
|
||||
/// <summary>
|
||||
/// 操作人主键。
|
||||
/// </summary>
|
||||
public long? OperatorId { get; set; }
|
||||
public int? OperatorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 操作人名称。
|
||||
|
||||
@ -29,5 +29,5 @@ public class PrintLabelInput
|
||||
/// <summary>
|
||||
/// 标签模板主键。
|
||||
/// </summary>
|
||||
public long? LabelTemplateId { get; set; }
|
||||
public int? LabelTemplateId { get; set; }
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ public class OrderActionInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
/// <summary>
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户单号。
|
||||
@ -43,7 +43,7 @@ public class OrderOutput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
@ -53,7 +53,7 @@ public class OrderOutput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否 COD。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderPaginatedOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务单号。
|
||||
@ -53,7 +53,7 @@ public class OrderPaginatedOutput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
@ -63,7 +63,7 @@ public class OrderPaginatedOutput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 收货时间。
|
||||
|
||||
@ -43,12 +43,12 @@ public class OrderParcelCreateInput
|
||||
/// <summary>
|
||||
/// 仓库主键。
|
||||
/// </summary>
|
||||
public long? WarehouseId { get; set; }
|
||||
public int? WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 长度。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderPriceCheckOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运输方式。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderTaskDetailOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称。
|
||||
@ -38,7 +38,7 @@ public class OrderTaskDetailOutput
|
||||
/// <summary>
|
||||
/// 模板主键。
|
||||
/// </summary>
|
||||
public long? TemplateId { get; set; }
|
||||
public int? TemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间。
|
||||
|
||||
@ -8,12 +8,12 @@ public class OrderTaskFailOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务主键。
|
||||
/// </summary>
|
||||
public long TaskId { get; set; }
|
||||
public int TaskId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 行号。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderTaskOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称。
|
||||
@ -28,7 +28,7 @@ public class OrderTaskOutput
|
||||
/// <summary>
|
||||
/// 模板主键。
|
||||
/// </summary>
|
||||
public long? TemplateId { get; set; }
|
||||
public int? TemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间。
|
||||
|
||||
@ -8,7 +8,7 @@ public class OrderTemplateOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称。
|
||||
@ -28,7 +28,7 @@ public class OrderTemplateOutput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间。
|
||||
|
||||
@ -15,5 +15,5 @@ public class OrderUploadInput
|
||||
/// <summary>
|
||||
/// 模板主键。
|
||||
/// </summary>
|
||||
public long TemplateId { get; set; }
|
||||
public int TemplateId { get; set; }
|
||||
}
|
||||
|
||||
@ -8,5 +8,5 @@ public class OrderUploadOutput
|
||||
/// <summary>
|
||||
/// 任务主键。
|
||||
/// </summary>
|
||||
public long TaskId { get; set; }
|
||||
public int TaskId { get; set; }
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ public class ApproveRechargeInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
[StringLength(512)]
|
||||
/// <summary>
|
||||
|
||||
@ -8,7 +8,7 @@ public class RechargeExportInput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间。
|
||||
|
||||
@ -10,7 +10,7 @@ public class RechargeRecordOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
@ -20,7 +20,7 @@ public class RechargeRecordOutput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 充值金额。
|
||||
|
||||
@ -20,7 +20,7 @@ public class RechargeRecordPaginatedInput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号。
|
||||
|
||||
@ -10,12 +10,12 @@ public class RechargeRecordPaginatedOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long CustomerId { get; set; }
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户编码。
|
||||
|
||||
@ -11,7 +11,7 @@ public class RejectRechargeInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
[StringLength(512)]
|
||||
/// <summary>
|
||||
|
||||
@ -11,7 +11,7 @@ public class SubmitRechargeInput
|
||||
/// <summary>
|
||||
/// 客户主键。
|
||||
/// </summary>
|
||||
public long? CustomerId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
[Range(typeof(decimal), "0.01", "999999999999")]
|
||||
/// <summary>
|
||||
|
||||
@ -11,5 +11,5 @@ public class IdInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ public class ToggleStatusInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态。
|
||||
|
||||
@ -8,7 +8,7 @@ public class CountryOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 国家中文名。
|
||||
|
||||
@ -8,7 +8,7 @@ public class DictOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字典类型。
|
||||
|
||||
@ -11,5 +11,5 @@ public class DictUpdateInput : DictCreateInput
|
||||
/// <summary>
|
||||
/// 字典主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
||||
@ -42,5 +42,5 @@ public class NoticeCreateInput
|
||||
/// <summary>
|
||||
/// 接收主体 ID 列表。
|
||||
/// </summary>
|
||||
public List<long> ReceiverIds { get; set; } = [];
|
||||
public List<int> ReceiverIds { get; set; } = [];
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ public class NoticeOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 通知类型。
|
||||
@ -48,12 +48,12 @@ public class NoticeOutput
|
||||
/// <summary>
|
||||
/// 接收主体 ID 列表。
|
||||
/// </summary>
|
||||
public List<long> ReceiverIds { get; set; } = [];
|
||||
public List<int> ReceiverIds { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// 已读人数。
|
||||
/// </summary>
|
||||
public long ReadCount { get; set; }
|
||||
public int ReadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 接收总人数。
|
||||
|
||||
@ -11,5 +11,5 @@ public class NoticeUpdateInput : NoticeCreateInput
|
||||
/// <summary>
|
||||
/// 通知主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ public class UpdateWarehouseInput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(128)]
|
||||
|
||||
@ -8,7 +8,7 @@ public class WarehouseOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
|
||||
@ -8,7 +8,7 @@ public class WarehousePaginatedOutput
|
||||
/// <summary>
|
||||
/// 主键。
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库名称。
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Fake.ObjectMapping.AutoMapper" Version="8.0.5.11" />
|
||||
<PackageReference Include="Fake.Rbac.Application" Version="8.0.5.11" />
|
||||
<PackageReference Include="Fake.Rbac.Infrastructure" Version="8.0.5.11" />
|
||||
<PackageReference Include="MiniExcel" Version="1.43.1" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -137,7 +137,7 @@ public class AutoTriggerService : ApplicationService
|
||||
(string.IsNullOrWhiteSpace(triggerTiming) || entity.TriggerTiming == triggerTiming);
|
||||
}
|
||||
|
||||
private async Task<AutoTrigger> GetEntityOrThrowAsync(long? id)
|
||||
private async Task<AutoTrigger> GetEntityOrThrowAsync(int? id)
|
||||
{
|
||||
if (!id.HasValue || id.Value <= 0)
|
||||
{
|
||||
|
||||
@ -216,7 +216,7 @@ public class KpiAreaService : ApplicationService
|
||||
(string.IsNullOrWhiteSpace(areaType) || entity.AreaType == areaType);
|
||||
}
|
||||
|
||||
private async Task ValidateAreaNameAsync(string appKey, string areaType, string name, long? id)
|
||||
private async Task ValidateAreaNameAsync(string appKey, string areaType, string name, int? id)
|
||||
{
|
||||
var existed = await KpiAreaRepository.GetByAppKeyTypeAndNameAsync(appKey, areaType, name);
|
||||
if (existed != null && existed.Id != id)
|
||||
@ -225,7 +225,7 @@ public class KpiAreaService : ApplicationService
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<KpiArea> GetAreaOrThrowAsync(long? id)
|
||||
private async Task<KpiArea> GetAreaOrThrowAsync(int? id)
|
||||
{
|
||||
if (!id.HasValue || id.Value <= 0)
|
||||
{
|
||||
@ -241,7 +241,7 @@ public class KpiAreaService : ApplicationService
|
||||
return entity;
|
||||
}
|
||||
|
||||
private async Task<KpiAreaInfo> GetAreaInfoOrThrowAsync(long? id)
|
||||
private async Task<KpiAreaInfo> GetAreaInfoOrThrowAsync(int? id)
|
||||
{
|
||||
if (!id.HasValue || id.Value <= 0)
|
||||
{
|
||||
|
||||
@ -51,7 +51,7 @@ public class LabelTemplateService : ApplicationService
|
||||
return MapOutput(entity);
|
||||
}
|
||||
|
||||
private async Task ValidateUniqueNameAsync(string name, string? templateType, long? id)
|
||||
private async Task ValidateUniqueNameAsync(string name, string? templateType, int? id)
|
||||
{
|
||||
var existed = await LabelTemplateRepository.GetByNameAndTypeAsync(name, templateType);
|
||||
if (existed != null && existed.Id != id)
|
||||
@ -60,7 +60,7 @@ public class LabelTemplateService : ApplicationService
|
||||
}
|
||||
}
|
||||
|
||||
private async Task<LabelTemplate> GetEntityOrThrowAsync(long id)
|
||||
private async Task<LabelTemplate> GetEntityOrThrowAsync(int id)
|
||||
{
|
||||
var entity = await LabelTemplateRepository.FirstOrDefaultAsync(x => x.Id == id);
|
||||
if (entity == null)
|
||||
|
||||
@ -12,7 +12,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 校验产品编码唯一性。
|
||||
/// </summary>
|
||||
private async Task ValidateProductCodeAsync(string productCode, long? id)
|
||||
private async Task ValidateProductCodeAsync(string productCode, int? id)
|
||||
{
|
||||
var existed = await SalesProductRepository.GetByProductCodeAsync(productCode);
|
||||
if (existed != null && existed.Id != id)
|
||||
@ -24,7 +24,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 获取销售产品,不存在时直接抛异常。
|
||||
/// </summary>
|
||||
private async Task<SalesProduct> GetProductOrThrowAsync(long? id)
|
||||
private async Task<SalesProduct> GetProductOrThrowAsync(int? id)
|
||||
{
|
||||
if (!id.HasValue || id.Value <= 0)
|
||||
{
|
||||
@ -43,7 +43,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 获取价格项,不存在时直接抛异常。
|
||||
/// </summary>
|
||||
private async Task<SalesProductPrice> GetPriceOrThrowAsync(long? id)
|
||||
private async Task<SalesProductPrice> GetPriceOrThrowAsync(int? id)
|
||||
{
|
||||
if (!id.HasValue || id.Value <= 0)
|
||||
{
|
||||
@ -62,7 +62,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 一次性装配价格项、因子和明细,避免接口层 N+1 查询。
|
||||
/// </summary>
|
||||
private async Task<List<SalesProductPriceListOutput>> GetPriceOutputsAsync(long salesProductId)
|
||||
private async Task<List<SalesProductPriceListOutput>> GetPriceOutputsAsync(int salesProductId)
|
||||
{
|
||||
var prices = await SalesProductRepository.GetPricesAsync(salesProductId);
|
||||
var priceIds = prices.Select(x => x.Id).ToArray();
|
||||
@ -95,7 +95,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 获取排货方案,并补充服务渠道名称。
|
||||
/// </summary>
|
||||
private async Task<SalesProductAllocationOutput> GetAllocationCoreAsync(long salesProductId)
|
||||
private async Task<SalesProductAllocationOutput> GetAllocationCoreAsync(int salesProductId)
|
||||
{
|
||||
var product = await GetProductOrThrowAsync(salesProductId);
|
||||
var providers = await SalesProductRepository.GetAllocationProvidersAsync(salesProductId);
|
||||
@ -118,7 +118,7 @@ public partial class SalesProductService
|
||||
ServiceChannelId = provider.ServiceChannelId,
|
||||
ServiceChannelName = provider.ServiceChannelId.HasValue && channelMap.TryGetValue(provider.ServiceChannelId.Value, out var name) ? name : null,
|
||||
Weight = provider.Weight,
|
||||
CustomerIds = OmsDocHelper.DeserializeJson<List<long>>(provider.CustomerIds) ?? [],
|
||||
CustomerIds = OmsDocHelper.DeserializeJson<List<int>>(provider.CustomerIds) ?? [],
|
||||
CreateTime = provider.CreateTime,
|
||||
UpdateTime = OmsDocHelper.NullIfDefault(provider.UpdateTime)
|
||||
}).ToList()
|
||||
@ -157,7 +157,7 @@ public partial class SalesProductService
|
||||
/// <summary>
|
||||
/// 为当前配置生成发布快照。
|
||||
/// </summary>
|
||||
private async Task CreatePublishRecordAsync(long salesProductId, string operatorType, string? description)
|
||||
private async Task CreatePublishRecordAsync(int salesProductId, string operatorType, string? description)
|
||||
{
|
||||
var product = await GetProductOrThrowAsync(salesProductId);
|
||||
object snapshot = operatorType == PriceOperatorType
|
||||
@ -355,7 +355,7 @@ public partial class SalesProductService
|
||||
};
|
||||
}
|
||||
|
||||
private static List<SalesProductPriceFactor> BuildSalesProductPriceFactors(IEnumerable<ChannelPriceFactorInput> inputs, long? priceId = null)
|
||||
private static List<SalesProductPriceFactor> BuildSalesProductPriceFactors(IEnumerable<ChannelPriceFactorInput> inputs, int? priceId = null)
|
||||
{
|
||||
return inputs.Select(input => new SalesProductPriceFactor
|
||||
{
|
||||
@ -366,7 +366,7 @@ public partial class SalesProductService
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
private static List<SalesProductPriceDetail> BuildSalesProductPriceDetails(IEnumerable<ChannelPriceDetailInput> inputs, long? priceId = null)
|
||||
private static List<SalesProductPriceDetail> BuildSalesProductPriceDetails(IEnumerable<ChannelPriceDetailInput> inputs, int? priceId = null)
|
||||
{
|
||||
return inputs.Select(input => new SalesProductPriceDetail
|
||||
{
|
||||
@ -423,7 +423,7 @@ public partial class SalesProductService
|
||||
|
||||
private sealed class SalesProductPricePublishSnapshot
|
||||
{
|
||||
public long SalesProductId { get; set; }
|
||||
public int SalesProductId { get; set; }
|
||||
|
||||
public List<SalesProductPriceListOutput> Prices { get; set; } = [];
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ public partial class SalesProductService : ApplicationService
|
||||
/// 3. 映射并返回详情结果。
|
||||
/// </remarks>
|
||||
[HttpGet("/channel/sales-product/detail")]
|
||||
public async Task<SalesProductDetailOutput> GetDetailAsync([FromQuery] long id)
|
||||
public async Task<SalesProductDetailOutput> GetDetailAsync([FromQuery] int id)
|
||||
{
|
||||
var entity = await GetProductOrThrowAsync(id);
|
||||
return MapDetailOutput(entity);
|
||||
@ -157,7 +157,7 @@ public partial class SalesProductService : ApplicationService
|
||||
/// 3. 按接口约定返回列表结果。
|
||||
/// </remarks>
|
||||
[HttpGet("/channel/sales-product/price/list")]
|
||||
public async Task<OmsItemsResult<SalesProductPriceListOutput>> GetPriceListAsync([FromQuery] long salesProductId)
|
||||
public async Task<OmsItemsResult<SalesProductPriceListOutput>> GetPriceListAsync([FromQuery] int salesProductId)
|
||||
{
|
||||
await GetProductOrThrowAsync(salesProductId);
|
||||
return new OmsItemsResult<SalesProductPriceListOutput>
|
||||
@ -286,7 +286,7 @@ public partial class SalesProductService : ApplicationService
|
||||
var prices = new List<SalesProductPrice>();
|
||||
var factors = new List<SalesProductPriceFactor>();
|
||||
var details = new List<SalesProductPriceDetail>();
|
||||
var tempId = -1L;
|
||||
var tempId = -1;
|
||||
|
||||
// 为每棵价格子树分配临时负数 Id,仓储层再据此回填真实主键。
|
||||
foreach (var priceInput in input.Prices.OrderBy(x => x.SerialNumber))
|
||||
@ -328,7 +328,7 @@ public partial class SalesProductService : ApplicationService
|
||||
/// 3. 映射并返回详情结果。
|
||||
/// </remarks>
|
||||
[HttpGet("/channel/sales-product/allocation/get")]
|
||||
public Task<SalesProductAllocationOutput> GetAllocationAsync([FromQuery] long salesProductId)
|
||||
public Task<SalesProductAllocationOutput> GetAllocationAsync([FromQuery] int salesProductId)
|
||||
{
|
||||
return GetAllocationCoreAsync(salesProductId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user