新建日志表:
create table localfirstorder_log
(
ID int NOT NULL AUTO_INCREMENT primary key comment '自增ID',
SysBasicstocklistID varchar(36) not null default '' comment 'sys_basicstocklist表关联ID',
CustomerID int not null comment '商户号',
SKU varchar(50) not null comment '系统SKU',
WarehouseID int not null default 0 comment '仓库ID',
RecommandNum int not null default 0 comment '推荐数量',
SupplierPrice decimal(15,4) not null default 0 comment '价格',
AddTime datetime not null comment '添加时间'
)
ALTER TABLE `sys_basicstocklist_temp`
ADD COLUMN `WarehouseId` int(11) NULL COMMENT '仓库id' AFTER `MinSaleNum`;
满足以下条件进行记录:

需求描述
1.参数配置->本地仓-预调拨数特殊备货,增加日志监控,触发逻辑如下1)若智能备货-全量分析后,SKU触发了 【本地仓-预调拨数特殊备货】的逻辑,并且有推荐数量的sku需记录起来,方便业务进行定期数据统计和分析。
2)记录存储字段分别为:仓库,SKU,推荐数量,价格(供应商报价),当前执行的时间 共5个字段。
3)数据存储后,业务会定期找技术导出,可以直接写好sql发个欧阳慧进行自行导出。

