/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50726
 Source Host           : localhost:3306
 Source Schema         : mes_1

 Target Server Type    : MySQL
 Target Server Version : 50726
 File Encoding         : 65001

 Date: 26/03/2025 22:19:41
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- 10_01_001	app版本设置
-- ----------------------------
DROP TABLE IF EXISTS `set_app_edition`;
CREATE TABLE `set_app_edition`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示信息',
  `edition_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'apk、wgt包下载地址或者应用市场地址',
  `edition_force` int(11) NULL DEFAULT NULL COMMENT '是否强制更新 0代表否 1代表是',
  `package_type` int(11) NULL DEFAULT NULL COMMENT '0是整包升级（apk或者appstore或者安卓应用市场） 1是wgt升级',
  `edition_issue` int(11) NULL DEFAULT NULL COMMENT '是否发行  0否 1是 为了控制上架应用市场审核时不能弹出热更新框',
  `edition_number` int(50) NULL DEFAULT NULL COMMENT '版本号 最重要的manifest里的版本号 （检查更新主要以服务器返回的edition_number版本号是否大于当前app的版本号来实现是否更新）',
  `edition_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '版本名称 manifest里的版本名称',
  `edition_silence` int(11) NULL DEFAULT NULL COMMENT '是否静默更新 0代表否 1代表是',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'app版本设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of set_app_edition
-- ----------------------------
INSERT INTO `set_app_edition` VALUES (1, '1.移位任务30天改成明日<br>2.出库扫货位，改为带出货位', 'http://${baseUrl}/appDownload/wgt', 0, 1, 0, 181, '1.231', 0, NULL, NULL, '2025-01-20 14:51:38', NULL, '2025-03-06 16:57:17', NULL);

-- ----------------------------
-- 10_02_002	单据类型设置
-- ----------------------------
DROP TABLE IF EXISTS `set_bill_type`;
CREATE TABLE `set_bill_type`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单据编码',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单据类型编码',
  `bill_type_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型名称',
  `is_enable_app` int(11) NULL DEFAULT 1 COMMENT '是否启用app(0是 1否)',
  `is_control_task` int(11) NULL DEFAULT NULL COMMENT '保存是否控制任务数量(0是 1否)',
  `is_control_task_audit` int(11) NULL DEFAULT NULL COMMENT '审核是否控制任务数量(0是 1否)',
  `task_bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务单据类型编码',
  `back_task_bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务退单据类型编码',
  `stock_bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '库存单据类型编码',
  `interface_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口名称',
  `interface_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口类型',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `setting_sort` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置排序',
  `setting_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_billType`(`bill_code`, `bill_type_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '单据类型设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of set_bill_type
-- ----------------------------
INSERT INTO `set_bill_type` VALUES (1, 'taskIn', '1', '生产订单', NULL, NULL, NULL, NULL, NULL, NULL, '生产订单', NULL, 0, NULL, '生产订单');
INSERT INTO `set_bill_type` VALUES (2, 'taskIn', '2', '委外订单', NULL, NULL, 1, NULL, NULL, NULL, '委外订单', NULL, 0, NULL, '委外订单');
INSERT INTO `set_bill_type` VALUES (3, 'taskIn', '4', '采购订单', NULL, NULL, 1, NULL, NULL, NULL, '采购订单', NULL, 0, NULL, '采购订单');
INSERT INTO `set_bill_type` VALUES (4, 'taskIn', '3', '委外到货单', NULL, NULL, 1, NULL, NULL, NULL, '委外到货单', NULL, 0, NULL, '委外到货单');
INSERT INTO `set_bill_type` VALUES (5, 'taskIn', '5', '采购到货单', NULL, NULL, 1, NULL, NULL, NULL, '采购到货单', NULL, 0, NULL, '采购到货单');
INSERT INTO `set_bill_type` VALUES (6, 'backTaskIn', '3', '委外退货单', NULL, NULL, 1, '2,4', '', '', NULL, NULL, 0, NULL, '委外退货单');
INSERT INTO `set_bill_type` VALUES (7, 'backTaskIn', '5', '采购退货单', NULL, NULL, 1, '4', NULL, NULL, NULL, NULL, 0, NULL, '采购退货单');
INSERT INTO `set_bill_type` VALUES (8, 'taskOut', '1', '生产用料', NULL, NULL, 1, '1', NULL, NULL, NULL, NULL, 0, NULL, '生产材料');
INSERT INTO `set_bill_type` VALUES (9, 'taskOut', '2', '委外用料', NULL, NULL, 1, '2', NULL, NULL, '委外订单材料', NULL, 0, NULL, '委外材料');
INSERT INTO `set_bill_type` VALUES (10, 'taskOut', '6', '销售订单', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, '销售订单');
INSERT INTO `set_bill_type` VALUES (11, 'taskOut', '7', '销售发货单', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, '销售发货单');
INSERT INTO `set_bill_type` VALUES (12, 'backTaskOut', '7', '销售退货单', NULL, NULL, 1, '6,7', NULL, NULL, NULL, NULL, 0, NULL, '销售退货单');
INSERT INTO `set_bill_type` VALUES (13, 'taskMove', '1', '仓库调拨', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_bill_type` VALUES (14, 'taskMove', '2', '货位转移', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_bill_type` VALUES (15, 'stockIn', '1', '生产入库', 0, NULL, 1, '1', NULL, NULL, NULL, NULL, 0, NULL, '产成品入库单（成品入库）');
INSERT INTO `set_bill_type` VALUES (16, 'stockIn', '2', '委外入库', 0, NULL, 1, '2,3', NULL, NULL, NULL, NULL, 0, NULL, '采购入库单（委外加工）');
INSERT INTO `set_bill_type` VALUES (17, 'stockIn', '3', '采购入库', 0, NULL, 1, '4,5', NULL, NULL, NULL, NULL, 0, NULL, '采购入库单（普通采购）');
INSERT INTO `set_bill_type` VALUES (18, 'stockIn', '4', '其他入库', 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, '其他入库单');
INSERT INTO `set_bill_type` VALUES (19, 'backStockIn', '1', '生产退库', 0, NULL, 1, '1', NULL, '1', NULL, NULL, 0, NULL, '产成品入库单-红字（成品入库）');
INSERT INTO `set_bill_type` VALUES (20, 'backStockIn', '2', '委外退库', 0, NULL, 1, '2,3', '3', '2', NULL, NULL, 0, NULL, '采购入库单-红字（委外加工）');
INSERT INTO `set_bill_type` VALUES (21, 'backStockIn', '3', '采购退库', 0, NULL, 1, '4,5', '5', '3', NULL, NULL, 0, NULL, '采购入库单-红字（普通采购）');
INSERT INTO `set_bill_type` VALUES (22, 'backStockIn', '4', '其他退库', 0, NULL, 1, NULL, NULL, '4', NULL, NULL, 0, NULL, '其他入库单-红字');
INSERT INTO `set_bill_type` VALUES (23, 'stockOut', '1', '生产领料', 0, 0, 1, '1', '', '', NULL, NULL, 0, NULL, '材料出库单（领料）');
INSERT INTO `set_bill_type` VALUES (24, 'stockOut', '2', '委外领料', 0, 0, 0, '2', NULL, NULL, NULL, NULL, 0, NULL, '材料出库单（委外发料）');
INSERT INTO `set_bill_type` VALUES (25, 'stockOut', '3', '销售出库', 0, NULL, 1, '6,7', NULL, NULL, NULL, NULL, 0, NULL, '销售出库单（普通销售）');
INSERT INTO `set_bill_type` VALUES (26, 'stockOut', '4', '其他出库', 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, '其他出库单');
INSERT INTO `set_bill_type` VALUES (27, 'backStockOut', '1', '生产退料', 0, NULL, 1, '1', NULL, '1', NULL, NULL, 0, NULL, '材料出库单-红字（领料）');
INSERT INTO `set_bill_type` VALUES (28, 'backStockOut', '2', '委外退料', 0, NULL, 1, '2', NULL, '2', NULL, NULL, 0, NULL, '材料出库单-红字（委外发料）');
INSERT INTO `set_bill_type` VALUES (29, 'backStockOut', '3', '销售退库', 0, 1, 0, '6,7', '7', '3', NULL, NULL, 0, NULL, '销售出库单-红字（普通销售）');
INSERT INTO `set_bill_type` VALUES (30, 'backStockOut', '4', '其他退库', 0, NULL, 1, NULL, NULL, '4', NULL, NULL, 0, NULL, '其他出库单-红字');
INSERT INTO `set_bill_type` VALUES (31, 'stockMove', '1', '仓库调拨', 0, 1, 0, '1,910', '', '', NULL, NULL, 0, NULL, '调拨单');
INSERT INTO `set_bill_type` VALUES (32, 'stockMove', '2', '货位转移', 0, 0, 1, '2', '', '', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_bill_type` VALUES (33, 'stockOut', '5', '盘亏出库', 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `set_bill_type` VALUES (34, 'stockIn', '5', '盘盈入库', 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_bill_type` VALUES (35, 'backStockOut', '5', '盘盈退库', 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);

-- ----------------------------
-- 10_03_004	编号规则设置主
-- ----------------------------
DROP TABLE IF EXISTS `set_code_rule`;
CREATE TABLE `set_code_rule`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `auto_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号规则编码',
  `prefix_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前缀值',
  `sequence_reset` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '序号重置',
  `sequence_length` bigint(11) NULL DEFAULT NULL COMMENT '序号长度',
  `step_value` bigint(11) NULL DEFAULT NULL COMMENT '步长',
  `suffix_value` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '后缀值',
  `current_value` decimal(10, 0) NULL DEFAULT NULL COMMENT '当前值',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_setCodeRule_autoCode`(`auto_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 111 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '编号规则设置主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 编号规则设置主-初始数据
-- ----------------------------
INSERT INTO `set_code_rule` VALUES (1, '入库任务单', 'IT[#yyMMddHH#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, '');
INSERT INTO `set_code_rule` VALUES (2, '入库任务单(退)', 'ITR[#yyMMdd#]', '1', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (3, '出库任务单', 'OT[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (4, '出库任务单(退)', 'OTR[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (5, '移位任务单', 'MT[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (6, '盘点任务单', 'CT[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (7, '冻结', '', '0', 6, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (8, '标签(一次性)', 'L[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (9, '标签(重复性)', 'LR', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (10, '入库单', 'I[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (11, '入库单(退)', 'IR[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (12, '出库单', 'O[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (13, '出库单(退)', 'OR[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (14, '移位单', 'M[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (15, '转换单', 'G[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (105, '生产计划单', 'P', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (106, '派工单', 'W', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (107, '报工单', 'P', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (108, '转换任务单', 'GT[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (109, '盘点单', 'C[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);
INSERT INTO `set_code_rule` VALUES (110, 'MES标签(一次性)', 'PL[#yyMMdd#]', '0', 4, 1, NULL, 0, 1, 'admin', '2023-06-15 08:26:57', NULL, NULL, NULL);

-- ----------------------------
-- 10_04_004	编号规则设置子
-- ----------------------------
DROP TABLE IF EXISTS `set_code_rules`;
CREATE TABLE `set_code_rules`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `code_rule_id` int(11) NOT NULL COMMENT '主表标识',
  `perfix_values` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '前缀值',
  `entry_values` bigint(11) NULL DEFAULT NULL COMMENT '当前值',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_setCodeRules_CodeRuleId`(`code_rule_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '编号规则设置子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 10_05_005	默认值设置主
-- ----------------------------
DROP TABLE IF EXISTS `set_default_setting`;
CREATE TABLE `set_default_setting`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型编码',
  `userid` int(11) NULL DEFAULT NULL COMMENT '用户内码',
  `setting_class` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置类型(1系统2通用3个人4特殊)',
  `setting_sort` int(11) NULL DEFAULT NULL COMMENT '排序',
  `setting_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '默认值设置主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 默认值设置主-初始数据
-- ----------------------------
INSERT INTO `set_default_setting` VALUES ('1260557338508144641', 'stockIn', '1', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260557852234887169', 'stockIn', '4', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260557930278301696', 'stockOut', '1', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558001313034240', 'stockOut', '2', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558079671021568', 'stockOut', '3', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558163758428160', 'stockOut', '4', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558457057718272', 'stockMove', '1', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558679431327744', 'stockMove', '2', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558784070823936', 'backStockIn', '1', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558844959535105', 'backStockIn', '2', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558915147018241', 'backStockIn', '3', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260558973774999553', 'backStockIn', '4', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260559158118854656', 'backStockOut', '1', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260559242629885953', 'backStockOut', '2', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260559316722266112', 'backStockOut', '3', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260559376486903809', 'backStockOut', '4', NULL, '2', NULL, NULL);
INSERT INTO `set_default_setting` VALUES ('1260567950499917825', 'stockIn', '2', NULL, '2', NULL, NULL);

-- ----------------------------
-- 10_06_006	默认值设置子
-- ----------------------------
DROP TABLE IF EXISTS `set_default_settings`;
CREATE TABLE `set_default_settings`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标识',
  `default_setting_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主表标识',
  `setting_flag` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置标志',
  `setting_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置编码',
  `setting_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置名称',
  `setting_values` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置值列表',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '默认值设置子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of set_default_settings
-- ----------------------------
INSERT INTO `set_default_settings` VALUES ('1260557852264247296', '1260557852234887169', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260557852264247297', '1260557852234887169', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260557852264247298', '1260557852234887169', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260557852264247299', '1260557852234887169', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260557852264247300', '1260557852234887169', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788289', '1260558163758428160', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788290', '1260558163758428160', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788291', '1260558163758428160', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788292', '1260558163758428160', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788293', '1260558163758428160', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558163787788294', '1260558163758428160', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558915172184065', '1260558915147018241', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558915172184066', '1260558915147018241', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558915172184067', '1260558915147018241', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558915172184068', '1260558915147018241', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558915172184069', '1260558915147018241', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558973795971072', '1260558973774999553', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558973795971073', '1260558973774999553', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558973795971074', '1260558973774999553', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558973795971075', '1260558973774999553', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260558973795971076', '1260558973774999553', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559056704778241', '1260558844959535105', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559056704778242', '1260558844959535105', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559056704778243', '1260558844959535105', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559056704778244', '1260558844959535105', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559056704778245', '1260558844959535105', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214785', '1260559158118854656', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214786', '1260559158118854656', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214787', '1260559158118854656', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214788', '1260559158118854656', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214789', '1260559158118854656', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559158148214790', '1260559158118854656', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663169', '1260559242629885953', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663170', '1260559242629885953', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663171', '1260559242629885953', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663172', '1260559242629885953', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663173', '1260559242629885953', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559242646663174', '1260559242629885953', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043328', '1260559316722266112', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043329', '1260559316722266112', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043330', '1260559316722266112', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043331', '1260559316722266112', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043332', '1260559316722266112', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559316739043333', '1260559316722266112', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878977', '1260559376486903809', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878978', '1260559376486903809', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878979', '1260559376486903809', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878980', '1260559376486903809', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878981', '1260559376486903809', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260559465162878982', '1260559376486903809', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1260585571966398464', '1260585571945426945', 'warehouseCodeIn', '04', '产成品库', '');
INSERT INTO `set_default_settings` VALUES ('1260585571966398465', '1260585571945426945', 'warehouseCodeOut', '04', '产成品库', '');
INSERT INTO `set_default_settings` VALUES ('1315677913190379520', '1260558784070823936', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1315677913190379521', '1260558784070823936', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1315677913190379522', '1260558784070823936', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1315677913190379523', '1260558784070823936', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1315677913190379524', '1260558784070823936', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354572454869741568', '1260557338508144641', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354572454869741569', '1260557338508144641', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354572454869741570', '1260557338508144641', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354572454869741571', '1260557338508144641', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354572454869741572', '1260557338508144641', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028352', '1260558079671021568', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028353', '1260558079671021568', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028354', '1260558079671021568', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028355', '1260558079671021568', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028356', '1260558079671021568', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573255965028357', '1260558079671021568', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735872', '1260558001313034240', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735873', '1260558001313034240', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735874', '1260558001313034240', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735875', '1260558001313034240', 'extendCode01', '204', '委托加工出库', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735876', '1260558001313034240', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573359270735877', '1260558001313034240', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572992', '1260557930278301696', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572993', '1260557930278301696', 'employeeCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572994', '1260557930278301696', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572995', '1260557930278301696', 'extendCode01', '202', '材料领用', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572996', '1260557930278301696', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573393999572997', '1260557930278301696', 'customerCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596161', '1260558679431327744', 'warehouseCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596162', '1260558679431327744', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596163', '1260558679431327744', 'extendCode02', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596164', '1260558679431327744', 'warehouseCodeOut', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596165', '1260558679431327744', 'customerCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596166', '1260558679431327744', 'deptCodeOut', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596167', '1260558679431327744', 'deptCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596168', '1260558679431327744', 'employeeCodeOut', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596169', '1260558679431327744', 'employeeCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596170', '1260558679431327744', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573493685596171', '1260558679431327744', 'extendCode02', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573562346352641', '1260567950499917825', 'deptCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573562346352642', '1260567950499917825', 'warehouseCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573562346352643', '1260567950499917825', 'extendCode01', '104', '委托加工入库', '');
INSERT INTO `set_default_settings` VALUES ('1354573562346352644', '1260567950499917825', 'supplierCode', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274688', '1260558457057718272', 'warehouseCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274689', '1260558457057718272', 'deptCodeOut', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274690', '1260558457057718272', 'deptCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274691', '1260558457057718272', 'employeeCodeOut', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274692', '1260558457057718272', 'employeeCodeIn', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274693', '1260558457057718272', 'extendCode01', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274694', '1260558457057718272', 'extendCode02', '', '', '');
INSERT INTO `set_default_settings` VALUES ('1354573796124274695', '1260558457057718272', 'warehouseCodeOut', '', '', '');

-- ----------------------------
-- 10_07_007	字段设置
-- ----------------------------
DROP TABLE IF EXISTS `set_field_setting`;
CREATE TABLE `set_field_setting`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `field` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段',
  `field_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段名称',
  `field_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段类型',
  `multiple` int(11) NULL DEFAULT NULL COMMENT '多选(1是 0否)',
  `width` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '宽度',
  `required` int(11) NOT NULL DEFAULT 0 COMMENT '必录(1是 0否)',
  `required_condition` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '必录条件',
  `hidden` int(11) NOT NULL DEFAULT 0 COMMENT '隐藏(1是 0否)',
  `hidden_condition` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '隐藏条件',
  `setting_sort` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '排序',
  `setting_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `flag` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基础资料标志',
  `key_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示名',
  `key_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实际名',
  `query_data` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '传参',
  `defaults` int(11) NULL DEFAULT NULL COMMENT '默认值(1是 0否)',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_fieldSetting`(`bill_code`, `field`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 124 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字段设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 字段设置 初始数据
-- ----------------------------
INSERT INTO `set_field_setting` VALUES (1, 'stockIn', 'deptCode', '部门', NULL, NULL, NULL, 0, '[[\"billTypeCode\",\"^(2|3)$\"]]', 0, NULL, NULL, '2 委外入库、3 采购入库', 'dept', 'deptName', 'deptCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (3, 'stockIn', 'warehouseCode', '仓库', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseName', 'warehouseCode', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (4, 'stockIn', 'labelCode', '标签', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (5, 'stockIn', 'stockQty', '数量', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (6, 'stockIn', 'extendCode01', '收发类别', 'combobox', 0, NULL, 0, '', 0, NULL, NULL, NULL, 'extend', 'extendName01', 'extendCode01', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (7, 'stockIn', 'palletCode', '托盘', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (8, 'stockIn', 'packageCode', '包装', 'text', NULL, NULL, 0, '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (10, 'stockIn', 'supplierCode', '供应商', NULL, NULL, NULL, 0, '', 0, '[[\"billTypeCode\",\"^$|^1$|^4$\"]]', NULL, '1 生产入库、4 其他入库', 'supplier', 'supplierName', 'supplierCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (11, 'stockOut', 'deptCode', '部门', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'dept', 'deptName', 'deptCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (12, 'stockOut', 'employeeCode', '职员', NULL, NULL, NULL, 0, '', 0, NULL, NULL, NULL, 'employee', 'employeeName', 'employeeCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (13, 'stockOut', 'warehouseCode', '仓库', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseName', 'warehouseCode', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (14, 'stockOut', 'labelCode', '标签', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (15, 'stockOut', 'stockQty', '数量', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (16, 'stockOut', 'extendCode01', '收发类别', 'combobox', 0, NULL, 0, '', 0, NULL, NULL, NULL, 'extend', 'extendName01', 'extendCode01', '{\"extendClassCode\":\"01.02\"}', 1);
INSERT INTO `set_field_setting` VALUES (17, 'stockOut', 'supplierCode', '供应商', NULL, NULL, NULL, 0, '', 0, '[[\"billTypeCode\",\"^$|^1$|^3$|^4$\"]]', NULL, '1 生产领料、3 销售出库、4 其他出库', 'supplier', 'supplierName', 'supplierCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (19, 'backStockIn', 'deptCode', '部门', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'dept', 'deptName', 'deptCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (20, 'backStockIn', 'employeeCode', '职员', NULL, NULL, NULL, 0, '[[\"billTypeCode\",\"^(2|3)$\"]]', 0, NULL, NULL, '2 委外入库、3 采购入库', 'employee', 'employeeName', 'employeeCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (21, 'backStockIn', 'warehouseCode', '仓库', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseName', 'warehouseCode', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (22, 'backStockIn', 'labelCode', '标签', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (23, 'backStockIn', 'stockQty', '数量', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (24, 'backStockIn', 'extendCode01', '收发类别', 'combobox', 0, NULL, 0, '', 0, NULL, NULL, NULL, 'extend', 'extendName01', 'extendCode01', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (25, 'backStockIn', 'supplierCode', '供应商', NULL, NULL, NULL, 0, '', 0, '[[\"billTypeCode\",\"^$|^1$|^4$\"]]', NULL, '1 生产入库、4 其他入库', 'supplier', 'supplierName', 'supplierCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (26, 'backStockOut', 'deptCode', '部门', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'dept', 'deptName', 'deptCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (27, 'backStockOut', 'employeeCode', '职员', NULL, NULL, NULL, 0, '', 0, NULL, NULL, NULL, 'employee', 'employeeName', 'employeeCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (28, 'backStockOut', 'warehouseCode', '仓库', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseName', 'warehouseCode', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (29, 'backStockOut', 'labelCode', '标签', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (30, 'backStockOut', 'stockQty', '数量', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (31, 'backStockOut', 'extendCode01', '收发类别', 'combobox', 0, NULL, 0, '', 0, NULL, NULL, NULL, 'extend', 'extendName01', 'extendCode01', '{\"extendClassCode\":\"01.02\"}', 1);
INSERT INTO `set_field_setting` VALUES (32, 'backStockOut', 'supplierCode', '供应商', NULL, NULL, NULL, 0, '', 0, '[[\"billTypeCode\",\"^$|^1$|^3$|^4$\"]]', NULL, '1 生产领料、3 销售出库、4 其他出库', 'supplier', 'supplierName', 'supplierCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (36, 'stockMove', 'labelCode', '标签', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (37, 'stockMove', 'warehouseCodeIn', '移入仓库', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseNameIn', 'warehouseCodeIn', NULL, 1);
INSERT INTO `set_field_setting` VALUES (38, 'stockMove', 'locationCodeIn', '移入货位', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (39, 'stockMove', 'stockQty', '数量', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (41, 'stockMove', 'taskMovesCode', '任务编码', NULL, NULL, NULL, 0, NULL, 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, '1 仓库调拨、2 货位转移', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (42, 'stockMove', 'deptCodeOut', '移出部门', NULL, NULL, NULL, 0, '[[\"billTypeCode\",\"^1$\"]]', 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, NULL, 'dept', 'deptNameOut', 'deptCodeOut', NULL, 1);
INSERT INTO `set_field_setting` VALUES (43, 'stockMove', 'deptCodeIn', '移入部门', NULL, NULL, NULL, 0, NULL, 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, NULL, 'dept', 'deptNameOut', 'deptCodeOut', NULL, 1);
INSERT INTO `set_field_setting` VALUES (44, 'stockMove', 'employeeCodeOut', '移出职员', NULL, NULL, NULL, 0, '[[\"billTypeCode\",\"^1$\"]]', 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, '1 仓库调拨、2 货位转移', 'employee', 'employeeNameOut', 'employeeCodeOut', NULL, 1);
INSERT INTO `set_field_setting` VALUES (45, 'stockMove', 'employeeCodeIn', '移入职员', NULL, NULL, NULL, 0, NULL, 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, '2 货位转移', 'employee', 'employeeNameIn', 'employeeCodeIn', NULL, 1);
INSERT INTO `set_field_setting` VALUES (46, 'stockMove', 'extendCode01', '出库类别', 'combobox', NULL, '100', 1, '[[\"billTypeCode\",\"^1$\"]]', 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, '', 'extend', 'extendName01', 'extendCode01', '{\"extendClassCode\":\"01.02\"}', 1);
INSERT INTO `set_field_setting` VALUES (47, 'stockMove', 'extendCode02', '入库类别', 'combobox', 0, '100', 0, '[[\"billTypeCode\",\"^1$\"]]', 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, '', 'extend', 'extendName02', 'extendCode02', '{\"extendClassCode\":\"01.01\"}', 1);
INSERT INTO `set_field_setting` VALUES (48, 'stockMove', 'extendCode03', '看板号', 'text', NULL, '100', 0, NULL, 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (49, 'stockMove', 'extendCode05', '发货时间', 'datetime', NULL, '190', 1, '[[\"billTypeCode\",\"^1$\"]]', 0, '[[\"billTypeCode\",\"^2$\"]]', NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (50, 'stockIn', 'stockDate', '入库日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (51, 'backStockIn', 'stockDate', '入库退日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (52, 'stockOut', 'stockDate', '出库日期', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (53, 'backStockOut', 'stockDate', '出库退日期', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (54, 'stockMove', 'stockDate', '移位日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (55, 'stockIn', 'extendCode02', '废品类型', 'combobox', NULL, NULL, 0, '[[\"warehouseCode\",\"^28$\"]]', 0, '[[\"warehouseCode\",\"^(?!28$).*$\"]]', NULL, '=28 废品库', 'extend', 'extendName02', 'extendCode02', '{\"extendClassCode\":\"02\"}', 0);
INSERT INTO `set_field_setting` VALUES (56, 'stockOut', 'customerCode', '客户', NULL, NULL, NULL, 0, NULL, 0, '[[\"billTypeCode\",\"^$|^1$|^2$|^4$\"]]', NULL, '1 生产领料、2 委外领料、4 其他出库', 'customer', 'customerName', 'customerCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (57, 'backStockOut', 'customerCode', '客户', NULL, NULL, NULL, 0, NULL, 0, '[[\"billTypeCode\",\"^$|^1$|^2$|^4$\"]]', NULL, '1 生产领料、2 委外领料、4 其他出库', 'customer', 'customerName', 'customerCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (58, 'stockIn', 'extendCode03', '废品原因', 'combobox', 0, NULL, 0, NULL, 0, '[[\"warehouseCode\",\"^(?!28$).*$\"]]', NULL, '<>28 废品库', NULL, NULL, NULL, '{\"extendClassCode\":\"03\"}', NULL);
INSERT INTO `set_field_setting` VALUES (59, 'taskIn', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (61, 'backTaskIn', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (62, 'taskOut', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (63, 'backTaskOut', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (66, 'taskMove', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (67, 'label', 'materialCode', '物料编码', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (68, 'label', 'labelQty', '标签数量', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (69, 'labelRepeat', 'materialCode', '物料编码', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (70, 'labelRepeat', 'labelQty', '标签数量', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (71, 'lock', 'lockDescribe', '冻结描述', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (72, 'stockMove', 'warehouseCodeOut', '移出仓库', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseNameOut', 'warehouseCodeOut', '', 1);
INSERT INTO `set_field_setting` VALUES (73, 'stockMove', 'customerCode', '客户名称', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, '这个特殊需要用name', 'customer', 'customerName', 'customerCode', NULL, 1);
INSERT INTO `set_field_setting` VALUES (74, 'taskIn', 'interfaceCode', '接口编码', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (75, 'taskOut', 'interfaceCode', '接口编码', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (76, 'backTaskIn', 'interfaceCode', '接口编码', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (77, 'backTaskOut', 'interfaceCode', '接口编码', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (78, 'stockOut', 'isSupplement', '是否补料', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (79, 'taskChange', 'taskDate', '任务日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (80, 'stockChange', 'stockDate', '转换日期', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (81, 'stockChange', 'warehouseCodeOut', '转出仓库', '', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, 'warehouse', 'warehouseNameOut', 'warehouseCodeOut', NULL, 1);
INSERT INTO `set_field_setting` VALUES (82, 'stockChange', 'warehouseCodeIn', '转入仓库', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (83, 'taskIn', 'billTypeCode', '单据类型', NULL, NULL, NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (85, 'stockOut', 'extendCode02', '废品类型', 'combobox', 0, '', 0, NULL, 0, NULL, NULL, NULL, 'extend', NULL, NULL, '{\"extendClassCode\":\"02\"}', NULL);
INSERT INTO `set_field_setting` VALUES (86, 'stockOut', 'extendCode03', '废品原因', 'combobox', 0, '', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"03\"}', NULL);
INSERT INTO `set_field_setting` VALUES (87, 'stockOut', 'extendCode04', '项目名称', 'combobox', 0, '100', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"04\"}', NULL);
INSERT INTO `set_field_setting` VALUES (90, 'stockIn', 'employeeCode', '职员', 'popupbox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (92, 'material', 'extendCode02', '扩展项02', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (93, 'material', 'extendCode03', '扩展项03', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (94, 'material', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (95, 'label', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (96, 'labelRepeat', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (97, 'lock', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (99, 'backTaskIn', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (100, 'taskOut', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (101, 'backTaskOut', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (102, 'taskMove', 'extendCode01', '收货单位', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (103, 'taskMove', 'extendCode02', '看板号', 'datetime', NULL, '', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (104, 'taskMove', 'extendCode03', '发货批', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (105, 'taskMove', 'extendCode04', '到货时间', 'datetime', NULL, '190', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (106, 'taskChange', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (107, 'taskCheck', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (108, 'backStockIn', 'extendCode02', '废品类型', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"02\"}', NULL);
INSERT INTO `set_field_setting` VALUES (109, 'backStockIn', 'extendCode03', '废品原因', 'combobox', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"03\"}', NULL);
INSERT INTO `set_field_setting` VALUES (110, 'backStockOut', 'extendCode02', '废品类型', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"02\"}', NULL);
INSERT INTO `set_field_setting` VALUES (111, 'backStockOut', 'extendCode03', '废品原因', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"03\"}', NULL);
INSERT INTO `set_field_setting` VALUES (112, 'backStockOut', 'extendCode04', '项目名称', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"04\"}', NULL);
INSERT INTO `set_field_setting` VALUES (113, 'stockMove', 'extendCode04', '审核人员', 'combobox', 0, '100', 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"05\"}', NULL);
INSERT INTO `set_field_setting` VALUES (114, 'stockChange', 'extendCode01', '出库类别', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"01.02\"}', NULL);
INSERT INTO `set_field_setting` VALUES (115, 'stockChange', 'extendCode02', '入库类别', 'combobox', 0, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '{\"extendClassCode\":\"01.01\"}', NULL);
INSERT INTO `set_field_setting` VALUES (116, 'stockCheck', 'extendCode01', '扩展项01', 'number', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (117, 'stockIn', 'taskInCode', '入库任务', 'popupbox', NULL, NULL, 0, '[[\"billTypeCode\",\"^(1)$\"]]', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (118, 'taskIn', 'extendCode01', '扩展项01', 'text', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (119, 'stockChange', 'billTypeCode', '单据类型', 'combobox', 0, NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (120, 'taskChange', 'billTypeCode', '单据类型', 'combobox', 0, NULL, 0, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_field_setting` VALUES (121, 'stockOut', 'taskOutsCode', '出库任务编码|行号', 'popupbox', NULL, NULL, 0, '[[\"billTypeCode\",\"^1$|^3$\"]]', 0, NULL, '11-1', '(app)生产领料1 销售出库3 必录任务', NULL, NULL, NULL, NULL, NULL);

-- ----------------------------
-- 10_08_008	打印设置
-- ----------------------------
DROP TABLE IF EXISTS `set_print_setting`;
CREATE TABLE `set_print_setting`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `print_template` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '打印模板',
  `print_interface` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '打印接口',
  `setting_sort` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置排序',
  `setting_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_printSetting`(`bill_code`, `print_template`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 40 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '打印设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 打印设置 初始数据
-- ----------------------------
INSERT INTO `set_print_setting` VALUES (1, 'warehouse', '仓库', 'warehousePrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (2, 'location', '货位', 'locationPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (3, 'pallet', '托盘', 'palletPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (4, 'package', '包装', 'packagePrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (5, 'taskIn', '入库任务单', 'taskInPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (6, 'backTaskIn', '入库任务单退', 'backTaskInPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (7, 'taskOut', '出库任务单', 'taskOutPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (8, 'backTaskOut', '出库任务单退', 'backTaskOutPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (9, 'taskMove', '移位任务单', 'taskMovePrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (10, 'taskChange', '转换任务单', 'taskChangePrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (11, 'label', '单次标签', 'labelPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (12, 'labelRepeat', '重复标签', 'labelRepeatPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (13, 'stockIn', '入库单', 'stockInGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (14, 'backStockIn', '入库单退', 'backStockInGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (15, 'stockOut', '出库单(物料批号汇总)', 'stockOutGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (16, 'backStockOut', '出库单退', 'backStockOutGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (17, 'stockMove', '移位单', 'stockMoveGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (18, 'stockChange', '转换单', 'stockChangeGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (19, 'labelSupplier', '单次标签', 'labelSupplierPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (20, 'taskInSupplier', '入库任务单', 'taskInSupplierPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (21, 'warehouse', '仓库(A4)', 'warehousePrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (22, 'stockChange', '单次标签', 'labelPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (23, 'labelSupplier', '单次标签(A4)', 'labelSupplierPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (27, 'stockIn', '单次标签', 'labelPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (28, 'taskCheck', '盘点任务单', 'taskCheckPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (29, 'stockCheck', '盘点单', 'stockCheckGroupMaterialBatchPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (32, 'stockOut', '出库单(物料汇总)', 'stockOutGroupMaterialPrint', NULL, '');
INSERT INTO `set_print_setting` VALUES (34, 'stockOut', '标签(一次性)', 'labelPrint', NULL, NULL);
INSERT INTO `set_print_setting` VALUES (35, 'stockOut', '出库单(物料汇总2)', 'stockOutGroupMaterialPrint', NULL, NULL);
INSERT INTO `set_print_setting` VALUES (37, 'backStockOut', '出库单退2', 'backStockOutGroupMaterialPrint', NULL, NULL);
INSERT INTO `set_print_setting` VALUES (38, 'qcIqc', '质量管理-来料检验打印', 'qcIqcPrint', '', '质量管理-来料检验打印');
INSERT INTO `set_print_setting` VALUES (39, 'padTransOrder', 'PAD-打印流量单', 'padTransOrder', '2000', 'PAD-工序-打印流量单');

-- ----------------------------
-- 10_09_009	参数设置
-- ----------------------------
DROP TABLE IF EXISTS `set_system_setting`;
CREATE TABLE `set_system_setting`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `setting_class` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置分类',
  `setting_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置编码',
  `setting_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置名称',
  `setting_values` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置值',
  `setting_sort` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设置排序',
  `setting_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_setSystemSetting_settingCode`(`setting_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 参数设置 初始数据
-- ----------------------------
INSERT INTO `set_system_setting` VALUES (1, 'WmsSetting', 'FirstInFirstOutControl', '先进先出控制', '2', NULL, '1不控制、2弱控制、3强控制');
INSERT INTO `set_system_setting` VALUES (2, 'WmsSetting', 'FirstInFirstOutBatch', '先进先出批号', 'yymm', NULL, 'yy、yymm、yymmdd，如设置yy，按年份判断先进先出');
INSERT INTO `set_system_setting` VALUES (3, 'InitSetting', 'ReduceCurrentOperation', '减少现存量操作', '2', NULL, '1保存时、2审核时（出库单、入库单(退)、移位单、转换单）');
INSERT INTO `set_system_setting` VALUES (4, 'InitSetting', 'AddCurrentOperation', '增加现存量操作', '1', NULL, '1保存时、2审核时（入库单、出库单(退)、移位单、转换单）');
INSERT INTO `set_system_setting` VALUES (5, 'WmsSetting', 'EnablePackage', '启用包装', '0', NULL, '0 启用、1 不启用');
INSERT INTO `set_system_setting` VALUES (6, 'WmsSetting', 'EnablePallet', '启用托盘', '0', NULL, '0 启用、1 不启用');
INSERT INTO `set_system_setting` VALUES (7, 'InitSetting', 'EnableLabel', '启用标签', '0', NULL, '0 启用、1 不启用');
INSERT INTO `set_system_setting` VALUES (8, 'SysSetting', 'KettleFileRoute', 'Kettle文件路径', 'D:/APP/cath_mom/kettle_template/', NULL, '');
INSERT INTO `set_system_setting` VALUES (9, 'WmsSetting', 'ReadInterface', '启用读接口', '0', NULL, '0 启用、1 不启用');
INSERT INTO `set_system_setting` VALUES (10, 'WmsSetting', 'InsertInterface', '启用写接口', '0', NULL, '0 启用、1 不启用');
INSERT INTO `set_system_setting` VALUES (11, 'SysSetting', 'PrintFileRoute', '打印文件路径', 'D:/APP/cath_mom/print_template/', NULL, '');
INSERT INTO `set_system_setting` VALUES (12, 'WmsSetting', 'InterfaceVersion', '接口版本', 'U8', NULL, 'U8/K3Cloud');
INSERT INTO `set_system_setting` VALUES (13, 'WmsSetting', 'OrgCode', '组织编码', '02', NULL, NULL);
INSERT INTO `set_system_setting` VALUES (14, 'WmsSetting', 'InterfaceStatus', '接口扫描重读状态码', '201,202', NULL, '201：U8现存量不足、202: U8领料不足，设置举例：201,202');
INSERT INTO `set_system_setting` VALUES (15, 'WmsSetting', 'InterfaceHour', '接口扫描重读时间', '8', NULL, '当前时间-审核时间 < 设置时间,  自动扫描重读，建议设置不超过接口扫描重读定时任务的5倍，单位:小时');
INSERT INTO `set_system_setting` VALUES (16, 'WmsSetting', 'IsGetMaterial', '入库审核校验是否领料设置', '0', NULL, '0是、1否');
INSERT INTO `set_system_setting` VALUES (17, 'MesSetting', 'IsCreateTaskInAndTaskOut', '生产工单是否生成出入库任务单', '0', NULL, '0生成、1不生成');
INSERT INTO `set_system_setting` VALUES (18, 'SysSetting', 'fileUploadPath', '文件服务器路径', 'http://127.0.0.1:8181', NULL, NULL);

INSERT INTO `set_system_setting` VALUES (28, 'WmsSetting', 'K3CloudVersion', '金蝶版本', '7.3', NULL, '7.3、9.0');

-- ----------------------------
-- 10_10_010	过滤方案主表
-- ----------------------------
DROP TABLE IF EXISTS `set_table_filter_plan`;
CREATE TABLE `set_table_filter_plan`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `plan_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '方案名称',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'vue组件名称',
  `page_num` int(11) NULL DEFAULT NULL COMMENT '每页数量',
  `page_size` int(11) NULL DEFAULT NULL COMMENT '页码',
  `user_id` int(11) NULL DEFAULT NULL COMMENT '关联用户内码',
  `sort` int(11) NULL DEFAULT NULL COMMENT '排序',
  `status` int(11) NULL DEFAULT NULL COMMENT '状态 0生效 10删除',
  `is_default` int(11) NULL DEFAULT NULL COMMENT '是否默认 0是默认',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '过滤方案主表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 过滤方案主表 初始数据
-- ----------------------------
INSERT INTO `set_table_filter_plan` VALUES ('1', '默认方案', 'TableInfoView', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1001', '默认方案', 'systemSetting', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1002', '默认方案', 'billType', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1003', '默认方案', 'rule', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1004', '默认方案', 'fieldSetting', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1005', '默认方案', 'defaultSetting', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1006', '默认方案', 'printSetting', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1007', '默认方案', 'appEdition', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1008', '默认方案', 'tableInfo', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1009', '默认方案', 'rules', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('1010', '默认方案', 'tableFilterPlan', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2', '默认方案', 'tableInfoPreview', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2001', '默认方案', 'department', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2002', '默认方案', 'employee', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2003', '默认方案', 'supplier', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2004', '默认方案', 'customer', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2005', '默认方案', 'warehouse', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2006', '默认方案', 'location', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2007', '默认方案', 'pallet', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2008', '默认方案', 'package', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2009', '默认方案', 'unit', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2010', '默认方案', 'materialClass', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2011', '默认方案', 'material', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2012', '默认方案', 'extendClass', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('2013', '默认方案', 'extend', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3001', '默认方案', 'taskIn', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3002', '默认方案', 'backTaskIn', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3003', '默认方案', 'taskOut', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3004', '默认方案', 'backTaskOut', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3005', '默认方案', 'taskMove', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3006', '默认方案', 'taskChange', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3007', '默认方案', 'taskCheck', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3008', '默认方案', 'label', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3009', '默认方案', 'labelRepeat', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3010', '默认方案', 'lock', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3011', '默认方案', 'taskInSupplier', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3012', '默认方案', 'labelSupplier', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('3013', '默认方案', 'TaskChecksDetail', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4001', '默认方案', 'stockIn', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4002', '默认方案', 'backStockIn', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4003', '默认方案', 'stockOut', 10, NULL, 1, -1, 2, 1);
INSERT INTO `set_table_filter_plan` VALUES ('4004', '默认方案', 'backStockOut', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4005', '默认方案', 'stockMove', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4006', '默认方案', 'stockChange', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4007', '默认方案', 'stockCheck', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4008', '默认方案', 'current', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4009', '默认方案', 'initial', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4010', '默认方案', 'backFlush', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4011', '默认方案', 'stockChecksDetail', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('4012', '默认方案', 'stockChecksCompare', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7001', '默认方案', 'workorder', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7002', '默认方案', 'process', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7003', '默认方案', 'proroute', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7005', '默认方案', 'feedback', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7101', '默认方案', 'qcdefect', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7102', '默认方案', 'qcindex', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7103', '默认方案', 'qctemplate', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7104', '默认方案', 'iqc', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7105', '默认方案', 'Ipqc', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('7106', '默认方案', 'oqc', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('9001', '默认方案', 'selectDept', 10, NULL, NULL, -1, 2, NULL);
INSERT INTO `set_table_filter_plan` VALUES ('9008', '默认方案', 'selectPackage', 10, NULL, NULL, -1, 2, NULL);

-- ----------------------------
-- 10_11_011	过滤方案子表
-- ----------------------------
DROP TABLE IF EXISTS `set_table_filter_plans`;
CREATE TABLE `set_table_filter_plans`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plan_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主表id',
  `left_bracket` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '左括弧',
  `query_field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段中文名',
  `query_field_alias` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段别名',
  `field_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段类型',
  `filter_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过滤类型',
  `query_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '值',
  `query_value2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '值2',
  `right_bracket` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '右括弧',
  `operator_type` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作符类型',
  `field_sort` int(11) NULL DEFAULT NULL COMMENT '字段排序',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 247 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '过滤方案子表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 过滤方案子表 初始数据
-- ----------------------------
INSERT INTO `set_table_filter_plans` VALUES (1, '1', '', '用户名称', 'userName', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (2, '1', '', '用户昵称', 'nickName', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (3, '1', '', '所在部门', 'deptName', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (4, '1', '', '创建时间', 'createTime', NULL, '区间是', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (5, '1001', '', '设置分类', 'settingClass', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (6, '1001', '', '设置编码', 'settingCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (7, '1001', '', '设置名称', 'settingName', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (8, '1001', '', '描述', 'settingDescribe', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (9, '1002', '', '单据名称', 'billCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (10, '1002', '', '单据类型编码', 'billTypeCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (11, '1002', '', '单据类型名称', 'billTypeName', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (12, '1003', '', '单据名称', 'autoCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (13, '1003', '', '前缀值', 'prefixValue', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (14, '1004', '', '单据名称', 'billCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (15, '1004', '', '字段英文名', 'field', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (16, '1004', '', '字段中文名', 'fieldName', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (17, '1005', '', '单据名称', 'billCode', NULL, '包含', '', '', '', 'and', NULL);
INSERT INTO `set_table_filter_plans` VALUES (18, '1005', '', '设置类型', 'settingClass', NULL, '包含', '', '', '', 'and', NULL);
INSERT INTO `set_table_filter_plans` VALUES (19, '1005', '', '用户', 'userName', NULL, '包含', '', '', '', 'and', NULL);
INSERT INTO `set_table_filter_plans` VALUES (20, '1005', '', '字段', 'subSettingFlagName', NULL, '包含', '', '', '', 'and', NULL);
INSERT INTO `set_table_filter_plans` VALUES (21, '1006', '', '单据名称', 'billCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (22, '1006', '', '打印模板', 'printTemplate', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (23, '1006', '', '打印接口', 'printInterface', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (24, '1007', '', '提示信息', '`describe`', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (25, '1007', '', '版本号', 'editionNumber', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (26, '1007', '', '版本名称', 'editionName', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (27, '1008', '', '单据编码', 'billCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (28, '1008', '', '单据名称', 'billName', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (29, '1008', '', '主表标识', 'id', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (30, '1009', '', '前缀值', 'perfixValues', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (31, '1009', '', '当前值', 'entryValues', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (32, '1010', '', '方案名称', 'planName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (33, '1010', '', '关联单据编码', 'billCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (34, '1010', '', '主表标识', 'id', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (35, '2', '', '单据编码', 'billCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (36, '2', '', '单据名称', 'billName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (37, '2', '', '描述', 'remark', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (38, '2001', '', '部门编码', 'deptCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (39, '2001', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (40, '2001', '', '部门名称', 'deptName', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (41, '2002', '', '职员编码', 'employeeCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (42, '2002', '', '职员名称', 'employeeName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (43, '2002', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (44, '2003', '', '供应商编码', 'supplierCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (45, '2003', '', '供应商名称', 'supplierName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (46, '2003', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (47, '2004', '', '客户编码', 'customerCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (48, '2004', '', '客户名称', 'customerName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (49, '2004', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (50, '2005', '', '仓库编码', 'warehouseCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (51, '2005', '', '仓库名称', 'warehouseName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (52, '2005', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (53, '2006', '', '货位编码', 'locationCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (54, '2006', '', '货位名称', 'locationName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (55, '2006', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (56, '2007', '', '托盘编码', 'palletCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (57, '2007', '', '托盘名称', 'palletName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (58, '2007', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (59, '2008', '', '包装编码', 'packageCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (60, '2008', '', '包装名称', 'packageName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (61, '2008', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (62, '2009', '', '单位编码', 'unitCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (63, '2009', '', '单位名称', 'unitName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (64, '2009', '', '有效状态', 'status', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (65, '2010', '', '物料分类编码', 'materialClassCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (66, '2010', '', '物料分类名称', 'materialClassName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (67, '2010', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (68, '2011', '', '物料编码', 'materialCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (69, '2011', '', '物料名称', 'materialName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (70, '2011', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (71, '2012', '', '扩展项分类编码', 'extendClassCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (72, '2012', '', '扩展项分类名称', 'extendClassName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (73, '2012', '', '有效状态', 'status', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (74, '2013', '', '扩展项编码', 'extendCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (75, '2013', '', '扩展项名称', 'extendName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (76, '2013', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (77, '3001', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (78, '3001', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (79, '3001', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (80, '3002', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (81, '3002', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (82, '3002', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (83, '3003', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (84, '3003', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (85, '3003', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (86, '3004', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (87, '3004', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (88, '3004', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (89, '3005', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (90, '3005', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (91, '3005', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (92, '3005', '', '任务编码|行号', 'subTaskCode', NULL, '是', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (93, '3006', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (94, '3006', '', '任务日期', 'taskDate', NULL, '日期是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (95, '3006', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (96, '3007', '', '单据类型', 'taskType', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (97, '3007', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (98, '3007', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (99, '3008', '', '创建日期', 'createTime', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (100, '3008', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (101, '3008', '', '仓库编码', 'parameter_warehouseCode', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (102, '3008', '', '出库状态', 'parameter_labelOutStatus', NULL, '是', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (103, '3008', '', '入库状态', 'parameter_labelInStatus', NULL, '是', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (104, '3008', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (105, '3009', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (106, '3009', '', '创建时间', 'createTime', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (107, '3010', '', '冻结编码', 'lockCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (108, '3010', '', '创建时间', 'createTime', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (109, '3011', '', '任务日期', 'taskDate', NULL, '区间是', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (110, '3011', '', '任务编码', 'taskCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (111, '3012', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (112, '3012', '', '创建时间', 'createTime', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (113, '3012', '', '有效状态', 'status', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (114, '3012', '', '物料编码', 'materialCode', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (115, '3013', '', '仓库名称', 'warehouseName', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (116, '3013', '', '货位名称', 'locationName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (117, '3013', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (118, '3013', '', '物料编码', 'materialCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (119, '3013', '', '物料名称', 'materialName', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (120, '3013', '', '物料规格', 'materialSpecification', NULL, '包含', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (121, '3013', '', '批号', 'batch', NULL, '包含', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (122, '4001', '', '入库日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (123, '4001', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (124, '4001', '', '入库编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (125, '4001', '', '审核状态', 'status', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (126, '4001', '', '物料编码', 'subMaterialCode', NULL, '等于', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (127, '4002', '', '入库退日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (128, '4002', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (129, '4002', '', '入库退编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (130, '4003', '', '出库日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (131, '4003', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (132, '4003', '', '出库编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (133, '4003', '', '审核状态', 'status', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (134, '4004', '', '出库退日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (135, '4004', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (136, '4004', '', '出库退编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (137, '4005', '', '移位日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (138, '4005', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (139, '4005', '', '移位编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (140, '4005', '', '审核状态', 'status', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (141, '4006', '', '转换日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (142, '4006', '', '单据类型', 'billTypeCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (143, '4006', '', '转换编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (144, '4007', '', '单据类型', 'stockType', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (145, '4007', '', '盘点编码', 'stockCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (146, '4007', '', '盘点日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (147, '4008', '', '仓库编码', 'warehouseCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (148, '4008', '', '货位编码', 'locationCode', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (149, '4008', '', '托盘编码', 'palletCode', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (150, '4008', '', '包装编码', 'packageCode', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (151, '4008', '', '标签编码', 'labelCode', NULL, '等于', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (152, '4008', '', '物料编码', 'materialCode', NULL, '等于', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (153, '4008', '', '批号', 'batch', NULL, '等于', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (154, '4008', '', '批号1', 'batch1', NULL, '等于', '', '', '', 'and', 7);
INSERT INTO `set_table_filter_plans` VALUES (155, '4008', '', '批号2', 'batch2', NULL, '等于', '', '', '', 'and', 8);
INSERT INTO `set_table_filter_plans` VALUES (156, '4009', '', '仓库编码', 'warehouseCode', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (157, '4009', '', '物料编码', 'materialCode', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (158, '4009', '', '单据日期', 'stockDate', NULL, '日期是', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (159, '4009', '', '创建日期', 'createDate', NULL, '日期是', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (160, '4009', '', '审核日期', 'auditDate', NULL, '日期是', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (161, '4010', '', '入库日期', 'stockDate', NULL, '区间是', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (162, '4010', '', '入库编码|行号', 'stockInsCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (163, '4011', '', '仓库名称', 'warehouseName', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (164, '4011', '', '货位名称', 'locationName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (165, '4011', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (166, '4011', '', '物料编码', 'materialCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (167, '4011', '', '批号', 'batch', NULL, '包含', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (168, '4011', '', '物料名称', 'materialName', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (169, '4011', '', '物料规格', 'materialSpecification', NULL, '包含', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (170, '4012', '', '仓库编码', 'warehouseCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (171, '4012', '', '标签编码', 'labelCode', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (172, '4012', '', '物料编码', 'materialCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (173, '4012', '', '物料名称', 'materialName', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (174, '4012', '', '物料规格', 'materialSpecification', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (175, '4012', '', '批号', 'batch', NULL, '包含', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (176, '7001', '', '工单编码', 'workorderCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (177, '7001', '', '工单名称', 'workorderName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (178, '7001', '', '工单来源', 'orderSource', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (179, '7001', '', '产品编号', 'productCode', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (180, '7001', '', '产品名称', 'productName', NULL, '等于', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (181, '7001', '', '规格型号', 'productSpc', NULL, '等于', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (182, '7001', '', '单位', 'unitOfMeasure', NULL, '等于', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (183, '7001', '', '批次号', 'batchCode', NULL, '等于', '', '', '', 'and', 7);
INSERT INTO `set_table_filter_plans` VALUES (184, '7001', '', '客户编码', 'clientCode', NULL, '等于', '', '', '', 'and', 8);
INSERT INTO `set_table_filter_plans` VALUES (185, '7001', '', '客户名称', 'clientName', NULL, '等于', '', '', '', 'and', 9);
INSERT INTO `set_table_filter_plans` VALUES (186, '7001', '', '需求日期', 'requestDate', NULL, '日期是', '', '', '', 'and', 10);
INSERT INTO `set_table_filter_plans` VALUES (187, '7001', '', '单据状态', 'status', NULL, '等于', '', '', '', 'and', 11);
INSERT INTO `set_table_filter_plans` VALUES (188, '7002', '', '工序编码', 'processCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (189, '7002', '', '工序名称', 'processName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (190, '7002', '', '工序说明', 'attention', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (191, '7002', '', '是否启用', 'enableFlag', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (192, '7002', '', '备注', 'remark', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (193, '7003', '', '工艺路线编号', 'routeCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (194, '7003', '', '工艺路线名称', 'routeName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (195, '7003', '', '工艺路线说明', 'routeDesc', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (196, '7003', '', '是否启用', 'enableFlag', NULL, '等于', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (197, '7003', '', '备注', 'remark', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (198, '7005', '', '报工类型', 'feedbackType', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (199, '7005', '', '工作站名称', 'workstationName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (200, '7005', '', '生产工单编号', 'workorderCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (201, '7005', '', '产品物料编码', 'itemCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (202, '7005', '', '产品物料名称', 'itemName', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (203, '7005', '', '报工人', 'nickName', NULL, '包含', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (204, '7005', '', '记录人', 'recordNick', NULL, '包含', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (205, '7005', '', '状态', 'status', NULL, '等于', '', '', '', 'and', 7);
INSERT INTO `set_table_filter_plans` VALUES (206, '7101', '', '缺陷描述', 'defectName', NULL, '等于', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (207, '7101', '', '检测项类型', 'indexType', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (208, '7101', '', '缺陷等级', 'defectLevel', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (209, '7102', '', '检测项编码', 'indexCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (210, '7102', '', '检测项名称', 'indexName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (211, '7102', '', '检测项类型', 'indexType', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (212, '7102', '', '检测工具', 'qcTool', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (213, '7103', '', '检测模板编号', 'templateCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (214, '7103', '', '检测模板名称', 'templateName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (215, '7103', '', '是否启用', 'enableFlag', NULL, '等于', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (216, '7104', '', '来料检验单编号', 'iqcCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (217, '7104', '', '来料检验单名称', 'iqcName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (218, '7104', '', '供应商编码', 'vendorCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (219, '7104', '', '供应商批次号', 'vendorBatch', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (220, '7104', '', '产品物料编码', 'itemCode', NULL, '包含', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (221, '7104', '', '产品物料名称', 'itemName', NULL, '包含', '', '', '', 'and', 6);
INSERT INTO `set_table_filter_plans` VALUES (222, '7104', '', '检测结果', 'checkResult', NULL, '包含', '', '', '', 'and', 7);
INSERT INTO `set_table_filter_plans` VALUES (223, '7104', '', '来料日期', 'reciveDate', NULL, '区间是', '', '', '', 'and', 8);
INSERT INTO `set_table_filter_plans` VALUES (224, '7104', '', '检测日期', 'inspectDate', NULL, '区间是', '', '', '', 'and', 9);
INSERT INTO `set_table_filter_plans` VALUES (225, '7104', '', '单据状态', 'status', NULL, '等于', '', '', '', 'and', 10);
INSERT INTO `set_table_filter_plans` VALUES (226, '7104', '', '检测人员', 'inspectorName', NULL, '包含', '', '', '', 'and', 11);
INSERT INTO `set_table_filter_plans` VALUES (227, '7104', '', '供应商名称', 'vendorName', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (228, '7105', '', '检验单编号', 'ipqcCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (229, '7105', '', '检验类型', 'ipqcType', NULL, '等于', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (230, '7105', '', '工单编号', 'workorderCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (231, '7105', '', '产品物料编码', 'itemCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (232, '7105', '', '产品物料名称', 'itemName', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (233, '7105', '', '检测结果', 'checkResult', NULL, '等于', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (234, '7106', '', '检验单编号', 'oqcCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (235, '7106', '', '客户名称', 'clientName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (236, '7106', '', '批次号', 'batchCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (237, '7106', '', '产品物料编码', 'itemCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (238, '7106', '', '产品物料名称', 'itemName', NULL, '包含', '', '', '', 'and', 4);
INSERT INTO `set_table_filter_plans` VALUES (239, '7106', '', '检测结果', 'checkResult', NULL, '等于', '', '', '', 'and', 5);
INSERT INTO `set_table_filter_plans` VALUES (240, '9001', '', '部门编码', 'deptCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (241, '9001', '', '部门名称', 'deptName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (242, '9008', '', '包装编码', 'packageCode', NULL, '包含', '', '', '', 'and', 0);
INSERT INTO `set_table_filter_plans` VALUES (243, '9008', '', '包装名称', 'packageName', NULL, '包含', '', '', '', 'and', 1);
INSERT INTO `set_table_filter_plans` VALUES (244, '9008', '', '仓库编码', 'warehouseCode', NULL, '包含', '', '', '', 'and', 2);
INSERT INTO `set_table_filter_plans` VALUES (245, '9008', '', '货位编码', 'locationCode', NULL, '包含', '', '', '', 'and', 3);
INSERT INTO `set_table_filter_plans` VALUES (246, '9008', '', '托盘编码', 'palletCode', NULL, '包含', '', '', '', 'and', 4);


-- ----------------------------
-- 10_12_012	表格设计主表
-- ----------------------------
DROP TABLE IF EXISTS `set_table_info`;
CREATE TABLE `set_table_info`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `bill_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据名称',
  `sql_query` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'sql',
  `sql_paged_query` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '分页sql',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `report_type` int(11) NULL DEFAULT NULL COMMENT '1普通表 0系统表',
  `dept_alias` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门权限表别名',
  `user_alias` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户权限表别名',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '表格设计主表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 表格设计主表 初始数据
-- ----------------------------
INSERT INTO `set_table_info` VALUES ('1', 'TableInfoView', '表格样例', 'select t1.user_id,t1.dept_id,t1.user_name,t1.nick_name,t1.user_type,t1.create_time,t2.dept_name\nfrom sys_user t1\nleft join sys_dept t2 on t1.dept_id=t2.dept_id\nwhere 1=1 \nand :forWhere \nand (:qty=\'\' OR :qty=t1.dept_id )\norder by user_id', 'select count(1)\nfrom sys_user t1\nleft join sys_dept t2 on t1.dept_id=t2.dept_id\nwhere 1=1 \nand :forWhere \nand (:qty=\'\' OR :qty=t1.dept_id )', NULL, 1, 't2', 't1');
INSERT INTO `set_table_info` VALUES ('1001', 'systemSetting', '参数设置', 'select id, setting_class, setting_code, setting_name, setting_describe, setting_values, setting_sort\n        from set_system_setting\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1002', 'billType', '单据类型', 'select id, bill_code, bill_type_code, bill_type_name, task_bill_type_code, back_task_bill_type_code, stock_bill_type_code, is_enable_app, is_control_task, is_control_task_audit, interface_name, interface_type, status, setting_sort, setting_describe\n        from set_bill_type\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1003', 'rule', '编号规则主', 'select id, auto_code, sequence_length, prefix_value, suffix_value, current_value, sequence_reset, step_value,\n        create_id, create_by, create_time, update_by, update_time, remark\n        from set_code_rule\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1004', 'fieldSetting', '字段设置', 'select id, bill_code, field, field_name, field_type, width, multiple, required, required_condition, hidden, hidden_condition, setting_sort, setting_describe, flag, key_name, key_code, query_data, defaults from set_field_setting\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1005', 'defaultSetting', '默认值设置', 'select a.id, a.userid, a.bill_code, a.bill_type_code, a.setting_class, a.setting_sort, a.setting_describe,\n               b.id as sub_id, b.default_setting_id as sub_default_setting_id, b.setting_flag as sub_setting_flag, b.setting_code as sub_setting_code, b.setting_name as sub_setting_name, b.setting_values as sub_setting_values,\n               user.nick_name as user_name,field.field_name as sub_setting_flag_name,\n               billType.bill_type_name\n        from set_default_setting a\n        left join set_default_settings b on b.default_setting_id = a.id\n        left join sys_user user on a.userid = user.user_id\n        left join set_field_setting field ON field.bill_code=a.bill_code and b.setting_flag=field.field\n        left join set_bill_type billType ON billType.bill_type_code=a.bill_type_code and billType.bill_code=a.bill_code\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1006', 'printSetting', '打印设置', 'select id, bill_code, print_template, print_interface, setting_sort, setting_describe from set_print_setting\nwhere\n	1=1\n	and :forWhere', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1007', 'appEdition', 'App版本管理', 'select id, `describe`, edition_url, edition_force, package_type, edition_issue, edition_number, edition_name, edition_silence, create_id, create_by, create_time, update_by, update_time, remark from set_app_edition\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1008', 'tableInfo', '表格设计', 'select\n            a.id, a.bill_code, a.bill_name, a.sql_query, a.sql_paged_query, a.remark, COALESCE(plan.status,1) isDefaultPlan\n        from set_table_info a\n        left join set_table_filter_plan plan on a.bill_code=plan.bill_code and plan.plan_name=\"默认方案\"\n        ', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1009', 'rules', '编号规则子表', 'select id, code_rule_id, perfix_values, entry_values from set_code_rules\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('1010', 'tableFilterPlan', '过滤方案', 'select id, plan_name, bill_code, page_num, page_size, user_id, sort, status, is_default from set_table_filter_plan\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2', 'tableInfoPreview', '表格展示', 'select\n            a.id, a.bill_code, a.bill_name, a.sql_query, a.sql_paged_query, a.remark, COALESCE(plan.status,1) isDefaultPlan\n        from set_table_info a\n        left join set_table_filter_plan plan on a.bill_code=plan.bill_code and plan.plan_name=\"默认方案\"\n        ', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2001', 'department', '部门', 'select t1.id, t1.parent_id, t1.dept_code, t1.dept_name, t1.dept_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_department t1\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2002', 'employee', '职员', 'select t1.id,\n               t1.dept_code,\n               t2.dept_name,\n               t1.employee_code,\n               t1.employee_name,\n               t1.employee_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark\n        from base_employee t1\n        left join base_department t2 on t1.dept_code = t2.dept_code\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2003', 'supplier', '供应商', 'select t1.id, t1.supplier_code, t1.supplier_name, t1.supplier_short_name, t1.supplier_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_supplier t1\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2004', 'customer', '客户', 'select t1.id, t1.customer_code, t1.customer_name, t1.customer_short_name, t1.customer_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\nfrom base_customer t1\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2005', 'warehouse', '仓库', 'select t1.id,\n               t1.parent_id,\n               t1.warehouse_code,\n               t1.warehouse_name,\n               t1.warehouse_describe,\n               t1.is_location,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark\n        from base_warehouse t1\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2006', 'location', '货位', 'select t1.id,\n               t1.location_code,\n               t1.location_name,\n               t1.warehouse_code,\n               t2.warehouse_name,\n               t1.location_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark\n        from base_location t1\n        left join base_warehouse t2 on t2.warehouse_code = t1.warehouse_code\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2007', 'pallet', '托盘', 'select t1.id,\n               t1.pallet_code,\n               t1.pallet_name,\n               t3.warehouse_code,\n               t3.location_code,\n               case when coalesce(t2.stock_qty,0) >0 then 0 else 1 end is_use,\n               t2.stock_qty,\n               t1.pallet_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n\n               t4.warehouse_name,\n               t5.location_name\n        from base_pallet t1\n        left join (select pallet_code,max(id) id,sum(place_stock_qty) stock_qty from wms_current_stock group by pallet_code) t2 on t1.pallet_code =t2.pallet_code\n        left join wms_current_stock t3 on t2.id =t3.id\n        left join base_warehouse t4 on t3.warehouse_code = t4.warehouse_code\n        left join base_location t5 on t3.location_code = t5.location_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2008', 'package', '包装', 'select t1.id,\n               t1.package_code,\n               t1.package_name,\n               t3.warehouse_code,\n               t3.location_code,\n               t3.pallet_code,\n               case when coalesce(t2.stock_qty,0) >0 then 0 else 1 end is_use,\n               t2.stock_qty,\n               t1.package_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n\n               t4.warehouse_name,\n               t5.location_name,\n               t6.pallet_name\n        from base_package t1\n        left join (select package_code,max(id) id,sum(place_stock_qty) stock_qty from wms_current_stock group by package_code) t2 on t1.package_code =t2.package_code\n        left join wms_current_stock t3 on t2.id =t3.id\n        left join base_warehouse t4 on t3.warehouse_code = t4.warehouse_code\n        left join base_location t5 on t3.location_code = t5.location_code\n        left join base_pallet t6 on t3.pallet_code = t6.pallet_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2009', 'unit', '单位', 'select t1.id, t1.unit_code, t1.unit_name, t1.unit_description, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_unit t1\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2010', 'materialClass', '物料分类', 'select t1.id, t1.parent_id, t1.ancestors, t1.material_class_code, t1.material_class_name, t1.material_level, t1.material_end, t1.material_class_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_material_class t1\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2011', 'material', '物料', 'select t1.id,\n               t1.material_class_id,\n               t1.material_class_code,\n               t2.material_class_name,\n               t1.material_code,\n               t1.material_name,\n               t1.material_specification,\n               t1.quality_day,\n               t1.is_batch,\n               t1.is_package,\n               t1.is_pallet,\n               t1.label_standard_quantity,\n               t1.secondary_rate,\n               t1.max_stock_quantity,\n               t1.min_stock_quantity,\n               t1.excess_ratio_in,\n               t1.excess_ratio_out,\n               t1.net_weight,\n               t1.material_quality,\n               t1.unit_code,\n               t1.secondary_unit_code,\n               t1.material_description,\n               t1.attachments,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.extend_code06,\n               t1.extend_code07,\n               t1.extend_code08,\n               t1.extend_code09,\n               t1.extend_code10,\n               t1.extend_code11,\n               t1.extend_code12,\n               t1.extend_code13,\n               t1.extend_code14,\n               t1.extend_code15,\n               t1.extend_code16,\n               t1.extend_code17,\n               t1.extend_code18,\n               t1.extend_code19,\n               t1.extend_code20,\n               t1.warehouse_code_in,\n               t1.location_code_in,\n               t1.warehouse_code_out,\n               t1.location_code_out,\n               t1.collect_type,\n               t3.unit_name,\n               t8.unit_name as secondary_unit_name,\n               t4.warehouse_name as warehouse_name_in,\n               t5.warehouse_name as warehouse_name_out,\n               t6.location_name  as location_name_in,\n               t7.location_name  as location_name_out\n        from base_material t1\n        left join base_material_class t2 on t2.id = t1.material_class_id\n        left join base_unit t3 on t3.unit_code = t1.unit_code\n        left join base_warehouse t4 on t4.warehouse_code = t1.warehouse_code_in\n        left join base_warehouse t5 on t5.warehouse_code = t1.warehouse_code_out\n        left join base_location t6 on t6.location_code = t1.location_code_in\n        left join base_location t7 on t7.location_code = t1.location_code_out\n        left join base_unit t8 on t8.unit_code = t1.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2012', 'extendClass', '扩展项分类', 'select\n            t1.id, t1.parent_id\n            , t1.ancestors, t1.extend_class_code, t1.extend_class_name, t1.extend_class_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_extend_class t1\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('2013', 'extend', '扩展项', 'select\n            extend.id\n            ,extend.extend_class_id\n            ,extend.extend_class_code\n            ,extendclass.extend_class_name\n            ,extend.extend_code\n            ,extend.extend_name\n            ,extend.extend_describe\n            ,extend.status\n            ,extend.inactive_time\n            ,extend.create_id\n            ,extend.create_by\n            ,extend.create_time\n            ,extend.update_by\n            ,extend.update_time\n            ,extend.remark\n        from base_extend extend\n        left join base_extend_class extendclass on extend.extend_class_id =extendclass.id\n        left join sys_user u on u.user_id = extend.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\n\n', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3001', 'taskIn', '入库任务', 'select\n            t1.id,\n            t1.task_type,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.task_describe,\n            t1.interface_id,\n            t1.interface_code,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as sub_id,\n            t2.id                     as inner_id,\n            t2.task_in_id             as sub_task_in_id,\n            t2.row_number             as sub_row_number,\n            t2.material_code          as sub_material_code,\n            t2.unit_code              as sub_unit_code,\n            t2.excess_ratio_in        as sub_excess_ratio_in,\n            t2.task_qty               as sub_task_qty,\n            t2.back_task_qty          as sub_back_task_qty,\n            t2.label_qty              as sub_label_qty,\n            t2.stock_qty              as sub_stock_qty,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.warehouse_code         as sub_warehouse_code,\n            t2.location_code          as sub_location_code,\n            t2.task_describe          as sub_task_describe,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.interface_id           as sub_interface_id,\n            t2.interface_row          as sub_interface_row,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            concat(t1.task_code, \'|\', t2.row_number) as sub_task_code,  /**当前单据编码|行号*/\n            t6.material_name          as sub_material_name,\n            t6.material_specification as sub_material_specification,\n            t7.unit_name              as sub_unit_name,\n            t8.warehouse_name         as sub_warehouse_name,\n            t9.location_name          as sub_location_name,\n\n            t6.is_batch                as sub_is_batch,\n            t6.label_standard_quantity as sub_label_standard_quantity,\n            t6.secondary_rate          as sub_secondary_rate,\n            t6.secondary_unit_code     as sub_secondary_unit_code,\n            t10.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t6.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t6.secondary_rate,2)  END  as sub_secondary_task_qty\n        from wms_task_in t1\n        left join wms_task_ins t2 on t2.task_in_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_material t6 on t6.material_code = t2.material_code\n        left join base_unit t7 on t7.unit_code = t2.unit_code\n        left join base_warehouse t8 on t8.warehouse_code = t2.warehouse_code\n        left join base_location t9 on t9.location_code = t2.location_code\n        left join base_unit t10 on t10.unit_code = t6.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	t1.task_type = 1\n	and :forWhere\n	and (:taskLabelStatus=\'\'\n		or (:taskLabelStatus=\'未全部拆标签\' and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) > 0)\n		or (:taskLabelStatus=\'已全部入库\' and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) = 0)\n		or (:taskLabelStatus=\'超比例未全部入库\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.label_qty,0) > 0)\n		or (:taskLabelStatus=\'超比例已全部入库\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.label_qty,0) = 0)\n	)\n	and (:taskInStatus=\'\'\n		or (:taskInStatus=\'未全部入库\' and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) > 0)\n		or (:taskInStatus=\'已全部入库\' and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) = 0)\n		or (:taskInStatus=\'超比例未全部入库\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.stock_qty,0) > 0)\n		or (:taskInStatus=\'超比例已全部入库\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.stock_qty,0) = 0)\n	)\n\norder by t1.task_code', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3002', 'backTaskIn', '入库任务退', 'select\n            t1.id,\n            t1.task_type,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.task_describe,\n            t1.task_in_id,\n            t1.interface_id,\n            t1.interface_code,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as sub_id,\nt2.id                     as inner_id,\n            t2.task_in_id             as sub_task_in_id,\n            t2.row_number             as sub_row_number,\n            t2.material_code          as sub_material_code,\n            t2.unit_code              as sub_unit_code,\n            t2.excess_ratio_in        as sub_excess_ratio_in,\n            t2.task_qty               as sub_task_qty,\n            t2.back_task_qty          as sub_back_task_qty,\n            t2.label_qty              as sub_label_qty,\n            t2.stock_qty              as sub_stock_qty,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.warehouse_code         as sub_warehouse_code,\n            t2.location_code          as sub_location_code,\n            t2.task_describe          as sub_task_describe,\n            t2.task_ins_id            as sub_task_ins_id,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.interface_id           as sub_interface_id,\n            t2.interface_row          as sub_interface_row,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            t12.task_code             as task_in_code,  /**入库任务编码*/\n\n            concat(t1.task_code, \'|\', t2.row_number) as sub_task_code,  /**当前单据编码|行号*/\n            concat(t11.task_code, \'|\', t10.row_number) as sub_task_ins_code,  /**入库任务编码|行号*/\n            t6.material_name          as sub_material_name,\n            t6.material_specification as sub_material_specification,\n            t7.unit_name              as sub_unit_name,\n            t8.warehouse_name         as sub_warehouse_name,\n            t9.location_name          as sub_location_name,\n\n            t6.secondary_rate      as sub_secondary_rate,\n            t6.secondary_unit_code     as sub_secondary_unit_code,\n            t13.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t6.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t6.secondary_rate,2)  END  as sub_secondary_task_qty\n\n        from wms_task_in t1\n        left join wms_task_ins t2 on t2.task_in_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_material t6 on t6.material_code = t2.material_code\n        left join base_unit t7 on t7.unit_code = t2.unit_code\n        left join base_warehouse t8 on t8.warehouse_code = t2.warehouse_code\n        left join base_location t9 on t9.location_code = t2.location_code\n        left join wms_task_ins t10 on t10.id = t2.task_ins_id\n        left join wms_task_in t11 on t11.id = t10.task_in_id\n        left join wms_task_in t12 on t12.id = t1.task_in_id\n        left join base_unit t13 on t13.unit_code = t6.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	t1.task_type = -1\n	and :forWhere\nand (\n				:taskInBackStatus = \'\'\n				or (:taskInBackStatus = 1 and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) > 0)\n				or (:taskInBackStatus = 2 and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) = 0)\n			)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3003', 'taskOut', '出库任务', 'select\n            t1.id,\n            t1.task_type,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.customer_code,\n            t1.task_describe,\n            t1.interface_id,\n            t1.interface_code,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as sub_id,\n            t2.task_out_id            as sub_task_out_id,\n            t2.row_number             as sub_row_number,\n            t2.material_code          as sub_material_code,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.task_qty               as sub_task_qty,\n            t2.back_task_qty          as sub_back_task_qty,\n            t2.stock_qty              as sub_stock_qty,\n            t2.excess_ratio_out       as sub_excess_ratio_out,\n            t2.unit_code              as sub_unit_code,\n            t2.warehouse_code         as sub_warehouse_code,\n            t2.location_code          as sub_location_code,\n            t2.is_back_flush          as sub_is_back_flush,\n            t2.task_describe          as sub_task_describe,\n            t2.task_ins_id            as sub_task_ins_id,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.interface_id           as sub_interface_id,\n            t2.interface_row          as sub_interface_row,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            t6.customer_name,\n\n            concat(t1.task_code, \'|\', t2.row_number)   as sub_task_code,  /**当前单据编码|行号*/\n            concat(t12.task_code, \'|\', t11.row_number) as sub_task_ins_code,  /**入库任务编码|行号*/\n            t7.material_name          as sub_material_name,\n            t7.material_specification as sub_material_specification,\n            t8.unit_name              as sub_unit_name,\n            t9.warehouse_name         as sub_warehouse_name,\n            t10.location_name         as sub_location_name,\n\n            t7.secondary_rate      as sub_secondary_rate,\n            t7.secondary_unit_code     as sub_secondary_unit_code,\n            t13.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t7.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t7.secondary_rate,2)  END  as sub_secondary_task_qty\n\n        from wms_task_out t1\n        left join wms_task_outs t2 on t2.task_out_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_customer t6 on t6.customer_code = t1.customer_code\n        left join base_material t7 on t7.material_code = t2.material_code\n        left join base_unit t8 on t8.unit_code = t2.unit_code\n        left join base_warehouse t9 on t9.warehouse_code = t2.warehouse_code\n        left join base_location t10 on t10.location_code = t2.location_code\n        left join wms_task_ins t11 on t2.task_ins_id = t11.id\n        left join wms_task_in t12 on t11.task_in_id = t12.id\n        left join base_unit t13 on t13.unit_code = t7.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	t1.task_type = -1\n	and :forWhere\n	and(\n		:taskOutStatus = \'\'\n		or (:taskOutStatus =\'未全部出库\' and (ifnull( t2.task_qty, 0 )-ifnull( t2.stock_qty, 0 ))>0 )\n		or (:taskOutStatus =\'已全部出库\' and (ifnull( t2.task_qty, 0 )-ifnull( t2.stock_qty, 0 ))=0 )\n		or (:taskOutStatus =\'超比例未全部出库\' and (ifnull( t2.task_qty, 0 )*(1+ifnull( t2.excess_ratio_out, 0)/100)-ifnull( t2.stock_qty, 0 ))>0 )\n		or (:taskOutStatus =\'超比例已全部出库\' and (ifnull( t2.task_qty, 0 )*(1+ifnull( t2.excess_ratio_out, 0)/100)-ifnull( t2.stock_qty, 0 ))=0 )\n	)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3004', 'backTaskOut', '出库任务退', 'select\n            t1.id,\n            t1.task_type,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.customer_code,\n            t1.task_describe,\n            t1.task_out_id,\n            t1.interface_id,\n            t1.interface_code,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as sub_id,\n            t2.task_out_id            as sub_task_out_id,\n            t2.row_number             as sub_row_number,\n            t2.material_code          as sub_material_code,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.task_qty               as sub_task_qty,\n            t2.back_task_qty          as sub_back_task_qty,\n            t2.stock_qty              as sub_stock_qty,\n            t2.excess_ratio_out       as sub_excess_ratio_out,\n            t2.unit_code              as sub_unit_code,\n            t2.warehouse_code         as sub_warehouse_code,\n            t2.location_code          as sub_location_code,\n            t2.is_back_flush          as sub_is_back_flush,\n            t2.task_describe          as sub_task_describe,\n            t2.task_outs_id           as sub_task_outs_id,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.interface_id           as sub_interface_id,\n            t2.interface_row          as sub_interface_row,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            t6.customer_name,\n            t13.task_code             as task_out_code,  /**出库任务编码*/\n\n            concat(t1.task_code, \'|\', t2.row_number)   as sub_task_code,  /**当前单据编码|行号*/\n            concat(t12.task_code, \'|\', t11.row_number) as sub_task_outs_code,  /**出库任务编码|行号*/\n            t7.material_name          as sub_material_name,\n            t7.material_specification as sub_material_specification,\n            t8.unit_name              as sub_unit_name,\n            t9.warehouse_name         as sub_warehouse_name,\n            t10.location_name         as sub_location_name,\n\n            t7.secondary_rate      as sub_secondary_rate,\n            t7.secondary_unit_code     as sub_secondary_unit_code,\n            t14.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t7.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t7.secondary_rate,2)  END  as sub_secondary_task_qty\n\n        from wms_task_out t1\n        left join wms_task_outs t2 on t2.task_out_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_customer t6 on t6.customer_code = t1.customer_code\n        left join base_material t7 on t7.material_code = t2.material_code\n        left join base_unit t8 on t8.unit_code = t2.unit_code\n        left join base_warehouse t9 on t9.warehouse_code = t2.warehouse_code\n        left join base_location t10 on t10.location_code = t2.location_code\n        left join wms_task_outs t11 on t2.task_outs_id = t11.id\n        left join wms_task_out t12 on t11.task_out_id = t12.id\n        left join wms_task_out t13 on t13.id = t1.task_out_id\n        left join base_unit t14 on t14.unit_code = t7.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere t1.task_type = 1\n	and :forWhere\nand (:taskOutBackStatus = \'\'\n	or (:taskOutBackStatus = \'未全部出库退\' and (ifnull( t2.task_qty, 0 )-ifnull( t2.stock_qty, 0 ))>0)\n	or (:taskOutBackStatus = \'已全部出库退\' and (ifnull( t2.task_qty, 0 )-ifnull( t2.stock_qty, 0 ))=0)\n)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3005', 'taskMove', '移位任务', 'select t1.id,\n               t1.bill_type_code,\n               t1.task_code,\n               t1.task_date,\n               t1.dept_code_out,\n               t1.dept_code_in,\n               t1.employee_code_out,\n               t1.employee_code_in,\n               t1.customer_code_in,\n               t1.warehouse_code_out,\n               t1.warehouse_code_in,\n               t1.task_describe,\n               t1.interface_id,\n               t1.interface_code,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n(select GROUP_CONCAT(k2.nick_name SEPARATOR \',\') from wms_task_user k1 left join sys_user k2 on k1.user_id = k2.user_id where k1.bill_id = t1.id) as nick_names,\n\n\n               t2.id                                                  as inner_id,\n               t2.id                                                  as sub_id,\n               t2.task_move_id                                        as sub_task_move_id,\n               t2.row_number                                          as sub_row_number,\n               t2.material_code                                       as sub_material_code,\n               t2.unit_code                                           as sub_unit_code,\n               t2.task_qty                                            as sub_task_qty,\n               t2.stock_qty                                           as sub_stock_qty,\n               t2.batch1                                              as sub_batch1,\n               t2.batch2                                              as sub_batch2,\n               t2.location_code_out                                   as sub_location_code_out,\n               t2.location_code_in                                    as sub_location_code_in,\n               t2.task_describe                                       as sub_task_describe,\n               t2.interface_id                                        as sub_interface_id,\n               t2.interface_row                                       as sub_interface_row,\n               t2.extend_code01                                       as sub_extend_code01,\n               t2.extend_code02                                       as sub_extend_code02,\n               t2.extend_code03                                       as sub_extend_code03,\n               t2.extend_code04                                       as sub_extend_code04,\n               t2.extend_code05                                       as sub_extend_code05,\n               t2.status                                              as sub_status,\n               t2.is_close                                            as sub_is_close,\n               t2.create_id                                           as sub_create_id,\n               t2.create_by                                           as sub_create_by,\n               t2.create_time                                         as sub_create_time,\n               t2.update_by                                           as sub_update_by,\n               t2.update_time                                         as sub_update_time,\n               t2.audit_by                                            as sub_audit_by,\n               t2.audit_time                                          as sub_audit_time,\n               t2.close_by                                            as sub_close_by,\n               t2.close_time                                          as sub_close_time,\n               t2.remark                                              as sub_remark,\n\n               t3.dept_name                                           as dept_name_out,\n               t4.dept_name                                           as dept_name_in,\n               t5.employee_name                                       as employee_name_out,\n               t6.employee_name                                       as employee_name_in,\n               t7.warehouse_name                                      as warehouse_name_out,\n               t8.warehouse_name                                      as warehouse_name_in,\n               t7.is_location                                         as is_location_out,\n               t8.is_location                                         as is_location_in,\n\n               concat(t1.task_code, \'|\', t2.row_number)               as sub_task_code,\n               t9.material_name                                       as sub_material_name,\n               t9.material_specification                              as sub_material_specification,\n               t9.is_package                                          as sub_is_package,\n               t9.is_pallet                                           as sub_is_pallet,\n               t10.unit_name                                          as sub_unit_name,\n               t11.location_name                                      as sub_location_name_out,\n               t12.location_name                                      as sub_location_name_in,\n\n               t9.secondary_rate                                      as sub_secondary_rate,\n               t9.secondary_unit_code                                 as sub_secondary_unit_code,\n               t13.unit_name                                          as sub_secondary_unit_name,\n               t14.customer_name                                      as customer_name_in,\n               CASE IFNULL(t9.secondary_rate, 0)\n                   WHEN 0 THEN NULL\n                   ELSE ROUND(t2.task_qty / t9.secondary_rate, 2) END as sub_secondary_task_qty\n\n        from wms_task_move t1\n                 left join wms_task_moves t2 on t2.task_move_id = t1.id\n                 left join base_department t3 on t3.dept_code = t1.dept_code_out\n                 left join base_department t4 on t4.dept_code = t1.dept_code_in\n                 left join base_employee t5 on t5.employee_code = t1.employee_code_out\n                 left join base_employee t6 on t6.employee_code = t1.employee_code_in\n                 left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code_out\n                 left join base_warehouse t8 on t8.warehouse_code = t1.warehouse_code_in\n                 left join base_material t9 on t9.material_code = t2.material_code\n                 left join base_unit t10 on t10.unit_code = t2.unit_code\n                 left join base_location t11 on t11.location_code = t2.location_code_out\n                 left join base_location t12 on t12.location_code = t2.location_code_in\n                 left join base_unit t13 on t13.unit_code = t9.secondary_unit_code\n                 left join base_customer t14 on t14.customer_code = t1.customer_code_in\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\n	and(\n		:taskMoveStatus = \'\' \n		or (:taskMoveStatus =\'未全部移位\' and (t2.task_qty - ifnull(t2.stock_qty,0)) >0 )\n		or (:taskMoveStatus =\'已全部移位\' and (t2.task_qty - ifnull(t2.stock_qty,0)) =0 )\n	)\norder by t1.create_time desc', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3006', 'taskChange', '转换任务', 'select\n            t1.id,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code_out,\n            t1.dept_code_in,\n            t1.employee_code_out,\n            t1.employee_code_in,\n            t1.warehouse_code_out,\n            t1.warehouse_code_in,\n            t1.task_describe,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as inner_id,\n            t2.id                     as sub_id,\n            t2.task_change_id         as sub_task_change_id,\n            t2.row_number             as sub_row_number,\n            t2.change_group           as sub_change_group,\n            t2.change_type            as sub_change_type,\n            t2.material_code          as sub_material_code,\n            t2.unit_code              as sub_unit_code,\n            t2.task_qty               as sub_task_qty,\n            t2.excess_ratio_change    as sub_excess_ratio_change,\n            t2.stock_qty              as sub_stock_qty,\n            t2.label_qty              as sub_label_qty,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.location_code          as sub_location_code,\n            t2.task_describe          as sub_task_describe,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name              as dept_name_out,\n            t4.dept_name              as dept_name_in,\n            t5.employee_name          as employee_name_out,\n            t6.employee_name          as employee_name_in,\n            t7.warehouse_name         as warehouse_name_out,\n            t8.warehouse_name         as warehouse_name_in,\n            t7.is_location            as is_location_out,\n            t8.is_location            as is_location_in,\n\n            concat(t1.task_code,\'|\',t2.row_number)   as sub_task_code,\n            t9.material_name          as sub_material_name,\n            t9.material_specification as sub_material_specification,\n            t10.unit_name             as sub_unit_name,\n            t11.location_name         as sub_location_name,\n\n            t9.is_batch                as sub_is_batch,\n            t9.label_standard_quantity as sub_label_standard_quantity,\n            t9.secondary_rate          as sub_secondary_rate,\n            t9.secondary_unit_code     as sub_secondary_unit_code,\n            t13.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t9.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t9.secondary_rate,2)  END  as sub_secondary_task_qty\n\n        from wms_task_change t1\n        left join wms_task_changes t2 on t2.task_change_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code_out\n        left join base_department t4 on t4.dept_code = t1.dept_code_in\n        left join base_employee t5 on t5.employee_code = t1.employee_code_out\n        left join base_employee t6 on t6.employee_code = t1.employee_code_in\n        left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code_out\n        left join base_warehouse t8 on t8.warehouse_code = t1.warehouse_code_in\n        left join base_material t9 on t9.material_code = t2.material_code\n        left join base_unit t10 on t10.unit_code = t2.unit_code\n        left join base_location t11 on t11.location_code = t2.location_code\n        left join base_unit t13 on t13.unit_code = t9.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\n	and(\n		:taskLabelStatus = \'\' \n		or (:taskLabelStatus =\'未全部拆标签\' and t2.change_type =2 and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) > 0 )\n		or (:taskLabelStatus =\'已全部拆标签\' and t2.change_type =2 and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) = 0)\n		or (:taskLabelStatus =\'超比例未全部拆标签\' and t2.change_type =2 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_change,0)/100) -ifnull(t2.label_qty,0) > 0 )\n		or (:taskLabelStatus =\'超比例已全部拆标签\' and t2.change_type =2 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_change,0)/100) -ifnull(t2.label_qty,0) = 0 )\n	)\n       and(\n		:taskChangeStatus = \'\' \n		or (:taskChangeStatus =\'未全部转换\' and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) > 0 )\n		or (:taskChangeStatus =\'已全部转换\' and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) = 0 )\n		or (:taskChangeStatus =\'超比例未全部转换\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_change,0)/100) -ifnull(t2.stock_qty,0) > 0 )\n		or (:taskChangeStatus =\'超比例已全部转换\' and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_change,0)/100) -ifnull(t2.stock_qty,0) = 0 )\n	)\n\n\norder by t1.create_time desc', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3007', 'taskCheck', '盘点任务', 'select t1.id,\n               t1.task_type,\n               t1.task_code,\n               t1.task_date,\n               t1.dept_code,\n               t1.employee_code,\n               t1.warehouse_code,\n               t1.location_code,\n               t1.pallet_code,\n               t1.package_code,\n               t1.label_code,\n               t1.material_code,\n               t1.unit_code,\n               t1.batch,\n               t1.batch1,\n               t1.batch2,\n               t1.task_describe,\n               t1.status,\n               t1.is_create,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.audit_by,\n               t1.audit_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t2.dept_name,\n               t3.employee_name,\n               t4.warehouse_name,\n               t5.location_name,\n               t6.pallet_name,\n               t7.package_name,\n               t8.material_name,\n               t8.material_specification,\n               t9.unit_name\n        from wms_task_check t1\n                 left join base_department t2 on t2.dept_code = t1.dept_code\n                 left join base_employee t3 on t3.employee_code = t1.employee_code\n                 left join base_warehouse t4 on t4.warehouse_code = t1.warehouse_code\n                 left join base_location t5 on t5.location_code = t1.location_code\n                 left join base_pallet t6 on t6.pallet_code = t1.pallet_code\n                 left join base_package t7 on t7.package_code = t1.package_code\n                 left join base_material t8 on t8.material_code = t1.material_code\n                 left join base_unit t9 on t9.unit_code = t1.unit_code\nwhere :forWhere\n', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3008', 'label', '单次标签', 'select\n            t1.id,\n            t1.label_type,\n            t1.label_code,\n            t1.material_code,\n            t1.supplier_code,\n            t1.batch,\n            t1.batch1,\n            t1.batch2,\n            t1.unit_code,\n            t1.label_qty,\n            t1.in_stock_qty,\n            t1.out_stock_qty,\n            t1.label_describe,\n            t1.task_ins_id,\n            t1.task_changes_id,\n            t1.stock_ins_id,\n            t1.stock_changes_id,\n            t1.print_count,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.status,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            concat(t3.task_code, \'|\', t2.row_number) as task_ins_code,\n            concat(t12.task_code, \'|\', t11.row_number) as task_changes_code,\n            concat(t3.interface_code, \'|\', t2.interface_row) as interface_ins_code,\n            t3.bill_type_code,\n            t4.material_name,\n            t4.material_specification,\n            t5.unit_name,\n            t6.supplier_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.location_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t11.location_code else t4.location_code_in end location_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t7.location_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t13.location_name else t15.location_name end location_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.warehouse_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t12.warehouse_code_in else t4.warehouse_code_in end warehouse_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t9.warehouse_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t14.warehouse_name else t16.warehouse_name end warehouse_name,\n            t3.dept_code,\n            t10.dept_name,\n            t11.change_type,\n            t11.change_group,\n            t2.extend_code01 as task_ins_extend_code01,\n            t4.extend_code01 as material_extend_code01,\n            t4.extend_code02 as material_extend_code02,\n            (select sum(stock_qty) from wms_current_stock t\n            where\n                t1.label_code = t.label_code\n                and ( :warehouseCode = \'\' or t.warehouse_code = :warehouseCode)\n            ) stock_qty\n        from wms_label t1\n        left join wms_task_ins t2 on t2.id = t1.task_ins_id\n        left join wms_task_in t3 on t3.id = t2.task_in_id\n        left join base_material t4 on t4.material_code = t1.material_code\n        left join base_unit t5 on t5.unit_code = t1.unit_code\n        left join base_supplier t6 on t6.supplier_code = t1.supplier_code\n        left join base_location t7 on t7.location_code = t2.location_code\n        left join base_warehouse t9 on t9.warehouse_code = t2.warehouse_code\n        left join base_department t10 on t3.dept_code = t10.dept_code\n        left join wms_task_changes t11 on t11.id = t1.task_changes_id\n        left join wms_task_change t12 on t12.id = t11.task_change_id\n        left join base_location t13 on t13.location_code = t11.location_code\n        left join base_warehouse t14 on t14.warehouse_code = t12.warehouse_code_in\n        left join base_location t15 on t15.location_code = t4.location_code_in\n        left join base_warehouse t16 on t16.warehouse_code = t4.warehouse_code_in\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	:forWhere\nand (\n				:labelInStatus = \'\'\n				or (:labelInStatus = 1 and ifnull(t1.label_qty,0) - ifnull(t1.in_stock_qty,0) > 0)\n				or (:labelInStatus = 2 and ifnull(t1.label_qty,0) - ifnull(t1.in_stock_qty,0) = 0)\n			) and (\n				:labelOutStatus = \'\'\n				or (:labelOutStatus = 1 and ifnull(t1.label_qty,0) - ifnull(t1.out_stock_qty,0) > 0)\n				or (:labelOutStatus = 2 and ifnull(t1.label_qty,0) - ifnull(t1.out_stock_qty,0) = 0)\n			)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3009', 'labelRepeat', '重复标签', 'select\n            t1.id,\n            t1.label_type,\n            t1.label_code,\n            t1.material_code,\n            t1.supplier_code,\n            t1.batch,\n            t1.batch1,\n            t1.batch2,\n            t1.unit_code,\n            t1.label_qty,\n            t1.in_stock_qty,\n            t1.out_stock_qty,\n            t1.label_describe,\n            t1.task_ins_id,\n            t1.task_changes_id,\n            t1.stock_ins_id,\n            t1.stock_changes_id,\n            t1.print_count,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.status,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            concat(t3.task_code, \'|\', t2.row_number) as task_ins_code,\n            concat(t12.task_code, \'|\', t11.row_number) as task_changes_code,\n            concat(t3.interface_code, \'|\', t2.interface_row) as interface_ins_code,\n            t3.bill_type_code,\n            t4.material_name,\n            t4.material_specification,\n            t5.unit_name,\n            t6.supplier_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.location_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t11.location_code else t4.location_code_in end location_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t7.location_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t13.location_name else t15.location_name end location_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.warehouse_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t12.warehouse_code_in else t4.warehouse_code_in end warehouse_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t9.warehouse_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t14.warehouse_name else t16.warehouse_name end warehouse_name,\n            t3.dept_code,\n            t10.dept_name,\n            t11.change_type,\n            t11.change_group,\n            t2.extend_code01 as task_ins_extend_code01,\n            t4.extend_code01 as material_extend_code01,\n            t4.extend_code02 as material_extend_code02\n        from wms_label t1\n        left join wms_task_ins t2 on t2.id = t1.task_ins_id\n        left join wms_task_in t3 on t3.id = t2.task_in_id\n        left join base_material t4 on t4.material_code = t1.material_code\n        left join base_unit t5 on t5.unit_code = t1.unit_code\n        left join base_supplier t6 on t6.supplier_code = t1.supplier_code\n        left join base_location t7 on t7.location_code = t2.location_code\n        left join base_warehouse t9 on t9.warehouse_code = t2.warehouse_code\n        left join base_department t10 on t3.dept_code = t10.dept_code\n        left join wms_task_changes t11 on t11.id = t1.task_changes_id\n        left join wms_task_change t12 on t12.id = t11.task_change_id\n        left join base_location t13 on t13.location_code = t11.location_code\n        left join base_warehouse t14 on t14.warehouse_code = t12.warehouse_code_in\n        left join base_location t15 on t15.location_code = t4.location_code_in\n        left join base_warehouse t16 on t16.warehouse_code = t4.warehouse_code_in\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3010', 'lock', '冻结', 'select t1.id,\n               t1.lock_code,\n               t1.warehouse_code,\n               t2.warehouse_name,\n               t1.location_code,\n               t3.location_name,\n               t1.pallet_code,\n               t4.pallet_name,\n               t1.package_code,\n               t1.label_code,\n               t1.material_code,\n               t5.material_name,\n               t5.material_specification,\n               t1.batch,\n               t1.batch1,\n               t1.batch2,\n               t1.lock_describe,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.status,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark\n        from wms_lock t1\n                 left join base_warehouse t2 on t1.warehouse_code = t2.warehouse_code\n                 left join base_location t3 on t1.location_code = t3.location_code\n                 left join base_pallet t4 on t1.pallet_code = t4.pallet_code\n                 left join base_material t5 on t1.material_code = t5.material_code\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3011', 'taskInSupplier', '供应商任务', 'select\n            t1.id,\n            t1.task_type,\n            t1.bill_type_code,\n            t1.task_code,\n            t1.task_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.task_describe,\n            t1.interface_id,\n            t1.interface_code,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            t2.id                     as sub_id,\n            t2.task_in_id             as sub_task_in_id,\n            t2.row_number             as sub_row_number,\n            t2.material_code          as sub_material_code,\n            t2.unit_code              as sub_unit_code,\n            t2.excess_ratio_in        as sub_excess_ratio_in,\n            t2.task_qty               as sub_task_qty,\n            t2.back_task_qty          as sub_back_task_qty,\n            t2.label_qty              as sub_label_qty,\n            t2.stock_qty              as sub_stock_qty,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.warehouse_code         as sub_warehouse_code,\n            t2.location_code          as sub_location_code,\n            t2.task_describe          as sub_task_describe,\n            t2.status                 as sub_status,\n            t2.is_close               as sub_is_close,\n            t2.interface_id           as sub_interface_id,\n            t2.interface_row          as sub_interface_row,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.audit_by               as sub_audit_by,\n            t2.audit_time             as sub_audit_time,\n            t2.close_by               as sub_close_by,\n            t2.close_time             as sub_close_time,\n            t2.remark                 as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            concat(t1.task_code, \'|\', t2.row_number) as sub_task_code,  /**当前单据编码|行号*/\n            t6.material_name          as sub_material_name,\n            t6.material_specification as sub_material_specification,\n            t7.unit_name              as sub_unit_name,\n            t8.warehouse_name         as sub_warehouse_name,\n            t9.location_name          as sub_location_name,\n\n            t6.is_batch                as sub_is_batch,\n            t6.label_standard_quantity as sub_label_standard_quantity,\n            t6.secondary_rate          as sub_secondary_rate,\n            t6.secondary_unit_code     as sub_secondary_unit_code,\n            t10.unit_name              as sub_secondary_unit_name,\n            CASE IFNULL(t6.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t6.secondary_rate,2)  END  as sub_secondary_task_qty\n        from wms_task_in t1\n        left join wms_task_ins t2 on t2.task_in_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_material t6 on t6.material_code = t2.material_code\n        left join base_unit t7 on t7.unit_code = t2.unit_code\n        left join base_warehouse t8 on t8.warehouse_code = t2.warehouse_code\n        left join base_location t9 on t9.location_code = t2.location_code\n        left join base_unit t10 on t10.unit_code = t6.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\nand (\n				:taskLabelStatus = \'\'\n				or (:taskLabelStatus = 1 and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) > 0)\n				or (:taskLabelStatus = 2 and ifnull(t2.task_qty,0) - ifnull(t2.label_qty,0) = 0)\n				or (:taskLabelStatus = 3 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.label_qty,0) > 0)\n				or (:taskLabelStatus = 4 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.label_qty,0) = 0)\n			) \nand (\n				:taskInStatus = \'\'\n				or (:taskInStatus = 1 and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) > 0)\n				or (:taskInStatus = 2 and ifnull(t2.task_qty,0) - ifnull(t2.stock_qty,0) = 0)\n				or (:taskInStatus = 3 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.stock_qty,0) > 0)\n				or (:taskInStatus = 4 and ifnull(t2.task_qty,0)*(1+ifnull(t2.excess_ratio_in,0)/100) -ifnull(t2.stock_qty,0) = 0)\n			)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3012', 'labelSupplier', '供应商标签', 'select\n            t1.id,\n            t1.label_type,\n            t1.label_code,\n            t1.material_code,\n            t1.supplier_code,\n            t1.batch,\n            t1.batch1,\n            t1.batch2,\n            t1.unit_code,\n            t1.label_qty,\n            t1.in_stock_qty,\n            t1.out_stock_qty,\n            t1.label_describe,\n            t1.task_ins_id,\n            t1.task_changes_id,\n            t2.task_in_id,\n            t3.task_code task_in_code,\n            t1.stock_ins_id,\n            t1.stock_changes_id,\n            t1.print_count,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.status,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.remark,\n\n            concat(t3.task_code, \'|\', t2.row_number) as task_ins_code,\n            concat(t12.task_code, \'|\', t11.row_number) as task_changes_code,\n            concat(t3.interface_code, \'|\', IFNULL(t2.interface_row,0)) as interface_ins_code,\n            t3.bill_type_code,\n            t4.material_name,\n            t4.material_specification,\n            t5.unit_name,\n            t6.supplier_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.location_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t11.location_code else t4.location_code_in end location_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t7.location_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t13.location_name else t15.location_name end location_name,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t2.warehouse_code when ifnull(t1.task_changes_id,\'\') !=\'\' then t12.warehouse_code_in else t4.warehouse_code_in end warehouse_code,\n            case when ifnull(t1.task_ins_id,\'\') !=\'\' then t9.warehouse_name when ifnull(t1.task_changes_id,\'\') !=\'\' then t14.warehouse_name else t16.warehouse_name end warehouse_name,\n            t3.dept_code,\n            t10.dept_name,\n            t11.change_type,\n            t11.change_group,\n            t2.extend_code01 as task_ins_extend_code01,\n            t4.extend_code01 as material_extend_code01,\n            t4.extend_code02 as material_extend_code02\n        from wms_label t1\n        left join wms_task_ins t2 on t2.id = t1.task_ins_id\n        left join wms_task_in t3 on t3.id = t2.task_in_id\n        left join base_material t4 on t4.material_code = t1.material_code\n        left join base_unit t5 on t5.unit_code = t1.unit_code\n        left join base_supplier t6 on t6.supplier_code = t1.supplier_code\n        left join base_location t7 on t7.location_code = t2.location_code\n        left join base_warehouse t9 on t9.warehouse_code = t2.warehouse_code\n        left join base_department t10 on t3.dept_code = t10.dept_code\n        left join wms_task_changes t11 on t11.id = t1.task_changes_id\n        left join wms_task_change t12 on t12.id = t11.task_change_id\n        left join base_location t13 on t13.location_code = t11.location_code\n        left join base_warehouse t14 on t14.warehouse_code = t12.warehouse_code_in\n        left join base_location t15 on t15.location_code = t4.location_code_in\n        left join base_warehouse t16 on t16.warehouse_code = t4.warehouse_code_in\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\nand (\n				:labelInStatus = \'\'\n				or (:labelInStatus = 1 and ifnull(t1.label_qty,0) - ifnull(t1.in_stock_qty,0) > 0)\n				or (:labelInStatus = 2 and ifnull(t1.label_qty,0) - ifnull(t1.in_stock_qty,0) = 0)\n			)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('3013', 'taskChecksDetail', '盘点任务明细', 'select t1.id,\n               t1.task_check_id,\n               t1.row_number,\n               t1.warehouse_code,\n               t1.location_code,\n               t1.pallet_code,\n               t1.package_code,\n               t1.label_code,\n               t1.material_code,\n               t1.unit_code,\n               t1.batch,\n               t1.batch1,\n               t1.batch2,\n               t1.task_qty,\n               t1.task_describe,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n\n               t2.warehouse_name,\n               t3.location_name,\n               t4.pallet_name,\n               t5.package_name,\n               t6.material_name,\n               t6.material_specification,\n               t7.unit_name\n        from wms_task_checks t1\n            left join base_warehouse t2 on t2.warehouse_code = t1.warehouse_code\n            left join base_location t3 on t3.location_code = t1.location_code\n            left join base_pallet t4 on t4.pallet_code = t1.pallet_code\n            left join base_package t5 on t5.package_code = t1.package_code\n            left join base_material t6 on t6.material_code = t1.material_code\n            left join base_unit t7 on t7.unit_code = t1.unit_code\nwhere\n	1=1\n	and :forWhere\norder by t1.row_number asc', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4001', 'stockIn', '入库单', 'select t1.id,\nt1.stock_type,\nt1.bill_type_code,\nt1.stock_code,\nt1.stock_date,\nt1.dept_code,\nt1.employee_code,\nt1.supplier_code,\nt1.warehouse_code,\nt1.stock_describe,\nt1.task_in_id,\nt1.task_check_id,\nt1.status,\nt1.interface_read,\nt1.interface_status,\nt1.interface_code,\nt1.interface_message,\nt1.extend_code01,\nt1.extend_code02,\nt1.extend_code03,\nt1.extend_code04,\nt1.extend_code05,\nt1.create_id,\nt1.create_by,\nt1.create_time,\nt1.update_by,\nt1.update_time,\nt1.audit_by,\nt1.audit_time,\nt1.remark,\nt1.guid,\n\nt2.id                                                    as sub_id,\nt2.id                     as inner_id,\nt2.stock_in_id                                           as sub_stock_in_id,\nt2.row_number                                            as sub_row_number,\nt2.label_code                                            as sub_label_code,\nt2.material_code                                         as sub_material_code,\nt2.unit_code                                             as sub_unit_code,\nt2.stock_qty                                             as sub_stock_qty,\nt2.back_stock_qty                                        as sub_back_stock_qty,\nt2.batch                                                 as sub_batch,\nt2.batch1                                                as sub_batch1,\nt2.batch2                                                as sub_batch2,\nt2.location_code                                         as sub_location_code,\nt2.pallet_code                                           as sub_pallet_code,\nt2.package_code                                          as sub_package_code,\nt2.stock_describe                                        as sub_stock_describe,\nt2.task_ins_id                                           as sub_task_ins_id,\nt2.task_checks_id                                        as sub_task_checks_id,\nt2.stock_checks_id                                       as sub_stock_checks_id,\nt2.extend_code01                                         as sub_extend_code01,\nt2.extend_code02                                         as sub_extend_code02,\nt2.extend_code03                                         as sub_extend_code03,\nt2.extend_code04                                         as sub_extend_code04,\nt2.extend_code05                                         as sub_extend_code05,\nt2.create_id                                             as sub_create_id,\nt2.create_by                                             as sub_create_by,\nt2.create_time                                           as sub_create_time,\nt2.update_by                                             as sub_update_by,\nt2.update_time                                           as sub_update_time,\nt2.remark                                                as sub_remark,\n\nt3.dept_name,\nt4.employee_name,\nt5.supplier_name,\nt6.warehouse_name,\nt6.is_location,\nt12.extend_name                                          as extend_name01,\nt13.extend_name                                          as extend_name02,\nt14.extend_name                                          as extend_name03,\nt15.task_code                                            as task_in_code, /**入库任务编码*/\n\nconcat(t1.stock_code, \'|\', t2.row_number)                as sub_stock_code, /**当前单据编码|行号*/\nconcat(t17.task_code, \'|\', t16.row_number)               as sub_task_ins_code, /**入库任务编码|行号*/\nt10.material_name                                        as sub_material_name,\nt10.material_specification                               as sub_material_specification,\nt11.unit_name                                            as sub_unit_name,\nt7.location_name                                         as sub_location_name,\nt8.pallet_name                                           as sub_pallet_name,\nt9.package_name                                          as sub_package_name,\nt10.secondary_rate                                       as sub_secondary_rate,\nt10.secondary_unit_code                                  as sub_secondary_unit_code,\nt18.unit_name                                            as sub_secondary_unit_name,\nt24.id                                                   as sub_label_id,\nCASE IFNULL(t10.secondary_rate, 0)\nWHEN 0 THEN NULL\nELSE ROUND(t2.stock_qty / t10.secondary_rate, 2) END as sub_secondary_stock_qty\nfrom wms_stock_in t1\nleft join wms_stock_ins t2 on t2.stock_in_id = t1.id\nleft join base_department t3 on t3.dept_code = t1.dept_code\nleft join base_employee t4 on t4.employee_code = t1.employee_code\nleft join base_supplier t5 on t5.supplier_code = t1.supplier_code\nleft join base_warehouse t6 on t6.warehouse_code = t1.warehouse_code\nleft join base_location t7 on t7.location_code = t2.location_code\nleft join base_pallet t8 on t8.pallet_code = t2.pallet_code\nleft join base_package t9 on t9.package_code = t2.package_code\nleft join base_material t10 on t10.material_code = t2.material_code\nleft join base_unit t11 on t11.unit_code = t2.unit_code\nleft join base_extend t12 on t12.extend_code = t1.extend_code01\nleft join base_extend t13 on t13.extend_code = t1.extend_code02\nleft join base_extend t14 on t14.extend_code = t1.extend_code03\nleft join wms_task_in t15 on t15.id = t1.task_in_id\nleft join wms_task_ins t16 on t16.id = t2.task_ins_id\nleft join wms_task_in t17 on t17.id = t16.task_in_id\nleft join base_unit t18 on t18.unit_code = t10.secondary_unit_code\nleft join wms_label t24 on t2.label_code = t24.label_code\nleft join sys_user u on u.user_id = t1.create_id\nleft join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\n	and (:taskInBackStatus=\'\'\n		or (:taskInBackStatus=\'未全部入库退\' and ifnull(t2.stock_qty,0) - ifnull(t2.back_stock_qty,0) > 0)\n		or (:taskInBackStatus=\'已全部入库退\' and ifnull(t2.stock_qty,0) - ifnull(t2.back_stock_qty,0) = 0)\n	)\n	and (:interfaceStatus=\'\'\n		or (:interfaceStatus=\'未读取\' and t1.interface_read = 1)\n		or (:interfaceStatus=\'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\')\n		or (:interfaceStatus=\'成功\' and ifnull(t1.interface_status,\'\') =\'200\')\n		or (:interfaceStatus=\'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\'))\n	)\norder by t1.stock_code', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4002', 'backStockIn', '入库单退', 'select\n            t1.id,\n            t1.stock_type,\n            t1.bill_type_code,\n            t1.stock_code,\n            t1.stock_date,\n            t1.dept_code,\n            t1.employee_code,\n            t1.supplier_code,\n            t1.warehouse_code,\n            t1.stock_describe,\n            t1.back_task_in_id,\n            t1.task_check_id,\n            t1.status,\n            t1.interface_read,\n            t1.interface_status,\n            t1.interface_code,\n            t1.interface_message,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.audit_by,\n            t1.audit_time,\n            t1.remark,\n            t1.guid,\n\n            t2.id                                    as sub_id,\nt2.id                     as inner_id,\n            t2.stock_in_id                           as sub_stock_in_id,\n            t2.row_number                            as sub_row_number,\n            t2.label_code                            as sub_label_code,\n            t2.material_code                         as sub_material_code,\n            t2.unit_code                             as sub_unit_code,\n            t2.stock_qty                             as sub_stock_qty,\n            t2.back_stock_qty                        as sub_back_stock_qty,\n            t2.batch                                 as sub_batch,\n            t2.batch1                                as sub_batch1,\n            t2.batch2                                as sub_batch2,\n            t2.location_code                         as sub_location_code,\n            t2.pallet_code                           as sub_pallet_code,\n            t2.package_code                          as sub_package_code,\n            t2.stock_describe                        as sub_stock_describe,\n            t2.back_task_ins_id                      as sub_back_task_ins_id,\n            t2.task_ins_id                           as sub_task_ins_id,\n            t2.stock_ins_id                          as sub_stock_ins_id,\n            t2.extend_code01                         as sub_extend_code01,\n            t2.extend_code02                         as sub_extend_code02,\n            t2.extend_code03                         as sub_extend_code03,\n            t2.extend_code04                         as sub_extend_code04,\n            t2.extend_code05                         as sub_extend_code05,\n            t2.create_id                             as sub_create_id,\n            t2.create_by                             as sub_create_by,\n            t2.create_time                           as sub_create_time,\n            t2.update_by                             as sub_update_by,\n            t2.update_time                           as sub_update_time,\n            t2.remark                                as sub_remark,\n\n            t3.dept_name,\n            t4.employee_name,\n            t5.supplier_name,\n            t6.warehouse_name,\n            t12.extend_name                             as extend_name01,\n            t13.extend_name                             as extend_name02,\n            t14.extend_name                             as extend_name03,\n            t15.task_code             as back_task_in_code,  /**入库任务退编码*/\n\n            concat(t1.stock_code, \'|\', t2.row_number)   as sub_stock_code, /**当前单据编码|行号*/\n            concat(t17.task_code, \'|\', t16.row_number)  as sub_back_task_ins_code,  /**入库任务退编码|行号*/\n            concat(t19.task_code, \'|\', t18.row_number)  as sub_task_ins_code,       /**入库任务编码|行号*/\n            concat(t21.stock_code, \'|\', t20.row_number) as sub_stock_ins_code,      /**入库编码|行号*/\n            t10.material_name                           as sub_material_name,\n            t10.material_specification                  as sub_material_specification,\n            t11.unit_name                               as sub_unit_name,\n            t7.location_name                            as sub_location_name,\n            t8.pallet_name                              as sub_pallet_name,\n            t9.package_name                             as sub_package_name,\n            t10.secondary_rate          as sub_secondary_rate,\n            t10.secondary_unit_code     as sub_secondary_unit_code,\n            t22.unit_name              as sub_secondary_unit_name,\n            t24.id                     as sub_label_id,\n            CASE IFNULL(t10.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.stock_qty/t10.secondary_rate,2)  END  as sub_secondary_stock_qty\n        from wms_stock_in t1\n        left join wms_stock_ins t2 on t2.stock_in_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code\n        left join base_employee t4 on t4.employee_code = t1.employee_code\n        left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n        left join base_warehouse t6 on t6.warehouse_code = t1.warehouse_code\n        left join base_location t7 on t7.location_code = t2.location_code\n        left join base_pallet t8 on t8.pallet_code = t2.pallet_code\n        left join base_package t9 on t9.package_code = t2.package_code\n        left join base_material t10 on t10.material_code = t2.material_code\n        left join base_unit t11 on t11.unit_code = t2.unit_code\n        left join base_extend t12 on t12.extend_code = t1.extend_code01\n        left join base_extend t13 on t13.extend_code = t1.extend_code02\n        left join base_extend t14 on t14.extend_code = t1.extend_code03\n        left join wms_task_in t15 on t15.id = t1.back_task_in_id\n        /**入库任务退编码|行号*/\n        left join wms_task_ins t16 on t16.id = t2.back_task_ins_id\n        left join wms_task_in t17 on t17.id = t16.task_in_id\n        /**入库任务编码|行号*/\n        left join wms_task_ins t18 on t18.id = t2.task_ins_id\n        left join wms_task_in t19 on t19.id = t18.task_in_id\n        /**入库编码|行号*/\n        left join wms_stock_ins t20 on t20.id = t2.stock_ins_id\n        left join wms_stock_in t21 on t21.id = t20.stock_in_id\n        left join base_unit t22 on t22.unit_code = t10.secondary_unit_code\n        left join wms_label t24 on t2.label_code =t24.label_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\nand (:interfaceStatus=\'\'\n		or (:interfaceStatus=\'未读取\' and t1.interface_read = 1)\n		or (:interfaceStatus=\'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\')\n		or (:interfaceStatus=\'成功\' and ifnull(t1.interface_status,\'\') =\'200\')\n		or (:interfaceStatus=\'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\'))\n	)', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4003', 'stockOut', '出库单', 'select t1.id,\n               t1.stock_type,\n               t1.bill_type_code,\n               t1.stock_code,\n               t1.stock_date,\n               t1.dept_code,\n               t1.employee_code,\n               t1.supplier_code,\n               t1.customer_code,\n               t1.warehouse_code,\n               t1.is_supplement,\n               t1.stock_describe,\n               t1.task_out_id,\n               t1.back_task_out_id,\n               t1.stock_in_id,\n               t1.task_check_id,\n               t1.status,\n               t1.interface_read,\n               t1.interface_status,\n               t1.interface_code,\n               t1.interface_message,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.audit_by,\n               t1.audit_time,\n               t1.remark,\n               t1.guid,\n\n               t2.id                                                    as sub_id,\n               t2.stock_out_id                                          as sub_stock_out_id,\n               t2.row_number                                            as sub_row_number,\n               t2.label_code                                            as sub_label_code,\n               t2.material_code                                         as sub_material_code,\n               t2.unit_code                                             as sub_unit_code,\n               t2.stock_qty                                             as sub_stock_qty,\n               t2.back_stock_qty                                        as sub_back_stock_qty,\n               t2.batch                                                 as sub_batch,\n               t2.batch1                                                as sub_batch1,\n               t2.batch2                                                as sub_batch2,\n               t2.location_code                                         as sub_location_code,\n               t2.pallet_code                                           as sub_pallet_code,\n               t2.package_code                                          as sub_package_code,\n               t2.stock_describe                                        as sub_stock_describe,\n               t2.task_outs_id                                          as sub_task_outs_id,\n               t2.back_task_outs_id                                     as sub_back_task_outs_id,\n               t2.stock_outs_id                                         as sub_stock_outs_id,\n               t2.stock_ins_id                                          as sub_stock_ins_id,\n               t2.task_checks_id                                        as sub_task_checks_id,\n               t2.stock_checks_id                                       as sub_stock_checks_id,\n               t2.extend_code01                                         as sub_extend_code01,\n               t2.extend_code02                                         as sub_extend_code02,\n               t2.extend_code03                                         as sub_extend_code03,\n               t2.extend_code04                                         as sub_extend_code04,\n               t2.extend_code05                                         as sub_extend_code05,\n               t2.create_id                                             as sub_create_id,\n               t2.create_by                                             as sub_create_by,\n               t2.create_time                                           as sub_create_time,\n               t2.update_by                                             as sub_update_by,\n               t2.update_time                                           as sub_update_time,\n               t2.remark                                                as sub_remark,\n\n               t3.dept_name,\n               t4.employee_name,\n               t5.supplier_name,\n               t6.customer_name,\n               t7.warehouse_name,\n               t7.is_location,\n               t13.extend_name                                          as extend_name01,\n               t14.extend_name                                          as extend_name02,\n               t15.extend_name                                          as extend_name03,\n               t16.extend_name                                          as extend_name04,\n               t17.task_code                                            as task_out_code, /**出库任务编码*/\n\n               concat(t1.stock_code, \'|\', t2.row_number)                as sub_stock_code, /**当前单据编码|行号*/\n               concat(t19.task_code, \'|\', t18.row_number)               as sub_task_outs_code, /**出库任务编码|行号*/\n               t11.material_name                                        as sub_material_name,\n               t11.material_specification                               as sub_material_specification,\n               t12.unit_name                                            as sub_unit_name,\n               t8.location_name                                         as sub_location_name,\n               t9.pallet_name                                           as sub_pallet_name,\n               t10.package_name                                         as sub_package_name,\n               t11.secondary_rate                                       as sub_secondary_rate,\n               t11.secondary_unit_code                                  as sub_secondary_unit_code,\n               t20.unit_name                                            as sub_secondary_unit_name,\n               t24.id                                                   as sub_label_id,\n               CASE IFNULL(t11.secondary_rate, 0)\n                   WHEN 0 THEN NULL\n                   ELSE ROUND(t2.stock_qty / t11.secondary_rate, 2) END as sub_secondary_stock_qty,\n               t11.extend_code01                                        as sub_material_extend_code01\n        from wms_stock_out t1\n                 left join wms_stock_outs t2 on t2.stock_out_id = t1.id\n                 left join base_department t3 on t3.dept_code = t1.dept_code\n                 left join base_employee t4 on t4.employee_code = t1.employee_code\n                 left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n                 left join base_customer t6 on t6.customer_code = t1.customer_code\n                 left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code\n                 left join base_extend t13 on t13.extend_code = t1.extend_code01\n                 left join base_extend t14 on t14.extend_code = t1.extend_code02\n                 left join base_extend t15 on t15.extend_code = t1.extend_code03\n                 left join base_extend t16 on t16.extend_code = t1.extend_code04\n                 left join wms_task_out t17 on t17.id = t1.task_out_id\n\n                 left join base_location t8 on t8.location_code = t2.location_code\n                 left join base_pallet t9 on t9.pallet_code = t2.pallet_code\n                 left join base_package t10 on t10.package_code = t2.package_code\n                 left join base_material t11 on t11.material_code = t2.material_code\n                 left join base_unit t12 on t12.unit_code = t2.unit_code\n                 left join wms_task_outs t18 on t18.id = t2.task_outs_id\n                 left join wms_task_out t19 on t19.id = t18.task_out_id\n                 left join base_unit t20 on t20.unit_code = t11.secondary_unit_code\n                 left join wms_label t24 on t2.label_code = t24.label_code\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	t1.stock_type = -1\n	and :forWhere\n	and (:taskInBackStatus=\'\'\n		or (:taskInBackStatus=\'未全部出库退\' and ifnull(t2.stock_qty,0) - ifnull(t2.back_stock_qty,0) > 0)\n		or (:taskInBackStatus=\'已全部出库退\' and ifnull(t2.stock_qty,0) - ifnull(t2.back_stock_qty,0) = 0)\n	)\n	and (:interfaceStatus=\'\'\n		or (:interfaceStatus=\'未读取\' and t1.interface_read = 1)\n		or (:interfaceStatus=\'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\')\n		or (:interfaceStatus=\'成功\' and ifnull(t1.interface_status,\'\') =\'200\')\n		or (:interfaceStatus=\'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\'))\n	)\norder by t1.stock_code', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4004', 'backStockOut', '出库单退', 'select t1.id,\n               t1.stock_type,\n               t1.bill_type_code,\n               t1.stock_code,\n               t1.stock_date,\n               t1.dept_code,\n               t1.employee_code,\n               t1.supplier_code,\n               t1.warehouse_code,\n               t1.is_supplement,\n               t1.stock_describe,\n               t1.back_task_out_id,\n               t1.task_check_id,\n               t1.status,\n               t1.interface_read,\n               t1.interface_status,\n               t1.interface_code,\n               t1.interface_message,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.audit_by,\n               t1.audit_time,\n               t1.remark,\n               t1.guid,\n\n               t2.id                                                    as sub_id,\n               t2.stock_out_id                                          as sub_stock_out_id,\n               t2.row_number                                            as sub_row_number,\n               t2.label_code                                            as sub_label_code,\n               t2.material_code                                         as sub_material_code,\n               t2.unit_code                                             as sub_unit_code,\n               t2.stock_qty                                             as sub_stock_qty,\n               t2.batch                                                 as sub_batch,\n               t2.batch1                                                as sub_batch1,\n               t2.batch2                                                as sub_batch2,\n               t2.location_code                                         as sub_location_code,\n               t2.pallet_code                                           as sub_pallet_code,\n               t2.package_code                                          as sub_package_code,\n               t2.stock_describe                                        as sub_stock_describe,\n               t2.back_task_outs_id                                     as sub_back_task_outs_id,\n               t2.task_outs_id                                          as sub_task_outs_id,\n               t2.stock_outs_id                                         as sub_stock_outs_id,\n               t2.task_checks_id                                        as sub_task_checks_id,\n               t2.stock_checks_id                                       as sub_stock_checks_id,\n               t2.extend_code01                                         as sub_extend_code01,\n               t2.extend_code02                                         as sub_extend_code02,\n               t2.extend_code03                                         as sub_extend_code03,\n               t2.extend_code04                                         as sub_extend_code04,\n               t2.extend_code05                                         as sub_extend_code05,\n               t2.create_id                                             as sub_create_id,\n               t2.create_by                                             as sub_create_by,\n               t2.create_time                                           as sub_create_time,\n               t2.update_by                                             as sub_update_by,\n               t2.update_time                                           as sub_update_time,\n               t2.remark                                                as sub_remark,\n\n               t3.dept_name,\n               t4.employee_name,\n               t5.supplier_name,\n               t6.customer_name,\n               t7.warehouse_name,\n               t7.is_location,\n               t13.extend_name                                          as extend_name01,\n               t14.extend_name                                          as extend_name02,\n               t15.extend_name                                          as extend_name03,\n               t16.extend_name                                          as extend_name04,\n               t17.task_code                                            as back_task_out_code, /**出库任务退编码*/\n\n               concat(t1.stock_code, \'|\', t2.row_number)                as sub_stock_code, /**当前单据编码|行号*/\n               concat(t19.task_code, \'|\', t18.row_number)               as sub_back_task_outs_code, /**出库任务退编码|行号*/\n               concat(t21.task_code, \'|\', t20.row_number)               as sub_task_outs_code, /**出库任务编码|行号*/\n               concat(t23.stock_code, \'|\', t22.row_number)              as sub_stock_outs_code, /**出库编码|行号*/\n               t11.material_name                                        as sub_material_name,\n               t11.material_specification                               as sub_material_specification,\n               t12.unit_name                                            as sub_unit_name,\n               t8.location_name                                         as sub_location_name,\n               t9.pallet_name                                           as sub_pallet_name,\n               t10.package_name                                         as sub_package_name,\n               t11.secondary_rate                                       as sub_secondary_rate,\n               t11.secondary_unit_code                                  as sub_secondary_unit_code,\n               t24.unit_name                                            as sub_secondary_unit_name,\n               t25.id                                                   as sub_label_id,\n               CASE IFNULL(t11.secondary_rate, 0)\n                   WHEN 0 THEN NULL\n                   ELSE ROUND(t2.stock_qty / t11.secondary_rate, 2) END as sub_secondary_stock_qty,\n               t11.extend_code01                                        as sub_material_extend_code01\n\n        from wms_stock_out t1\n                 left join wms_stock_outs t2 on t2.stock_out_id = t1.id\n                 left join base_department t3 on t3.dept_code = t1.dept_code\n                 left join base_employee t4 on t4.employee_code = t1.employee_code\n                 left join base_supplier t5 on t5.supplier_code = t1.supplier_code\n                 left join base_customer t6 on t6.customer_code = t1.customer_code\n                 left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code\n\n                 left join base_location t8 on t8.location_code = t2.location_code\n                 left join base_pallet t9 on t9.pallet_code = t2.pallet_code\n                 left join base_package t10 on t10.package_code = t2.package_code\n                 left join base_material t11 on t11.material_code = t2.material_code\n                 left join base_unit t12 on t12.unit_code = t2.unit_code\n                 left join base_extend t13 on t13.extend_code = t1.extend_code01\n                 left join base_extend t14 on t14.extend_code = t1.extend_code02\n                 left join base_extend t15 on t15.extend_code = t1.extend_code03\n                 left join base_extend t16 on t16.extend_code = t1.extend_code04\n                 left join wms_task_out t17 on t17.id = t1.back_task_out_id  /**出库任务退编码|行号*/\n                 left join wms_task_outs t18 on t18.id = t2.back_task_outs_id\n                 left join wms_task_out t19 on t19.id = t18.task_out_id /**出库任务编码|行号*/\n                 left join wms_task_outs t20 on t20.id = t2.task_outs_id\n                 left join wms_task_out t21 on t21.id = t20.task_out_id /**出库编码|行号*/\n                 left join wms_stock_outs t22 on t22.id = t2.stock_outs_id\n                 left join wms_stock_out t23 on t23.id = t22.stock_out_id\n                 left join base_unit t24 on t24.unit_code = t11.secondary_unit_code\n                 left join wms_label t25 on t2.label_code = t25.label_code\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\n\nwhere \n	t1.stock_type = 1\n	and :forWhere\n	and (\n		:interfaceStatus = \'\'\n		OR (:interfaceStatus = \'未读取\' and t1.interface_read = 1 )\n		OR (:interfaceStatus = \'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\')\n		OR (:interfaceStatus = \'成功\' and ifnull(t1.interface_status,\'\') =\'200\')\n		OR (:interfaceStatus = \'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\') !=\'200\')\n	)\n', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4005', 'stockMove', '移位单', 'select\n            t1.id,\n            t1.bill_type_code,\n            t1.stock_code,\n            t1.stock_date,\n            t1.dept_code_out,\n            t1.dept_code_in,\n            t1.employee_code_out,\n            t1.employee_code_in,\n            t1.customer_code_in,\n            t1.warehouse_code_out,\n            t1.warehouse_code_in,\n            t1.stock_describe,\n            t1.task_move_id,\n            t1.status,\n            t1.interface_read,\n            t1.interface_status,\n            t1.interface_code,\n            t1.interface_message,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.audit_by,\n            t1.audit_time,\n            t1.remark,\n            t1.guid,\n\n            t3.dept_name              as dept_name_out,\n            t4.dept_name              as dept_name_in,\n            t5.employee_name          as employee_name_out,\n            t6.employee_name          as employee_name_in,\n            t25.customer_name         as customer_name_in,\n            t7.warehouse_name         as warehouse_name_out,\n            t8.warehouse_name         as warehouse_name_in,\n            t17.task_code             as task_move_code,\n\n            t7.is_location            as is_location_out,\n            t8.is_location            as is_location_in,\n\n            t2.id                     as inner_id,\n            t2.id                     as sub_id,\n            t2.stock_move_id          as sub_stock_move_id,\n            t2.row_number             as sub_row_number,\n            t2.location_code_out      as sub_location_code_out,\n            t2.location_code_in       as sub_location_code_in,\n            t2.pallet_code_out        as sub_pallet_code_out,\n            t2.pallet_code_in         as sub_pallet_code_in,\n            t2.package_code_out       as sub_package_code_out,\n            t2.package_code_in        as sub_package_code_in,\n            t2.label_code             as sub_label_code,\n            t2.material_code          as sub_material_code,\n            t2.batch                  as sub_batch,\n            t2.batch1                 as sub_batch1,\n            t2.batch2                 as sub_batch2,\n            t2.unit_code              as sub_unit_code,\n            t2.stock_qty              as sub_stock_qty,\n            t2.stock_describe         as sub_stock_describe,\n            t2.task_moves_id          as sub_task_moves_id,\n            t2.task_outs_id           as sub_task_outs_id,\n            t2.extend_code01          as sub_extend_code01,\n            t2.extend_code02          as sub_extend_code02,\n            t2.extend_code03          as sub_extend_code03,\n            t2.extend_code04          as sub_extend_code04,\n            t2.extend_code05          as sub_extend_code05,\n            t2.create_id              as sub_create_id,\n            t2.create_by              as sub_create_by,\n            t2.create_time            as sub_create_time,\n            t2.update_by              as sub_update_by,\n            t2.update_time            as sub_update_time,\n            t2.remark                 as sub_remark,\n\n            concat(t1.stock_code, \'|\', t2.row_number)   as sub_stock_code, /**当前单据编码|行号*/\n            concat(t22.task_code,\'|\',t21.row_number)    as sub_task_moves_code,\n            t11.location_name         as sub_location_name_out,\n            t12.location_name         as sub_location_name_in,\n            t9.material_name          as sub_material_name,\n            t9.material_specification as sub_material_specification,\n            t10.unit_name             as sub_unit_name,\n            t13.pallet_name           as sub_pallet_name_out,\n            t14.pallet_name           as sub_pallet_name_in,\n            t15.package_name          as sub_package_name_out,\n            t16.package_name          as sub_package_name_in,\n\n            t9.secondary_rate         as sub_secondary_rate,\n            t9.secondary_unit_code    as sub_secondary_unit_code,\n            t23.unit_name             as sub_secondary_unit_name,\n            CASE IFNULL(t9.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.stock_qty/t9.secondary_rate,2)  END  as sub_secondary_stock_qty,\n            t24.id                    as sub_label_id,\n            t9.is_package             as sub_is_package,\n            t9.is_pallet              as sub_is_pallet\n\n        from wms_stock_move t1\n                 left join wms_stock_moves t2 on t2.stock_move_id = t1.id\n                 left join base_department t3 on t3.dept_code = t1.dept_code_out\n                 left join base_department t4 on t4.dept_code = t1.dept_code_in\n                 left join base_employee t5 on t5.employee_code = t1.employee_code_out\n                 left join base_employee t6 on t6.employee_code = t1.employee_code_in\n                 left join base_customer t25 on t25.customer_code = t1.customer_code_in\n                 left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code_out\n                 left join base_warehouse t8 on t8.warehouse_code = t1.warehouse_code_in\n                 left join wms_task_move t17 on t17.id = t1.task_move_id\n\n                 left join base_material t9 on t9.material_code = t2.material_code\n                 left join base_unit t10 on t10.unit_code = t2.unit_code\n                 left join base_location t11 on t11.location_code = t2.location_code_out\n                 left join base_location t12 on t12.location_code = t2.location_code_in\n                 left join base_pallet t13 on t13.pallet_code = t2.pallet_code_out\n                 left join base_pallet t14 on t14.pallet_code = t2.pallet_code_in\n                 left join base_package t15 on t15.package_code = t2.package_code_out\n                 left join base_package t16 on t16.package_code = t2.package_code_in\n                 left join wms_task_moves t21 on t21.id = t2.task_moves_id\n\n                 left join wms_task_move t22 on t22.id = t21.task_move_id\n                 left join base_unit t23 on t23.unit_code = t9.secondary_unit_code\n                 left join wms_label t24 on t2.label_code = t24.label_code\n\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\n\nwhere\n	1=1\n	and :forWhere\n	and(\n		:interfaceStatus = \'\'\n		or (:interfaceStatus =\'未读取\' and t1.interface_read = 1 )\n		or (:interfaceStatus =\'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\'  )\n		or (:interfaceStatus =\'成功\' and ifnull(t1.interface_status,\'\') =\'200\')\n		or (:interfaceStatus =\'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\') !=\'200\' )\n	)\n\n\n', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4006', 'stockChange', '转换单', 'select\n            t1.id,\n            t1.bill_type_code,\n            t1.stock_code,\n            t1.stock_date,\n            t1.dept_code_out,\n            t1.dept_code_in,\n            t1.employee_code_out,\n            t1.employee_code_in,\n            t1.warehouse_code_out,\n            t1.warehouse_code_in,\n            t1.stock_describe,\n            t1.task_change_id,\n            t1.status,\n            t1.interface_read,\n            t1.interface_status,\n            t1.interface_code,\n            t1.interface_message,\n            t1.extend_code01,\n            t1.extend_code02,\n            t1.extend_code03,\n            t1.extend_code04,\n            t1.extend_code05,\n            t1.create_id,\n            t1.create_by,\n            t1.create_time,\n            t1.update_by,\n            t1.update_time,\n            t1.audit_by,\n            t1.audit_time,\n            t1.remark,\n\n            t2.id                       as inner_id,\n            t2.id                       as sub_id,\n            t2.stock_change_id          as sub_stock_change_id,\n            t2.row_number               as sub_row_number,\n            t2.change_type              as sub_change_type,\n            t2.change_group             as sub_change_group,\n            t2.location_code            as sub_location_code,\n            t2.pallet_code              as sub_pallet_code,\n            t2.package_code             as sub_package_code,\n            t2.label_code               as sub_label_code,\n            t2.material_code            as sub_material_code,\n            t2.batch                    as sub_batch,\n            t2.batch1                   as sub_batch1,\n            t2.batch2                   as sub_batch2,\n            t2.unit_code                as sub_unit_code,\n            t2.stock_qty                as sub_stock_qty,\n            t2.stock_describe           as sub_stock_describe,\n            t2.task_changes_id          as sub_task_changes_id,\n            t2.extend_code01            as sub_extend_code01,\n            t2.extend_code02            as sub_extend_code02,\n            t2.extend_code03            as sub_extend_code03,\n            t2.extend_code04            as sub_extend_code04,\n            t2.extend_code05            as sub_extend_code05,\n            t2.create_id                as sub_create_id,\n            t2.create_by                as sub_create_by,\n            t2.create_time              as sub_create_time,\n            t2.update_by                as sub_update_by,\n            t2.update_time              as sub_update_time,\n            t2.remark                   as sub_remark,\n\n            t3.dept_name              as dept_name_out,\n            t4.dept_name              as dept_name_in,\n            t5.employee_name          as employee_name_out,\n            t6.employee_name          as employee_name_in,\n            t7.warehouse_name         as warehouse_name_out,\n            t7.is_location            as is_location_out,\n            t8.warehouse_name         as warehouse_name_in,\n            t8.is_location            as is_location_in,\n            t18.extend_name           as extend_name01,\n            t19.extend_name           as extend_name02,\n            t20.nick_name             as extend_name04,\n            t17.task_code             as task_move_code,\n\n            concat(t1.stock_code, \'|\', t2.row_number)   as sub_stock_code, /**当前单据编码|行号*/\n            concat(t22.task_code,\'|\',t21.row_number)        as sub_task_changes_code,\n            t11.location_name           as sub_location_name,\n            t9.material_name            as sub_material_name,\n            t9.material_specification   as sub_material_specification,\n            t10.unit_name               as sub_unit_name,\n            t13.pallet_name             as sub_pallet_name,\n            t15.package_name            as sub_package_name,\n            t9.secondary_rate          as sub_secondary_rate,\n            t9.secondary_unit_code     as sub_secondary_unit_code,\n            t23.unit_name              as sub_secondary_unit_name,\n            t24.id                     as sub_label_id,\n            CASE IFNULL(t9.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.stock_qty/t9.secondary_rate,2)  END  as sub_secondary_stock_qty\n        from wms_stock_change t1\n        left join wms_stock_changes t2 on t2.stock_change_id = t1.id\n        left join base_department t3 on t3.dept_code = t1.dept_code_out\n        left join base_department t4 on t4.dept_code = t1.dept_code_in\n        left join base_employee t5 on t5.employee_code = t1.employee_code_out\n        left join base_employee t6 on t6.employee_code = t1.employee_code_in\n        left join base_warehouse t7 on t7.warehouse_code = t1.warehouse_code_out\n        left join base_warehouse t8 on t8.warehouse_code = t1.warehouse_code_in\n        left join wms_task_change t17 on t17.id = t1.task_change_id\n        left join base_extend t18 on t1.extend_code01 = t18.extend_code\n        left join base_extend t19 on t1.extend_code02 = t19.extend_code\n        left join sys_user t20 on t1.extend_code04 = t20.user_id\n\n        left join base_material t9 on t9.material_code = t2.material_code\n        left join base_unit t10 on t10.unit_code = t2.unit_code\n        left join base_location t11 on t11.location_code = t2.location_code\n        left join base_pallet t13 on t13.pallet_code = t2.pallet_code\n        left join base_package t15 on t15.package_code = t2.package_code\n        left join wms_task_changes t21 on t21.id = t2.task_changes_id\n        left join wms_task_change t22 on t22.id = t21.task_change_id\n        left join base_unit t23 on t23.unit_code = t9.secondary_unit_code\n        left join wms_label t24 on t2.label_code =t24.label_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\n	and(\n		:interfaceStatus = \'\'\n		or (:interfaceStatus =\'未读取\' and t1.interface_read = 1 )\n		or (:interfaceStatus =\'正在读取\' and t1.interface_read = 0 and ifnull(t1.interface_status,\'\') =\'\')\n		or (:interfaceStatus =\'成功\' and ifnull(t1.interface_status,\'\') =\'200\' )\n		or (:interfaceStatus =\'失败\' and ifnull(t1.interface_status,\'\') !=\'\' and ifnull(t1.interface_status,\'\') !=\'200\')\n	)\n order by t1.create_time desc\n\n            ', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4007', 'stockCheck', '盘点单', 'select t1.id,\n               t1.stock_type,\n               t1.stock_code,\n               t1.stock_date,\n               t1.dept_code,\n               t1.employee_code,\n               t1.stock_describe,\n               t1.task_check_id,\n               t1.organization_code,\n               t1.status,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.audit_by,\n               t1.audit_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.guid,\n\n               t3.dept_name,\n               t4.employee_name,\n               t12.task_code as task_code\n        from wms_stock_check t1\n                 left join base_department t3 on t3.dept_code = t1.dept_code\n                 left join base_employee t4 on t4.employee_code = t1.employee_code\n                 left join wms_task_check t12 on t12.id = t1.task_check_id\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\n\nwhere :forWhere\n', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4008', 'current', '现存量', 'select\n            t1.id,\n            t1.warehouse_code,\n            t1.location_code,\n            t1.pallet_code,\n            t1.package_code,\n            t1.label_code,\n            t1.material_code,\n            t1.batch,\n            t1.batch1,\n            t1.batch2,\n            t1.unit_code,\n            t1.stock_qty,\n            t1.place_stock_qty,\n            t1.set_stock_qty,\n\n            t2.warehouse_name,\n            t3.location_name,\n            t4.pallet_name,\n            t5.package_name,\n            t6.material_name,\n            t6.material_specification,\n            t6.is_package,\n            t6.is_pallet,\n            t7.unit_name,\n            t8.label_type,\n            t8.task_ins_id,\n            concat(t10.task_code, \'|\', t9.row_number) as task_ins_code /**入库任务编码|行号*/\n        from wms_current_stock t1\n        left join base_warehouse t2 on t1.warehouse_code = t2.warehouse_code\n        left join base_location t3 on t1.location_code = t3.location_code\n        left join base_pallet t4 on t1.pallet_code = t4.pallet_code\n        left join base_package t5 on t1.package_code = t5.package_code\n        left join base_material t6 on t1.material_code = t6.material_code\n        left join base_unit t7 on t1.unit_code = t7.unit_code\n        left join wms_label t8 on t1.label_code = t8.label_code\n        left join wms_task_ins t9 on t8.task_ins_id = t9.id\n        left join wms_task_in t10 on t9.task_in_id = t10.id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4009', 'initial', '期初', 'select id, warehouse_code, material_code, stock_date, create_date, audit_date, in_stock_qty, out_stock_qty from wms_initial_stock\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4010', 'backFlush', '生产倒冲', 'SELECT\n            t1.id,\n            t1.stock_date stockDate,\n            t1.create_id createId,\n            t1.create_By createBy,\n            t1.audit_By auditBy,\n            concat(t2.id,\'|\',t5.id) innerId,\n            t1.dept_code deptCode,\n            t1.employee_code employeeCode,\n            concat(t1.stock_code, \'|\', t2.row_number) stockInsCode,\n            concat(t4.task_code, \'|\', t3.row_number) taskInsCode,\n            t2.id stockInsId,\n            t2.label_code stockInLabelCode,\n            t2.material_code stockInMaterialCode,\n            t7.material_name stockInMaterialName,\n            t7.material_specification stockInMaterialSpecification,\n            t2.stock_qty stockInQty,\n            t2.unit_code stockInUnitCode,\n            t8.unit_name stockInUnitName,\n            concat(t6.task_code, \'|\', t5.row_number) taskOutsCode,\n            t5.material_code taskOutMaterialCode,\n            t9.material_name taskOutMaterialName,\n            t9.material_specification taskOutMaterialSpecification,\n            t5.warehouse_code warehouseCode,\n            t10.warehouse_name warehouseName,\n            t5.location_code locationCode,\n            t11.location_name locationName,\n            t5.unit_code taskOutUnitCode,\n            t12.unit_name taskOutUnitName,\n            t6.bill_type_code taskOutBillTypeCode,\n            t6.supplier_code supplierCode,\n            t6.customer_code customerCode,\n            t5.id taskOutsId,\n            t5.batch1,\n            t5.batch2,\n            ifnull((select SUM(stock_qty) from wms_stock_outs t where t.stock_ins_id = t2.id and t.task_outs_id = t5.id),0)\n                stockOutQty, /*实际出库数量*/\n            round((SELECT sum(u1.stock_qty) stock_qty\n                   FROM wms_current_stock u1\n                   WHERE u1.material_code = t5.material_code\n                     AND ((ifnull(t5.warehouse_code, \'\') = \'\'\n                              )OR (ifnull(t5.warehouse_code, \'\') != \'\' AND u1.warehouse_code = t5.warehouse_code))AND\n                       ((ifnull(t5.location_code, \'\') = \'\'\n                            )OR (ifnull(t5.location_code, \'\') != \'\' AND u1.location_code = t5.location_code))),4) stockQty,\n            /*建议位置库存数量*/\n            round( t5.task_qty * ifnull( t2.stock_qty, 0 ) / t3.task_qty,4 ) inStockOutQty, /*已入库应出库数量*/\n            round( t5.task_qty * ifnull( t2.stock_qty, 0 ) / t3.task_qty,4 ) - IFNULL(( SELECT SUM( stock_qty ) FROM\n                wms_stock_outs t WHERE t.stock_ins_id = t2.id AND t.task_outs_id = t5.id ),0)\n                thisTimeBackBlushQty /*本次倒冲数量*/\n        FROM wms_stock_in t1\n                 LEFT JOIN wms_stock_ins t2 ON t2.stock_in_id = t1.id\n                 LEFT JOIN wms_task_ins t3 ON t3.id = t2.task_ins_id\n                 LEFT JOIN wms_task_in t4 ON t4.id = t3.task_in_id\n                 LEFT JOIN wms_task_outs t5 ON t5.task_ins_id = t3.id\n                 left join wms_task_out t6 on t6.id = t5.task_out_id\n                 left join base_material t7 on t7.material_code = t2.material_code\n                 left join base_unit t8 on t8.unit_code = t2.unit_code\n                 left join base_material t9 on t9.material_code = t5.material_code\n                 LEFT JOIN base_warehouse t10 ON t10.warehouse_code = t5.warehouse_code\n                 LEFT JOIN base_location t11 ON t11.location_code = t5.location_code\n                 left join base_unit t12 on t12.unit_code = t5.unit_code\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4011', 'stockChecksDetail', '盘点单明细', 'select t1.id,\n               t1.stock_check_id,\n               t1.row_number,\n               t1.warehouse_code,\n               t1.location_code,\n               t1.pallet_code,\n               t1.package_code,\n               t1.label_code,\n               t1.material_code,\n               t1.batch,\n               t1.batch1,\n               t1.batch2,\n               t1.unit_code,\n               t1.stock_qty,\n               t1.stock_describe,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n\n               t2.warehouse_name,\n               t3.location_name,\n               t4.pallet_name,\n               t5.package_name,\n               t6.material_name,\n               t6.material_specification,\n               t7.unit_name\n        from wms_stock_checks t1\n                 left join base_warehouse t2 on t2.warehouse_code = t1.warehouse_code\n                 left join base_location t3 on t3.location_code = t1.location_code\n                 left join base_pallet t4 on t4.pallet_code = t1.pallet_code\n                 left join base_package t5 on t5.package_code = t1.package_code\n                 left join base_material t6 on t6.material_code = t1.material_code\n                 left join base_unit t7 on t7.unit_code = t1.unit_code\n                 left join wms_stock_check t8 on t8.id = t1.stock_check_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('4012', 'stockChecksCompare', '盘点单比较', ' select t.task_checks_id,\n        t.stock_checks_id,\n        t.warehouse_code,\n        t.label_code,\n        t.material_code,\n        t.unit_code,\n        t.batch,\n        t.batch1,\n        t.batch2,\n        t.task_qty,\n        t.stock_qty,\n        t.stock_task_qty,\n        t3.warehouse_name,\n        t7.material_name,\n        t7.material_specification,\n        t8.unit_name\nFROM wms_task_checks t1\n     ', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7001', 'workorder', '生产工单/生产排产', '    select workorder_id, workorder_code, workorder_name, order_source, source_code, product_id, product_code, product_name, product_spc, unit_of_measure,batch_code, quantity,quantity_produced, client_id, client_code, client_name, request_date, confirm_date,parent_id, ancestors, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from pro_workorder', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7002', 'process', '工序设置', 'select process_id, process_code, process_name, attention, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from pro_process', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7003', 'proroute', '工艺流程', 'select route_id, route_code, route_name, route_desc, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time \nfrom pro_route\n    ', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7005', 'feedback', '生产报工', 'select record_id,feedback_type, workstation_id, workstation_code, workstation_name,process_id, process_code, process_name, workorder_id, workorder_code, workorder_name, task_id, task_code,item_id,item_code,item_name,specification,unit_of_measure, quantity, quantity_feedback, quantity_qualified, quantity_unquanlified, user_name, nick_name, feedback_channel, feedback_time,record_user,record_nick,status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from pro_feedback\n    ', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7101', 'qcdefect', '常见缺陷', 'select defect_id, defect_code, defect_name, index_type, defect_level, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time\nfrom qc_defect', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7102', 'qcindex', '检测项设置', 'select index_id, index_code, index_name, index_type, qc_tool, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time\nfrom qc_index', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7103', 'qctemplate', '检测模板', 'select template_id, template_code, template_name, qc_types, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from qc_template', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7104', 'iqc', '来料检验', 'SELECT\n	q.iqc_id,\n	q.iqc_code,\n	q.iqc_name,\n	q.template_id,\n	q.vendor_id,\n	q.vendor_code,\n	q.vendor_name,\n	q.vendor_nick,\n	q.vendor_batch,\n	q.item_id,\n	q.item_code,\n	q.item_name,\n	q.specification,\n	q.unit_of_measure,\n	q.quantity_min_check,\n	q.quantity_max_unqualified,\n	q.quantity_recived,\n	q.quantity_check,\n	q.quantity_unqualified,\n	q.cr_rate,\n	q.maj_rate,\n	q.min_rate,\n	q.cr_quantity,\n	q.maj_quantity,\n	q.min_quantity,\n	q.check_result,\n	q.recive_date,\n	q.inspect_date,\n	q.inspector,\n	u.nick_name AS inspector_name,\n	q.status,\n	q.remark,\n	q.attr1,\n	q.attr2,\n	q.attr3,\n	q.attr4,\n	q.create_by,\n	q.create_time,\n	q.update_by,\n	q.update_time \nFROM qc_iqc q\nLEFT JOIN sys_user u ON u.user_name = q.inspector', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7105', 'ipqc', '过程检验', 'select ipqc_id, ipqc_code, ipqc_name, ipqc_type, template_id, workorder_id, workorder_code, workorder_name, task_id, task_code, task_name, workstation_id, workstation_code, workstation_name, process_id, process_code, process_name, item_id, item_code, item_name, specification, unit_of_measure, quantity_check, quantity_unqualified, quantity_qualified, cr_rate, maj_rate, min_rate, cr_quantity, maj_quantity, min_quantity, check_result, inspect_date, inspector, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time\nfrom qc_ipqc', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('7106', 'oqc', '出货检验', 'select oqc_id, oqc_code, oqc_name, template_id, client_id, client_code, client_name, batch_code, item_id, item_code, item_name, specification, unit_of_measure, quantity_min_check, quantity_max_unqualified, quantity_out, quantity_check, quantity_unqualified, quantity_quanlified, cr_rate, maj_rate, min_rate, cr_quantity, maj_quantity, min_quantity, check_result, out_date, inspect_date, inspector, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time \nfrom qc_oqc', NULL, NULL, 0, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9001', 'selectDept', '部门(组件)', 'select t1.id, t1.parent_id, t1.dept_code, t1.dept_name, t1.dept_describe, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_department t1\nwhere :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9007', 'selectPallet', '托盘（组件）', 'select t1.id,\n               t1.pallet_code,\n               t1.pallet_name,\n               t3.warehouse_code,\n               t3.location_code,\n               case when coalesce(t2.stock_qty,0) >0 then 0 else 1 end is_use,\n               t2.stock_qty,\n               t1.pallet_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n\n               t4.warehouse_name,\n               t5.location_name\n        from base_pallet t1\n        left join (select pallet_code,max(id) id,sum(place_stock_qty) stock_qty from wms_current_stock group by pallet_code) t2 on t1.pallet_code =t2.pallet_code\n        left join wms_current_stock t3 on t2.id =t3.id\n        left join base_warehouse t4 on t3.warehouse_code = t4.warehouse_code\n        left join base_location t5 on t3.location_code = t5.location_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\nand t1.status =0', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9008', 'selectPackage', '包装（组件）', 'select t1.id,\n               t1.package_code,\n               t1.package_name,\n               t3.warehouse_code,\n               t3.location_code,\n               t3.pallet_code,\n               case when coalesce(t2.stock_qty,0) >0 then 0 else 1 end is_use,\n               t2.stock_qty,\n               t1.package_describe,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n\n               t4.warehouse_name,\n               t5.location_name,\n               t6.pallet_name\n        from base_package t1\n        left join (select package_code,max(id) id,sum(place_stock_qty) stock_qty from wms_current_stock group by package_code) t2 on t1.package_code =t2.package_code\n        left join wms_current_stock t3 on t2.id =t3.id\n        left join base_warehouse t4 on t3.warehouse_code = t4.warehouse_code\n        left join base_location t5 on t3.location_code = t5.location_code\n        left join base_pallet t6 on t3.pallet_code = t6.pallet_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere\nand t1.status =0', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9009', 'selectMaterial', '物料（组件）', 'select t1.id,\n               t1.material_class_id,\n               t1.material_class_code,\n               t2.material_class_name,\n               t1.material_code,\n               t1.material_name,\n               t1.material_specification,\n               t1.quality_day,\n               t1.is_batch,\n               t1.is_package,\n               t1.is_pallet,\n               t1.label_standard_quantity,\n               t1.secondary_rate,\n               t1.max_stock_quantity,\n               t1.min_stock_quantity,\n               t1.excess_ratio_in,\n               t1.excess_ratio_out,\n               t1.net_weight,\n               t1.material_quality,\n               t1.unit_code,\n               t1.secondary_unit_code,\n               t1.material_description,\n               t1.attachments,\n               t1.status,\n               t1.inactive_time,\n               t1.create_id,\n               t1.create_by,\n               t1.create_time,\n               t1.update_by,\n               t1.update_time,\n               t1.remark,\n               t1.extend_code01,\n               t1.extend_code02,\n               t1.extend_code03,\n               t1.extend_code04,\n               t1.extend_code05,\n               t1.extend_code06,\n               t1.extend_code07,\n               t1.extend_code08,\n               t1.extend_code09,\n               t1.extend_code10,\n               t1.extend_code11,\n               t1.extend_code12,\n               t1.extend_code13,\n               t1.extend_code14,\n               t1.extend_code15,\n               t1.extend_code16,\n               t1.extend_code17,\n               t1.extend_code18,\n               t1.extend_code19,\n               t1.extend_code20,\n               t1.warehouse_code_in,\n               t1.location_code_in,\n               t1.warehouse_code_out,\n               t1.location_code_out,\n               t1.collect_type,\n               t3.unit_name,\n               t8.unit_name as secondary_unit_name,\n               t4.warehouse_name as warehouse_name_in,\n               t5.warehouse_name as warehouse_name_out,\n               t6.location_name  as location_name_in,\n               t7.location_name  as location_name_out\n        from base_material t1\n        left join base_material_class t2 on t2.id = t1.material_class_id\n        left join base_unit t3 on t3.unit_code = t1.unit_code\n        left join base_warehouse t4 on t4.warehouse_code = t1.warehouse_code_in\n        left join base_warehouse t5 on t5.warehouse_code = t1.warehouse_code_out\n        left join base_location t6 on t6.location_code = t1.location_code_in\n        left join base_location t7 on t7.location_code = t1.location_code_out\n        left join base_unit t8 on t8.unit_code = t1.secondary_unit_code\n        left join sys_user u on u.user_id = t1.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9010', 'selectUnit', '单位（组件）', 'select t1.id, t1.unit_code, t1.unit_name, t1.unit_description, t1.status, t1.inactive_time, t1.create_id, t1.create_by, t1.create_time, t1.update_by, t1.update_time, t1.remark\n        from base_unit t1\n                 left join sys_user u on u.user_id = t1.create_id\n                 left join sys_dept d on d.dept_id = u.dept_id\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9011', 'selectExtend', '扩展项（组件）', 'select\n            extend.id\n            ,extend.extend_class_id\n            ,extend.extend_class_code\n            ,extendclass.extend_class_name\n            ,extend.extend_code\n            ,extend.extend_name\n            ,extend.extend_describe\n            ,extend.status\n            ,extend.inactive_time\n            ,extend.create_id\n            ,extend.create_by\n            ,extend.create_time\n            ,extend.update_by\n            ,extend.update_time\n            ,extend.remark\n        from base_extend extend\n        left join base_extend_class extendclass on extend.extend_class_id =extendclass.id\n        left join sys_user u on u.user_id = extend.create_id\n        left join sys_dept d on d.dept_id = u.dept_id\n\nwhere\n	1=1\n	and :forWhere', NULL, NULL, NULL, NULL, NULL);
INSERT INTO `set_table_info` VALUES ('9012', 'selectUser', '用户（组件）', 'select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u\n		left join sys_dept d on u.dept_id = d.dept_id\n		where u.del_flag = \'0\'\nand :forWhere', NULL, NULL, NULL, NULL, NULL);

-- ----------------------------
-- 10_13_013	表格设计子表
-- ----------------------------
DROP TABLE IF EXISTS `set_table_infos`;
CREATE TABLE `set_table_infos`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '子表标识',
  `info_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `query_table` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询表',
  `query_field` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询字段',
  `query_field_alias` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段别名',
  `query_field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段中文名',
  `field_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段类型',
  `column_width` int(11) NULL DEFAULT NULL COMMENT '字段宽度',
  `parameter` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '存储值对应的where条件',
  `basic_flag` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基础资料标志',
  `basic_value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基础资料取值字段',
  `basic_query_data` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '基础资料传参',
  `filter_status` int(11) NULL DEFAULT NULL COMMENT '筛选状态(0(显示)、1(可选显示)、2(不显示)、10(不筛选))',
  `is_date_control` int(11) NULL DEFAULT NULL COMMENT '0不启用 1启用(列表默认显示最近30天数据)',
  `status` int(11) NULL DEFAULT NULL COMMENT '0生效 1失效',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4679 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '表格设计子表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 表格设计子表 初始数据
-- ----------------------------
INSERT INTO `set_table_infos` VALUES (1, '1', NULL, 't1.user_id', 'userId', '用户id', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2, '1', NULL, 't1.dept_id', 'deptId', '部门id', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (3, '1', NULL, 't1.user_name', 'userName', '用户名称', '文本', NULL, '', 'user', 'userName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (4, '1', NULL, 't1.nick_name', 'nickName', '用户昵称', '文本', NULL, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (5, '1', NULL, 't1.user_type', 'userType', '用户类型', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (6, '1', NULL, 't1.create_time', 'createTime', '创建时间', '日期', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (7, '1', NULL, 't2.dept_name', 'deptName', '所在部门', '文本', NULL, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (8, '1', NULL, 't1.dept_id', 'parameter_qty', 'deptId传参', '文本', NULL, '104,105,106', '', '', NULL, NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (9, '1001', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (10, '1001', NULL, 'setting_class', 'settingClass', '设置分类', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (11, '1001', NULL, 'setting_code', 'settingCode', '设置编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (12, '1001', NULL, 'setting_name', 'settingName', '设置名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (13, '1001', NULL, 'setting_describe', 'settingDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (14, '1001', NULL, 'setting_values', 'settingValues', '参数值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (15, '1001', NULL, 'setting_sort', 'settingSort', '排序', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (16, '1002', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (17, '1002', NULL, 'bill_code', 'billCode', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (18, '1002', NULL, 'bill_type_code', 'billTypeCode', '单据类型编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (19, '1002', NULL, 'bill_type_name', 'billTypeName', '单据类型名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (20, '1002', NULL, 'task_bill_type_code', 'taskBillTypeCode', '任务单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (21, '1002', NULL, 'back_task_bill_type_code', 'backTaskBillTypeCode', '任务退单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (22, '1002', NULL, 'stock_bill_type_code', 'stockBillTypeCode', '库存单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (23, '1002', NULL, 'is_enable_app', 'isEnableApp', '是否启用app', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (24, '1002', NULL, 'is_control_task', 'isControlTask', '是否保存控制', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (25, '1002', NULL, 'is_control_task_audit', 'isControlTaskAudit', '是否审核控制', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (26, '1002', NULL, 'interface_name', 'interfaceName', '接口名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (27, '1002', NULL, 'interface_type', 'interfaceType', '接口类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (28, '1002', NULL, 'status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (29, '1002', NULL, 'setting_sort', 'settingSort', '排序', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (30, '1002', NULL, 'setting_describe', 'settingDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (31, '1003', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (32, '1003', NULL, 'auto_code', 'autoCode', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (33, '1003', NULL, 'sequence_length', 'sequenceLength', '序号长度', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (34, '1003', NULL, 'prefix_value', 'prefixValue', '前缀值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (35, '1003', NULL, 'suffix_value', 'suffixValue', '后缀值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (36, '1003', NULL, 'current_value', 'currentValue', '当前值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (37, '1003', NULL, 'sequence_reset', 'sequenceReset', '序号区分前缀', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (38, '1003', NULL, 'step_value', 'stepValue', '步长', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (39, '1003', NULL, 'create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (40, '1003', NULL, 'create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (41, '1003', NULL, 'create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (42, '1003', NULL, 'update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (43, '1003', NULL, 'update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (44, '1003', NULL, 'remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (45, '1004', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (46, '1004', NULL, 'bill_code', 'billCode', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (47, '1004', NULL, 'field', 'field', '字段英文名', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (48, '1004', NULL, 'field_name', 'fieldName', '字段中文名', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (49, '1004', NULL, 'field_type', 'fieldType', '字段类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (50, '1004', NULL, 'width', 'width', '宽度', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (51, '1004', NULL, 'multiple', 'multiple', '是否多选', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (52, '1004', NULL, 'required', 'required', '是否必录', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (53, '1004', NULL, 'required_condition', 'requiredCondition', '必录条件', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (54, '1004', NULL, 'hidden', 'hidden', '是否隐藏', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (55, '1004', NULL, 'hidden_condition', 'hiddenCondition', '隐藏条件', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (56, '1004', NULL, 'setting_sort', 'settingSort', '排序', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (57, '1004', NULL, 'setting_describe', 'settingDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (58, '1004', NULL, 'flag', 'flag', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (59, '1004', NULL, 'key_name', 'keyName', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (60, '1004', NULL, 'key_code', 'keyCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (61, '1004', NULL, 'query_data', 'queryData', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (62, '1004', NULL, 'defaults', 'defaults', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (63, '1005', NULL, 'a.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (64, '1005', NULL, 'a.userid', 'userid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (65, '1005', NULL, 'a.bill_code', 'billCode', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (66, '1005', NULL, 'a.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (67, '1005', NULL, 'a.setting_class', 'settingClass', '设置类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (68, '1005', NULL, 'a.setting_sort', 'settingSort', '排序', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (69, '1005', NULL, 'a.setting_describe', 'settingDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (70, '1005', NULL, 'b.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (71, '1005', NULL, 'b.default_setting_id', 'subDefaultSettingId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (72, '1005', NULL, 'b.setting_flag', 'subSettingFlag', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (73, '1005', NULL, 'b.setting_code', 'subSettingCode', '设置编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (74, '1005', NULL, 'b.setting_name', 'subSettingName', '设置名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (75, '1005', NULL, 'b.setting_values', 'subSettingValues', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (76, '1005', NULL, 'user.nick_name', 'userName', '用户', '文本', 100, '', 'user', 'userName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (77, '1005', NULL, 'field.field_name', 'subSettingFlagName', '字段', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (78, '1005', NULL, 'billType.bill_type_name', 'billTypeName', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (79, '1006', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (80, '1006', NULL, 'bill_code', 'billCode', '单据名称', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (81, '1006', NULL, 'print_template', 'printTemplate', '打印模板', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (82, '1006', NULL, 'print_interface', 'printInterface', '打印接口', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (83, '1006', NULL, 'setting_sort', 'settingSort', '排序', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (84, '1006', NULL, 'setting_describe', 'settingDescribe', '描述', '文本', NULL, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (85, '1007', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (86, '1007', NULL, '`describe`', '`describe`', '提示信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (87, '1007', NULL, 'edition_url', 'editionUrl', '下载地址', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (88, '1007', NULL, 'edition_force', 'editionForce', '强制更新', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (89, '1007', NULL, 'package_type', 'packageType', '热更新', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (90, '1007', NULL, 'edition_issue', 'editionIssue', '是否发行', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (91, '1007', NULL, 'edition_number', 'editionNumber', '版本号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (92, '1007', NULL, 'edition_name', 'editionName', '版本名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (93, '1007', NULL, 'edition_silence', 'editionSilence', '静默更新', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (94, '1007', NULL, 'create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (95, '1007', NULL, 'create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (96, '1007', NULL, 'create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (97, '1007', NULL, 'update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (98, '1007', NULL, 'update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (99, '1007', NULL, 'remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (100, '1008', NULL, 'a.id', 'id', '主表标识', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (101, '1008', NULL, 'a.bill_code', 'billCode', '单据编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (102, '1008', NULL, 'a.bill_name', 'billName', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (103, '1008', NULL, 'a.sql_query', 'sqlQuery', 'sql', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (104, '1008', NULL, 'a.sql_paged_query', 'sqlPagedQuery', '分页sql', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (105, '1008', NULL, 'a.remark', 'remark', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (106, '1008', NULL, 'COALESCE(plan.status,1)', 'isDefaultPlan', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (107, '1009', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (108, '1009', NULL, 'code_rule_id', 'codeRuleId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (109, '1009', NULL, 'perfix_values', 'perfixValues', '前缀值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (110, '1009', NULL, 'entry_values', 'entryValues', '当前值', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (111, '1010', NULL, 'id', 'id', '主表标识', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (112, '1010', NULL, 'plan_name', 'planName', '方案名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (113, '1010', NULL, 'bill_code', 'billCode', '关联单据编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (114, '1010', NULL, 'page_num', 'pageNum', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (115, '1010', NULL, 'page_size', 'pageSize', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (116, '1010', NULL, 'user_id', 'userId', '用户', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (117, '1010', NULL, 'sort', 'sort', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (118, '1010', NULL, 'status', 'status', '状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (119, '1010', NULL, 'is_default', 'isDefault', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (120, '2', NULL, 'a.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (121, '2', NULL, 'a.bill_code', 'billCode', '单据编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (122, '2', NULL, 'a.bill_name', 'billName', '单据名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (123, '2', NULL, 'a.sql_query', 'sqlQuery', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (124, '2', NULL, 'a.sql_paged_query', 'sqlPagedQuery', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (125, '2', NULL, 'a.remark', 'remark', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (126, '2', NULL, 'COALESCE(plan.status,1)', 'isDefaultPlan', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (127, '2001', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (128, '2001', NULL, 't1.parent_id', 'parentId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (129, '2001', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (130, '2001', NULL, 't1.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (131, '2001', NULL, 't1.dept_describe', 'deptDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (132, '2001', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (133, '2001', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (134, '2001', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (135, '2001', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (136, '2001', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (137, '2001', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (138, '2001', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (139, '2001', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (140, '2002', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (141, '2002', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (142, '2002', NULL, 't2.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (143, '2002', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (144, '2002', NULL, 't1.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (145, '2002', NULL, 't1.employee_describe', 'employeeDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (146, '2002', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (147, '2002', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (148, '2002', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (149, '2002', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (150, '2002', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (151, '2002', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (152, '2002', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (153, '2002', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (154, '2003', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (155, '2003', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (156, '2003', NULL, 't1.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (157, '2003', NULL, 't1.supplier_short_name', 'supplierShortName', '供应商简称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (158, '2003', NULL, 't1.supplier_describe', 'supplierDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (159, '2003', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (160, '2003', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (161, '2003', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (162, '2003', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (163, '2003', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (164, '2003', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (165, '2003', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (166, '2003', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (167, '2004', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (168, '2004', NULL, 't1.customer_code', 'customerCode', '客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (169, '2004', NULL, 't1.customer_name', 'customerName', '客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (170, '2004', NULL, 't1.customer_short_name', 'customerShortName', '客户简称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (171, '2004', NULL, 't1.customer_describe', 'customerDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (172, '2004', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (173, '2004', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (174, '2004', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (175, '2004', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (176, '2004', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (177, '2004', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (178, '2004', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (179, '2004', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (180, '2005', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (181, '2005', NULL, 't1.parent_id', 'parentId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (182, '2005', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (183, '2005', NULL, 't1.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (184, '2005', NULL, 't1.warehouse_describe', 'warehouseDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (185, '2005', NULL, 't1.is_location', 'isLocation', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (186, '2005', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (187, '2005', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (188, '2005', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (189, '2005', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (190, '2005', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (191, '2005', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (192, '2005', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (193, '2005', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (194, '2006', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (195, '2006', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (196, '2006', NULL, 't1.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (197, '2006', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (198, '2006', NULL, 't2.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (199, '2006', NULL, 't1.location_describe', 'locationDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (200, '2006', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (201, '2006', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (202, '2006', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (203, '2006', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (204, '2006', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (205, '2006', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (206, '2006', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (207, '2006', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (208, '2007', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (209, '2007', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (210, '2007', NULL, 't1.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (211, '2007', NULL, 't3.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (212, '2007', NULL, 't3.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (213, '2007', NULL, NULL, 'isUse', '', '文本', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (214, '2007', NULL, 't2.stock_qty', 'stockQty', '', '数字', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (215, '2007', NULL, 't1.pallet_describe', 'palletDescribe', '描述', '文本', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (216, '2007', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (217, '2007', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (218, '2007', NULL, 't1.create_id', 'createId', '', '文本', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (219, '2007', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (220, '2007', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (221, '2007', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (222, '2007', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (223, '2007', NULL, 't1.remark', 'remark', '', '文本', 100, '', NULL, NULL, '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (224, '2007', NULL, 't4.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (225, '2007', NULL, 't5.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (226, '2008', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (227, '2008', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (228, '2008', NULL, 't1.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (229, '2008', NULL, 't3.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (230, '2008', NULL, 't3.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (231, '2008', NULL, 't3.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (232, '2008', NULL, NULL, 'isUse', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (233, '2008', NULL, 't2.stock_qty', 'stockQty', '', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (234, '2008', NULL, 't1.package_describe', 'packageDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (235, '2008', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (236, '2008', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (237, '2008', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (238, '2008', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (239, '2008', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (240, '2008', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (241, '2008', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (242, '2008', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (243, '2008', NULL, 't4.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (244, '2008', NULL, 't5.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (245, '2008', NULL, 't6.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (246, '2009', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (247, '2009', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (248, '2009', NULL, 't1.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (249, '2009', NULL, 't1.unit_description', 'unitDescription', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (250, '2009', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (251, '2009', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (252, '2009', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (253, '2009', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (254, '2009', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (255, '2009', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (256, '2009', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (257, '2009', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (258, '2010', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (259, '2010', NULL, 't1.parent_id', 'parentId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (260, '2010', NULL, 't1.ancestors', 'ancestors', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (261, '2010', NULL, 't1.material_class_code', 'materialClassCode', '物料分类编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (262, '2010', NULL, 't1.material_class_name', 'materialClassName', '物料分类名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (263, '2010', NULL, 't1.material_level', 'materialLevel', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (264, '2010', NULL, 't1.material_end', 'materialEnd', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (265, '2010', NULL, 't1.material_class_describe', 'materialClassDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (266, '2010', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (267, '2010', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (268, '2010', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (269, '2010', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (270, '2010', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (271, '2010', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (272, '2010', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (273, '2010', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (274, '2011', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (275, '2011', NULL, 't1.material_class_id', 'materialClassId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (276, '2011', NULL, 't1.material_class_code', 'materialClassCode', '物料分类编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (277, '2011', NULL, 't2.material_class_name', 'materialClassName', '物料分类名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (278, '2011', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (279, '2011', NULL, 't1.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (280, '2011', NULL, 't1.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (281, '2011', NULL, 't1.quality_day', 'qualityDay', '保质期天数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (282, '2011', NULL, 't1.is_batch', 'isBatch', '是否启用批号', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (283, '2011', NULL, 't1.is_package', 'isPackage', '是否启用包装', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (284, '2011', NULL, 't1.is_pallet', 'isPallet', '是否启用托盘', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (285, '2011', NULL, 't1.label_standard_quantity', 'labelStandardQuantity', '标签标准量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (286, '2011', NULL, 't1.secondary_rate', 'secondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (287, '2011', NULL, 't1.max_stock_quantity', 'maxStockQuantity', '最高储', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (288, '2011', NULL, 't1.min_stock_quantity', 'minStockQuantity', '最低储', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (289, '2011', NULL, 't1.excess_ratio_in', 'excessRatioIn', '超入库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (290, '2011', NULL, 't1.excess_ratio_out', 'excessRatioOut', '超出库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (291, '2011', NULL, 't1.net_weight', 'netWeight', '净重', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (292, '2011', NULL, 't1.material_quality', 'materialQuality', '物料材质', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (293, '2011', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (294, '2011', NULL, 't1.secondary_unit_code', 'secondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (295, '2011', NULL, 't1.material_description', 'materialDescription', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (296, '2011', NULL, 't1.attachments', 'attachments', '附件', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (297, '2011', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (298, '2011', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (299, '2011', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (300, '2011', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (301, '2011', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (302, '2011', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (303, '2011', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (304, '2011', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (305, '2011', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (306, '2011', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (307, '2011', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (308, '2011', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (309, '2011', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (310, '2011', NULL, 't1.extend_code06', 'extendCode06', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (311, '2011', NULL, 't1.extend_code07', 'extendCode07', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (312, '2011', NULL, 't1.extend_code08', 'extendCode08', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (313, '2011', NULL, 't1.extend_code09', 'extendCode09', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (314, '2011', NULL, 't1.extend_code10', 'extendCode10', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (315, '2011', NULL, 't1.extend_code11', 'extendCode11', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (316, '2011', NULL, 't1.extend_code12', 'extendCode12', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (317, '2011', NULL, 't1.extend_code13', 'extendCode13', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (318, '2011', NULL, 't1.extend_code14', 'extendCode14', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (319, '2011', NULL, 't1.extend_code15', 'extendCode15', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (320, '2011', NULL, 't1.extend_code16', 'extendCode16', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (321, '2011', NULL, 't1.extend_code17', 'extendCode17', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (322, '2011', NULL, 't1.extend_code18', 'extendCode18', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (323, '2011', NULL, 't1.extend_code19', 'extendCode19', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (324, '2011', NULL, 't1.extend_code20', 'extendCode20', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (325, '2011', NULL, 't1.warehouse_code_in', 'warehouseCodeIn', '入库仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (326, '2011', NULL, 't1.location_code_in', 'locationCodeIn', '入库货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (327, '2011', NULL, 't1.warehouse_code_out', 'warehouseCodeOut', '出库仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (328, '2011', NULL, 't1.location_code_out', 'locationCodeOut', '出库货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (329, '2011', NULL, 't1.collect_type', 'collectType', '领料类型', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (330, '2011', NULL, 't3.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (331, '2011', NULL, 't8.unit_name', 'secondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (332, '2011', NULL, 't4.warehouse_name', 'warehouseNameIn', '入库仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (333, '2011', NULL, 't5.warehouse_name', 'warehouseNameOut', '出库仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (334, '2011', NULL, 't6.location_name', 'locationNameIn', '入库货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (335, '2011', NULL, 't7.location_name', 'locationNameOut', '出库货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (336, '2012', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (337, '2012', NULL, 't1.parent_id', 'parentId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (338, '2012', NULL, 't1.ancestors', 'ancestors', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (339, '2012', NULL, 't1.extend_class_code', 'extendClassCode', '扩展项分类编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (340, '2012', NULL, 't1.extend_class_name', 'extendClassName', '扩展项分类名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (341, '2012', NULL, 't1.extend_class_describe', 'extendClassDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (342, '2012', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (343, '2012', NULL, 't1.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (344, '2012', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (345, '2012', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (346, '2012', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (347, '2012', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (348, '2012', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (349, '2012', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (350, '2013', NULL, 'extend.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (351, '2013', NULL, 'extend.extend_class_id', 'extendClassId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (352, '2013', NULL, 'extend.extend_class_code', 'extendClassCode', '扩展项分类编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (353, '2013', NULL, 'extendclass.extend_class_name', 'extendClassName', '扩展项分类名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (354, '2013', NULL, 'extend.extend_code', 'extendCode', '扩展项编码', '文本', 100, '', 'extend', 'extendCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (355, '2013', NULL, 'extend.extend_name', 'extendName', '扩展项名称', '文本', 100, '', 'extend', 'extendName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (356, '2013', NULL, 'extend.extend_describe', 'extendDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (357, '2013', NULL, 'extend.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (358, '2013', NULL, 'extend.inactive_time', 'inactiveTime', '失效日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (359, '2013', NULL, 'extend.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (360, '2013', NULL, 'extend.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (361, '2013', NULL, 'extend.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (362, '2013', NULL, 'extend.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (363, '2013', NULL, 'extend.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (364, '2013', NULL, 'extend.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (365, '3001', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (366, '3001', NULL, 't1.task_type', 'taskType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (367, '3001', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (368, '3001', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (369, '3001', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (370, '3001', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (371, '3001', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (372, '3001', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (373, '3001', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (374, '3001', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (375, '3001', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (376, '3001', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (377, '3001', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (378, '3001', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (379, '3001', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (380, '3001', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (381, '3001', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (382, '3001', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (383, '3001', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (384, '3001', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (385, '3001', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (386, '3001', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (387, '3001', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (388, '3001', NULL, 't2.task_in_id', 'subTaskInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (389, '3001', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (390, '3001', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (391, '3001', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (392, '3001', NULL, 't2.excess_ratio_in', 'subExcessRatioIn', '超入库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (393, '3001', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (394, '3001', NULL, 't2.back_task_qty', 'subBackTaskQty', '入库退任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (395, '3001', NULL, 't2.label_qty', 'subLabelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (396, '3001', NULL, 't2.stock_qty', 'subStockQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (397, '3001', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (398, '3001', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (399, '3001', NULL, 't2.warehouse_code', 'subWarehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (400, '3001', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (401, '3001', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (402, '3001', NULL, 't2.status', 'subStatus', '审核状态', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (403, '3001', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (404, '3001', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (405, '3001', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (406, '3001', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (407, '3001', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (408, '3001', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (409, '3001', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (410, '3001', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (411, '3001', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (412, '3001', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (413, '3001', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (414, '3001', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (415, '3001', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (416, '3001', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (417, '3001', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (418, '3001', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (419, '3001', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (420, '3001', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (421, '3001', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (422, '3001', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (423, '3001', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (424, '3001', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (425, '3001', NULL, 't6.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (426, '3001', NULL, 't6.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (427, '3001', NULL, 't7.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (428, '3001', '', 't8.warehouse_name', 'subWarehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (429, '3001', NULL, 't9.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (430, '3001', NULL, 't6.is_batch', 'subIsBatch', '是否启用批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (431, '3001', NULL, 't6.label_standard_quantity', 'subLabelStandardQuantity', '标签标准量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (432, '3001', NULL, 't6.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (433, '3001', NULL, 't6.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (434, '3001', NULL, 't10.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (435, '3001', NULL, NULL, 'subSecondaryTaskQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (436, '3001', NULL, 'taskLabelStatus', 'parameter_taskLabelStatus', '标签状态', '选项', 100, '未全部拆标签,已全部拆标签,超比例未全部拆标签,超比例已全部拆标签', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (437, '3001', NULL, 'taskInStatus', 'parameter_taskInStatus', '入库状态', '选项', 100, '未全部入库,已全部入库,超比例未全部入库,超比例已全部入库', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (438, '3001', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (439, '3002', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (440, '3002', NULL, 't1.task_type', 'taskType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (441, '3002', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (442, '3002', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (443, '3002', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (444, '3002', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (445, '3002', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (446, '3002', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (447, '3002', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (448, '3002', NULL, 't1.task_in_id', 'taskInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (449, '3002', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (450, '3002', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (451, '3002', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (452, '3002', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (453, '3002', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (454, '3002', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (455, '3002', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (456, '3002', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (457, '3002', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (458, '3002', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (459, '3002', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (460, '3002', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (461, '3002', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (462, '3002', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (463, '3002', NULL, 't2.task_in_id', 'subTaskInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (464, '3002', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (465, '3002', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (466, '3002', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (467, '3002', NULL, 't2.excess_ratio_in', 'subExcessRatioIn', '超入库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (468, '3002', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (469, '3002', NULL, 't2.back_task_qty', 'subBackTaskQty', '入库退任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (470, '3002', NULL, 't2.label_qty', 'subLabelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (471, '3002', NULL, 't2.stock_qty', 'subStockQty', '入库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (472, '3002', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (473, '3002', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (474, '3002', NULL, 't2.warehouse_code', 'subWarehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (475, '3002', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (476, '3002', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (477, '3002', NULL, 't2.task_ins_id', 'subTaskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (478, '3002', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (479, '3002', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (480, '3002', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (481, '3002', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (482, '3002', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (483, '3002', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (484, '3002', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (485, '3002', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (486, '3002', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (487, '3002', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (488, '3002', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (489, '3002', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (490, '3002', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (491, '3002', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (492, '3002', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (493, '3002', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (494, '3002', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (495, '3002', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (496, '3002', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (497, '3002', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (498, '3002', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (499, '3002', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (500, '3002', NULL, 't12.task_code', 'taskInCode', '入库任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (501, '3002', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (502, '3002', NULL, 'concat(t11.task_code, \'|\', t10.row_number)', 'subTaskInsCode', '入库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (503, '3002', NULL, 't6.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (504, '3002', NULL, 't6.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (505, '3002', NULL, 't7.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (506, '3002', NULL, 't8.warehouse_name', 'subWarehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (507, '3002', NULL, 't9.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (508, '3002', NULL, 't6.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (509, '3002', NULL, 't6.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (510, '3002', NULL, 't13.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (511, '3002', NULL, 'CASE IFNULL(t6.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t6.secondary_rate,2)  END', 'subSecondaryTaskQty', '辅计量数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (512, '3002', NULL, 'taskInBackStatus', 'parameter_taskInBackStatus', '入库退状态', '选项', 100, '未全部入库退,已全部入库退', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (513, '3002', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (514, '3003', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (515, '3003', NULL, 't1.task_type', 'taskType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (516, '3003', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (517, '3003', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (518, '3003', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (519, '3003', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (520, '3003', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (521, '3003', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (522, '3003', NULL, 't1.customer_code', 'customerCode', '客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (523, '3003', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (524, '3003', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (525, '3003', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (526, '3003', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (527, '3003', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (528, '3003', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (529, '3003', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (530, '3003', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (531, '3003', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (532, '3003', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (533, '3003', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (534, '3003', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (535, '3003', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (536, '3003', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (537, '3003', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (538, '3003', NULL, 't2.task_out_id', 'subTaskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (539, '3003', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (540, '3003', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (541, '3003', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (542, '3003', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (543, '3003', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (544, '3003', NULL, 't2.back_task_qty', 'subBackTaskQty', '出库退任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (545, '3003', NULL, 't2.stock_qty', 'subStockQty', '出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (546, '3003', NULL, 't2.excess_ratio_out', 'subExcessRatioOut', '超出库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (547, '3003', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (548, '3003', NULL, 't2.warehouse_code', 'subWarehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (549, '3003', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (550, '3003', NULL, 't2.is_back_flush', 'subIsBackFlush', '是否倒冲', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (551, '3003', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (552, '3003', NULL, 't2.task_ins_id', 'subTaskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (553, '3003', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (554, '3003', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (555, '3003', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (556, '3003', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (557, '3003', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (558, '3003', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (559, '3003', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (560, '3003', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (561, '3003', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (562, '3003', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (563, '3003', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (564, '3003', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (565, '3003', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (566, '3003', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (567, '3003', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (568, '3003', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (569, '3003', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (570, '3003', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (571, '3003', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (572, '3003', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (573, '3003', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (574, '3003', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (575, '3003', NULL, 't6.customer_name', 'customerName', '客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (576, '3003', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (577, '3003', NULL, 'concat(t12.task_code, \'|\', t11.row_number)', 'subTaskInsCode', '入库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (578, '3003', NULL, 't7.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (579, '3003', NULL, 't7.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (580, '3003', NULL, 't8.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (581, '3003', NULL, 't9.warehouse_name', 'subWarehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (582, '3003', NULL, 't10.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (583, '3003', NULL, 't7.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (584, '3003', NULL, 't7.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (585, '3003', NULL, 't13.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (586, '3003', NULL, NULL, 'subSecondaryTaskQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (587, '3003', NULL, 'taskOutStatus', 'parameter_taskOutStatus', '出库状态', '选项', 100, '未全部出库,已全部出库,超比例未全部出库,超比例已全部出库', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (588, '3004', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (589, '3004', NULL, 't1.task_type', 'taskType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (590, '3004', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (591, '3004', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (592, '3004', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (593, '3004', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (594, '3004', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (595, '3004', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (596, '3004', NULL, 't1.customer_code', 'customerCode', '客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (597, '3004', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (598, '3004', NULL, 't1.task_out_id', 'taskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (599, '3004', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (600, '3004', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (601, '3004', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (602, '3004', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (603, '3004', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (604, '3004', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (605, '3004', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (606, '3004', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (607, '3004', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (608, '3004', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (609, '3004', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (610, '3004', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (611, '3004', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (612, '3004', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (613, '3004', NULL, 't2.task_out_id', 'subTaskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (614, '3004', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (615, '3004', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (616, '3004', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (617, '3004', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (618, '3004', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (619, '3004', NULL, 't2.back_task_qty', 'subBackTaskQty', '出库退任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (620, '3004', NULL, 't2.stock_qty', 'subStockQty', '出库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (621, '3004', NULL, 't2.excess_ratio_out', 'subExcessRatioOut', '超出库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (622, '3004', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (623, '3004', NULL, 't2.warehouse_code', 'subWarehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (624, '3004', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (625, '3004', NULL, 't2.is_back_flush', 'subIsBackFlush', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (626, '3004', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (627, '3004', NULL, 't2.task_outs_id', 'subTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (628, '3004', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (629, '3004', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (630, '3004', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (631, '3004', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (632, '3004', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (633, '3004', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (634, '3004', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (635, '3004', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (636, '3004', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (637, '3004', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (638, '3004', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (639, '3004', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (640, '3004', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (641, '3004', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (642, '3004', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (643, '3004', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (644, '3004', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (645, '3004', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (646, '3004', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (647, '3004', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (648, '3004', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (649, '3004', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (650, '3004', NULL, 't6.customer_name', 'customerName', '客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (651, '3004', NULL, 't13.task_code', 'taskOutCode', '出库任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (652, '3004', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (653, '3004', NULL, 'concat(t12.task_code, \'|\', t11.row_number)', 'subTaskOutsCode', '出库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (654, '3004', NULL, 't7.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (655, '3004', NULL, 't7.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (656, '3004', NULL, 't8.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (657, '3004', NULL, 't9.warehouse_name', 'subWarehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (658, '3004', NULL, 't10.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (659, '3004', NULL, 't7.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (660, '3004', NULL, 't7.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (661, '3004', NULL, 't14.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (662, '3004', NULL, 'CASE IFNULL(t7.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t7.secondary_rate,2)  END', 'subSecondaryTaskQty', '辅计量数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (663, '3004', NULL, 'taskOutBackStatus', 'parameter_taskOutBackStatus', '出库退状态', '选项', 100, '未全部出库退,已全部出库退', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (664, '3005', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (665, '3005', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (666, '3005', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (667, '3005', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (668, '3005', NULL, 't1.dept_code_out', 'deptCodeOut', '移出部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (669, '3005', NULL, 't1.dept_code_in', 'deptCodeIn', '移入部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (670, '3005', NULL, 't1.employee_code_out', 'employeeCodeOut', '转出职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (671, '3005', NULL, 't1.employee_code_in', 'employeeCodeIn', '转入职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (672, '3005', NULL, 't1.customer_code_in', 'customerCodeIn', '移入客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (673, '3005', NULL, 't1.warehouse_code_out', 'warehouseCodeOut', '移出仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (674, '3005', NULL, 't1.warehouse_code_in', 'warehouseCodeIn', '移入仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (675, '3005', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (676, '3005', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (677, '3005', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (678, '3005', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (679, '3005', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (680, '3005', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (681, '3005', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (682, '3005', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (683, '3005', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (684, '3005', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (685, '3005', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (686, '3005', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (687, '3005', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (688, '3005', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (689, '3005', NULL, '\'\'', 'nickNames', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (690, '3005', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (691, '3005', NULL, 't2.task_move_id', 'subTaskMoveId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (692, '3005', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (693, '3005', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (694, '3005', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (695, '3005', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (696, '3005', NULL, 't2.stock_qty', 'subStockQty', '移位数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (697, '3005', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (698, '3005', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (699, '3005', NULL, 't2.location_code_out', 'subLocationCodeOut', '移出货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (700, '3005', NULL, 't2.location_code_in', 'subLocationCodeIn', '移入货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (701, '3005', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (702, '3005', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (703, '3005', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (704, '3005', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (705, '3005', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (706, '3005', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (707, '3005', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (708, '3005', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (709, '3005', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (710, '3005', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (711, '3005', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (712, '3005', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (713, '3005', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (714, '3005', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (715, '3005', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (716, '3005', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (717, '3005', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (718, '3005', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (719, '3005', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (720, '3005', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (721, '3005', NULL, 't3.dept_name', 'deptNameOut', '移出部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (722, '3005', NULL, 't4.dept_name', 'deptNameIn', '移入部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (723, '3005', NULL, 't5.employee_name', 'employeeNameOut', '移出职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (724, '3005', NULL, 't6.employee_name', 'employeeNameIn', '移入职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (725, '3005', NULL, 't7.warehouse_name', 'warehouseNameOut', '移出仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (726, '3005', NULL, 't8.warehouse_name', 'warehouseNameIn', '移入仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (727, '3005', NULL, 't7.is_location', 'isLocationOut', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (728, '3005', NULL, 't8.is_location', 'isLocationIn', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (729, '3005', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (730, '3005', NULL, 't9.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (731, '3005', NULL, 't9.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (732, '3005', NULL, 't9.is_package', 'subIsPackage', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (733, '3005', NULL, 't9.is_pallet', 'subIsPallet', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (734, '3005', NULL, 't10.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (735, '3005', NULL, 't11.location_name', 'subLocationNameOut', '移出货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (736, '3005', NULL, 't12.location_name', 'subLocationNameIn', '移入货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (737, '3005', NULL, 't9.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (738, '3005', NULL, 't9.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (739, '3005', NULL, 't13.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (740, '3005', NULL, 't14.customer_name', 'customerNameIn', '移入客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (741, '3005', NULL, NULL, 'subSecondaryTaskQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (742, '3005', NULL, 'taskMoveStatus', 'parameter_taskMoveStatus', '移位状态', '选项', 100, '未全部移位,已全部移位', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (743, '3005', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (744, '3006', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (745, '3006', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (746, '3006', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (747, '3006', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (748, '3006', NULL, 't1.dept_code_out', 'deptCodeOut', '转出部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (749, '3006', NULL, 't1.dept_code_in', 'deptCodeIn', '转入部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (750, '3006', NULL, 't1.employee_code_out', 'employeeCodeOut', '转出职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (751, '3006', NULL, 't1.employee_code_in', 'employeeCodeIn', '转入职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (752, '3006', NULL, 't1.warehouse_code_out', 'warehouseCodeOut', '转出仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (753, '3006', NULL, 't1.warehouse_code_in', 'warehouseCodeIn', '转入仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (754, '3006', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (755, '3006', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (756, '3006', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (757, '3006', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (758, '3006', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (759, '3006', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (760, '3006', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (761, '3006', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (762, '3006', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (763, '3006', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (764, '3006', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (765, '3006', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (766, '3006', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (767, '3006', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (768, '3006', NULL, 't2.task_change_id', 'subTaskChangeId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (769, '3006', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (770, '3006', NULL, 't2.change_group', 'subChangeGroup', '转换组别', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (771, '3006', NULL, 't2.change_type', 'subChangeType', '转换类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (772, '3006', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (773, '3006', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (774, '3006', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (775, '3006', NULL, 't2.excess_ratio_change', 'subExcessRatioChange', '超转换比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (776, '3006', NULL, 't2.stock_qty', 'subStockQty', '转换数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (777, '3006', NULL, 't2.label_qty', 'subLabelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (778, '3006', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (779, '3006', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (780, '3006', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (781, '3006', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (782, '3006', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (783, '3006', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (784, '3006', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (785, '3006', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (786, '3006', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (787, '3006', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (788, '3006', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (789, '3006', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (790, '3006', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (791, '3006', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (792, '3006', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (793, '3006', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (794, '3006', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (795, '3006', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (796, '3006', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (797, '3006', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (798, '3006', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (799, '3006', NULL, 't3.dept_name', 'deptNameOut', '转出部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (800, '3006', NULL, 't4.dept_name', 'deptNameIn', '转入部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (801, '3006', NULL, 't5.employee_name', 'employeeNameOut', '转出职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (802, '3006', NULL, 't6.employee_name', 'employeeNameIn', '转入职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (803, '3006', NULL, 't7.warehouse_name', 'warehouseNameOut', '转出仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (804, '3006', NULL, 't8.warehouse_name', 'warehouseNameIn', '转入仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (805, '3006', NULL, 't7.is_location', 'isLocationOut', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (806, '3006', NULL, 't8.is_location', 'isLocationIn', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (807, '3006', NULL, NULL, 'subTaskCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (808, '3006', NULL, 't9.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (809, '3006', NULL, 't9.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (810, '3006', NULL, 't10.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (811, '3006', NULL, 't11.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (812, '3006', NULL, 't9.is_batch', 'subIsBatch', '是否启用批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (813, '3006', NULL, 't9.label_standard_quantity', 'subLabelStandardQuantity', '标签标准量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (814, '3006', NULL, 't9.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (815, '3006', NULL, 't9.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (816, '3006', NULL, 't13.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (817, '3006', NULL, NULL, 'subSecondaryTaskQty', '辅计量数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (818, '3007', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (819, '3007', NULL, 't1.task_type', 'taskType', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (820, '3007', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (821, '3007', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (822, '3007', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (823, '3007', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (824, '3007', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (825, '3007', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (826, '3007', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (827, '3007', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (828, '3007', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (829, '3007', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (830, '3007', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (831, '3007', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (832, '3007', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (833, '3007', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (834, '3007', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (835, '3007', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (836, '3007', NULL, 't1.is_create', 'isCreate', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (837, '3007', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (838, '3007', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (839, '3007', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (840, '3007', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (841, '3007', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (842, '3007', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (843, '3007', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (844, '3007', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (845, '3007', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (846, '3007', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (847, '3007', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (848, '3007', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (849, '3007', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (850, '3007', NULL, 't2.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (851, '3007', NULL, 't3.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (852, '3007', NULL, 't4.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (853, '3007', NULL, 't5.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (854, '3007', NULL, 't6.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (855, '3007', NULL, 't7.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (856, '3007', NULL, 't8.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (857, '3007', NULL, 't8.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (858, '3007', NULL, 't9.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (859, '3007', NULL, 't10.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (860, '3008', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (861, '3008', NULL, 't1.label_type', 'labelType', '标签类型', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (862, '3008', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (863, '3008', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (864, '3008', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (865, '3008', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (866, '3008', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (867, '3008', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (868, '3008', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (869, '3008', NULL, 't1.label_qty', 'labelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (870, '3008', NULL, 't1.in_stock_qty', 'inStockQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (871, '3008', NULL, 't1.out_stock_qty', 'outStockQty', '出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (872, '3008', NULL, 't1.label_describe', 'labelDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (873, '3008', NULL, 't1.task_ins_id', 'taskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (874, '3008', NULL, 't1.task_changes_id', 'taskChangesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (875, '3008', NULL, 't1.stock_ins_id', 'stockInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (876, '3008', NULL, 't1.stock_changes_id', 'stockChangesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (877, '3008', NULL, 't1.print_count', 'printCount', '打印次数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (878, '3008', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (879, '3008', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (880, '3008', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (881, '3008', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (882, '3008', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (883, '3008', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (884, '3008', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (885, '3008', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (886, '3008', NULL, 't1.create_time', 'createTime', '创建时间', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (887, '3008', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (888, '3008', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (889, '3008', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (890, '3008', NULL, NULL, 'taskInsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (891, '3008', NULL, NULL, 'taskChangesCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (892, '3008', NULL, NULL, 'interfaceInsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (893, '3008', NULL, 't3.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (894, '3008', NULL, 't4.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (895, '3008', NULL, 't4.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (896, '3008', NULL, 't5.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (897, '3008', NULL, 't6.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (898, '3008', NULL, NULL, 'locationCode', '', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (899, '3008', NULL, NULL, 'locationName', '', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (900, '3008', NULL, NULL, 'warehouseCode', '', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (901, '3008', NULL, NULL, 'warehouseName', '', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (902, '3008', NULL, 't3.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (903, '3008', NULL, 't10.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (904, '3008', NULL, 't11.change_type', 'changeType', '转换类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (905, '3008', NULL, 't11.change_group', 'changeGroup', '转换组别', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (906, '3008', NULL, 't2.extend_code01', 'taskInsExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (907, '3008', NULL, 't4.extend_code01', 'materialExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (908, '3008', NULL, 't4.extend_code02', 'materialExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (909, '3008', NULL, '(select sum(stock_qty) from wms_current_stock t             <where>                 t1.label_code = t.label_code                 <if test=\"warehouseCode != null and warehouseCode != \'\'\">and t.warehouse_code = #{warehouseCode}</if>             </where>             )', 'stockQty', '', '数字', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (910, '3008', NULL, 'labelInStatus', 'parameter_labelInStatus', '入库状态', '选项', 100, '未全部入库,已全部入库', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (911, '3008', NULL, 'labelOutStatus', 'parameter_labelOutStatus', '出库状态', '选项', 100, '未全部出库,已全部出库', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (912, '3008', NULL, 'warehouseCode', 'parameter_warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (913, '3009', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (914, '3009', NULL, 't1.label_type', 'labelType', '标签类型', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (915, '3009', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (916, '3009', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (917, '3009', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (918, '3009', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (919, '3009', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (920, '3009', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (921, '3009', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (922, '3009', NULL, 't1.label_qty', 'labelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (923, '3009', NULL, 't1.in_stock_qty', 'inStockQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (924, '3009', NULL, 't1.out_stock_qty', 'outStockQty', '出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (925, '3009', NULL, 't1.label_describe', 'labelDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (926, '3009', NULL, 't1.task_ins_id', 'taskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (927, '3009', NULL, 't1.task_changes_id', 'taskChangesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (928, '3009', NULL, 't1.stock_ins_id', 'stockInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (929, '3009', NULL, 't1.stock_changes_id', 'stockChangesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (930, '3009', NULL, 't1.print_count', 'printCount', '打印次数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (931, '3009', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (932, '3009', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (933, '3009', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (934, '3009', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (935, '3009', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (936, '3009', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (937, '3009', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (938, '3009', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (939, '3009', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (940, '3009', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (941, '3009', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (942, '3009', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (943, '3009', NULL, NULL, 'taskInsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (944, '3009', NULL, NULL, 'taskChangesCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (945, '3009', NULL, NULL, 'interfaceInsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (946, '3009', NULL, 't3.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (947, '3009', NULL, 't4.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (948, '3009', NULL, 't4.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (949, '3009', NULL, 't5.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (950, '3009', NULL, 't6.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (951, '3009', NULL, NULL, 'locationCode', '', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (952, '3009', NULL, NULL, 'locationName', '', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (953, '3009', NULL, NULL, 'warehouseCode', '', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (954, '3009', NULL, NULL, 'warehouseName', '', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (955, '3009', NULL, 't3.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (956, '3009', NULL, 't10.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (957, '3009', NULL, 't11.change_type', 'changeType', '转换类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (958, '3009', NULL, 't11.change_group', 'changeGroup', '转换组别', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (959, '3009', NULL, 't2.extend_code01', 'taskInsExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (960, '3009', NULL, 't4.extend_code01', 'materialExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (961, '3009', NULL, 't4.extend_code02', 'materialExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (962, '3010', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (963, '3010', NULL, 't1.lock_code', 'lockCode', '冻结编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (964, '3010', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (965, '3010', NULL, 't2.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (966, '3010', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (967, '3010', NULL, 't3.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (968, '3010', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (969, '3010', NULL, 't4.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (970, '3010', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (971, '3010', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (972, '3010', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (973, '3010', NULL, 't5.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (974, '3010', NULL, 't5.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (975, '3010', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (976, '3010', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (977, '3010', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (978, '3010', NULL, 't1.lock_describe', 'lockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (979, '3010', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (980, '3010', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (981, '3010', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (982, '3010', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (983, '3010', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (984, '3010', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (985, '3010', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (986, '3010', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (987, '3010', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (988, '3010', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (989, '3010', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (990, '3010', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (991, '3011', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (992, '3011', NULL, 't1.task_type', 'taskType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (993, '3011', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (994, '3011', NULL, 't1.task_code', 'taskCode', '任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (995, '3011', NULL, 't1.task_date', 'taskDate', '任务日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (996, '3011', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (997, '3011', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (998, '3011', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (999, '3011', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1000, '3011', NULL, 't1.interface_id', 'interfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1001, '3011', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1002, '3011', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1003, '3011', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1004, '3011', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1005, '3011', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1006, '3011', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1007, '3011', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1008, '3011', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1009, '3011', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1010, '3011', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1011, '3011', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1012, '3011', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1013, '3011', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1014, '3011', NULL, 't2.task_in_id', 'subTaskInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1015, '3011', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1016, '3011', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1017, '3011', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1018, '3011', NULL, 't2.excess_ratio_in', 'subExcessRatioIn', '超入库比例', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1019, '3011', NULL, 't2.task_qty', 'subTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1020, '3011', NULL, 't2.back_task_qty', 'subBackTaskQty', '入库退任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1021, '3011', NULL, 't2.label_qty', 'subLabelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1022, '3011', NULL, 't2.stock_qty', 'subStockQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1023, '3011', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1024, '3011', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1025, '3011', NULL, 't2.warehouse_code', 'subWarehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1026, '3011', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1027, '3011', NULL, 't2.task_describe', 'subTaskDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1028, '3011', NULL, 't2.status', 'subStatus', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (1029, '3011', NULL, 't2.is_close', 'subIsClose', '是否关闭', '数字', 100, '', '', '', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (1030, '3011', NULL, 't2.interface_id', 'subInterfaceId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1031, '3011', NULL, 't2.interface_row', 'subInterfaceRow', '接口行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1032, '3011', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1033, '3011', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1034, '3011', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1035, '3011', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1036, '3011', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1037, '3011', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1038, '3011', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1039, '3011', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1040, '3011', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1041, '3011', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1042, '3011', NULL, 't2.audit_by', 'subAuditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1043, '3011', NULL, 't2.audit_time', 'subAuditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1044, '3011', NULL, 't2.close_by', 'subCloseBy', '关闭者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1045, '3011', NULL, 't2.close_time', 'subCloseTime', '关闭时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1046, '3011', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1047, '3011', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1048, '3011', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1049, '3011', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1050, '3011', NULL, 'concat(t1.task_code, \'|\', t2.row_number)', 'subTaskCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1051, '3011', NULL, 't6.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1052, '3011', NULL, 't6.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1053, '3011', NULL, 't7.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1054, '3011', NULL, 't8.warehouse_name', 'subWarehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1055, '3011', NULL, 't9.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1056, '3011', NULL, 't6.is_batch', 'subIsBatch', '是否启用批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1057, '3011', NULL, 't6.label_standard_quantity', 'subLabelStandardQuantity', '标签标准量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1058, '3011', NULL, 't6.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1059, '3011', NULL, 't6.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1060, '3011', NULL, 't10.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1061, '3011', NULL, 'CASE IFNULL(t6.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.task_qty/t6.secondary_rate,2)  END', 'subSecondaryTaskQty', '辅计量数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1062, '3011', NULL, 'taskLabelStatus', 'parameter_taskLabelStatus', '标签状态', '选项', 100, '未全部拆标签,已全部拆标签,超比例未全部拆标签,超比例已全部拆标签', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1063, '3011', NULL, 'taskInStatus', 'parameter_taskInStatus', '入库状态', '选项', 100, '未全部入库,已全部入库,超比例未全部入库,超比例已全部入库', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1064, '3012', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1065, '3012', NULL, 't1.label_type', 'labelType', '标签类型', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1066, '3012', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1067, '3012', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1068, '3012', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1069, '3012', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1070, '3012', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1071, '3012', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1072, '3012', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1073, '3012', NULL, 't1.label_qty', 'labelQty', '标签数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1074, '3012', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', NULL, NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1075, '3012', NULL, 't1.status', 'status', '有效状态', '文本', 100, '', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1076, '3013', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1077, '3013', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1078, '3013', NULL, 't1.row_number', 'rowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1079, '3013', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1080, '3013', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1081, '3013', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1082, '3013', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1083, '3013', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1084, '3013', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1085, '3013', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1086, '3013', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1087, '3013', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1088, '3013', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1089, '3013', NULL, 't1.task_qty', 'taskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1090, '3013', NULL, 't1.task_describe', 'taskDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1091, '3013', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1092, '3013', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1093, '3013', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1094, '3013', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1095, '3013', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1096, '3013', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1097, '3013', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1098, '3013', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1099, '3013', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1100, '3013', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1101, '3013', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1102, '3013', NULL, 't2.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1103, '3013', NULL, 't3.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1104, '3013', NULL, 't4.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1105, '3013', NULL, 't5.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1106, '3013', NULL, 't6.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1107, '3013', NULL, 't6.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1108, '3013', NULL, 't7.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1109, '4001', NULL, 't1.id', 'id', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1110, '4001', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1111, '4001', NULL, 't1.stock_code', 'stockCode', '入库编码', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1112, '4001', NULL, 't1.stock_date', 'stockDate', '入库日期', '日期', 100, '2024-11-18', '', '', '2024-11-18', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1113, '4001', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, NULL, 'dept', 'deptCode', '', NULL, 1, 1);
INSERT INTO `set_table_infos` VALUES (1114, '4001', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, NULL, 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1115, '4001', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, NULL, 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1116, '4001', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, NULL, 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1117, '4001', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1118, '4001', NULL, 't1.task_in_id', 'taskInId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1119, '4001', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1120, '4001', NULL, 't1.status', 'status', '审核状态', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1121, '4001', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1122, '4001', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1123, '4001', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1124, '4001', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1125, '4001', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1126, '4001', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1127, '4001', NULL, 't1.create_id', 'createId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1128, '4001', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, NULL, 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1129, '4001', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1130, '4001', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, NULL, 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1131, '4001', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1132, '4001', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, NULL, 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1133, '4001', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1134, '4001', NULL, 't1.remark', 'remark', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1135, '4001', NULL, 't1.guid', 'guid', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1136, '4001', NULL, 't2.id', 'subId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1137, '4001', NULL, 't2.stock_in_id', 'subStockInId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1138, '4001', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1139, '4001', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1140, '4001', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, NULL, 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1141, '4001', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, NULL, 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1142, '4001', NULL, 't2.stock_qty', 'subStockQty', '入库数量', '数字', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1143, '4001', NULL, 't2.back_stock_qty', 'subBackStockQty', '入库退数量', '数字', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1144, '4001', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1145, '4001', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1146, '4001', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1147, '4001', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, NULL, 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1148, '4001', NULL, 't2.pallet_code', 'subPalletCode', '托盘编码', '文本', 100, NULL, 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1149, '4001', NULL, 't2.package_code', 'subPackageCode', '包装编码', '文本', 100, NULL, 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1150, '4001', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1151, '4001', NULL, 't2.task_ins_id', 'subTaskInsId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1152, '4001', NULL, 't2.task_checks_id', 'subTaskChecksId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1153, '4001', NULL, 't2.stock_checks_id', 'subStockChecksId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1154, '4001', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1155, '4001', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1156, '4001', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1157, '4001', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1158, '4001', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1159, '4001', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1160, '4001', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1161, '4001', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1162, '4001', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1163, '4001', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1164, '4001', NULL, 't2.remark', 'subRemark', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1165, '4001', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, NULL, 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1166, '4001', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, NULL, 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1167, '4001', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, NULL, 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1168, '4001', '', 't6.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, NULL, 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1169, '4001', NULL, 't6.is_location', 'isLocation', '是否启用货位', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1170, '4001', NULL, 't12.extend_name', 'extendName01', '收发类别', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1171, '4001', NULL, 't13.extend_name', 'extendName02', '废品类别', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1172, '4001', NULL, 't14.extend_name', 'extendName03', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1173, '4001', NULL, 't15.task_code', 'taskInCode', '入库任务编码', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1174, '4001', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '入库单据编码|行号', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1175, '4001', NULL, 'concat(t17.task_code, \'|\', t16.row_number)', 'subTaskInsCode', '入库任务编码|行号', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1176, '4001', NULL, 't10.material_name', 'subMaterialName', '物料名称', '文本', 100, NULL, 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1177, '4001', NULL, 't10.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, NULL, 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1178, '4001', NULL, 't11.unit_name', 'subUnitName', '单位名称', '文本', 100, NULL, 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1179, '4001', NULL, 't7.location_name', 'subLocationName', '货位名称', '文本', 100, NULL, 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1180, '4001', NULL, 't8.pallet_name', 'subPalletName', '托盘名称', '文本', 100, NULL, 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1181, '4001', NULL, 't9.package_name', 'subPackageName', '包装名称', '文本', 100, NULL, 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1182, '4001', NULL, 't10.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1183, '4001', NULL, 't10.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, NULL, 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1184, '4001', NULL, 't18.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, NULL, 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1185, '4001', NULL, 't24.id', 'subLabelId', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1186, '4001', NULL, NULL, 'subSecondaryStockQty', '', '文本', 100, NULL, '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1187, '4001', NULL, 'taskInBackStatus', 'parameter_taskInBackStatus', '入库退状态', '选项', 100, '未全部入库退,已全部入库退', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1188, '4001', NULL, 'interfaceStatus', 'parameter_interfaceStatus', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1189, '4001', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1190, '4001', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1191, '4002', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1192, '4002', NULL, 't1.stock_type', 'stockType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1193, '4002', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1194, '4002', NULL, 't1.stock_code', 'stockCode', '入库退编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1195, '4002', NULL, 't1.stock_date', 'stockDate', '入库退日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1196, '4002', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1197, '4002', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1198, '4002', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1199, '4002', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1200, '4002', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1201, '4002', NULL, 't1.back_task_in_id', 'backTaskInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1202, '4002', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1203, '4002', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1204, '4002', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1205, '4002', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1206, '4002', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1207, '4002', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1208, '4002', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1209, '4002', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1210, '4002', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1211, '4002', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1212, '4002', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1213, '4002', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1214, '4002', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1215, '4002', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1216, '4002', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1217, '4002', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1218, '4002', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1219, '4002', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1220, '4002', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1221, '4002', NULL, 't1.guid', 'guid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1222, '4002', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1223, '4002', NULL, 't2.stock_in_id', 'subStockInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1224, '4002', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1225, '4002', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1226, '4002', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1227, '4002', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1228, '4002', NULL, 't2.stock_qty', 'subStockQty', '入库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1229, '4002', NULL, 't2.back_stock_qty', 'subBackStockQty', '入库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1230, '4002', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1231, '4002', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1232, '4002', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1233, '4002', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1234, '4002', NULL, 't2.pallet_code', 'subPalletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1235, '4002', NULL, 't2.package_code', 'subPackageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1236, '4002', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1237, '4002', NULL, 't2.back_task_ins_id', 'subBackTaskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1238, '4002', NULL, 't2.task_ins_id', 'subTaskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1239, '4002', NULL, 't2.stock_ins_id', 'subStockInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1240, '4002', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1241, '4002', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1242, '4002', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1243, '4002', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1244, '4002', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1245, '4002', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1246, '4002', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1247, '4002', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1248, '4002', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1249, '4002', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1250, '4002', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1251, '4002', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1252, '4002', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1253, '4002', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1254, '4002', NULL, 't6.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1255, '4002', NULL, 't12.extend_name', 'extendName01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1256, '4002', NULL, 't13.extend_name', 'extendName02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1257, '4002', NULL, 't14.extend_name', 'extendName03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1258, '4002', NULL, 't15.task_code', 'backTaskInCode', '入库任务退编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1259, '4002', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '入库退编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1260, '4002', NULL, 'concat(t17.task_code, \'|\', t16.row_number)', 'subBackTaskInsCode', '任务退编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1261, '4002', NULL, 'concat(t19.task_code, \'|\', t18.row_number)', 'subTaskInsCode', '入库任务退编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1262, '4002', NULL, 'concat(t21.stock_code, \'|\', t20.row_number)', 'subStockInsCode', '入库编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1263, '4002', NULL, 't10.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1264, '4002', NULL, 't10.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1265, '4002', NULL, 't11.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1266, '4002', NULL, 't7.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1267, '4002', NULL, 't8.pallet_name', 'subPalletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1268, '4002', NULL, 't9.package_name', 'subPackageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1269, '4002', NULL, 't10.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1270, '4002', NULL, 't10.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1271, '4002', NULL, 't22.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1272, '4002', NULL, 't24.id', 'subLabelId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1273, '4002', NULL, 'CASE IFNULL(t10.secondary_rate,0) WHEN 0 THEN NULL ELSE ROUND(t2.stock_qty/t10.secondary_rate,2)  END', 'subSecondaryStockQty', '辅计量数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1274, '4002', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1275, '4002', NULL, 'interfaceStatus', 'parameter_interfaceStatus', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1276, '4003', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1277, '4003', NULL, 't1.stock_type', 'stockType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1278, '4003', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1279, '4003', NULL, 't1.stock_code', 'stockCode', '出库编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1280, '4003', NULL, 't1.stock_date', 'stockDate', '出库日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1281, '4003', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1282, '4003', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1283, '4003', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1284, '4003', NULL, 't1.customer_code', 'customerCode', '客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1285, '4003', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1286, '4003', NULL, 't1.is_supplement', 'isSupplement', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1287, '4003', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1288, '4003', NULL, 't1.task_out_id', 'taskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1289, '4003', NULL, 't1.back_task_out_id', 'backTaskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1290, '4003', NULL, 't1.stock_in_id', 'stockInId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1291, '4003', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1292, '4003', NULL, 't1.status', 'status', '审核状态', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1293, '4003', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1294, '4003', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1295, '4003', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1296, '4003', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1297, '4003', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1298, '4003', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1299, '4003', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1300, '4003', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1301, '4003', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1302, '4003', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1303, '4003', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1304, '4003', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1305, '4003', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1306, '4003', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1307, '4003', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1308, '4003', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1309, '4003', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1310, '4003', NULL, 't1.guid', 'guid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1311, '4003', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1312, '4003', NULL, 't2.stock_out_id', 'subStockOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1313, '4003', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1314, '4003', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1315, '4003', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1316, '4003', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1317, '4003', NULL, 't2.stock_qty', 'subStockQty', '出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1318, '4003', NULL, 't2.back_stock_qty', 'subBackStockQty', '出库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1319, '4003', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1320, '4003', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1321, '4003', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1322, '4003', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1323, '4003', NULL, 't2.pallet_code', 'subPalletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1324, '4003', NULL, 't2.package_code', 'subPackageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1325, '4003', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1326, '4003', NULL, 't2.task_outs_id', 'subTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1327, '4003', NULL, 't2.back_task_outs_id', 'subBackTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1328, '4003', NULL, 't2.stock_outs_id', 'subStockOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1329, '4003', NULL, 't2.stock_ins_id', 'subStockInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1330, '4003', NULL, 't2.task_checks_id', 'subTaskChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1331, '4003', NULL, 't2.stock_checks_id', 'subStockChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1332, '4003', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1333, '4003', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1334, '4003', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1335, '4003', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1336, '4003', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1337, '4003', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1338, '4003', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1339, '4003', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1340, '4003', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1341, '4003', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1342, '4003', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1343, '4003', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1344, '4003', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1345, '4003', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1346, '4003', NULL, 't6.customer_name', 'customerName', '客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1347, '4003', '', 't7.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1348, '4003', NULL, 't7.is_location', 'isLocation', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1349, '4003', NULL, 't13.extend_name', 'extendName01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1350, '4003', NULL, 't14.extend_name', 'extendName02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1351, '4003', NULL, 't15.extend_name', 'extendName03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1352, '4003', NULL, 't16.extend_name', 'extendName04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1353, '4003', NULL, 't17.task_code', 'taskOutCode', '出库任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1354, '4003', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '出库编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1355, '4003', NULL, 'concat(t19.task_code, \'|\', t18.row_number)', 'subTaskOutsCode', '出库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1356, '4003', NULL, 't11.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1357, '4003', NULL, 't11.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1358, '4003', NULL, 't12.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1359, '4003', NULL, 't8.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1360, '4003', NULL, 't9.pallet_name', 'subPalletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1361, '4003', NULL, 't10.package_name', 'subPackageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1362, '4003', NULL, 't11.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1363, '4003', NULL, 't11.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1364, '4003', NULL, 't20.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1365, '4003', NULL, 't24.id', 'subLabelId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1366, '4003', NULL, NULL, 'subSecondaryStockQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1367, '4003', NULL, 't11.extend_code01', 'subMaterialExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1368, '4003', NULL, 'taskOutBackStatus', 'parameter_taskOutBackStatus', '出库退状态', '选项', 100, '未全部出库退,已全部出库退', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1369, '4003', NULL, 'interfaceStatus', 'parameter_interfaceStatus', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1370, '4004', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1371, '4004', NULL, 't1.stock_type', 'stockType', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1372, '4004', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1373, '4004', NULL, 't1.stock_code', 'stockCode', '出库退编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1374, '4004', NULL, 't1.stock_date', 'stockDate', '出库退日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1375, '4004', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1376, '4004', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1377, '4004', NULL, 't1.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1378, '4004', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1379, '4004', NULL, 't1.is_supplement', 'isSupplement', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1380, '4004', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1381, '4004', NULL, 't1.back_task_out_id', 'backTaskOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1382, '4004', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1383, '4004', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1384, '4004', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1385, '4004', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1386, '4004', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1387, '4004', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1388, '4004', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1389, '4004', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1390, '4004', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1391, '4004', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1392, '4004', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1393, '4004', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1394, '4004', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1395, '4004', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1396, '4004', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1397, '4004', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1398, '4004', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1399, '4004', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1400, '4004', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1401, '4004', NULL, 't1.guid', 'guid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1402, '4004', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1403, '4004', NULL, 't2.stock_out_id', 'subStockOutId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1404, '4004', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1405, '4004', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1406, '4004', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1407, '4004', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1408, '4004', NULL, 't2.stock_qty', 'subStockQty', '出库退数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1409, '4004', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1410, '4004', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1411, '4004', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1412, '4004', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1413, '4004', NULL, 't2.pallet_code', 'subPalletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1414, '4004', NULL, 't2.package_code', 'subPackageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1415, '4004', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1416, '4004', NULL, 't2.back_task_outs_id', 'subBackTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1417, '4004', NULL, 't2.task_outs_id', 'subTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1418, '4004', NULL, 't2.stock_outs_id', 'subStockOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1419, '4004', NULL, 't2.task_checks_id', 'subTaskChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1420, '4004', NULL, 't2.stock_checks_id', 'subStockChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1421, '4004', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1422, '4004', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1423, '4004', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1424, '4004', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1425, '4004', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1426, '4004', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1427, '4004', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1428, '4004', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1429, '4004', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1430, '4004', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1431, '4004', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1432, '4004', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1433, '4004', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1434, '4004', NULL, 't5.supplier_name', 'supplierName', '供应商名称', '文本', 100, '', 'supplier', 'supplierName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1435, '4004', NULL, 't6.customer_name', 'customerName', '客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1436, '4004', NULL, 't7.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1437, '4004', NULL, 't7.is_location', 'isLocation', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1438, '4004', NULL, 't13.extend_name', 'extendName01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1439, '4004', NULL, 't14.extend_name', 'extendName02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1440, '4004', NULL, 't15.extend_name', 'extendName03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1441, '4004', NULL, 't16.extend_name', 'extendName04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1442, '4004', NULL, 't17.task_code', 'backTaskOutCode', '出库任务退编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1443, '4004', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '出库退编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1444, '4004', NULL, 'concat(t19.task_code, \'|\', t18.row_number)', 'subBackTaskOutsCode', '任务退编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1445, '4004', NULL, NULL, 'subTaskOutsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1446, '4004', NULL, NULL, 'subStockOutsCode', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1447, '4004', NULL, 't11.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1448, '4004', NULL, 't11.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1449, '4004', NULL, 't12.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1450, '4004', NULL, 't8.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1451, '4004', NULL, 't9.pallet_name', 'subPalletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1452, '4004', NULL, 't10.package_name', 'subPackageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1453, '4004', NULL, 't11.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1454, '4004', NULL, 't11.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1455, '4004', NULL, 't24.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1456, '4004', NULL, 't25.id', 'subLabelId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1457, '4004', NULL, NULL, 'subSecondaryStockQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1458, '4004', NULL, 't11.extend_code01', 'subMaterialExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1459, '4004', NULL, 'interfaceStatus ', 'parameter_interfaceStatus ', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1460, '4005', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1461, '4005', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1462, '4005', NULL, 't1.stock_code', 'stockCode', '移位编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1463, '4005', NULL, 't1.stock_date', 'stockDate', '移位日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1464, '4005', NULL, 't1.dept_code_out', 'deptCodeOut', '移出部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1465, '4005', NULL, 't1.dept_code_in', 'deptCodeIn', '移入部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1466, '4005', NULL, 't1.employee_code_out', 'employeeCodeOut', '移出职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1467, '4005', NULL, 't1.employee_code_in', 'employeeCodeIn', '移入职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1468, '4005', NULL, 't1.customer_code_in', 'customerCodeIn', '移入客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1469, '4005', NULL, 't1.warehouse_code_out', 'warehouseCodeOut', '移出仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1470, '4005', NULL, 't1.warehouse_code_in', 'warehouseCodeIn', '移入仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1471, '4005', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1472, '4005', NULL, 't1.task_move_id', 'taskMoveId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1473, '4005', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1474, '4005', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1475, '4005', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1476, '4005', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1477, '4005', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1478, '4005', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1479, '4005', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1480, '4005', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1481, '4005', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1482, '4005', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1483, '4005', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1484, '4005', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1485, '4005', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1486, '4005', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1487, '4005', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1488, '4005', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1489, '4005', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1490, '4005', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1491, '4005', NULL, 't1.guid', 'guid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1492, '4005', NULL, 't3.dept_name', 'deptNameOut', '移出部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1493, '4005', NULL, 't4.dept_name', 'deptNameIn', '移入部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1494, '4005', NULL, 't5.employee_name', 'employeeNameOut', '移出职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1495, '4005', NULL, 't6.employee_name', 'employeeNameIn', '移入职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1496, '4005', NULL, 't25.customer_name', 'customerNameIn', '移入客户名称', '文本', 100, '', 'customer', 'customerName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1497, '4005', NULL, 't7.warehouse_name', 'warehouseNameOut', '移出仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1498, '4005', NULL, 't8.warehouse_name', 'warehouseNameIn', '移入仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1499, '4005', NULL, 't17.task_code', 'taskMoveCode', '移位任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1500, '4005', NULL, 't7.is_location', 'isLocationOut', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1501, '4005', NULL, 't8.is_location', 'isLocationIn', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1502, '4005', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1503, '4005', NULL, 't2.stock_move_id', 'subStockMoveId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1504, '4005', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1505, '4005', NULL, 't2.location_code_out', 'subLocationCodeOut', '移出货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1506, '4005', NULL, 't2.location_code_in', 'subLocationCodeIn', '移入货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1507, '4005', NULL, 't2.pallet_code_out', 'subPalletCodeOut', '移出托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1508, '4005', NULL, 't2.pallet_code_in', 'subPalletCodeIn', '移入托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1509, '4005', NULL, 't2.package_code_out', 'subPackageCodeOut', '转出包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1510, '4005', NULL, 't2.package_code_in', 'subPackageCodeIn', '转入包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1511, '4005', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1512, '4005', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1513, '4005', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1514, '4005', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1515, '4005', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1516, '4005', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1517, '4005', NULL, 't2.stock_qty', 'subStockQty', '移位数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1518, '4005', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1519, '4005', NULL, 't2.task_moves_id', 'subTaskMovesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1520, '4005', NULL, 't2.task_outs_id', 'subTaskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1521, '4005', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1522, '4005', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1523, '4005', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1524, '4005', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1525, '4005', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1526, '4005', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1527, '4005', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1528, '4005', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1529, '4005', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1530, '4005', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1531, '4005', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1532, '4005', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '移位编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1533, '4005', NULL, 'concat(t22.task_code,\'|\',t21.row_number)', 'subTaskMovesCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1534, '4005', NULL, 't11.location_name', 'subLocationNameOut', '移出货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1535, '4005', NULL, 't12.location_name', 'subLocationNameIn', '移入货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1536, '4005', NULL, 't9.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1537, '4005', NULL, 't9.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1538, '4005', NULL, 't10.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1539, '4005', NULL, 't13.pallet_name', 'subPalletNameOut', '移出托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1540, '4005', NULL, 't14.pallet_name', 'subPalletNameIn', '移入托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1541, '4005', NULL, 't15.package_name', 'subPackageNameOut', '移出包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1542, '4005', NULL, 't16.package_name', 'subPackageNameIn', '移入包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1543, '4005', NULL, 't9.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1544, '4005', NULL, 't9.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1545, '4005', NULL, 't23.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1546, '4005', NULL, NULL, 'subSecondaryStockQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1547, '4005', NULL, 't24.id', 'subLabelId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1548, '4005', NULL, 't9.is_package', 'subIsPackage', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1549, '4005', NULL, 't9.is_pallet', 'subIsPallet', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1550, '4005', NULL, 'interfaceStatus', 'parameter_interfaceStatus', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1551, '4005', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1552, '4006', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1553, '4006', NULL, 't1.bill_type_code', 'billTypeCode', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1554, '4006', NULL, 't1.stock_code', 'stockCode', '转换编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1555, '4006', NULL, 't1.stock_date', 'stockDate', '转换日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1556, '4006', NULL, 't1.dept_code_out', 'deptCodeOut', '转出部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1557, '4006', NULL, 't1.dept_code_in', 'deptCodeIn', '转入部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1558, '4006', NULL, 't1.employee_code_out', 'employeeCodeOut', '转出职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1559, '4006', NULL, 't1.employee_code_in', 'employeeCodeIn', '转入职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1560, '4006', NULL, 't1.warehouse_code_out', 'warehouseCodeOut', '转出仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1561, '4006', NULL, 't1.warehouse_code_in', 'warehouseCodeIn', '转入仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1562, '4006', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1563, '4006', NULL, 't1.task_change_id', 'taskChangeId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1564, '4006', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1565, '4006', NULL, 't1.interface_read', 'interfaceRead', '接口是否读取', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1566, '4006', NULL, 't1.interface_status', 'interfaceStatus', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1567, '4006', NULL, 't1.interface_code', 'interfaceCode', '接口编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1568, '4006', NULL, 't1.interface_message', 'interfaceMessage', '接口信息', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1569, '4006', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1570, '4006', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1571, '4006', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1572, '4006', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1573, '4006', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1574, '4006', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1575, '4006', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1576, '4006', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1577, '4006', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1578, '4006', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1579, '4006', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1580, '4006', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1581, '4006', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1582, '4006', NULL, 't2.id', 'subId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1583, '4006', NULL, 't2.stock_change_id', 'subStockChangeId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1584, '4006', NULL, 't2.row_number', 'subRowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1585, '4006', NULL, 't2.change_type', 'subChangeType', '转换类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1586, '4006', NULL, 't2.change_group', 'subChangeGroup', '转换组别', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1587, '4006', NULL, 't2.location_code', 'subLocationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1588, '4006', NULL, 't2.pallet_code', 'subPalletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1589, '4006', NULL, 't2.package_code', 'subPackageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1590, '4006', NULL, 't2.label_code', 'subLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1591, '4006', NULL, 't2.material_code', 'subMaterialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1592, '4006', NULL, 't2.batch', 'subBatch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1593, '4006', NULL, 't2.batch1', 'subBatch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1594, '4006', NULL, 't2.batch2', 'subBatch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1595, '4006', NULL, 't2.unit_code', 'subUnitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1596, '4006', NULL, 't2.stock_qty', 'subStockQty', '转换数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1597, '4006', NULL, 't2.stock_describe', 'subStockDescribe', '明细描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1598, '4006', NULL, 't2.task_changes_id', 'subTaskChangesId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1599, '4006', NULL, 't2.extend_code01', 'subExtendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1600, '4006', NULL, 't2.extend_code02', 'subExtendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1601, '4006', NULL, 't2.extend_code03', 'subExtendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1602, '4006', NULL, 't2.extend_code04', 'subExtendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1603, '4006', NULL, 't2.extend_code05', 'subExtendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1604, '4006', NULL, 't2.create_id', 'subCreateId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1605, '4006', NULL, 't2.create_by', 'subCreateBy', '明细创建者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1606, '4006', NULL, 't2.create_time', 'subCreateTime', '明细创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1607, '4006', NULL, 't2.update_by', 'subUpdateBy', '明细更新者', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1608, '4006', NULL, 't2.update_time', 'subUpdateTime', '明细更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1609, '4006', NULL, 't2.remark', 'subRemark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1610, '4006', NULL, 't3.dept_name', 'deptNameOut', '转出部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1611, '4006', NULL, 't4.dept_name', 'deptNameIn', '转入部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1612, '4006', NULL, 't5.employee_name', 'employeeNameOut', '转出职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1613, '4006', NULL, 't6.employee_name', 'employeeNameIn', '转入职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1614, '4006', NULL, 't7.warehouse_name', 'warehouseNameOut', '转出仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1615, '4006', NULL, 't7.is_location', 'isLocationOut', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1616, '4006', NULL, 't8.warehouse_name', 'warehouseNameIn', '转入仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1617, '4006', NULL, 't8.is_location', 'isLocationIn', '是否启用货位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1618, '4006', NULL, 't18.extend_name', 'extendName01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1619, '4006', NULL, 't19.extend_name', 'extendName02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1620, '4006', NULL, 't20.nick_name', 'extendName04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1621, '4006', NULL, 't17.task_code', 'taskMoveCode', '转换任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1622, '4006', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'subStockCode', '转换编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1623, '4006', NULL, 'concat(t22.task_code,\'|\',t21.row_number)', 'subTaskChangesCode', '任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1624, '4006', NULL, 't11.location_name', 'subLocationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1625, '4006', NULL, 't9.material_name', 'subMaterialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1626, '4006', NULL, 't9.material_specification', 'subMaterialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1627, '4006', NULL, 't10.unit_name', 'subUnitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1628, '4006', NULL, 't13.pallet_name', 'subPalletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1629, '4006', NULL, 't15.package_name', 'subPackageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1630, '4006', NULL, 't9.secondary_rate', 'subSecondaryRate', '转换率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1631, '4006', NULL, 't9.secondary_unit_code', 'subSecondaryUnitCode', '辅计量单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1632, '4006', NULL, 't23.unit_name', 'subSecondaryUnitName', '辅计量单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1633, '4006', NULL, 't24.id', 'subLabelId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1634, '4006', NULL, NULL, 'subSecondaryStockQty', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1635, '4006', NULL, 'interfaceStatus', 'parameter_interfaceStatus', '接口状态', '选项', 100, '未读取,正在读取,成功,失败', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1636, '4006', NULL, 't2.id', 'innerId', '', '文本', 100, '', '', '', NULL, NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1637, '4007', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1638, '4007', NULL, 't1.stock_type', 'stockType', '单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1639, '4007', NULL, 't1.stock_code', 'stockCode', '盘点编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1640, '4007', NULL, 't1.stock_date', 'stockDate', '盘点日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1641, '4007', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1642, '4007', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1643, '4007', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1644, '4007', NULL, 't1.task_check_id', 'taskCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1645, '4007', NULL, 't1.organization_code', 'organizationCode', '组织编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1646, '4007', NULL, 't1.status', 'status', '审核状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1647, '4007', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1648, '4007', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1649, '4007', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1650, '4007', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1651, '4007', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1652, '4007', NULL, 't1.audit_by', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1653, '4007', NULL, 't1.audit_time', 'auditTime', '审核时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1654, '4007', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1655, '4007', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1656, '4007', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1657, '4007', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1658, '4007', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1659, '4007', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1660, '4007', NULL, 't1.guid', 'guid', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1661, '4007', NULL, 't3.dept_name', 'deptName', '部门名称', '文本', 100, '', 'dept', 'deptName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1662, '4007', NULL, 't4.employee_name', 'employeeName', '职员名称', '文本', 100, '', 'employee', 'employeeName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1663, '4007', NULL, 't12.task_code', 'taskCode', '盘点任务编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1664, '4008', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1665, '4008', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1666, '4008', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1667, '4008', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1668, '4008', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1669, '4008', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1670, '4008', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1671, '4008', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1672, '4008', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1673, '4008', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1674, '4008', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1675, '4008', NULL, 't1.stock_qty', 'stockQty', '库存数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1676, '4008', NULL, 't1.place_stock_qty', 'placeStockQty', '位置数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1677, '4008', NULL, 't1.set_stock_qty', 'setStockQty', '设置数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1678, '4008', NULL, 't2.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1679, '4008', NULL, 't3.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1680, '4008', NULL, 't4.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1681, '4008', NULL, 't5.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1682, '4008', NULL, 't6.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1683, '4008', NULL, 't6.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1684, '4008', NULL, 't6.is_package', 'isPackage', '是否启用包装', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1685, '4008', NULL, 't6.is_pallet', 'isPallet', '是否启用托盘', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1686, '4008', NULL, 't7.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1687, '4008', NULL, 't8.label_type', 'labelType', '标签类型', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1688, '4008', NULL, 't8.task_ins_id', 'taskInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1689, '4008', NULL, 'concat(t10.task_code, \'|\', t9.row_number)', 'taskInsCode', '入库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1690, '4009', NULL, 'id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1691, '4009', NULL, 'warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1692, '4009', NULL, 'material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1693, '4009', NULL, 'stock_date', 'stockDate', '单据日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1694, '4009', NULL, 'create_date', 'createDate', '创建日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1695, '4009', NULL, 'audit_date', 'auditDate', '审核日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1696, '4009', NULL, 'in_stock_qty', 'inStockQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1697, '4009', NULL, 'out_stock_qty', 'outStockQty', '出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1698, '4010', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1699, '4010', NULL, 't1.stock_date', 'stockDate', '入库日期', '日期', 100, '', '', '', '', NULL, 0, 0);
INSERT INTO `set_table_infos` VALUES (1700, '4010', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1701, '4010', NULL, 't1.create_By', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1702, '4010', NULL, 't1.audit_By', 'auditBy', '审核者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1703, '4010', NULL, 'concat(t2.id,\'|\',t5.id)', 'innerId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1704, '4010', NULL, 't1.dept_code', 'deptCode', '部门编码', '文本', 100, '', 'dept', 'deptCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1705, '4010', NULL, 't1.employee_code', 'employeeCode', '职员编码', '文本', 100, '', 'employee', 'employeeCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1706, '4010', NULL, 'concat(t1.stock_code, \'|\', t2.row_number)', 'stockInsCode', '入库编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1707, '4010', NULL, 'concat(t4.task_code, \'|\', t3.row_number)', 'taskInsCode', '入库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1708, '4010', NULL, 't2.id', 'stockInsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1709, '4010', NULL, 't2.label_code', 'stockInLabelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1710, '4010', NULL, 't2.material_code', 'stockInMaterialCode', '产品编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1711, '4010', NULL, 't7.material_name', 'stockInMaterialName', '产品名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1712, '4010', NULL, 't7.material_specification', 'stockInMaterialSpecification', '产品规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1713, '4010', NULL, 't2.stock_qty', 'stockInQty', '入库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1714, '4010', NULL, 't2.unit_code', 'stockInUnitCode', '产品单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1715, '4010', NULL, 't8.unit_name', 'stockInUnitName', '产品单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1716, '4010', NULL, 'concat(t6.task_code, \'|\', t5.row_number)', 'taskOutsCode', '出库任务编码|行号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1717, '4010', NULL, 't5.material_code', 'taskOutMaterialCode', '材料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1718, '4010', NULL, 't9.material_name', 'taskOutMaterialName', '材料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1719, '4010', NULL, 't9.material_specification', 'taskOutMaterialSpecification', '材料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1720, '4010', NULL, 't5.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1721, '4010', NULL, 't10.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1722, '4010', NULL, 't5.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1723, '4010', NULL, 't11.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1724, '4010', NULL, 't5.unit_code', 'taskOutUnitCode', '材料单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1725, '4010', NULL, 't12.unit_name', 'taskOutUnitName', '材料单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1726, '4010', NULL, 't6.bill_type_code', 'taskOutBillTypeCode', '出库任务单据类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1727, '4010', NULL, 't6.supplier_code', 'supplierCode', '供应商编码', '文本', 100, '', 'supplier', 'supplierCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1728, '4010', NULL, 't6.customer_code', 'customerCode', '客户编码', '文本', 100, '', 'customer', 'customerCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1729, '4010', NULL, 't5.id', 'taskOutsId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1730, '4010', NULL, 't5.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1731, '4010', NULL, 't5.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1732, '4010', NULL, 'ifnull((select SUM(stock_qty) from wms_stock_outs t where t.stock_ins_id = t2.id and t.task_outs_id = t5.id),0)', 'stockOutQty', '已出库数量', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1733, '4010', NULL, 'round((SELECT sum(u1.stock_qty) stock_qty                    FROM wms_current_stock u1                    WHERE u1.material_code = t5.material_code                      AND ((ifnull(t5.warehouse_code, \'\') = \'\'                               )OR (ifnull(t5.warehouse_code, \'\') != \'\' AND u1.warehouse_code = t5.warehouse_code))AND                        ((ifnull(t5.location_code, \'\') = \'\'                             )OR (ifnull(t5.location_code, \'\') != \'\' AND u1.location_code = t5.location_code))),4)', 'stockQty', '', '数字', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1734, '4010', NULL, 'round( t5.task_qty * ifnull( t2.stock_qty, 0 ) / t3.task_qty,4 )', 'inStockOutQty', '应出库数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1735, '4010', NULL, 'round( t5.task_qty * ifnull( t2.stock_qty, 0 ) / t3.task_qty,4 ) - IFNULL(( SELECT SUM( stock_qty ) FROM                 wms_stock_outs t WHERE t.stock_ins_id = t2.id AND t.task_outs_id = t5.id ),0)', 'thisTimeBackBlushQty', '本次倒冲数量', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1736, '4011', NULL, 't1.id', 'id', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1737, '4011', NULL, 't1.stock_check_id', 'stockCheckId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1738, '4011', NULL, 't1.row_number', 'rowNumber', '行号', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1739, '4011', NULL, 't1.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1740, '4011', NULL, 't1.location_code', 'locationCode', '货位编码', '文本', 100, '', 'location', 'locationCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1741, '4011', NULL, 't1.pallet_code', 'palletCode', '托盘编码', '文本', 100, '', 'package', 'palletCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1742, '4011', NULL, 't1.package_code', 'packageCode', '包装编码', '文本', 100, '', 'package', 'packageCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1743, '4011', NULL, 't1.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1744, '4011', NULL, 't1.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1745, '4011', NULL, 't1.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1746, '4011', NULL, 't1.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1747, '4011', NULL, 't1.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1748, '4011', NULL, 't1.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1749, '4011', NULL, 't1.stock_qty', 'stockQty', '盘点数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1750, '4011', NULL, 't1.stock_describe', 'stockDescribe', '描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1751, '4011', NULL, 't1.create_id', 'createId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1752, '4011', NULL, 't1.create_by', 'createBy', '创建者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1753, '4011', NULL, 't1.create_time', 'createTime', '创建时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1754, '4011', NULL, 't1.update_by', 'updateBy', '更新者', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1755, '4011', NULL, 't1.update_time', 'updateTime', '更新时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1756, '4011', NULL, 't1.remark', 'remark', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1757, '4011', NULL, 't1.extend_code01', 'extendCode01', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1758, '4011', NULL, 't1.extend_code02', 'extendCode02', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1759, '4011', NULL, 't1.extend_code03', 'extendCode03', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1760, '4011', NULL, 't1.extend_code04', 'extendCode04', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1761, '4011', NULL, 't1.extend_code05', 'extendCode05', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1762, '4011', NULL, 't2.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1763, '4011', NULL, 't3.location_name', 'locationName', '货位名称', '文本', 100, '', 'location', 'locationName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1764, '4011', NULL, 't4.pallet_name', 'palletName', '托盘名称', '文本', 100, '', 'package', 'palletName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1765, '4011', NULL, 't5.package_name', 'packageName', '包装名称', '文本', 100, '', 'package', 'packageName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1766, '4011', NULL, 't6.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1767, '4011', NULL, 't6.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1768, '4011', NULL, 't7.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1769, '4012', NULL, 't.task_checks_id', 'taskChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1770, '4012', NULL, 't.stock_checks_id', 'stockChecksId', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1771, '4012', NULL, 't.warehouse_code', 'warehouseCode', '仓库编码', '文本', 100, '', 'warehouse', 'warehouseCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1772, '4012', NULL, 't.label_code', 'labelCode', '标签编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1773, '4012', NULL, 't.material_code', 'materialCode', '物料编码', '文本', 100, '', 'material', 'materialCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1774, '4012', NULL, 't.unit_code', 'unitCode', '单位编码', '文本', 100, '', 'unit', 'unitCode', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1775, '4012', NULL, 't.batch', 'batch', '批号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1776, '4012', NULL, 't.batch1', 'batch1', '批号1', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1777, '4012', NULL, 't.batch2', 'batch2', '批号2', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1778, '4012', NULL, 't.task_qty', 'taskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1779, '4012', NULL, 't.stock_qty', 'stockQty', '盘点数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1780, '4012', NULL, 't.stock_task_qty', 'stockTaskQty', '任务数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1781, '4012', NULL, 't3.warehouse_name', 'warehouseName', '仓库名称', '文本', 100, '', 'warehouse', 'warehouseName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1782, '4012', NULL, 't7.material_name', 'materialName', '物料名称', '文本', 100, '', 'material', 'materialName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1783, '4012', NULL, 't7.material_specification', 'materialSpecification', '物料规格', '文本', 100, '', 'material', 'materialSpecification', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1784, '4012', NULL, 't8.unit_name', 'unitName', '单位名称', '文本', 100, '', 'unit', 'unitName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1785, '7001', NULL, 'workorder_id', 'workorderId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1786, '7001', NULL, 'workorder_code', 'workorderCode', '工单编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1787, '7001', NULL, 'workorder_name', 'workorderName', '工单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1788, '7001', NULL, 'order_source', 'orderSource', '工单来源', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1789, '7001', NULL, 'source_code', 'sourceCode', '订单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1790, '7001', NULL, 'product_id', 'productId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1791, '7001', NULL, 'product_code', 'productCode', '产品编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1792, '7001', NULL, 'product_name', 'productName', '产品名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1793, '7001', NULL, 'product_spc', 'productSpc', '规格型号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1794, '7001', NULL, 'unit_of_measure', 'unitOfMeasure', '单位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1795, '7001', NULL, 'batch_code', 'batchCode', '批次号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1796, '7001', NULL, 'quantity', 'quantity', '工单数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1797, '7001', NULL, 'quantity_produced', 'quantityProduced', '已生产数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1798, '7001', NULL, 'client_id', 'clientId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1799, '7001', NULL, 'client_code', 'clientCode', '客户编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1800, '7001', NULL, 'client_name', 'clientName', '客户名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1801, '7001', NULL, 'request_date', 'requestDate', '需求日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1802, '7001', NULL, 'confirm_date', 'confirmDate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1803, '7001', NULL, 'parent_id', 'parentId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1804, '7001', NULL, 'ancestors', 'ancestors', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1805, '7001', NULL, 'status', 'status', '单据状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1806, '7001', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1807, '7001', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1808, '7001', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1809, '7001', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1810, '7001', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1811, '7001', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1812, '7001', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1813, '7001', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1814, '7001', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1815, '7002', NULL, 'process_id', 'processId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1816, '7002', NULL, 'process_code', 'processCode', '工序编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1817, '7002', NULL, 'process_name', 'processName', '工序名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1818, '7002', NULL, 'attention', 'attention', '工序说明', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1819, '7002', NULL, 'enable_flag', 'enableFlag', '是否启用', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1820, '7002', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1821, '7002', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1822, '7002', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1823, '7002', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1824, '7002', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1825, '7002', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1826, '7002', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1827, '7002', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1828, '7002', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1829, '7003', NULL, 'route_id', 'routeId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1830, '7003', NULL, 'route_code', 'routeCode', '工艺路线编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1831, '7003', NULL, 'route_name', 'routeName', '工艺路线名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1832, '7003', NULL, 'route_desc', 'routeDesc', '工艺路线说明', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1833, '7003', NULL, 'enable_flag', 'enableFlag', '是否启用', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1834, '7003', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1835, '7003', NULL, 'attr1', 'attr1', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1836, '7003', NULL, 'attr2', 'attr2', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1837, '7003', NULL, 'attr3', 'attr3', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1838, '7003', NULL, 'attr4', 'attr4', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1839, '7003', NULL, 'create_by', 'createBy', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1840, '7003', NULL, 'create_time', 'createTime', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1841, '7003', NULL, 'update_by', 'updateBy', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1842, '7003', NULL, 'update_time', 'updateTime', '', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1843, '7005', NULL, 'record_id', 'recordId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1844, '7005', NULL, 'feedback_type', 'feedbackType', '报工类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1845, '7005', NULL, 'workstation_id', 'workstationId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1846, '7005', NULL, 'workstation_code', 'workstationCode', '工作站编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1847, '7005', NULL, 'workstation_name', 'workstationName', '工作站名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1848, '7005', NULL, 'process_id', 'processId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1849, '7005', NULL, 'process_code', 'processCode', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1850, '7005', NULL, 'process_name', 'processName', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1851, '7005', NULL, 'workorder_id', 'workorderId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1852, '7005', NULL, 'workorder_code', 'workorderCode', '生产工单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1853, '7005', NULL, 'workorder_name', 'workorderName', '生产工单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1854, '7005', NULL, 'task_id', 'taskId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1855, '7005', NULL, 'task_code', 'taskCode', '生产任务', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1856, '7005', NULL, 'item_id', 'itemId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1857, '7005', NULL, 'item_code', 'itemCode', '产品物料编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1858, '7005', NULL, 'item_name', 'itemName', '产品物料名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1859, '7005', NULL, 'specification', 'specification', '规格型号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1860, '7005', NULL, 'unit_of_measure', 'unitOfMeasure', '单位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1861, '7005', NULL, 'quantity', 'quantity', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1862, '7005', NULL, 'quantity_feedback', 'quantityFeedback', '报工数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1863, '7005', NULL, 'quantity_qualified', 'quantityQualified', '合格品数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1864, '7005', NULL, 'quantity_unquanlified', 'quantityUnquanlified', '不良品数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1865, '7005', NULL, 'user_name', 'userName', '', '不筛选', 100, '', 'user', 'userName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1866, '7005', NULL, 'nick_name', 'nickName', '报工人', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1867, '7005', NULL, 'feedback_channel', 'feedbackChannel', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1868, '7005', NULL, 'feedback_time', 'feedbackTime', '报工时间', '时间', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1869, '7005', NULL, 'record_user', 'recordUser', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1870, '7005', NULL, 'record_nick', 'recordNick', '记录人', '文本', 100, '', 'user', 'nickName', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1871, '7005', NULL, 'status', 'status', '状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1872, '7005', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1873, '7005', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1874, '7005', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1875, '7005', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1876, '7005', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1877, '7005', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1878, '7005', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1879, '7005', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1880, '7005', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1881, '7101', NULL, 'defect_id', 'defectId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1882, '7101', NULL, 'defect_code', 'defectCode', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1883, '7101', NULL, 'defect_name', 'defectName', '缺陷描述', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1884, '7101', NULL, 'index_type', 'indexType', '检测项类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1885, '7101', NULL, 'defect_level', 'defectLevel', '缺陷等级', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1886, '7101', NULL, 'remark', 'remark', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1887, '7101', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1888, '7101', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1889, '7101', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1890, '7101', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1891, '7101', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1892, '7101', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1893, '7101', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1894, '7101', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1895, '7102', NULL, 'index_id', 'indexId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1896, '7102', NULL, 'index_code', 'indexCode', '检测项编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1897, '7102', NULL, 'index_name', 'indexName', '检测项名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1898, '7102', NULL, 'index_type', 'indexType', '检测项类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1899, '7102', NULL, 'qc_tool', 'qcTool', '检测工具', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1900, '7102', NULL, 'remark', 'remark', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1901, '7102', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1902, '7102', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1903, '7102', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1904, '7102', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1905, '7102', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1906, '7102', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1907, '7102', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1908, '7102', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1909, '7103', NULL, 'template_id', 'templateId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1910, '7103', NULL, 'template_code', 'templateCode', '检测模板编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1911, '7103', NULL, 'template_name', 'templateName', '检测模板名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1912, '7103', NULL, 'qc_types', 'qcTypes', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1913, '7103', NULL, 'enable_flag', 'enableFlag', '是否启用', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1914, '7103', NULL, 'remark', 'remark', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1915, '7103', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1916, '7103', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1917, '7103', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1918, '7103', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1919, '7103', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1920, '7103', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1921, '7103', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1922, '7103', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1923, '7104', NULL, 'q.iqc_id', 'iqcId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1924, '7104', NULL, 'q.iqc_code', 'iqcCode', '来料检验单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1925, '7104', NULL, 'q.iqc_name', 'iqcName', '来料检验单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1926, '7104', NULL, 'q.template_id', 'templateId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1927, '7104', NULL, 'q.vendor_id', 'vendorId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1928, '7104', NULL, 'q.vendor_code', 'vendorCode', '供应商编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1929, '7104', NULL, 'q.vendor_name', 'vendorName', '供应商名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1930, '7104', NULL, 'q.vendor_nick', 'vendorNick', '供应商简称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1931, '7104', NULL, 'q.vendor_batch', 'vendorBatch', '供应商批次号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1932, '7104', NULL, 'q.item_id', 'itemId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1933, '7104', NULL, 'q.item_code', 'itemCode', '产品物料编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1934, '7104', NULL, 'q.item_name', 'itemName', '产品物料名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1935, '7104', NULL, 'q.specification', 'specification', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1936, '7104', NULL, 'q.unit_of_measure', 'unitOfMeasure', '单位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1937, '7104', NULL, 'q.quantity_min_check', 'quantityMinCheck', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1938, '7104', NULL, 'q.quantity_max_unqualified', 'quantityMaxUnqualified', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1939, '7104', NULL, 'q.quantity_recived', 'quantityRecived', '接收数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1940, '7104', NULL, 'q.quantity_check', 'quantityCheck', '检测数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1941, '7104', NULL, 'q.quantity_unqualified', 'quantityUnqualified', '不合格数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1942, '7104', NULL, 'q.cr_rate', 'crRate', '致命缺陷率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1943, '7104', NULL, 'q.maj_rate', 'majRate', '严重缺陷率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1944, '7104', NULL, 'q.min_rate', 'minRate', '轻微缺陷率', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1945, '7104', NULL, 'q.cr_quantity', 'crQuantity', '致命缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1946, '7104', NULL, 'q.maj_quantity', 'majQuantity', '严重缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1947, '7104', NULL, 'q.min_quantity', 'minQuantity', '轻微缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1948, '7104', NULL, 'q.check_result', 'checkResult', '检测结果', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1949, '7104', NULL, 'q.recive_date', 'reciveDate', '来料日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1950, '7104', NULL, 'q.inspect_date', 'inspectDate', '检测日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1951, '7104', NULL, 'q.inspector', 'inspector', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1952, '7104', NULL, 'u.nick_name', 'inspectorName', '检测人员', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1953, '7104', NULL, 'q.status', 'status', '单据状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1954, '7104', NULL, 'q.remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1955, '7104', NULL, 'q.attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1956, '7104', NULL, 'q.attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1957, '7104', NULL, 'q.attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1958, '7104', NULL, 'q.attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1959, '7104', NULL, 'q.create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1960, '7104', NULL, 'q.create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1961, '7104', NULL, 'q.update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1962, '7104', NULL, 'q.update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1963, '7105', NULL, 'ipqc_id', 'ipqcId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1964, '7105', NULL, 'ipqc_code', 'ipqcCode', '检验单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1965, '7105', NULL, 'ipqc_name', 'ipqcName', '检验单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1966, '7105', NULL, 'ipqc_type', 'ipqcType', '检验类型', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1967, '7105', NULL, 'template_id', 'templateId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1968, '7105', NULL, 'workorder_id', 'workorderId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1969, '7105', NULL, 'workorder_code', 'workorderCode', '工单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1970, '7105', NULL, 'workorder_name', 'workorderName', '工单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1971, '7105', NULL, 'task_id', 'taskId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1972, '7105', NULL, 'task_code', 'taskCode', '任务编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1973, '7105', NULL, 'task_name', 'taskName', '任务名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1974, '7105', NULL, 'workstation_id', 'workstationId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1975, '7105', NULL, 'workstation_code', 'workstationCode', '工作站编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1976, '7105', NULL, 'workstation_name', 'workstationName', '工作站名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1977, '7105', NULL, 'process_id', 'processId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1978, '7105', NULL, 'process_code', 'processCode', '工序编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1979, '7105', NULL, 'process_name', 'processName', '工序名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1980, '7105', NULL, 'item_id', 'itemId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1981, '7105', NULL, 'item_code', 'itemCode', '产品物料编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1982, '7105', NULL, 'item_name', 'itemName', '产品物料名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1983, '7105', NULL, 'specification', 'specification', '规格型号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1984, '7105', NULL, 'unit_of_measure', 'unitOfMeasure', '单位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1985, '7105', NULL, 'quantity_check', 'quantityCheck', '检测数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1986, '7105', NULL, 'quantity_unqualified', 'quantityUnqualified', '不合格数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1987, '7105', NULL, 'quantity_qualified', 'quantityQualified', '合格品数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1988, '7105', NULL, 'cr_rate', 'crRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1989, '7105', NULL, 'maj_rate', 'majRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1990, '7105', NULL, 'min_rate', 'minRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1991, '7105', NULL, 'cr_quantity', 'crQuantity', '致命缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1992, '7105', NULL, 'maj_quantity', 'majQuantity', '严重缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1993, '7105', NULL, 'min_quantity', 'minQuantity', '轻微缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1994, '7105', NULL, 'check_result', 'checkResult', '检测结果', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1995, '7105', NULL, 'inspect_date', 'inspectDate', '检测日期', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1996, '7105', NULL, 'inspector', 'inspector', '检测人员', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1997, '7105', NULL, 'status', 'status', '单据状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1998, '7105', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (1999, '7105', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2000, '7105', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2001, '7105', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2002, '7105', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2003, '7105', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2004, '7105', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2005, '7105', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2006, '7105', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2007, '7106', NULL, 'oqc_id', 'oqcId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2008, '7106', NULL, 'oqc_code', 'oqcCode', '检验单编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2009, '7106', NULL, 'oqc_name', 'oqcName', '检验单名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2010, '7106', NULL, 'template_id', 'templateId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2011, '7106', NULL, 'client_id', 'clientId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2012, '7106', NULL, 'client_code', 'clientCode', '客户编号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2013, '7106', NULL, 'client_name', 'clientName', '客户名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2014, '7106', NULL, 'batch_code', 'batchCode', '批次号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2015, '7106', NULL, 'item_id', 'itemId', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2016, '7106', NULL, 'item_code', 'itemCode', '产品物料编码', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2017, '7106', NULL, 'item_name', 'itemName', '产品物料名称', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2018, '7106', NULL, 'specification', 'specification', '规格型号', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2019, '7106', NULL, 'unit_of_measure', 'unitOfMeasure', '单位', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2020, '7106', NULL, 'quantity_min_check', 'quantityMinCheck', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2021, '7106', NULL, 'quantity_max_unqualified', 'quantityMaxUnqualified', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2022, '7106', NULL, 'quantity_out', 'quantityOut', '发货数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2023, '7106', NULL, 'quantity_check', 'quantityCheck', '检测数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2024, '7106', NULL, 'quantity_unqualified', 'quantityUnqualified', '不合格数', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2025, '7106', NULL, 'quantity_quanlified', 'quantityQuanlified', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2026, '7106', NULL, 'cr_rate', 'crRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2027, '7106', NULL, 'maj_rate', 'majRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2028, '7106', NULL, 'min_rate', 'minRate', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2029, '7106', NULL, 'cr_quantity', 'crQuantity', '致命缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2030, '7106', NULL, 'maj_quantity', 'majQuantity', '严重缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2031, '7106', NULL, 'min_quantity', 'minQuantity', '轻微缺陷数量', '数字', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2032, '7106', NULL, 'check_result', 'checkResult', '检测结果', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2033, '7106', NULL, 'out_date', 'outDate', '出货日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2034, '7106', NULL, 'inspect_date', 'inspectDate', '检测日期', '日期', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2035, '7106', NULL, 'inspector', 'inspector', '检测人员', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2036, '7106', NULL, 'status', 'status', '单据状态', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2037, '7106', NULL, 'remark', 'remark', '备注', '文本', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2038, '7106', NULL, 'attr1', 'attr1', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2039, '7106', NULL, 'attr2', 'attr2', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2040, '7106', NULL, 'attr3', 'attr3', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2041, '7106', NULL, 'attr4', 'attr4', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2042, '7106', NULL, 'create_by', 'createBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2043, '7106', NULL, 'create_time', 'createTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2044, '7106', NULL, 'update_by', 'updateBy', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);
INSERT INTO `set_table_infos` VALUES (2045, '7106', NULL, 'update_time', 'updateTime', '', '不筛选', 100, '', '', '', '', NULL, 1, 0);

-- ----------------------------
-- 10_14_014	报表权限设置
-- ----------------------------
DROP TABLE IF EXISTS `set_table_info_role`;
CREATE TABLE `set_table_info_role`  (
  `table_info_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户ID',
  `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  PRIMARY KEY (`table_info_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 10_15_015	编码生成规则组成表
-- ----------------------------
DROP TABLE IF EXISTS `sys_auto_code_part`;
CREATE TABLE `sys_auto_code_part`  (
  `part_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '分段ID',
  `rule_id` bigint(20) NOT NULL COMMENT '规则ID',
  `part_index` int(11) NOT NULL COMMENT '分段序号',
  `part_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分段类型，INPUTCHAR：输入字符，NOWDATE：当前日期时间，FIXCHAR：固定字符，SERIALNO：流水号',
  `part_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分段编号',
  `part_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分段名称',
  `part_length` int(11) NOT NULL COMMENT '分段长度',
  `date_format` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `input_character` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '输入字符',
  `fix_character` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '固定字符',
  `seria_start_no` int(11) NULL DEFAULT NULL COMMENT '流水号起始值',
  `seria_step` int(11) NULL DEFAULT NULL COMMENT '流水号步长',
  `seria_now_no` int(11) NULL DEFAULT NULL COMMENT '流水号当前值',
  `cycle_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流水号是否循环',
  `cycle_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '循环方式，YEAR：按年，MONTH：按月，DAY：按天，HOUR：按小时，MINITE：按分钟，OTHER：按传入字符变',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`part_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 304 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '编码生成规则组成表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 编码生成规则组成表 初始数据
-- ----------------------------
INSERT INTO `sys_auto_code_part` VALUES (200, 205, 2, 'SERIALNO', 'P1', '流水号', 8, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-04-26 21:13:17', 'admin', '2022-04-26 22:47:49');
INSERT INTO `sys_auto_code_part` VALUES (201, 205, 1, 'FIXCHAR', 'P0', '前缀', 4, NULL, NULL, 'ITEM', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-04-26 22:44:03', 'admin', '2022-08-15 15:59:19');
INSERT INTO `sys_auto_code_part` VALUES (202, 206, 1, 'FIXCHAR', 'P1', '前缀', 10, NULL, NULL, 'ITEM_TYPE_', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-04-26 23:02:12', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (203, 206, 2, 'SERIALNO', 'P2', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-04-26 23:02:42', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (204, 207, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 21:21:04', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (205, 207, 2, 'SERIALNO', 'SERIAL', '流水号部分', 5, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 21:21:44', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (206, 208, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 22:50:38', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (207, 208, 2, 'SERIALNO', 'SERIAL', '流水号', 5, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 22:51:02', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (208, 209, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'WS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 17:49:16', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (209, 209, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 17:49:40', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (210, 210, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'WH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 22:00:17', 'admin', '2022-08-16 18:58:36');
INSERT INTO `sys_auto_code_part` VALUES (211, 210, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 22:00:40', 'admin', '2022-07-30 11:26:14');
INSERT INTO `sys_auto_code_part` VALUES (212, 211, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'L', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 14:50:29', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (213, 211, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 14:52:12', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (214, 212, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'A', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 18:38:29', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (215, 212, 2, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 18:38:51', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (216, 213, 1, 'FIXCHAR', 'PREFIX', '前缀', 7, NULL, NULL, 'M_TYPE_', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 19:46:42', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (217, 213, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 19:47:03', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (218, 214, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'M', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 21:26:59', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (219, 214, 2, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 21:27:18', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (220, 215, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'MO', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-09 11:40:23', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (222, 215, 2, 'NOWDATE', 'DATEPART', '年月日部分', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-09 11:58:57', 'admin', '2022-05-09 12:46:34');
INSERT INTO `sys_auto_code_part` VALUES (223, 215, 3, 'SERIALNO', 'SERIAL', '流水号部分', 4, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-09 11:59:31', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (224, 216, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'WS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-10 21:55:51', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (225, 216, 2, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-10 21:56:19', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (226, 217, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'TT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 00:22:02', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (227, 217, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 00:22:25', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (228, 218, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'T', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 22:07:44', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (229, 218, 2, 'SERIALNO', 'SERIAL', '流水号', 5, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 22:08:17', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (230, 219, 1, 'FIXCHAR', 'PREFIX', '前缀', 7, NULL, NULL, 'PROCESS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 00:10:13', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (231, 219, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 00:10:33', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (232, 220, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'R', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 23:07:01', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (233, 220, 2, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1000, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 23:07:23', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (234, 221, 1, 'FIXCHAR', 'PREFIX', '固定前缀', 4, NULL, NULL, 'TASK', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-15 18:22:53', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (235, 221, 2, 'NOWDATE', 'YEAR', '年份', 4, 'yyyy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-15 18:23:39', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (236, 221, 3, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'YEAR', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-15 18:24:03', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (237, 222, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'I', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 21:57:46', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (238, 222, 2, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 21:58:05', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (239, 223, 1, 'FIXCHAR', 'PREFIX', '前缀', 3, NULL, NULL, 'QCT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 22:43:31', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (240, 223, 2, 'NOWDATE', 'YEAR', '年份', 4, 'yyyy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 22:44:04', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (241, 223, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'YEAR', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 22:44:25', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (242, 224, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'DF', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 11:33:52', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (243, 224, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 11:34:11', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (244, 225, 1, 'FIXCHAR', 'PREFIX', '前缀', 3, NULL, NULL, 'IQC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 16:29:59', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (245, 225, 2, 'NOWDATE', 'DATE', '年月日', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 16:30:28', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (246, 225, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 16:31:00', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (247, 226, 1, 'FIXCHAR', 'PREFIX', '前缀', 1, NULL, NULL, 'R', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-22 20:51:47', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (248, 226, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-05-22 20:52:10', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (249, 226, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-22 20:52:58', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (250, 227, 1, 'FIXCHAR', 'PREFIX', '固定前缀', 1, NULL, NULL, 'T', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 19:54:45', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (251, 227, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 19:55:06', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (252, 228, 1, 'FIXCHAR', 'PREFIX', '前缀', 4, NULL, NULL, 'PLAN', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 22:08:39', 'admin', '2022-07-31 16:42:59');
INSERT INTO `sys_auto_code_part` VALUES (253, 228, 2, 'NOWDATE', 'YEAR', '年', 4, 'yyyy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 22:08:59', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (254, 228, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'YEAR', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 22:09:24', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (255, 229, 1, 'FIXCHAR', 'PREFIX', '前缀', 3, NULL, NULL, 'RTV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-13 16:06:14', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (256, 229, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-13 16:06:42', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (257, 229, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-13 16:07:10', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (258, 230, 1, 'FIXCHAR', 'PREFIX', '固定前缀', 3, NULL, NULL, 'SUB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 20:28:22', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (259, 230, 2, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 20:28:44', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (260, 231, 1, 'FIXCHAR', 'PREFIX', '前缀', 4, NULL, NULL, 'PLAN', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 21:50:22', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (261, 231, 2, 'NOWDATE', 'YEAR', '年份', 4, 'yyyy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 21:50:43', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (262, 231, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'YEAR', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 21:51:07', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (263, 232, 1, 'FIXCHAR', '1', '1', 3, NULL, NULL, 'BAT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-07-14 12:02:54', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (264, 232, 2, 'NOWDATE', '2', '2', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-07-14 12:03:16', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (265, 233, 1, 'FIXCHAR', 'PREFIX', '前缀', 5, NULL, NULL, 'ISSUE', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-07-17 19:32:46', 'admin', '2022-07-17 19:35:44');
INSERT INTO `sys_auto_code_part` VALUES (266, 233, 2, 'NOWDATE', 'DATE', '年月日', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-07-17 19:33:22', 'admin', '2022-07-17 19:35:57');
INSERT INTO `sys_auto_code_part` VALUES (267, 233, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-07-17 19:33:45', 'admin', '2022-07-17 19:36:05');
INSERT INTO `sys_auto_code_part` VALUES (271, 234, 1, 'INPUTCHAR', 'PREFIX', '1', 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-07-30 14:20:49', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (275, 236, 1, 'FIXCHAR', '前缀', '固定字符', 2, NULL, NULL, 'IF', NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-08-19 10:48:20', 'admin', '2022-08-19 14:13:30');
INSERT INTO `sys_auto_code_part` VALUES (276, 236, 2, 'NOWDATE', '后缀', '固定字段', 4, 'yyyyMMddss', NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-08-19 14:12:19', 'admin', '2022-08-19 14:19:39');
INSERT INTO `sys_auto_code_part` VALUES (277, 237, 1, 'FIXCHAR', 'PREFIX', '前缀', 4, NULL, NULL, 'IPQC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-08-29 22:07:43', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (278, 237, 2, 'NOWDATE', 'DATE', '年月日', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-08-29 22:08:18', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (279, 237, 3, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-08-29 22:08:46', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (280, 238, 1, 'FIXCHAR', 'PREFIX', '前缀', 3, NULL, NULL, 'OQC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-01 20:30:53', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (281, 238, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-01 20:32:11', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (282, 238, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-01 20:32:38', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (283, 239, 1, 'FIXCHAR', '001', '前缀', 5, NULL, NULL, 'PBACK', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-03 23:49:07', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (284, 239, 2, 'NOWDATE', '002', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-03 23:49:31', 'admin', '2022-09-03 23:49:44');
INSERT INTO `sys_auto_code_part` VALUES (285, 239, 3, 'SERIALNO', '003', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'N', NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-03 23:50:10', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (286, 240, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'RT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-15 23:19:25', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (287, 240, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-15 23:19:47', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (288, 240, 3, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-15 23:20:09', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (289, 241, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'PR', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-23 10:58:17', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (290, 241, 2, 'NOWDATE', 'DATE', '年月日', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-23 10:58:44', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (291, 241, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-23 10:59:06', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (292, 242, 1, 'FIXCHAR', 'PREFIX', '前缀', 3, NULL, NULL, 'REP', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-28 22:01:19', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (293, 242, 2, 'NOWDATE', 'DATE', '日期', 4, 'yyyy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-09-28 22:01:39', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (294, 242, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'YEAR', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-28 22:02:00', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (295, 243, 1, 'FIXCHAR', 'PERFIX', '前缀', 2, NULL, NULL, 'PS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-05 19:46:02', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (296, 243, 2, 'NOWDATE', 'DATA', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-05 19:46:24', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (297, 243, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-05 19:46:48', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (298, 244, 1, 'FIXCHAR', 'PREFIX', '前缀', 2, NULL, NULL, 'RS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-06 21:40:42', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (299, 244, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-06 21:41:03', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (300, 244, 3, 'SERIALNO', 'SERIAL', '流水号', 3, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-06 21:41:22', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (301, 245, 1, 'FIXCHAR', 'PREFIX', '前缀', 4, NULL, NULL, 'PACK', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-11 01:22:38', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (302, 245, 2, 'NOWDATE', 'DATE', '日期', 8, 'yyyyMMdd', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 'admin', '2022-10-11 01:23:09', '', NULL);
INSERT INTO `sys_auto_code_part` VALUES (303, 245, 3, 'SERIALNO', 'SERIAL', '流水号', 4, NULL, NULL, NULL, 1, 1, NULL, 'Y', 'DAY', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-11 01:23:35', '', NULL);

-- ----------------------------
-- 10_16_016	编码生成记录表
-- ----------------------------
DROP TABLE IF EXISTS `sys_auto_code_result`;
CREATE TABLE `sys_auto_code_result`  (
  `code_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `rule_id` bigint(20) NOT NULL COMMENT '规则ID',
  `gen_date` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '生成日期时间',
  `gen_index` int(11) NULL DEFAULT NULL COMMENT '最后产生的序号',
  `last_result` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后产生的值',
  `last_serial_no` int(11) NULL DEFAULT NULL COMMENT '最后产生的流水号',
  `last_input_char` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后传入的参数',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`code_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '编码生成记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 编码生成记录表 初始数据
-- ----------------------------
INSERT INTO `sys_auto_code_result` VALUES (1, 222, '20250330113953', 2, 'I0002', 2, NULL, '', NULL, NULL, 0, 0, '', sysdate(), '', NULL);

-- ----------------------------
-- 10_17_017	编码生成规则表
-- ----------------------------
DROP TABLE IF EXISTS `sys_auto_code_rule`;
CREATE TABLE `sys_auto_code_rule`  (
  `rule_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '规则ID',
  `rule_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则编码',
  `rule_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '规则名称',
  `rule_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `max_length` int(11) NULL DEFAULT NULL COMMENT '最大长度',
  `is_padded` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否补齐',
  `padded_char` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '补齐字符',
  `padded_method` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'L' COMMENT '补齐方式',
  `enable_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`rule_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 246 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '编码生成规则表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 编码生成规则表 初始数据
-- ----------------------------
INSERT INTO `sys_auto_code_rule` VALUES (206, 'ITEM_TYPE_CODE', '物料分类编码', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-04-26 23:01:09', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (207, 'CLIENT_CODE', '客户编码规则', NULL, 6, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 21:20:29', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (208, 'VENDOR_CODE', '供应商编码规则', NULL, 6, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-06 22:50:13', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (209, 'WORKSHOP_CODE', '车间编码生成规则', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 17:48:52', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (210, 'WAREHOUSE_CODE', '仓库编码规则', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-07 21:59:51', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (211, 'LOCATION_CODE', '库区编码生成规则', NULL, 4, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 14:49:56', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (212, 'AREA_CODE', '库位编码规则', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 18:38:08', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (213, 'MACHINERY_TYPE_CODE', '设备类型编码规则', NULL, 10, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 19:46:09', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (214, 'MACHINERY_CODE', '设备编码规则', NULL, 13, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-08 21:26:39', 'admin', '2022-08-23 09:15:17');
INSERT INTO `sys_auto_code_rule` VALUES (215, 'WORKORDER_CODE', '生产工单编码规则1', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-09 11:39:59', 'admin', '2022-08-20 09:12:40');
INSERT INTO `sys_auto_code_rule` VALUES (216, 'WORKSTATION_CODE', '工作站编码规则', NULL, 6, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-10 21:55:24', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (217, 'TOOL_TYPE_CODE', '工装夹具类型编码', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 00:21:37', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (218, 'TOOL_CODE', '工装夹具编码规则', NULL, 6, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-11 22:07:17', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (219, 'PROCESS_CODE', '工序编码规则', NULL, 10, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 00:09:45', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (220, 'ROUTE_CODE', '工艺流程编码规则', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-12 23:06:36', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (221, 'TASK_CODE', '生产任务编码规则', NULL, 12, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-15 18:22:29', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (222, 'QC_INDEX_CODE', '检测项编码规则', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 21:57:23', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (223, 'QC_TEMPLATE_CODE', '检测模板编码规则', NULL, 10, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-17 22:43:08', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (224, 'DEFECT_CODE', '常见缺陷编码', NULL, 5, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 11:33:27', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (225, 'QC_IQC_CODE', '来料检验单编码规则', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-19 16:28:07', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (226, 'ITEMRECPT_CODE', '物料入库单编码规则', NULL, 12, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-05-22 20:51:29', 'admin', '2022-05-22 20:53:12');
INSERT INTO `sys_auto_code_rule` VALUES (227, 'CAL_TEAM_CODE', '班组编码规则', NULL, 4, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 19:54:22', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (228, 'CAL_PLAN_CODE', '排班计划编号', NULL, 11, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-06 22:08:10', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (229, 'WM_RTVENDOR_CODE', '供应商退货单编码', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-13 15:48:07', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (230, 'SUBJECT_CODE', '设备点检保养项目编码', NULL, 6, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 20:27:54', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (231, 'CHECKPLAN_CODE', '点检编码规则', NULL, 11, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-06-16 21:50:00', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (232, 'BATCH_CODE', '批次规则', NULL, 11, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-07-14 12:02:10', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (233, 'ISSUE_CODE', '生产领料单编码', NULL, 16, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-07-17 19:32:10', 'admin', '2022-07-17 19:32:57');
INSERT INTO `sys_auto_code_rule` VALUES (236, 'ITEM_CODE', '物料规则', NULL, 10, 'N', '32', 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-08-19 10:44:20', 'admin', '2022-08-19 11:26:02');
INSERT INTO `sys_auto_code_rule` VALUES (237, 'IPQC_CODE', '过程检验单编码', NULL, 16, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-08-29 22:07:13', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (238, 'OQC_CODE', '出货编码规则', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-01 20:30:31', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (239, 'PBACK_CODE', '生产退料单编码', '生产退料单编码', 16, 'N', '0', 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-03 23:47:11', 'admin', '2022-09-03 23:47:57');
INSERT INTO `sys_auto_code_rule` VALUES (240, 'RTISSUE_CODE', '生产退库单编号规则', NULL, 14, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-15 23:18:40', 'admin', '2022-09-15 23:19:04');
INSERT INTO `sys_auto_code_rule` VALUES (241, 'PRODUCTRECPT_CODE', '产品入库单编码规则', NULL, 13, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-23 10:57:47', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (242, 'REPAIR_CODE', '维修工单编号规则', NULL, 10, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-09-28 21:59:54', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (243, 'PRODUCTSALSE_CODE', '销售出库单编号', NULL, 13, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-05 19:45:35', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (244, 'RTSALSE_CODE', '销售退货单编码规则', NULL, 13, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-06 21:40:18', '', NULL);
INSERT INTO `sys_auto_code_rule` VALUES (245, 'PACKAGE_CODE', '装箱单编码规则', NULL, 16, 'N', NULL, 'L', 'Y', NULL, NULL, NULL, 0, 0, 'admin', '2022-10-11 01:22:08', '', NULL);

-- ----------------------------
-- 10_18_018	附件表
-- ----------------------------
DROP TABLE IF EXISTS `sys_attachment`;
CREATE TABLE `sys_attachment`  (
  `attachment_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '附件ID',
  `source_doc_id` bigint(20) NULL DEFAULT NULL COMMENT '关联的业务单据ID',
  `source_doc_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务单据类型',
  `file_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '访问URL',
  `base_path` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '域名',
  `file_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名',
  `orignal_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原来的文件名',
  `file_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件类型',
  `file_size` double(12, 2) NULL DEFAULT NULL COMMENT '文件大小',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`attachment_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '附件表' ROW_FORMAT = Dynamic;


-- ----------------------------
-- 20_18_019	客户
-- ----------------------------
DROP TABLE IF EXISTS `base_customer`;
CREATE TABLE `base_customer`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `customer_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户编码',
  `customer_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户名称',
  `customer_short_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户简称',
  `customer_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_customer_custCode`(`customer_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '客户' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_19_020	部门
-- ----------------------------
DROP TABLE IF EXISTS `base_department`;
CREATE TABLE `base_department`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父级标识',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门名称',
  `dept_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_department_deptCode`(`dept_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 部门 初始数据
-- ----------------------------
INSERT INTO `base_department` VALUES (1, 0, '0', '部门', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);

-- ----------------------------
-- 20_20_021	职员
-- ----------------------------
DROP TABLE IF EXISTS `base_employee`;
CREATE TABLE `base_employee`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `employee_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员名称',
  `employee_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_employee_employeeCode`(`employee_code`) USING BTREE,
  INDEX `index_employee_deptCode`(`dept_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '职员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_21_022	扩展项
-- ----------------------------
DROP TABLE IF EXISTS `base_extend`;
CREATE TABLE `base_extend`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `extend_class_id` int(11) NULL DEFAULT NULL COMMENT '扩展项分类标识',
  `extend_class_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展项分类编码',
  `extend_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展项编码',
  `extend_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展项名称',
  `extend_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_extend_extendCode`(`extend_code`) USING BTREE,
  INDEX `index_extend_extendClassCode`(`extend_class_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '扩展项' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 扩展项 初始数据
-- ----------------------------
INSERT INTO `base_extend` VALUES (1, 1, '05', '1', '管理员', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);

-- ----------------------------
-- 20_22_023	扩展项分类
-- ----------------------------
DROP TABLE IF EXISTS `base_extend_class`;
CREATE TABLE `base_extend_class`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父级标识',
  `ancestors` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '祖级列表',
  `extend_class_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展项分类编码',
  `extend_class_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展项分类名称',
  `extend_class_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_extendClass_extendClassCode`(`extend_class_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '扩展项分类' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 扩展项分类 初始数据
-- ----------------------------
INSERT INTO `base_extend_class` VALUES (1, 0, '0', '05', '移位单审核人', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);

-- ----------------------------
-- 20_23_024	货位
-- ----------------------------
DROP TABLE IF EXISTS `base_location`;
CREATE TABLE `base_location`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `location_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位名称',
  `location_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_location_locationCode`(`location_code`) USING BTREE,
  INDEX `index_location_warehouseCode`(`warehouse_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '货位' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_24_025	物料
-- ----------------------------
DROP TABLE IF EXISTS `base_material`;
CREATE TABLE `base_material`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `material_class_id` int(11) NULL DEFAULT NULL COMMENT '物料分类标识',
  `material_class_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料分类编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `material_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料名称',
  `material_specification` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料规格',
  `item_or_product` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品物料标识',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `secondary_unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '辅计量单位编码',
  `secondary_rate` double(24, 6) NULL DEFAULT NULL COMMENT '辅计量转换率',
  `is_batch` int(11) NOT NULL DEFAULT 0 COMMENT '批号管理(0是1否)',
  `is_package` int(11) NOT NULL DEFAULT 1 COMMENT '包装管理(0是1否)',
  `is_pallet` int(11) NOT NULL DEFAULT 1 COMMENT '托盘管理(0是1否)',
  `collect_type` int(11) NOT NULL DEFAULT 1 COMMENT '领料类型(1直接 2倒冲)',
  `quality_day` double(24, 6) NULL DEFAULT NULL COMMENT '保质期',
  `label_standard_quantity` double(24, 6) NULL DEFAULT NULL COMMENT '标签标准量',
  `max_stock_quantity` double(24, 6) NULL DEFAULT NULL COMMENT '最高储',
  `min_stock_quantity` double(24, 6) NULL DEFAULT NULL COMMENT '最低储',
  `excess_ratio_in` double(24, 6) NULL DEFAULT NULL COMMENT '超入库比例%',
  `excess_ratio_out` double(24, 6) NULL DEFAULT NULL COMMENT '超出库比例%',
  `net_weight` double(24, 6) NULL DEFAULT NULL COMMENT '净重',
  `material_quality` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '材质',
  `warehouse_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库仓库编码',
  `warehouse_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库仓库编码',
  `location_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库货位编码',
  `location_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库货位编码',
  `material_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `extend_code06` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码06',
  `extend_code07` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码07',
  `extend_code08` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码08',
  `extend_code09` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码09',
  `extend_code10` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码10',
  `extend_code11` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码11',
  `extend_code12` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码12',
  `extend_code13` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码13',
  `extend_code14` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码14',
  `extend_code15` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码15',
  `extend_code16` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码16',
  `extend_code17` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码17',
  `extend_code18` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码18',
  `extend_code19` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码19',
  `extend_code20` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码20',
  `attachments` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_material_materialCode`(`material_code`) USING BTREE,
  INDEX `index_material_materialClassCode`(`material_class_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '物料' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_25_026	物料分类
-- ----------------------------
DROP TABLE IF EXISTS `base_material_class`;
CREATE TABLE `base_material_class`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父级标识',
  `ancestors` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '祖级列表',
  `material_class_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料分类编码',
  `material_class_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料分类名称',
  `item_or_product` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品物料标识',
  `material_level` int(11) NULL DEFAULT NULL COMMENT '物料等级',
  `material_end` int(11) NULL DEFAULT NULL COMMENT '物料末级',
  `material_class_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_materialClass_materialClassCode`(`material_class_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '物料分类' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 物料分类 初始化数据
-- ----------------------------
INSERT INTO `base_material_class` VALUES (1, 0, '0', '', '全部物料', '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

-- ----------------------------
-- 20_26_027	包装
-- ----------------------------
DROP TABLE IF EXISTS `base_package`;
CREATE TABLE `base_package`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `package_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `package_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_package_packageCode`(`package_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '包装' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_27_028	托盘
-- ----------------------------
DROP TABLE IF EXISTS `base_pallet`;
CREATE TABLE `base_pallet`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `pallet_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘名称',
  `pallet_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_pallet_palletCode`(`pallet_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '托盘' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_28_029	供应商
-- ----------------------------
DROP TABLE IF EXISTS `base_supplier`;
CREATE TABLE `base_supplier`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `supplier_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商名称',
  `supplier_short_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商简称',
  `supplier_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_supplier_supplierCode`(`supplier_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '供应商' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_29_030	计量单位
-- ----------------------------
DROP TABLE IF EXISTS `base_unit`;
CREATE TABLE `base_unit`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `unit_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位名称',
  `unit_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_unit_unitCode`(`unit_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '计量单位' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 计量单位 初始数据
-- ----------------------------
-- INSERT INTO `base_unit` VALUES (1, '10', '个', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);
-- INSERT INTO `base_unit` VALUES (2, '11', 'KG', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);
-- INSERT INTO `base_unit` VALUES (3, '12', '厘米', NULL, 0, NULL, 1, '管理员', sysdate(), NULL, NULL, NULL);
-- ----------------------------
-- 20_30_031	仓库
-- ----------------------------
DROP TABLE IF EXISTS `base_warehouse`;
CREATE TABLE `base_warehouse`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `parent_id` int(11) NULL DEFAULT NULL COMMENT '父级标识',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `warehouse_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库名称',
  `warehouse_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `is_location` int(11) NOT NULL DEFAULT 0 COMMENT '货位管理(0否1是)',
  `status` int(11) NOT NULL DEFAULT 0 COMMENT '状态(0有效 1无效)',
  `inactive_time` datetime(0) NULL DEFAULT NULL COMMENT '失效时间',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_warehouse_warehouseCode`(`warehouse_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 计量单位 初始数据
-- ----------------------------
INSERT INTO `base_warehouse` VALUES (1, 0, '', '全部仓库', '', 0, 0, NULL, NULL, '', NULL, NULL, NULL, '');
-- ----------------------------

-- ----------------------------
-- 20_31_032	产品BOM关系表
-- ----------------------------
DROP TABLE IF EXISTS `md_product_bom`;
CREATE TABLE `md_product_bom`  (
  `bom_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `item_id` bigint(20) NOT NULL COMMENT '物料产品ID',
  `bom_item_id` bigint(20) NOT NULL COMMENT 'BOM物料ID',
  `bom_item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'BOM物料编码',
  `bom_item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'BOM物料名称',
  `bom_item_spec` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'BOM物料规格',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'BOM物料单位',
  `item_or_product` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料标识',
  `quantity` double(12, 4) NOT NULL DEFAULT 0.0000 COMMENT '物料使用比例',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`bom_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '产品BOM关系表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_32_033	产品SOP表
-- ----------------------------
DROP TABLE IF EXISTS `md_product_sop`;
CREATE TABLE `md_product_sop`  (
  `sop_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `item_id` bigint(20) NOT NULL COMMENT '物料产品ID',
  `order_num` int(4) NULL DEFAULT NULL COMMENT '排列顺序',
  `process_id` bigint(20) NULL DEFAULT NULL COMMENT '对应的工序',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编号',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `sop_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题',
  `sop_description` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细描述',
  `sop_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片地址',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`sop_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '产品SOP表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_33_034	车间表
-- ----------------------------
DROP TABLE IF EXISTS `md_workshop`;
CREATE TABLE `md_workshop`  (
  `workshop_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '车间ID',
  `workshop_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '车间编码',
  `workshop_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '车间名称',
  `area` double(12, 2) NULL DEFAULT NULL COMMENT '面积',
  `charge` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`workshop_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '车间表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_34_035	工作站表
-- ----------------------------
DROP TABLE IF EXISTS `md_workstation`;
CREATE TABLE `md_workstation`  (
  `workstation_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作站编码',
  `workstation_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作站名称',
  `workstation_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站地点',
  `workshop_id` bigint(20) NULL DEFAULT NULL COMMENT '所在车间ID',
  `workshop_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在车间编码',
  `workshop_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在车间名称',
  `process_id` bigint(20) NULL DEFAULT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `warehouse_id` bigint(20) NOT NULL COMMENT '线边库ID',
  `warehouse_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '线边库编码',
  `warehouse_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '线边库名称',
  `location_id` bigint(20) NOT NULL COMMENT '库区ID',
  `location_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库区编码',
  `location_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库区名称',
  `area_id` bigint(20) NULL DEFAULT NULL COMMENT '库位ID',
  `area_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库位编码',
  `area_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '库位名称',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`workstation_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作站表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_35_036	设备资源表
-- ----------------------------
DROP TABLE IF EXISTS `md_workstation_machine`;
CREATE TABLE `md_workstation_machine`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `machinery_id` bigint(20) NOT NULL COMMENT '设备ID',
  `machinery_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码',
  `machinery_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称',
  `quantity` int(4) NULL DEFAULT 1 COMMENT '数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_36_037	工装夹具资源表
-- ----------------------------
DROP TABLE IF EXISTS `md_workstation_tool`;
CREATE TABLE `md_workstation_tool`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `tool_type_id` bigint(20) NOT NULL COMMENT '工装夹具类型ID',
  `tool_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型编码',
  `tool_type_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型名称',
  `quantity` int(4) NOT NULL DEFAULT 1 COMMENT '数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工装夹具资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 20_37_038	人力资源表
-- ----------------------------
DROP TABLE IF EXISTS `md_workstation_worker`;
CREATE TABLE `md_workstation_worker`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  `post_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '岗位编码',
  `post_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '岗位名称',
  `quantity` int(4) NOT NULL DEFAULT 1 COMMENT '数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '人力资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_38_039	转换任务主
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_change`;
CREATE TABLE `wms_task_change`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `task_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `task_date` date NULL DEFAULT NULL COMMENT '任务日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出部门编码',
  `dept_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入部门编码',
  `employee_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出职员编码',
  `employee_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入职员编码',
  `warehouse_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出仓库编码',
  `warehouse_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入仓库编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskChange_taskCode`(`task_code`) USING BTREE,
  INDEX `index_taskChange_createTime`(`create_time`) USING BTREE,
  INDEX `index_taskChange`(`task_date`, `bill_type_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转换任务主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_39_040	转换任务子
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_changes`;
CREATE TABLE `wms_task_changes`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `task_change_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `change_group` int(11) NULL DEFAULT NULL COMMENT '转换组别',
  `change_type` int(11) NULL DEFAULT NULL COMMENT '转换类型(1转换前 2转换后)',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '任务数量',
  `label_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已生成标签数量',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已转换数量',
  `excess_ratio_change` double(24, 6) NULL DEFAULT NULL COMMENT '超转换库比例%',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `is_close` int(11) NOT NULL DEFAULT 1 COMMENT '是否关闭(0是 1否)',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `close_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关闭者',
  `close_time` datetime(0) NULL DEFAULT NULL COMMENT '关闭时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_taskChanges_taskMoveId`(`task_change_id`) USING BTREE,
  INDEX `index_taskChanges_materialCode`(`material_code`) USING BTREE,
  INDEX `index_taskChanges`(`status`, `is_close`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转换任务子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_40_041	盘点任务主
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_check`;
CREATE TABLE `wms_task_check`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `task_type` int(11) NULL DEFAULT NULL COMMENT '任务类型(1物料盘点 2标签盘点)',
  `task_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `task_date` date NULL DEFAULT NULL COMMENT '任务日期',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '审核状态(0已审核 1未审核)',
  `is_create` int(11) NOT NULL DEFAULT 1 COMMENT '是否生单(0是 1否)',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskCheck_taskCode`(`task_code`) USING BTREE,
  INDEX `index_taskCheck`(`task_type`, `task_date`) USING BTREE,
  INDEX `index_taskCheck_status`(`status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '盘点任务主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_41_042	盘点任务子
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_checks`;
CREATE TABLE `wms_task_checks`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `task_check_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '任务数量',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_taskChecks_materialCode`(`material_code`) USING BTREE,
  INDEX `index_taskChecks_taskCheckId`(`task_check_id`) USING BTREE,
  INDEX `index_taskChecks`(`warehouse_code`, `location_code`, `pallet_code`, `package_code`) USING BTREE,
  INDEX `index_taskChecks_labelCode`(`label_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '盘点任务子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_42_043	入库任务主
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_in`;
CREATE TABLE `wms_task_in`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `task_type` int(11) NOT NULL COMMENT '任务类型(1入库 -1入库退)',
  `task_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `task_date` date NULL DEFAULT NULL COMMENT '任务日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务主表标识（入库任务退选）',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口编码',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `workorder_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工单编码',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskIn_taskCode`(`task_code`) USING BTREE,
  INDEX `index_taskIn_createTime`(`create_time`) USING BTREE,
  INDEX `index_taskIn`(`task_type`, `task_date`, `bill_type_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库任务主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_43_044	入库任务子
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_ins`;
CREATE TABLE `wms_task_ins`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `task_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '任务数量',
  `excess_ratio_in` double(24, 6) NULL DEFAULT NULL COMMENT '超入库比例%',
  `back_task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已任务(退)数量',
  `label_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已生成标签数量',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已入库数量',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务子表标识（入库任务退选）',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `is_close` int(11) NOT NULL DEFAULT 1 COMMENT '是否关闭(0是 1否)',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_row` int(11) NULL DEFAULT NULL COMMENT '接口行号',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `close_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关闭者',
  `close_time` datetime(0) NULL DEFAULT NULL COMMENT '关闭时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_taskIns_taskInId`(`task_in_id`) USING BTREE,
  INDEX `index_taskIns_materialCode`(`material_code`) USING BTREE,
  INDEX `index_taskIns_taskInsId`(`task_ins_id`) USING BTREE,
  INDEX `index_taskIns`(`status`, `is_close`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库任务子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_44_045	移位任务主
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_move`;
CREATE TABLE `wms_task_move`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `task_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `task_date` date NULL DEFAULT NULL COMMENT '任务日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出部门编码',
  `dept_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入部门编码',
  `employee_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出职员编码',
  `employee_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入职员编码',
  `warehouse_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出仓库编码',
  `warehouse_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入仓库编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口编码',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `customer_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入客户编码',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskMove_taskCode`(`task_code`) USING BTREE,
  INDEX `index_taskMove_createTime`(`create_time`) USING BTREE,
  INDEX `index_taskMove`(`task_date`, `bill_type_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '移位任务主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_45_046	移位任务子
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_moves`;
CREATE TABLE `wms_task_moves`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `task_move_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '任务数量',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已移位数量',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `location_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出货位编码',
  `location_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入货位编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `is_close` int(11) NOT NULL DEFAULT 1 COMMENT '是否关闭(0是 1否)',
  `interface_pid` int(11) NULL DEFAULT NULL COMMENT '接口产品标识',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_row` int(11) NULL DEFAULT NULL COMMENT '接口行号',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `close_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关闭者',
  `close_time` datetime(0) NULL DEFAULT NULL COMMENT '关闭时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_taskMoves_taskMoveId`(`task_move_id`) USING BTREE,
  INDEX `index_taskMoves_materialCode`(`material_code`) USING BTREE,
  INDEX `index_taskMoves`(`status`, `is_close`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '移位任务子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_46_047	出库任务主
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_out`;
CREATE TABLE `wms_task_out`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `task_type` int(11) NOT NULL COMMENT '任务类型(-1出库 1出库退)',
  `task_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `task_date` date NULL DEFAULT NULL COMMENT '任务日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `customer_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户编码',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_out_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务主表标识（出库任务退选）',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口编码',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskOut_taskCode`(`task_code`) USING BTREE,
  INDEX `index_taskOut_createTime`(`create_time`) USING BTREE,
  INDEX `index_taskOut`(`task_type`, `task_date`, `bill_type_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库任务主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_47_048	出库任务子
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_outs`;
CREATE TABLE `wms_task_outs`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `task_out_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '任务数量',
  `excess_ratio_out` double(24, 6) NULL DEFAULT NULL COMMENT '超出库比例%',
  `back_task_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已任务(退)数量',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已出库数量',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `is_back_flush` int(11) NOT NULL DEFAULT 1 COMMENT '是否倒冲(0是 1否)',
  `task_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务子表标识',
  `task_outs_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务子表标识',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `is_close` int(11) NOT NULL DEFAULT 1 COMMENT '是否关闭(0是 1否)',
  `interface_pid` int(11) NULL DEFAULT NULL COMMENT '接口产品标识',
  `interface_id` int(11) NULL DEFAULT NULL COMMENT '接口标识',
  `interface_row` int(11) NULL DEFAULT NULL COMMENT '接口行号',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `close_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关闭者',
  `close_time` datetime(0) NULL DEFAULT NULL COMMENT '关闭时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_taskOuts_taskOutId`(`task_out_id`) USING BTREE,
  INDEX `index_taskOuts_taskInsId`(`task_ins_id`) USING BTREE,
  INDEX `index_taskOuts_taskOutsId`(`task_outs_id`) USING BTREE,
  INDEX `index_taskOuts`(`status`, `is_close`) USING BTREE,
  INDEX `index_taskOuts_isBackFlush`(`is_back_flush`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库任务子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_48_049	任务操作者关系表
-- ----------------------------
DROP TABLE IF EXISTS `wms_task_user`;
CREATE TABLE `wms_task_user`  (
  `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码',
  `bill_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据主键',
  `user_id` bigint(50) NULL DEFAULT NULL COMMENT '操作者',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_taskUser`(`bill_code`, `bill_id`, `user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 162 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务操作者关系表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_49_050	标签

-- ----------------------------
DROP TABLE IF EXISTS `wms_label`;
CREATE TABLE `wms_label`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `label_type` int(11) NULL DEFAULT NULL COMMENT '标签类型(1一次性 2重复性)',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `label_qty` double(24, 6) NULL DEFAULT NULL COMMENT '标签数量',
  `in_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '入库数量',
  `out_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '出库数量',
  `task_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务子表标识（生成标签来源）',
  `task_changes_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转换任务子表标识（生成标签来源）',
  `stock_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库子表标识（生成标签来源）',
  `stock_changes_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转换子表标识（生成标签来源）',
  `label_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `print_count` int(11) NULL DEFAULT NULL COMMENT '打印次数',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0有效 1无效)',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_label_labelCode`(`label_code`) USING BTREE,
  INDEX `index_label_taskInsId`(`task_ins_id`) USING BTREE,
  INDEX `index_label_createTime`(`create_time`) USING BTREE,
  INDEX `index_label`(`label_type`, `status`) USING BTREE,
  INDEX `index_label_taskChangesId`(`task_changes_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22280 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '标签' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 30_50_051	冻结

-- ----------------------------
DROP TABLE IF EXISTS `wms_lock`;
CREATE TABLE `wms_lock`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `lock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '冻结编码',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `lock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_lock_warehouse_code`(`warehouse_code`) USING BTREE,
  INDEX `index_lock_location_code`(`location_code`) USING BTREE,
  INDEX `index_lock_pallet_code`(`pallet_code`) USING BTREE,
  INDEX `index_lock_material_code`(`material_code`) USING BTREE,
  INDEX `index_lock_batch`(`batch`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '冻结' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_51_052	转换主

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_change`;
CREATE TABLE `wms_stock_change`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `stock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转换编码',
  `stock_date` date NULL DEFAULT NULL COMMENT '转换日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出部门编码',
  `dept_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入部门编码',
  `employee_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出职员编码',
  `employee_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入职员编码',
  `organization_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出组织编码',
  `warehouse_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转出仓库编码',
  `organization_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入组织编码',
  `warehouse_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入仓库编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_change_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转换任务主表标识',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `interface_read` int(11) NOT NULL DEFAULT 1 COMMENT '接口是否读取(0是 1否)',
  `interface_status` int(11) NULL DEFAULT NULL COMMENT '接口读取状态(null无 200成功)',
  `interface_code` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回编码',
  `interface_message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回信息',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `guid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一值',
  `app_group_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'app组id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_stockChange_stockCode`(`stock_code`) USING BTREE,
  UNIQUE INDEX `index_stockChange_guid`(`guid`) USING BTREE,
  INDEX `index_stockChange_warehouseCodeOut`(`warehouse_code_out`) USING BTREE,
  INDEX `index_stockChange`(`stock_date`, `bill_type_code`, `status`) USING BTREE,
  INDEX `index_stockChange_warehouseCodeIn`(`warehouse_code_in`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转换主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_52_053	转换子

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_changes`;
CREATE TABLE `wms_stock_changes`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `stock_change_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `change_group` int(11) NULL DEFAULT NULL COMMENT '转换组别',
  `change_type` int(11) NULL DEFAULT NULL COMMENT '转换类型(1转出 2转入)',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '转换数量',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_changes_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转换任务子表标识',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_stockChanges_stockChangeId`(`stock_change_id`) USING BTREE,
  INDEX `index_stockChanges_taskChangesId`(`task_changes_id`) USING BTREE,
  INDEX `index_stockChanges_labelCode`(`label_code`) USING BTREE,
  INDEX `index_stockChanges_materiaCode`(`material_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '转换子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_53_054	盘点主

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_check`;
CREATE TABLE `wms_stock_check`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `stock_type` int(11) NULL DEFAULT NULL COMMENT '盘点类型 (1粗盘 2细盘)',
  `stock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点编码',
  `stock_date` date NULL DEFAULT NULL COMMENT '盘点日期',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_check_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点任务主表标识',
  `organization_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织编码',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '审核状态(0已审核 1未审核)',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `guid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一值',
  `app_group_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'app组id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_stockCheck_guid`(`guid`) USING BTREE,
  INDEX `index_stockCheck_taskCheckId`(`task_check_id`) USING BTREE,
  INDEX `index_stockCheck_stockType`(`stock_type`) USING BTREE,
  INDEX `index_stockCheck_status`(`status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '盘点主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_54_055	盘点子

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_checks`;
CREATE TABLE `wms_stock_checks`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `stock_check_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '盘点数量',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_stockChecks_materialCode`(`material_code`) USING BTREE,
  INDEX `index_stockChecks_stockCheckId`(`stock_check_id`) USING BTREE,
  INDEX `index_stockChecks`(`warehouse_code`, `location_code`, `pallet_code`, `package_code`) USING BTREE,
  INDEX `index_stockChecks_labelCode`(`label_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '盘点子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_55_056	入库主

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_in`;
CREATE TABLE `wms_stock_in`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `stock_type` int(11) NOT NULL COMMENT '入库类型(1入库 -1入库退)',
  `stock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库编码',
  `stock_date` date NULL DEFAULT NULL COMMENT '入库日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `organization_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织编码',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务主表标识',
  `back_task_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务(退)主表标识',
  `task_check_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点任务主表标识',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `interface_read` int(11) NOT NULL DEFAULT 1 COMMENT '接口是否读取(0是 1否)',
  `interface_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取状态(null无 200成功)',
  `interface_code` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回编码',
  `interface_message` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回信息',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `guid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一值',
  `app_group_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'app组id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_stockIn_stockCode`(`stock_code`) USING BTREE,
  UNIQUE INDEX `index_stockIn_guid`(`guid`) USING BTREE,
  INDEX `index_stockIn_warehouseCode`(`warehouse_code`) USING BTREE,
  INDEX `index_stockIn_interfaceStatus`(`interface_status`) USING BTREE,
  INDEX `index_stockIn`(`stock_type`, `stock_date`, `bill_type_code`, `status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_56_057	入库子

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_ins`;
CREATE TABLE `wms_stock_ins`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `stock_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '入库数量',
  `back_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已入库(退)数量',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务子表标识',
  `back_task_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库任务(退)子表标识',
  `stock_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库子表标识',
  `task_checks_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点任务子表标识',
  `stock_checks_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点子表标识',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_stockIns_stockInId`(`stock_in_id`) USING BTREE,
  INDEX `index_stockIns_labelCode`(`label_code`) USING BTREE,
  INDEX `index_stockIns_taskInsId`(`task_ins_id`) USING BTREE,
  INDEX `index_stockIns_backTaskInsId`(`back_task_ins_id`) USING BTREE,
  INDEX `index_stockIns_materialCode`(`material_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_57_058	移位主

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_move`;
CREATE TABLE `wms_stock_move`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `stock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移位编码',
  `stock_date` date NULL DEFAULT NULL COMMENT '移位日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出部门编码',
  `dept_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入部门编码',
  `employee_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出职员编码',
  `employee_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入职员编码',
  `organization_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出组织编码',
  `organization_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入组织编码',
  `warehouse_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出仓库编码',
  `warehouse_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入仓库编码',
  `customer_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入客户编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_move_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移位任务主表标识',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `interface_read` int(11) NOT NULL DEFAULT 1 COMMENT '接口是否读取(0是 1否)',
  `interface_status` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取状态(null无 200成功)',
  `interface_code` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回编码',
  `interface_message` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回信息',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `guid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一值',
  `app_group_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'app组id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_stockMove_stockCode`(`stock_code`) USING BTREE,
  UNIQUE INDEX `index_stockMove_guid`(`guid`) USING BTREE,
  INDEX `index_stockMove_interfaceStatus`(`interface_status`) USING BTREE,
  INDEX `index_stockMove_warehouseCodeOut`(`warehouse_code_out`) USING BTREE,
  INDEX `index_stockMove`(`stock_date`, `bill_type_code`, `status`) USING BTREE,
  INDEX `index_stockMove_warehouseCodeIn`(`warehouse_code_in`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '移位主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_58_059	移位子

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_moves`;
CREATE TABLE `wms_stock_moves`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `stock_move_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '移位数量',
  `location_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出货位编码',
  `location_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入货位编码',
  `pallet_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出托盘编码',
  `pallet_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入托盘编码',
  `package_code_out` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移出包装编码',
  `package_code_in` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移入包装编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_moves_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '移位任务子表标识',
  `task_outs_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务子表标识',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_stockMoves_stockMoveId`(`stock_move_id`) USING BTREE,
  INDEX `index_stockMoves_labelCode`(`label_code`) USING BTREE,
  INDEX `index_stockMoves_taskMovesId`(`task_moves_id`) USING BTREE,
  INDEX `index_stockMoves_taskOutsId`(`task_outs_id`) USING BTREE,
  INDEX `index_stockMoves_materiaCode`(`material_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '移位子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_59_060	出库主

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_out`;
CREATE TABLE `wms_stock_out`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主表标识',
  `stock_type` int(11) NOT NULL COMMENT '出库类型(-1出库 1出库退)',
  `stock_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库编码',
  `stock_date` date NULL DEFAULT NULL COMMENT '出库日期',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  `dept_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  `employee_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职员编码',
  `supplier_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商编码',
  `customer_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户编码',
  `organization_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织编码',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '仓库编码',
  `is_supplement` int(11) NOT NULL DEFAULT 1 COMMENT '是否补料(0是 1否)',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_out_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务主表标识',
  `back_task_out_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务(退)主表标识',
  `stock_in_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库主表标识(倒冲的入库单)',
  `task_check_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点任务主表标识',
  `status` int(11) NOT NULL DEFAULT 1 COMMENT '状态(0已审核 1未审核)',
  `interface_read` int(11) NOT NULL DEFAULT 1 COMMENT '接口是否读取(0是 1否)',
  `interface_status` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取状态(null无 200成功)',
  `interface_code` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回编码',
  `interface_message` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '接口读取返回信息',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `audit_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核者',
  `audit_time` datetime(0) NULL DEFAULT NULL COMMENT '审核时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  `guid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一值',
  `app_group_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'app组id',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_stockOut_stockCode`(`stock_code`) USING BTREE,
  UNIQUE INDEX `index_stockOut_guid`(`guid`) USING BTREE,
  INDEX `index_stockOut_warehouseCode`(`warehouse_code`) USING BTREE,
  INDEX `index_stockOut`(`stock_type`, `stock_date`, `bill_type_code`, `status`) USING BTREE,
  INDEX `index_stockOut_interfaceStatus`(`interface_status`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库主' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_60_061	出库子

-- ----------------------------
DROP TABLE IF EXISTS `wms_stock_outs`;
CREATE TABLE `wms_stock_outs`  (
  `id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '子表标识',
  `stock_out_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主表标识',
  `row_number` int(11) NULL DEFAULT NULL COMMENT '行号',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '出库数量',
  `back_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '已出库(退)数量',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '包装编码',
  `stock_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  `task_outs_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务子表标识',
  `back_task_outs_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库任务(退)子表标识',
  `stock_outs_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库子表标识',
  `stock_ins_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库子表标识(倒冲的入库单)',
  `task_checks_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点任务子表标识',
  `stock_checks_id` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '盘点子表标识',
  `create_id` int(11) NULL DEFAULT NULL COMMENT '创建者内码',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `extend_code01` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码01',
  `extend_code02` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码02',
  `extend_code03` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码03',
  `extend_code04` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码04',
  `extend_code05` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展编码05',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `index_stockOuts_stockOutId`(`stock_out_id`) USING BTREE,
  INDEX `index_stockOuts_taskOutsId`(`task_outs_id`) USING BTREE,
  INDEX `index_stockOuts_stockInsId`(`stock_ins_id`) USING BTREE,
  INDEX `index_stockOuts_labelCode`(`label_code`) USING BTREE,
  INDEX `index_stockOuts_materiaCode`(`material_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库子' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_61_062	现存量

-- ----------------------------
DROP TABLE IF EXISTS `wms_current_stock`;
CREATE TABLE `wms_current_stock`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '仓库编码',
  `location_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '货位编码',
  `pallet_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '托盘编码',
  `package_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '包装编码',
  `label_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标签编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '物料编码',
  `unit_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单位编码',
  `batch` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '批号',
  `batch1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号1',
  `batch2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '批号2',
  `stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '可用库存数量（入库审核、出库保存）',
  `set_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '设置库存数量（根据设置）',
  `place_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '位置库存数量（入库保存、出库审核），位置占用量',
  `version` int(11) NULL DEFAULT 0 COMMENT '版本',
  `update_timestamp` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_current`(`warehouse_code`, `location_code`, `pallet_code`, `package_code`, `label_code`, `material_code`, `batch`, `batch1`, `batch2`) USING BTREE,
  INDEX `index_current_warehouseCode`(`warehouse_code`) USING BTREE,
  INDEX `index_current_materialCode_unitCode`(`material_code`, `unit_code`) USING BTREE,
  INDEX `index_current_warehouseCode_materialCode_unitCode_batch`(`warehouse_code`, `material_code`, `unit_code`, `batch`) USING BTREE,
  INDEX `index_current_labelCode`(`label_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1263 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '现存量' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 40_62_063	期初

-- ----------------------------
DROP TABLE IF EXISTS `wms_initial_stock`;
CREATE TABLE `wms_initial_stock`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '标识',
  `warehouse_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '仓库编码',
  `material_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '物料编码',
  `stock_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单据日期',
  `create_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '创建日期',
  `audit_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '审核日期',
  `in_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '入库数量',
  `out_stock_qty` double(24, 6) NULL DEFAULT NULL COMMENT '出库数量',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index_initial`(`warehouse_code`, `material_code`, `stock_date`, `create_date`, `audit_date`) USING BTREE,
  INDEX `index_initial_warehouseCode`(`warehouse_code`) USING BTREE,
  INDEX `index_initial_materialCode`(`material_code`) USING BTREE,
  INDEX `index_initial_stockDate`(`stock_date`) USING BTREE,
  INDEX `index_initial_createDate`(`create_date`) USING BTREE,
  INDEX `index_initial_auditDate`(`audit_date`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 276 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '期初' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_63_064	点检设备表

-- ----------------------------
DROP TABLE IF EXISTS `dv_check_machinery`;
CREATE TABLE `dv_check_machinery`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `plan_id` bigint(20) NOT NULL COMMENT '计划ID',
  `machinery_id` bigint(20) NOT NULL COMMENT '设备ID',
  `machinery_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编码',
  `machinery_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备名称',
  `machinery_brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌',
  `machinery_spec` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '点检设备表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_64_065	设备点检保养计划头表

-- ----------------------------
DROP TABLE IF EXISTS `dv_check_plan`;
CREATE TABLE `dv_check_plan`  (
  `plan_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '计划ID',
  `plan_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '计划编码',
  `plan_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '计划名称',
  `plan_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '计划类型',
  `start_date` datetime(0) NULL DEFAULT NULL COMMENT '开始日期',
  `end_date` datetime(0) NULL DEFAULT NULL COMMENT '结束日期',
  `cycle_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '频率',
  `cycle_count` int(11) NULL DEFAULT NULL COMMENT '次数',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`plan_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备点检保养计划头表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_65_066	设备点检记录_陈志强

-- ----------------------------
DROP TABLE IF EXISTS `dv_check_record`;
CREATE TABLE `dv_check_record`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `user_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(125) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `machinery_id` bigint(20) NOT NULL COMMENT '设备ID',
  `machinery_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编码',
  `machinery_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备名称',
  `plan_id` bigint(20) NOT NULL COMMENT '计划ID',
  `subject_id` bigint(20) NOT NULL COMMENT '项目ID',
  `subject_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目编码',
  `subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  `operation_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作类型',
  `operation_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作名称',
  `operation_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 157 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备点检记录_陈志强' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_66_067	点检项目表

-- ----------------------------
DROP TABLE IF EXISTS `dv_check_subject`;
CREATE TABLE `dv_check_subject`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `plan_id` bigint(20) NOT NULL COMMENT '计划ID',
  `subject_id` bigint(20) NOT NULL COMMENT '项目ID',
  `subject_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目编码',
  `subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  `subject_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目类型',
  `subject_content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目内容',
  `subject_standard` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标准',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '点检项目表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_67_068	设备表

-- ----------------------------
DROP TABLE IF EXISTS `dv_machinery`;
CREATE TABLE `dv_machinery`  (
  `machinery_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '设备ID',
  `machinery_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编码',
  `machinery_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备名称',
  `machinery_brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌',
  `machinery_spec` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `machinery_type_id` bigint(20) NOT NULL COMMENT '设备类型ID',
  `machinery_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备类型编码',
  `machinery_type_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备类型名称',
  `workshop_id` bigint(20) NOT NULL COMMENT '所属车间ID',
  `workshop_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属车间编码',
  `workshop_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属车间名称',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'STOP' COMMENT '设备状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`machinery_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_68_069	设备类型表

-- ----------------------------
DROP TABLE IF EXISTS `dv_machinery_type`;
CREATE TABLE `dv_machinery_type`  (
  `machinery_type_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '设备类型ID',
  `machinery_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备类型编码',
  `machinery_type_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备类型名称',
  `parent_type_id` bigint(20) NULL DEFAULT 0 COMMENT '父类型ID',
  `ancestors` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所有父节点ID',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`machinery_type_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_69_070	设备维修单

-- ----------------------------
DROP TABLE IF EXISTS `dv_repair`;
CREATE TABLE `dv_repair`  (
  `repair_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '维修单ID',
  `repair_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '维修单编号',
  `repair_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维修单名称',
  `machinery_id` bigint(20) NOT NULL COMMENT '设备ID',
  `machinery_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备编码',
  `machinery_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '设备名称',
  `machinery_brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌',
  `machinery_spec` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `machinery_type_id` bigint(20) NOT NULL COMMENT '设备类型ID',
  `require_date` datetime(0) NULL DEFAULT NULL COMMENT '报修日期',
  `finish_date` datetime(0) NULL DEFAULT NULL COMMENT '维修完成日期',
  `confirm_date` datetime(0) NULL DEFAULT NULL COMMENT '验收日期',
  `repair_result` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维修结果',
  `accepted_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维修人员',
  `confirm_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '验收人员',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'PREPARE' COMMENT '单据状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`repair_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 39 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备维修单' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_70_071	设备维修单行

-- ----------------------------
DROP TABLE IF EXISTS `dv_repair_line`;
CREATE TABLE `dv_repair_line`  (
  `line_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '行ID',
  `repair_id` bigint(20) NOT NULL COMMENT '维修单ID',
  `subject_id` bigint(20) NULL DEFAULT NULL COMMENT '项目ID',
  `subject_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目编码',
  `subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  `subject_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目类型',
  `subject_content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目内容',
  `subject_standard` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标准',
  `malfunction` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '故障描述',
  `malfunction_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '故障描述资源',
  `repair_des` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '维修情况',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`line_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备维修单行' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 61_71_072	设备点检保养项目表

-- ----------------------------
DROP TABLE IF EXISTS `dv_subject`;
CREATE TABLE `dv_subject`  (
  `subject_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '项目ID',
  `subject_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目编码',
  `subject_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  `subject_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '项目类型',
  `subject_content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目内容',
  `subject_standard` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标准',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`subject_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设备点检保养项目表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 62_72_073	工装夹具清单表

-- ----------------------------
DROP TABLE IF EXISTS `tm_tool`;
CREATE TABLE `tm_tool`  (
  `tool_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工装夹具ID',
  `tool_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工装夹具编码',
  `tool_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工装夹具名称',
  `brand` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌',
  `spec` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '型号',
  `tool_type_id` bigint(11) NOT NULL COMMENT '工装夹具类型ID',
  `tool_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工装夹具类型编码',
  `tool_type_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工装夹具类型名称',
  `code_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否单独编码管理',
  `quantity` int(11) NOT NULL DEFAULT 1 COMMENT '数量',
  `quantity_avail` int(11) NULL DEFAULT 1 COMMENT '可用数量',
  `mainten_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保养维护类型',
  `next_mainten_period` int(11) NULL DEFAULT NULL COMMENT '下一次保养周期',
  `next_mainten_date` datetime(0) NULL DEFAULT NULL COMMENT '下一次保养日期',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'STORE' COMMENT '状态[MES_TOOL_STATUS]',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`tool_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工装夹具清单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 62_73_074	工装夹具类型表

-- ----------------------------
DROP TABLE IF EXISTS `tm_tool_type`;
CREATE TABLE `tm_tool_type`  (
  `tool_type_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工装夹具类型ID',
  `tool_type_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型编码',
  `tool_type_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型名称',
  `code_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否编码管理',
  `mainten_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保养维护类型',
  `mainten_period` int(11) NULL DEFAULT NULL COMMENT '保养周期',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`tool_type_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工装夹具类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_74_075	生产报工记录表

-- ----------------------------
DROP TABLE IF EXISTS `pro_feedback`;
CREATE TABLE `pro_feedback`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `feedback_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '报工类型',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `workorder_id` bigint(20) NOT NULL COMMENT '生产工单ID',
  `workorder_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产工单编号',
  `workorder_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产工单名称',
  `process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `task_id` bigint(20) NULL DEFAULT NULL COMMENT '生产任务ID',
  `task_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产任务编号',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `quantity` double(14, 2) NULL DEFAULT NULL COMMENT '排产数量',
  `quantity_feedback` double(14, 2) NULL DEFAULT NULL COMMENT '本次报工数量',
  `quantity_qualified` double(14, 2) NULL DEFAULT NULL COMMENT '合格品数量',
  `quantity_unquanlified` double(14, 2) NULL DEFAULT NULL COMMENT '不良品数量',
  `user_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报工用户名',
  `nick_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '昵称',
  `feedback_channel` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报工途径',
  `feedback_time` datetime(0) NULL DEFAULT NULL COMMENT '报工时间',
  `record_user` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '记录人',
  `record_nick` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '记录人名称',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'PREPARE' COMMENT '状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产报工记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_75_076	生产工序表

-- ----------------------------
DROP TABLE IF EXISTS `pro_process`;
CREATE TABLE `pro_process`  (
  `process_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工序名称',
  `attention` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工艺要求',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`process_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产工序表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_76_077	生产工序内容表

-- ----------------------------
DROP TABLE IF EXISTS `pro_process_content`;
CREATE TABLE `pro_process_content`  (
  `content_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '内容ID',
  `process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `order_num` int(4) NULL DEFAULT 0 COMMENT '顺序编号',
  `content_text` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容说明',
  `device` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '辅助设备',
  `material` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '辅助材料',
  `doc_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '材料URL',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`content_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产工序内容表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_77_078	工艺路线表

-- ----------------------------
DROP TABLE IF EXISTS `pro_route`;
CREATE TABLE `pro_route`  (
  `route_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工艺路线ID',
  `route_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工艺路线编号',
  `route_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工艺路线名称',
  `route_desc` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工艺路线说明',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`route_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工艺路线表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_78_079	工艺组成表

-- ----------------------------
DROP TABLE IF EXISTS `pro_route_process`;
CREATE TABLE `pro_route_process`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `route_id` bigint(20) NOT NULL COMMENT '工艺路线ID',
  `process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `order_num` int(4) NULL DEFAULT 1 COMMENT '序号',
  `next_process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `next_process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `next_process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `link_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'SS' COMMENT '与下一道工序关系',
  `default_pre_time` int(11) NULL DEFAULT 0 COMMENT '准备时间',
  `default_suf_time` int(11) NULL DEFAULT 0 COMMENT '等待时间',
  `color_code` char(7) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#00AEF3' COMMENT '甘特图显示颜色',
  `key_flag` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '关键工序',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 40 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工艺组成表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_79_080	产品制程

-- ----------------------------
DROP TABLE IF EXISTS `pro_route_product`;
CREATE TABLE `pro_route_product`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `route_id` bigint(20) NOT NULL COMMENT '工艺路线ID',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity` int(11) NULL DEFAULT 1 COMMENT '生产数量',
  `production_time` double(12, 2) NULL DEFAULT 1.00 COMMENT '生产用时',
  `time_unit_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'MINUTE' COMMENT '时间单位',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 38 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '产品制程' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_80_081	产品制程物料BOM表

-- ----------------------------
DROP TABLE IF EXISTS `pro_route_product_bom`;
CREATE TABLE `pro_route_product_bom`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `route_id` bigint(20) NOT NULL COMMENT '工艺路线ID',
  `process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `product_id` bigint(20) NOT NULL COMMENT '产品BOM中的唯一ID',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity` double(12, 2) NULL DEFAULT 1.00 COMMENT '用料比例',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '产品制程物料BOM表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_81_082	生产任务表

-- ----------------------------
DROP TABLE IF EXISTS `pro_task`;
CREATE TABLE `pro_task`  (
  `task_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  `task_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务编号',
  `task_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
  `workorder_id` bigint(20) NOT NULL COMMENT '生产工单ID',
  `workorder_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '生产工单编号',
  `workorder_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工单名称',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作站编号',
  `workstation_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作站名称',
  `process_id` bigint(20) NOT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity` double(14, 2) NOT NULL DEFAULT 1.00 COMMENT '排产数量',
  `quantity_produced` double(14, 2) NULL DEFAULT 0.00 COMMENT '已生产数量',
  `quantity_quanlify` double(14, 2) NULL DEFAULT 0.00 COMMENT '合格品数量',
  `quantity_unquanlify` double(14, 2) NULL DEFAULT 0.00 COMMENT '不良品数量',
  `quantity_changed` double(14, 2) NULL DEFAULT 0.00 COMMENT '调整数量',
  `client_id` bigint(20) NULL DEFAULT NULL COMMENT '客户ID',
  `client_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户编码',
  `client_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户名称',
  `client_nick` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户简称',
  `start_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '开始生产时间',
  `duration` int(11) NULL DEFAULT 1 COMMENT '生产时长',
  `end_time` datetime(0) NULL DEFAULT NULL COMMENT '完成生产时间',
  `color_code` char(7) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#00AEF3' COMMENT '甘特图显示颜色',
  `request_date` datetime(0) NULL DEFAULT NULL COMMENT '需求日期',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'NORMAL' COMMENT '生产状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`task_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_82_083	生产任务投料表

-- ----------------------------
DROP TABLE IF EXISTS `pro_task_issue`;
CREATE TABLE `pro_task_issue`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `task_id` bigint(20) NOT NULL COMMENT '生产任务ID',
  `workorder_id` bigint(20) NULL DEFAULT NULL COMMENT '生产工单ID',
  `workstation_id` bigint(20) NULL DEFAULT NULL COMMENT '工作站ID',
  `source_doc_id` bigint(20) NOT NULL COMMENT '单据ID',
  `source_doc_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据编号',
  `batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '投料批次',
  `source_line_id` bigint(20) NULL DEFAULT NULL COMMENT '行ID',
  `item_id` bigint(20) NULL DEFAULT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity_issued` double(12, 2) NULL DEFAULT NULL COMMENT '总的投料数量',
  `quantity_available` double(12, 2) NULL DEFAULT NULL COMMENT '当前可用数量',
  `quantity_used` double(12, 2) NULL DEFAULT NULL COMMENT '当前使用数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `source_doc_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据类型',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产任务投料表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_83_084	物料消耗记录表

-- ----------------------------
DROP TABLE IF EXISTS `pro_trans_consume`;
CREATE TABLE `pro_trans_consume`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `trans_order_id` bigint(20) NULL DEFAULT NULL COMMENT '流转单ID',
  `trans_order_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流转单编号',
  `task_id` bigint(20) NOT NULL COMMENT '生产任务ID',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `process_id` bigint(20) NULL DEFAULT NULL COMMENT '工序ID',
  `workorder_id` bigint(20) NULL DEFAULT NULL COMMENT '生产工单ID',
  `batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `source_doc_id` bigint(20) NULL DEFAULT NULL COMMENT '被消耗单据ID',
  `source_doc_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被消耗单据编号',
  `source_doc_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被消耗单据类型',
  `source_line_id` bigint(20) NULL DEFAULT NULL COMMENT '被消耗单据行ID',
  `source_batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被消耗物料批次号',
  `item_id` bigint(20) NULL DEFAULT NULL COMMENT '被消耗产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '被消耗产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '被消耗产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity_consumed` double(12, 2) NULL DEFAULT NULL COMMENT '消耗数量',
  `consume_date` datetime(0) NULL DEFAULT NULL COMMENT '消耗时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '物料消耗记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_84_085	流转单表

-- ----------------------------
DROP TABLE IF EXISTS `pro_trans_order`;
CREATE TABLE `pro_trans_order`  (
  `trans_order_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流转单ID',
  `trans_order_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流转单编号',
  `task_id` bigint(20) NOT NULL COMMENT '生产任务ID',
  `task_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产任务编号',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `process_id` bigint(20) NULL DEFAULT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编号',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `workorder_id` bigint(20) NULL DEFAULT NULL COMMENT '生产工单ID',
  `workorder_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产工单编号',
  `workorder_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生产工单名称',
  `batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `item_id` bigint(20) NULL DEFAULT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `barcode_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '赋码地址',
  `quantity_transfered` double(12, 2) NULL DEFAULT NULL COMMENT '流转数量',
  `produce_date` datetime(0) NULL DEFAULT NULL COMMENT '生产日期',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`trans_order_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '流转单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_85_086	用户工作站绑定关系

-- ----------------------------
DROP TABLE IF EXISTS `pro_user_workstation`;
CREATE TABLE `pro_user_workstation`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `user_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(125) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `operation_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户工作站绑定关系' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_86_087	生产工单表

-- ----------------------------
DROP TABLE IF EXISTS `pro_workorder`;
CREATE TABLE `pro_workorder`  (
  `workorder_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '工单ID',
  `workorder_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工单编码',
  `workorder_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工单名称',
  `order_source` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '来源类型',
  `source_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '来源单据',
  `product_id` bigint(20) NOT NULL COMMENT '产品ID',
  `product_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品编号',
  `product_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '产品名称',
  `product_spc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `quantity` double(14, 2) NOT NULL DEFAULT 0.00 COMMENT '生产数量',
  `quantity_produced` double(14, 2) NULL DEFAULT 0.00 COMMENT '已生产数量',
  `quantity_changed` double(14, 2) NULL DEFAULT 0.00 COMMENT '调整数量',
  `quantity_scheduled` double(14, 2) NULL DEFAULT 0.00 COMMENT '已排产数量',
  `client_id` bigint(20) NULL DEFAULT NULL COMMENT '客户ID',
  `client_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户编码',
  `client_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户名称',
  `batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `request_date` datetime(0) NOT NULL COMMENT '需求日期',
  `confirm_date` datetime(0) NULL DEFAULT NULL COMMENT '完成时间',
  `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '父工单',
  `ancestors` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '所有父节点ID',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'PREPARE' COMMENT '单据状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期',
  PRIMARY KEY (`workorder_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 403 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产工单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_87_088	生产工单BOM组成表

-- ----------------------------
DROP TABLE IF EXISTS `pro_workorder_bom`;
CREATE TABLE `pro_workorder_bom`  (
  `line_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '行ID',
  `workorder_id` bigint(20) NOT NULL COMMENT '生产工单ID',
  `item_id` bigint(20) NOT NULL COMMENT 'BOM物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'BOM物料编号',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'BOM物料名称',
  `item_spc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位',
  `item_or_product` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '物料产品标识',
  `quantity` double(14, 2) NOT NULL DEFAULT 0.00 COMMENT '预计使用量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`line_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 389 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '生产工单BOM组成表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 70_88_089	上下工记录表

-- ----------------------------
DROP TABLE IF EXISTS `pro_workrecord`;
CREATE TABLE `pro_workrecord`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `user_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(125) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `operation_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作类型',
  `operation_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作名称',
  `operation_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `task_id` bigint(20) NULL DEFAULT NULL COMMENT '任务ID',
  `task_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务编码',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '上下工记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_89_090	常见缺陷表

-- ----------------------------
DROP TABLE IF EXISTS `qc_defect`;
CREATE TABLE `qc_defect`  (
  `defect_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '缺陷ID',
  `defect_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缺陷编码',
  `defect_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缺陷描述',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项类型',
  `defect_level` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缺陷等级',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`defect_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 206 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '常见缺陷表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qc_defect
-- ----------------------------
INSERT INTO `qc_defect` VALUES (200, 'DF009', '溢胶', 'APPEARANCE', 'MAJ', '', NULL, NULL, 0, 0, '', '2023-03-07 16:12:17', '', '2024-11-06 14:58:58');
INSERT INTO `qc_defect` VALUES (201, 'DF010', '划痕', 'APPEARANCE', 'MIN', '', NULL, NULL, 0, 0, '', '2023-03-07 16:12:23', '', '2024-11-06 14:59:08');

-- ----------------------------
-- 71_90_091	检测记录照片表

-- ----------------------------
DROP TABLE IF EXISTS `qc_defect_photo`;
CREATE TABLE `qc_defect_photo`  (
  `photo_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '照片主键',
  `photo_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '照片路径',
  `create_time` datetime(0) NOT NULL COMMENT '创建时间',
  `record_id` int(11) NULL DEFAULT NULL COMMENT '记录ID',
  PRIMARY KEY (`photo_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '检测记录照片表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_91_092	检验单缺陷记录表

-- ----------------------------
DROP TABLE IF EXISTS `qc_defect_record`;
CREATE TABLE `qc_defect_record`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '缺陷ID',
  `qc_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检验单类型',
  `qc_id` bigint(20) NOT NULL COMMENT '检验单ID',
  `line_id` bigint(20) NOT NULL COMMENT '检验单行ID',
  `defect_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缺陷描述',
  `defect_level` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缺陷等级',
  `defect_quantity` int(11) NULL DEFAULT 1 COMMENT '缺陷数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 167 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '检验单缺陷记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_92_093	检测项表

-- ----------------------------
DROP TABLE IF EXISTS `qc_index`;
CREATE TABLE `qc_index`  (
  `index_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '检测项ID',
  `index_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项编码',
  `index_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项名称',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项类型',
  `qc_tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测工具',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`index_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '检测项表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of qc_index
-- ----------------------------
INSERT INTO `qc_index` VALUES (1, 'I0036', '尺寸', 'SIZE', '游标卡尺', '', NULL, NULL, 0, 0, '', '2024-11-06 15:00:13', '', NULL);
INSERT INTO `qc_index` VALUES (2, 'I0037', '重量', 'WEIGHT', '精度称', '', NULL, NULL, 0, 0, '', '2024-11-06 15:04:32', '', '2024-11-06 15:04:59');

-- ----------------------------
-- 71_93_094	过程检验单表

-- ----------------------------
DROP TABLE IF EXISTS `qc_ipqc`;
CREATE TABLE `qc_ipqc`  (
  `ipqc_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '检验单ID',
  `ipqc_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检验单编号',
  `ipqc_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检验单名称',
  `ipqc_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检验类型',
  `template_id` bigint(20) NOT NULL COMMENT '检验模板ID',
  `workorder_id` bigint(20) NOT NULL COMMENT '工单ID',
  `workorder_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单编码',
  `workorder_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单名称',
  `task_id` bigint(20) NULL DEFAULT NULL COMMENT '任务ID',
  `task_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务编号',
  `task_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '任务名称',
  `workstation_id` bigint(20) NOT NULL COMMENT '工作站ID',
  `workstation_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站编号',
  `workstation_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作站名称',
  `process_id` bigint(20) NULL DEFAULT NULL COMMENT '工序ID',
  `process_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序编码',
  `process_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工序名称',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `quantity_check` double(12, 4) NULL DEFAULT 1.0000 COMMENT '检测数量',
  `quantity_unqualified` double(12, 4) NULL DEFAULT 0.0000 COMMENT '不合格数',
  `quantity_qualified` double(12, 4) NULL DEFAULT NULL COMMENT '合格品数量',
  `cr_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '致命缺陷率',
  `maj_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '严重缺陷率',
  `min_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '轻微缺陷率',
  `cr_quantity` int(12) NULL DEFAULT 0 COMMENT '致命缺陷数量',
  `maj_quantity` int(12) NULL DEFAULT 0 COMMENT '严重缺陷数量',
  `min_quantity` int(12) NULL DEFAULT 0 COMMENT '轻微缺陷数量',
  `check_result` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测结果',
  `inspect_date` datetime(0) NULL DEFAULT NULL COMMENT '检测日期',
  `inspector` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测人员',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`ipqc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2958 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '过程检验单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_94_095	过程检验单行表

-- ----------------------------
DROP TABLE IF EXISTS `qc_ipqc_line`;
CREATE TABLE `qc_ipqc_line`  (
  `line_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `ipqc_id` bigint(20) NOT NULL COMMENT '检验单ID',
  `index_id` bigint(20) NOT NULL COMMENT '检测项ID',
  `index_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项编码',
  `index_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项名称',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项类型',
  `qc_tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测工具',
  `check_method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测要求',
  `stander_val` double(12, 4) NULL DEFAULT NULL COMMENT '标准值',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `threshold_max` double(12, 4) NULL DEFAULT NULL COMMENT '误差上限',
  `threshold_min` double(12, 4) NULL DEFAULT NULL COMMENT '误差下限',
  `cr_quantity` int(12) NULL DEFAULT 0 COMMENT '致命缺陷数量',
  `maj_quantity` int(12) NULL DEFAULT 0 COMMENT '严重缺陷数量',
  `min_quantity` int(12) NULL DEFAULT 0 COMMENT '轻微缺陷数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`line_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 629 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '过程检验单行表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_95_096	来料检验单表

-- ----------------------------
DROP TABLE IF EXISTS `qc_iqc`;
CREATE TABLE `qc_iqc`  (
  `iqc_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '来料检验单ID',
  `iqc_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '来料检验单编号',
  `iqc_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '来料检验单名称',
  `template_id` bigint(20) NOT NULL COMMENT '检验模板ID',
  `vendor_id` bigint(20) NOT NULL COMMENT '供应商ID',
  `vendor_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '供应商编码',
  `vendor_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '供应商名称',
  `vendor_nick` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商简称',
  `vendor_batch` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供应商批次号',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `quantity_min_check` int(11) NULL DEFAULT 1 COMMENT '最低检测数',
  `quantity_max_unqualified` int(11) NULL DEFAULT 0 COMMENT '最大不合格数',
  `quantity_recived` double(12, 2) NOT NULL COMMENT '本次接收数量',
  `quantity_check` int(11) NOT NULL COMMENT '本次检测数量',
  `quantity_unqualified` int(11) NULL DEFAULT 0 COMMENT '不合格数',
  `cr_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '致命缺陷率',
  `maj_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '严重缺陷率',
  `min_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '轻微缺陷率',
  `cr_quantity` int(11) NULL DEFAULT 0 COMMENT '致命缺陷数量',
  `maj_quantity` int(11) NULL DEFAULT 0 COMMENT '严重缺陷数量',
  `min_quantity` int(11) NULL DEFAULT 0 COMMENT '轻微缺陷数量',
  `check_result` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测结果',
  `recive_date` datetime(0) NULL DEFAULT NULL COMMENT '来料日期',
  `inspect_date` datetime(0) NULL DEFAULT NULL COMMENT '检测日期',
  `inspector` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测人员',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`iqc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '来料检验单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_96_097	来料检验单行表

-- ----------------------------
DROP TABLE IF EXISTS `qc_iqc_line`;
CREATE TABLE `qc_iqc_line`  (
  `line_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `iqc_id` bigint(20) NOT NULL COMMENT '检验单ID',
  `index_id` bigint(20) NOT NULL COMMENT '检测项ID',
  `index_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项编码',
  `index_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项名称',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项类型',
  `qc_tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测工具',
  `check_method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测要求',
  `stander_val` double(12, 4) NULL DEFAULT NULL COMMENT '标准值',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `threshold_max` double(12, 4) NULL DEFAULT NULL COMMENT '误差上限',
  `threshold_min` double(12, 4) NULL DEFAULT NULL COMMENT '误差下限',
  `cr_quantity` int(11) NULL DEFAULT 0 COMMENT '致命缺陷数量',
  `maj_quantity` int(11) NULL DEFAULT 0 COMMENT '严重缺陷数量',
  `min_quantity` int(11) NULL DEFAULT 0 COMMENT '轻微缺陷数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`line_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '来料检验单行表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_97_098	出货检验单表

-- ----------------------------
DROP TABLE IF EXISTS `qc_oqc`;
CREATE TABLE `qc_oqc`  (
  `oqc_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '出货检验单ID',
  `oqc_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '出货检验单编号',
  `oqc_name` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出货检验单名称',
  `template_id` bigint(20) NOT NULL COMMENT '检验模板ID',
  `client_id` bigint(20) NOT NULL COMMENT '客户ID',
  `client_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户编码',
  `client_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客户名称',
  `batch_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次号',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `quantity_min_check` double(12, 4) NULL DEFAULT 1.0000 COMMENT '最低检测数',
  `quantity_max_unqualified` double(12, 4) NULL DEFAULT 0.0000 COMMENT '最大不合格数',
  `quantity_out` double(12, 4) NOT NULL COMMENT '发货数量',
  `quantity_check` double(12, 4) NOT NULL COMMENT '本次检测数量',
  `quantity_unqualified` double(12, 4) NULL DEFAULT 0.0000 COMMENT '不合格数',
  `quantity_quanlified` double(12, 4) NULL DEFAULT 0.0000 COMMENT '合格数量',
  `cr_rate` double(12, 4) NULL DEFAULT 0.0000 COMMENT '致命缺陷率',
  `maj_rate` double(12, 4) NULL DEFAULT 0.0000 COMMENT '严重缺陷率',
  `min_rate` double(12, 4) NULL DEFAULT 0.0000 COMMENT '轻微缺陷率',
  `cr_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '致命缺陷数量',
  `maj_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '严重缺陷数量',
  `min_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '轻微缺陷数量',
  `check_result` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测结果',
  `out_date` datetime(0) NULL DEFAULT NULL COMMENT '出货日期',
  `inspect_date` datetime(0) NULL DEFAULT NULL COMMENT '检测日期',
  `inspector` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测人员',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`oqc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '出货检验单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_98_099	出货检验单行表

-- ----------------------------
DROP TABLE IF EXISTS `qc_oqc_line`;
CREATE TABLE `qc_oqc_line`  (
  `line_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `oqc_id` bigint(20) NOT NULL COMMENT '检验单ID',
  `index_id` bigint(20) NOT NULL COMMENT '检测项ID',
  `index_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项编码',
  `index_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项名称',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测项类型',
  `qc_tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测工具',
  `check_method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测要求',
  `stander_val` double(12, 4) NULL DEFAULT NULL COMMENT '标准值',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `threshold_max` double(12, 4) NULL DEFAULT NULL COMMENT '误差上限',
  `threshold_min` double(12, 4) NULL DEFAULT NULL COMMENT '误差下限',
  `cr_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '致命缺陷数量',
  `maj_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '严重缺陷数量',
  `min_quantity` double(12, 4) NULL DEFAULT 0.0000 COMMENT '轻微缺陷数量',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`line_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '出货检验单行表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 71_99_100	检测模板表
-- ----------------------------
DROP TABLE IF EXISTS `qc_template`;
CREATE TABLE `qc_template`  (
  `template_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '检测模板ID',
  `template_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测模板编号',
  `template_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测模板名称',
  `qc_types` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测种类',
  `enable_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'Y' COMMENT '是否启用',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`template_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '检测模板表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 检测模板表 初始数据
-- ----------------------------
INSERT INTO `qc_template` VALUES (1, 'QCT2013001', '来料检验', 'IQC', 'Y', '', NULL, NULL, 0, 0, '', sysdate(), '', NULL);
INSERT INTO `qc_template` VALUES (2, 'QCT2013002', '成品检验', 'FQC,PATROL,FIRST,PQC,IQC,SELF,OQC', 'Y', '', NULL, NULL, 0, 0, '', sysdate(), '', NULL);

-- ----------------------------
-- 71_100_101	检测模板-检测项表
-- ----------------------------
DROP TABLE IF EXISTS `qc_template_index`;
CREATE TABLE `qc_template_index`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `template_id` bigint(20) NOT NULL COMMENT '检测模板ID',
  `index_id` bigint(20) NOT NULL COMMENT '检测项ID',
  `index_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项编码',
  `index_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项名称',
  `index_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '检测项类型',
  `qc_tool` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测工具',
  `check_method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '检测要求',
  `stander_val` double(12, 4) NULL DEFAULT NULL COMMENT '标准值',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `threshold_max` double(12, 4) NULL DEFAULT NULL COMMENT '误差上限',
  `threshold_min` double(12, 4) NULL DEFAULT NULL COMMENT '误差下限',
  `doc_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '说明图',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '检测模板-检测项表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 检测模板-检测项表 初始数据
-- ----------------------------
INSERT INTO `qc_template_index` VALUES (1, 1, 1, 'I0001', '尺寸', 'SIZE', '游标卡尺', NULL, 10.0000, '厘米', 0.5000, 0.0000, NULL, '', NULL, NULL, 0, 0, '', sysdate(), NULL, NULL);
INSERT INTO `qc_template_index` VALUES (2, 2, 2, 'I0002', '重量', 'WEIGHT', '精度称', NULL, 10.0000, 'KG', 0.5000, 0.0000, NULL, '', NULL, NULL, 0, 0, '', sysdate(), NULL, NULL);
INSERT INTO `qc_template_index` VALUES (3, 2, 1, 'I0001', '尺寸', 'SIZE', '游标卡尺', NULL, 10.0000, '厘米', 4.0000, 0.0000, NULL, '', NULL, NULL, 0, 0, '', sysdate(), NULL, NULL);
INSERT INTO `qc_template_index` VALUES (4, 1, 2, 'I0002', '重量', 'WEIGHT', '精度称', NULL, NULL, 'KG', 2.0000, 0.0000, NULL, '', NULL, NULL, 0, 0, '', sysdate(), NULL, NULL);

-- ----------------------------
-- 71_101_102	检测模板-产品表

-- ----------------------------
DROP TABLE IF EXISTS `qc_template_product`;
CREATE TABLE `qc_template_product`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `template_id` bigint(20) NOT NULL COMMENT '检测模板ID',
  `item_id` bigint(20) NOT NULL COMMENT '产品物料ID',
  `item_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料编码',
  `item_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品物料名称',
  `specification` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格型号',
  `unit_of_measure` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位',
  `quantity_check` int(11) NULL DEFAULT 1 COMMENT '最低检测数',
  `quantity_unqualified` int(11) NULL DEFAULT 0 COMMENT '最大不合格数',
  `cr_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '最大致命缺陷率',
  `maj_rate` double(12, 2) NULL DEFAULT 0.00 COMMENT '最大严重缺陷率',
  `min_rate` double(12, 2) NULL DEFAULT 100.00 COMMENT '最大轻微缺陷率',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '检测模板-产品表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_102_103	节假日设置

-- ----------------------------
DROP TABLE IF EXISTS `cal_holiday`;
CREATE TABLE `cal_holiday`  (
  `holiday_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `the_day` datetime(0) NULL DEFAULT NULL COMMENT '日期',
  `holiday_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '日期类型',
  `start_time` datetime(0) NULL DEFAULT NULL COMMENT '开始时间',
  `end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`holiday_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '节假日设置' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_103_104	排班计划表

-- ----------------------------
DROP TABLE IF EXISTS `cal_plan`;
CREATE TABLE `cal_plan`  (
  `plan_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '计划ID',
  `plan_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '计划编号',
  `plan_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '计划名称',
  `calendar_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组类型',
  `start_date` datetime(0) NOT NULL COMMENT '开始日期',
  `end_date` datetime(0) NOT NULL COMMENT '结束日期',
  `shift_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '轮班方式',
  `shift_method` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '倒班方式',
  `shift_count` int(11) NULL DEFAULT NULL COMMENT '数',
  `status` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'PREPARE' COMMENT '状态',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`plan_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '排班计划表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_104_105	计划班组表

-- ----------------------------
DROP TABLE IF EXISTS `cal_plan_team`;
CREATE TABLE `cal_plan_team`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `plan_id` bigint(20) NOT NULL COMMENT '计划ID',
  `team_id` bigint(20) NOT NULL COMMENT '班组ID',
  `team_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组编号',
  `team_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组名称',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '计划班组表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_105_106	计划班次表

-- ----------------------------
DROP TABLE IF EXISTS `cal_shift`;
CREATE TABLE `cal_shift`  (
  `shift_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '班次ID',
  `plan_id` bigint(20) NOT NULL COMMENT '计划ID',
  `order_num` int(2) NOT NULL COMMENT '序号',
  `shift_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '班次名称',
  `start_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '开始时间',
  `end_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '结束时间',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`shift_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '计划班次表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_106_107	班组表

-- ----------------------------
DROP TABLE IF EXISTS `cal_team`;
CREATE TABLE `cal_team`  (
  `team_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '班组ID',
  `team_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '班组编号',
  `team_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '班组名称',
  `calendar_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组类型',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`team_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '班组表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- 72_107_108	班组排班表
-- ----------------------------
DROP TABLE IF EXISTS `cal_teamshift`;
CREATE TABLE `cal_teamshift`  (
  `record_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '流水号',
  `the_day` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '日期',
  `team_id` bigint(20) NOT NULL COMMENT '班组ID',
  `team_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组名称',
  `shift_id` bigint(20) NOT NULL COMMENT '班次ID',
  `shift_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班次名称',
  `order_num` int(11) NULL DEFAULT NULL COMMENT '序号',
  `plan_id` bigint(20) NULL DEFAULT NULL COMMENT '计划ID',
  `calendar_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组类型',
  `shift_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '轮班方式',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`record_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '班组排班表' ROW_FORMAT = Dynamic;


-- ----------------------------
-- 72_108_109	班组成员表
-- ----------------------------
DROP TABLE IF EXISTS `cal_team_member`;
CREATE TABLE `cal_team_member`  (
  `member_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '班组成员ID',
  `team_id` bigint(20) NOT NULL COMMENT '班组ID',
  `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `user_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
  `nick_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户昵称',
  `tel` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话',
  `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  `attr1` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `attr2` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `attr3` int(11) NULL DEFAULT 0 COMMENT '预留字段3',
  `attr4` int(11) NULL DEFAULT 0 COMMENT '预留字段4',
  `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`member_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '班组成员表' ROW_FORMAT = Dynamic;


-- ----------------------------
-- 桌面项
-- ----------------------------
DROP TABLE IF EXISTS `set_desktop_item`;
CREATE TABLE `set_desktop_item`  (
  `id` int(255) NOT NULL AUTO_INCREMENT,
  `label` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签名',
  `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
  `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路径',
  `item_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型(菜单、任务)',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
  `bill_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据编码(任务)',
  `bill_type_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单据类型编码',
  `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;


-- ----------------------------
-- 用来做写入U8前的视图查询，转换单
-- ----------------------------
CREATE VIEW `wms_interface_stockchange` AS
SELECT
    t1.`stock_code` AS `ChangeNo`,
    CONCAT(t1.`stock_code`, '|', t2.`row_number`) AS `ChangeCode`,
    t1.`stock_date` AS `ChangeDate`,
    t1.`dept_code_out` AS `ODeptCode`,
    t1.`dept_code_in` AS `IDeptCode`,
    t1.`employee_code_out` AS `OPersCode`,
    t1.`employee_code_in` AS `IPersCode`,
    t1.`warehouse_code_out` AS `OWareCode`,
    t1.`warehouse_code_in` AS `IWareCode`,
    t1.`interface_read` AS `InterfaceRead`,
    t1.`interface_status` AS `InterfacetStatus`,
    t2.`change_type` AS `changeType`,
    t1.`extend_code01` AS `OBillRdStCode`,
    t2.`extend_code02` AS `IBillRdStCode`,
    t2.`change_group` AS `changeGroup`,
    t2.`material_code` AS `MateCode`,
    (CASE IFNULL(t2.`batch1`, '')
        WHEN '' THEN t2.`batch`
        ELSE t2.`batch1`
    END) AS `Batch1`,
    t2.`batch2` AS `Batch2`,
    t2.`stock_qty` AS `ChangeQty`,
    t2.`row_number` AS `irowno`,
    t1.`create_by` AS `CreateName`,
    t2.`create_time` AS `CreateTime`
FROM
    `wms_stock_change` t1
LEFT JOIN
    `wms_stock_changes` t2
    ON t2.`stock_change_id` = t1.`id`
WHERE
    t1.`status` = 0;


-- ----------------------------
-- 用来做写入U8前的视图查询，入库单
-- ----------------------------
CREATE VIEW `wms_interface_stockin` AS
SELECT
    CASE t1.`stock_type`
        WHEN 1 THEN '入库'
        WHEN -1 THEN '入库退'
        ELSE ''
    END AS `StockType`,

    CASE t1.`bill_type_code`
        WHEN '1' THEN '生产入库'
        WHEN '2' THEN '委外入库'
        WHEN '3' THEN '采购入库'
        WHEN '4' THEN '其他入库'
        ELSE ''
    END AS `BusType`,

    t1.`stock_code` AS `StockNo`,
    CONCAT(t1.`stock_code`, '|', t2.`row_number`) AS `StockCode`,
    t1.`stock_date` AS `StockDate`,
    t1.`dept_code` AS `DeptCode`,
    t1.`employee_code` AS `PersCode`,
    t1.`supplier_code` AS `SuppCode`,
    t1.`warehouse_code` AS `WareCode`,
    t1.`extend_code01` AS `BillRdStCode`,
    e1.`extend_name` AS `BillRdStName`,
    t1.`extend_code02` AS `ExteCode02`,
    e2.`extend_name` AS `ExteName02`,
    t1.`extend_code03` AS `ExteCode03`,
    e3.`extend_name` AS `ExteName03`,
    t2.`label_code` AS `LabelCode`,
    t2.`material_code` AS `MateCode`,

    CASE IFNULL(t2.`batch1`, '')
        WHEN '' THEN t2.`batch`
        ELSE t2.`batch1`
    END AS `Batch1`,

    t2.`batch2` AS `Batch2`,
    t2.`stock_qty` AS `StockQty`,

    CASE t4.`bill_type_code`
        WHEN '1' THEN '生产订单'
        WHEN '2' THEN '委外订单'
        WHEN '3' THEN '委外到货单'
        WHEN '4' THEN '采购订单'
        WHEN '5' THEN '采购到货单'
        WHEN '6' THEN '销售订单'
        WHEN '7' THEN '销售发货单'
        ELSE ''
    END AS `TaskBusType`,

    t4.`task_code` AS `TaskNo`,
    CONCAT(t4.`task_code`, '|', t3.`row_number`) AS `TaskCode`,

    CASE t4.`bill_type_code`
        WHEN '1' THEN '生产订单'
        WHEN '2' THEN '委外订单'
        WHEN '3' THEN '委外到货单'
        WHEN '4' THEN '采购订单'
        WHEN '5' THEN '采购到货单'
        WHEN '6' THEN '销售订单'
        WHEN '7' THEN '销售发货单'
        ELSE ''
    END AS `BillBusType`,

    t4.`interface_code` AS `BillNo`,
    t3.`interface_row` AS `BillRowNo`,
    t3.`interface_id` AS `BillAutoID`,
    NULL AS `BillListID`,

    REPLACE(REPLACE(t1.`create_by`, '(PE)', ''), '(PC)', '') AS `CreateName`,
    t1.`create_time` AS `CreateTime`,
    t1.`interface_read` AS `InterfaceRead`,
    t1.`interface_status` AS `InterfacetStatus`,

    CAST(t2.`id` AS CHAR CHARACTER SET utf8mb4) AS `StockEntryID`,
    CAST(t1.`id` AS CHAR CHARACTER SET utf8mb4) AS `StockID`

FROM
    `wms_stock_in` t1
LEFT JOIN
    `wms_stock_ins` t2 ON t1.`id` = t2.`stock_in_id`
LEFT JOIN
    `wms_task_ins` t3 ON (
        (t2.`task_ins_id` = t3.`id` AND t1.`stock_type` = 1) OR
        (t2.`back_task_ins_id` = t3.`id` AND t1.`stock_type` = -1)
    )
LEFT JOIN
    `wms_task_in` t4 ON t3.`task_in_id` = t4.`id`
LEFT JOIN
    `base_extend` e1 ON e1.`extend_code` = t1.`extend_code01`
LEFT JOIN
    `base_extend` e2 ON e2.`extend_code` = t1.`extend_code02`
LEFT JOIN
    `base_extend` e3 ON e3.`extend_code` = t1.`extend_code03`
WHERE
    IFNULL(t1.`bill_type_code`, 0) <> 0
    AND t1.`status` = 0;

-- ----------------------------
-- 用来做写入U8前的视图查询，移位单
-- ----------------------------
CREATE VIEW `wms_interface_stockmove` AS
SELECT
    t1.`stock_code` AS `MoveNo`,

    CASE t1.`bill_type_code`
        WHEN '1' THEN '仓库调拨'
        WHEN '2' THEN '货位转移'
        ELSE ''
    END AS `BusType`,

    CONCAT(t1.`stock_code`, '|', t2.`row_number`) AS `MoveCode`,
    t1.`stock_date` AS `MoveDate`,
    t1.`dept_code_out` AS `ODeptCode`,
    t1.`dept_code_in` AS `IDeptCode`,
    t1.`employee_code_out` AS `OPersCode`,
    t1.`employee_code_in` AS `IPersCode`,
    t1.`warehouse_code_out` AS `OWareCode`,
    t1.`warehouse_code_in` AS `IWareCode`,
    t1.`extend_code01` AS `OBillRdStCode`,
    t1.`extend_code02` AS `IBillRdStCode`,
    t1.`extend_code05` AS `DeliverTime`,

    CAST(t2.`id` AS CHAR CHARACTER SET utf8mb4) AS `MoveEntryID`,
    t2.`label_code` AS `LabelCode`,
    t2.`material_code` AS `MateCode`,

    CASE IFNULL(t2.`batch1`, '')
        WHEN '' THEN t2.`batch`
        ELSE t2.`batch1`
    END AS `Batch1`,

    t2.`batch2` AS `Batch2`,
    t2.`stock_qty` AS `MoveQty`,

    REPLACE(REPLACE(t1.`create_by`, '(PE)', ''), '(PC)', '') AS `CreateName`,
    t2.`create_time` AS `CreateTime`,
    t1.`interface_read` AS `InterfaceRead`,
    t1.`interface_status` AS `InterfacetStatus`

FROM
    `wms_stock_move` t1
LEFT JOIN
    `wms_stock_moves` t2 ON t1.`id` = t2.`stock_move_id`

WHERE
    t1.`status` = 0
    AND t1.`warehouse_code_out` <> t1.`warehouse_code_in`;

-- ----------------------------
-- 用来做写入U8前的视图查询，出库单
-- ----------------------------
CREATE VIEW `wms_interface_stockout` AS
SELECT
    CASE t1.`stock_type`
        WHEN -1 THEN '出库'
        WHEN 1 THEN '出库退'
        ELSE ''
    END AS `StockType`,

    CASE t1.`bill_type_code`
        WHEN '1' THEN '生产领料'
        WHEN '2' THEN '委外领料'
        WHEN '3' THEN '销售出库'
        WHEN '4' THEN '其他出库'
        ELSE ''
    END AS `BusType`,

    t1.`stock_code` AS `StockNo`,
    CONCAT(t1.`stock_code`, '|', t2.`row_number`) AS `StockCode`,
    t1.`stock_date` AS `StockDate`,
    t1.`dept_code` AS `DeptCode`,
    t1.`employee_code` AS `PersCode`,
    t1.`supplier_code` AS `SuppCode`,
    t1.`customer_code` AS `CustCode`,
    t1.`is_supplement` AS `isSupplement`,
    t1.`warehouse_code` AS `WareCode`,

    t1.`extend_code01` AS `BillRdStCode`,
    e1.`extend_name` AS `BillRdStName`,
    t1.`extend_code02` AS `ExteCode02`,
    e2.`extend_name` AS `ExteName02`,
    t1.`extend_code03` AS `ExteCode03`,
    e3.`extend_name` AS `ExteName03`,
    t1.`extend_code04` AS `ExteCode04`,
    e4.`extend_name` AS `ExteName04`,

    t2.`label_code` AS `LabelCode`,
    t2.`material_code` AS `MateCode`,

    CASE IFNULL(t2.`batch1`, '')
        WHEN '' THEN t2.`batch`
        ELSE t2.`batch1`
    END AS `Batch1`,

    t2.`batch2` AS `Batch2`,
    t2.`stock_qty` AS `StockQty`,

    CASE t4.`bill_type_code`
        WHEN '1' THEN '生产订单'
        WHEN '2' THEN '委外订单'
        WHEN '3' THEN '委外到货单'
        WHEN '4' THEN '采购订单'
        WHEN '5' THEN '采购到货单'
        WHEN '6' THEN '销售订单'
        WHEN '7' THEN '销售发货单'
        ELSE ''
    END AS `TaskBusType`,

    t4.`task_code` AS `TaskNo`,
    CONCAT(t4.`task_code`, '|', t3.`row_number`) AS `TaskCode`,

    CASE t4.`bill_type_code`
        WHEN '1' THEN '生产订单'
        WHEN '2' THEN '委外订单'
        WHEN '3' THEN '委外到货单'
        WHEN '4' THEN '采购订单'
        WHEN '5' THEN '采购到货单'
        WHEN '6' THEN '销售订单'
        WHEN '7' THEN '销售发货单'
        ELSE ''
    END AS `BillBusType`,

    t4.`interface_code` AS `BillNo`,
    t3.`interface_row` AS `BillRowNo`,

    CASE WHEN t1.`bill_type_code` IN (1, 2)
        THEN t3.`interface_pid`
        ELSE t3.`interface_id`
    END AS `BillAutoID`,

    CASE WHEN t1.`bill_type_code` IN (1, 2)
        THEN t3.`interface_id`
        ELSE NULL
    END AS `BillListID`,

    REPLACE(REPLACE(t1.`create_by`, '(PE)', ''), '(PC)', '') AS `CreateName`,
    t1.`create_time` AS `CreateTime`,
    t1.`interface_read` AS `InterfaceRead`,
    t1.`interface_status` AS `InterfacetStatus`,

    CAST(t2.`id` AS CHAR CHARACTER SET utf8mb4) AS `StockEntryID`

FROM
    `wms_stock_out` t1
LEFT JOIN
    `wms_stock_outs` t2 ON t1.`id` = t2.`stock_out_id`
LEFT JOIN
    `wms_task_outs` t3 ON (
        CASE t1.`stock_type`
            WHEN -1 THEN t2.`task_outs_id`
            WHEN 1 THEN t2.`back_task_outs_id`
        END = t3.`id`
    )
LEFT JOIN
    `wms_task_out` t4 ON t3.`task_out_id` = t4.`id`
LEFT JOIN
    `base_extend` e1 ON e1.`extend_code` = t1.`extend_code01`
LEFT JOIN
    `base_extend` e2 ON e2.`extend_code` = t1.`extend_code02`
LEFT JOIN
    `base_extend` e3 ON e3.`extend_code` = t1.`extend_code03`
LEFT JOIN
    `base_extend` e4 ON e4.`extend_code` = t1.`extend_code04`

WHERE
    IFNULL(t1.`bill_type_code`, 0) <> 0
    AND t1.`status` = 0;
