|
|
|
@ -918,3 +918,38 @@ CALL Pro_Temp_ColumnWork('inv_pre_product_detail', 'inBatchNo', 'varchar(255)',
|
|
|
|
|
INSERT ignore INTO `sys_param_config`(`id`, `parentId`, `paramName`, `paramKey`, `paramValue`, `paramStatus`,
|
|
|
|
|
`paramType`, `paramExplain`, `updateTime`)
|
|
|
|
|
VALUES (20078, 0, '是否启用价格先进先出策略', 'price_fifo', '1', 1, 0, '0:否;1:是', '2023-10-10 10:10:08');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE if not exists `inv_product_ration`
|
|
|
|
|
(
|
|
|
|
|
`id` int NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`relId` bigint NULL DEFAULT NULL COMMENT '产品ID',
|
|
|
|
|
`supId` bigint NULL DEFAULT NULL COMMENT '供应商ID',
|
|
|
|
|
`rationCount` int NULL DEFAULT NULL COMMENT '定量数',
|
|
|
|
|
`invCount` int NULL DEFAULT NULL COMMENT '库存数',
|
|
|
|
|
`busType` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务单据类型',
|
|
|
|
|
`scanType` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '扫码单据类型',
|
|
|
|
|
`curInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '当前仓库',
|
|
|
|
|
`lyInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务-领用仓库',
|
|
|
|
|
`sgInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务-申购采购仓库',
|
|
|
|
|
`jhInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务-计划采购仓库',
|
|
|
|
|
`cgInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '业务-订单采购仓库',
|
|
|
|
|
`fromInvCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '出入库-往来仓库',
|
|
|
|
|
`auditStatus` tinyint NULL DEFAULT NULL COMMENT '出入库-审核状态',
|
|
|
|
|
`busAuditStatus` tinyint NULL DEFAULT NULL COMMENT '业务-审核状态',
|
|
|
|
|
`scanOrder` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成扫码单据',
|
|
|
|
|
`busOrder` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生成业务单据',
|
|
|
|
|
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
|
|
|
|
|
`updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
|
|
|
|
|
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
|
|
|
|
|
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
|
|
|
|
|
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB
|
|
|
|
|
AUTO_INCREMENT = 8
|
|
|
|
|
CHARACTER SET = utf8mb4
|
|
|
|
|
COLLATE = utf8mb4_0900_ai_ci
|
|
|
|
|
ROW_FORMAT = Dynamic;
|
|
|
|
|
|
|
|
|
|
INSERT ignore INTO `sys_scheduled`(`id`, `cronName`, `cron`, `customerId`, `remark`)
|
|
|
|
|
VALUES (150, 'syncInvRation', '0 */60 * * * ?', NULL, '定量设置单据');
|
|
|
|
|