From 632ce81b2a29f4210ca1fbf5b6cde62d538de620 Mon Sep 17 00:00:00 2001 From: c1769 Date: Wed, 16 Aug 2023 17:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=83=E4=B9=A0=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/tz_financial.sql | 1100 ++++++++++++++++++++++-------------------- 1 file changed, 587 insertions(+), 513 deletions(-) diff --git a/sql/tz_financial.sql b/sql/tz_financial.sql index aca7155..8c77b4e 100644 --- a/sql/tz_financial.sql +++ b/sql/tz_financial.sql @@ -1,3 +1,18 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost + Source Server Type : MySQL + Source Server Version : 80025 (8.0.25) + Source Host : localhost:3306 + Source Schema : tz_financial + + Target Server Type : MySQL + Target Server Version : 80025 (8.0.25) + File Encoding : 65001 + + Date: 16/08/2023 17:20:53 +*/ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; @@ -7,38 +22,38 @@ SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- DROP TABLE IF EXISTS `assure`; CREATE TABLE `assure` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NULL DEFAULT 0 COMMENT '流程实例ID', - `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NULL DEFAULT 0 COMMENT '流程实例ID', + `financing_id` int NULL DEFAULT NULL COMMENT '融资ID', `assure_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '承兑担保编号', `assure_end_time` timestamp NULL DEFAULT NULL COMMENT '签约日期', `assure_amount` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '担保金额', - `express_id` int(11) NULL DEFAULT NULL COMMENT '担保企业ID', + `express_id` int NULL DEFAULT NULL COMMENT '担保企业ID', `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '担保企业名称', - `product_assure_status` tinyint(4) NULL DEFAULT NULL COMMENT '货物反担保状态 0未确认,1已确认', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '被担保企业ID', + `product_assure_status` tinyint NULL DEFAULT NULL COMMENT '货物反担保状态 0未确认,1已确认', + `buyer_id` int NULL DEFAULT NULL COMMENT '被担保企业ID', `buyer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被担保企业名称', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '担保' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of assure -- ---------------------------- -INSERT INTO `assure` VALUES (1, '2023-08-15 11:33:09', NULL, 3, 1, 8, 1, '6713333099', '2024-03-15 00:00:00', 137849.74, 21, '中邮物流', 1, 58, '振友电器销售有限公司'); +INSERT INTO `assure` VALUES (1, '2023-08-13 10:58:21', NULL, 11, 1, 5, 2, '9330682151', '2023-10-13 00:00:00', 80.00, 18, '华贸物流', 1, 32, '深圳大买方集团'); -- ---------------------------- -- Table structure for attachments -- ---------------------------- DROP TABLE IF EXISTS `attachments`; CREATE TABLE `attachments` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, @@ -57,52 +72,52 @@ CREATE TABLE `attachments` ( -- ---------------------------- DROP TABLE IF EXISTS `bank_acceptance_bill`; CREATE TABLE `bank_acceptance_bill` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `invoice_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汇票编号', `invoice_time` timestamp NULL DEFAULT NULL COMMENT '出票日期', - `invoice_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '出票状态', + `invoice_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '出票状态', `invoice_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '出票金额', `invoice_fee` decimal(10, 2) NULL DEFAULT NULL COMMENT '手续费', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '收款人ID', + `seller_id` int NULL DEFAULT NULL COMMENT '收款人ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收款人', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '承兑银行ID', + `bank_id` int NULL DEFAULT NULL COMMENT '承兑银行ID', `bank_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '承兑银行', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '出票人ID', + `buyer_id` int NULL DEFAULT NULL COMMENT '出票人ID', `buyer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出票人', - `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `financing_id` int NULL DEFAULT NULL COMMENT '融资ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '银行承兑汇票' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of bank_acceptance_bill -- ---------------------------- -INSERT INTO `bank_acceptance_bill` VALUES (1, '2023-08-15 11:38:40', NULL, 3, 1, 8, '19988295', '2023-09-15 00:00:00', 0, 196928.20, 984.64, 59, '格力电器集团公司', 15, '平安银行', 58, '振友电器销售有限公司', 1, 1); +INSERT INTO `bank_acceptance_bill` VALUES (1, '2023-08-13 10:58:48', NULL, 11, 1, 5, '71436712', '2023-09-13 00:00:00', 0, 200.00, 10.00, 59, '格力电器集团公司', 11, '华夏银行', 32, '深圳大买方集团', 2, 1); -- ---------------------------- -- Table structure for classes -- ---------------------------- DROP TABLE IF EXISTS `classes`; CREATE TABLE `classes` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名字', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间', `data` json NULL, - `school_id` int(11) NOT NULL DEFAULT 0 COMMENT '学校id', - `teacher_id` int(11) NOT NULL DEFAULT 0 COMMENT '教师id', - `classes_id` bigint(20) NULL DEFAULT NULL COMMENT '智云班级id', + `school_id` int NOT NULL DEFAULT 0 COMMENT '学校id', + `teacher_id` int NOT NULL DEFAULT 0 COMMENT '教师id', + `classes_id` bigint NULL DEFAULT NULL COMMENT '智云班级id', PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_classes_schools1_idx`(`school_id`) USING BTREE, - INDEX `fk_classes_users1_idx`(`teacher_id`) USING BTREE + INDEX `fk_classes_schools1_idx`(`school_id` ASC) USING BTREE, + INDEX `fk_classes_users1_idx`(`teacher_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 387 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '班级表' ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -110,12 +125,12 @@ CREATE TABLE `classes` ( -- ---------------------------- INSERT INTO `classes` VALUES (372, '天择演示7班', '2023-04-07 11:37:09', '2023-04-07 11:37:09', NULL, 1, 0, 349); INSERT INTO `classes` VALUES (373, '金融A班', '2023-04-07 11:39:42', '2023-04-07 11:39:42', NULL, 53, 505, 379); -INSERT INTO `classes` VALUES (374, '天择演示1班', '2023-04-07 11:42:25', '2023-08-15 16:51:00', NULL, 1, 36, 20); -INSERT INTO `classes` VALUES (375, '天择演示6班', '2023-04-07 11:49:20', '2023-08-15 16:51:00', NULL, 1, 36, 25); -INSERT INTO `classes` VALUES (376, '天择演示2班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 21); -INSERT INTO `classes` VALUES (377, '天择演示3班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 22); -INSERT INTO `classes` VALUES (378, '天择演示4班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 23); -INSERT INTO `classes` VALUES (379, '天择演示5班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 24); +INSERT INTO `classes` VALUES (374, '天择演示1班', '2023-04-07 11:42:25', '2023-08-11 14:29:00', NULL, 1, 36, 20); +INSERT INTO `classes` VALUES (375, '天择演示6班', '2023-04-07 11:49:20', '2023-08-11 14:29:01', NULL, 1, 36, 25); +INSERT INTO `classes` VALUES (376, '天择演示2班', '2023-04-07 11:50:48', '2023-08-11 14:29:01', NULL, 1, 36, 21); +INSERT INTO `classes` VALUES (377, '天择演示3班', '2023-04-07 11:50:48', '2023-08-11 14:29:01', NULL, 1, 36, 22); +INSERT INTO `classes` VALUES (378, '天择演示4班', '2023-04-07 11:50:48', '2023-08-11 14:29:01', NULL, 1, 36, 23); +INSERT INTO `classes` VALUES (379, '天择演示5班', '2023-04-07 11:50:48', '2023-08-11 14:29:01', NULL, 1, 36, 24); INSERT INTO `classes` VALUES (380, '怡亚通试用1班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 38); INSERT INTO `classes` VALUES (381, '怡亚通试用2班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 39); INSERT INTO `classes` VALUES (382, '内部体验1班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 43); @@ -129,10 +144,10 @@ INSERT INTO `classes` VALUES (386, '财商一班', '2023-06-07 09:54:33', '2023- -- ---------------------------- DROP TABLE IF EXISTS `configs`; CREATE TABLE `configs` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', + `id` int NOT NULL AUTO_INCREMENT COMMENT '主键', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, - `user_id` int(11) NOT NULL COMMENT '用户ID', + `user_id` int NOT NULL COMMENT '用户ID', `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置名', `value` json NULL COMMENT '配置值', `flow_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '业务流程评分%', @@ -143,7 +158,7 @@ CREATE TABLE `configs` ( `raise_set_data` json NULL COMMENT '增长率评分设置', `duration_set_data` json NULL COMMENT '实训时长打分设置', PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_configs_users1_idx`(`user_id`) USING BTREE + INDEX `fk_configs_users1_idx`(`user_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -156,20 +171,20 @@ INSERT INTO `configs` VALUES (1, '2023-06-09 11:07:57', NULL, 0, 'default.score. -- ---------------------------- DROP TABLE IF EXISTS `contracts_factoring`; CREATE TABLE `contracts_factoring` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `bl_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '保理合同编号', `bl_contract_time` timestamp NULL DEFAULT NULL COMMENT '合同签订日期', - `bl_contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID', + `bl_contract_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '合同状态', + `buyer_id` int NULL DEFAULT NULL COMMENT '买方ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID', + `seller_id` int NULL DEFAULT NULL COMMENT '卖方ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID', + `bank_id` int NULL DEFAULT NULL COMMENT '银行ID', `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行', `accept_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '受理单号', `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认', @@ -180,113 +195,112 @@ CREATE TABLE `contracts_factoring` ( `contract_account` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同账户', `apply_poundage_rate` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手续费率', `bl_contract_file` json NULL COMMENT '合同文件', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', `accept_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '核定保理额度', `bl_contract_end_time` timestamp NULL DEFAULT NULL COMMENT '到期日', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '保理合同' ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '保理合同' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of contracts_factoring -- ---------------------------- -INSERT INTO `contracts_factoring` VALUES (1, '2023-08-15 15:13:45', '2023-08-15 15:14:02', 5, 4, 12, '20230815731146', '2023-08-18 00:00:00', 2, 41, '太平鸟服饰有限公司', 40, '兰辉服装有限责任公司', 11, '华夏银行', '7232752056', NULL, 1, 1, 7.02, NULL, '622712345678', '0.5%', '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"send_time\": \"2023-08-15 15:06:02\", \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:13:45\", \"updated_at\": \"2023-08-15 15:13:48\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\", \"bail_status\": 0, \"contract_id\": \"3\", \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_confirm\": 1, \"accept_amount\": 80000, \"commit_status\": 0, \"bl_contract_no\": \"20230815731146\", \"examination_id\": 5, \"financing_type\": 4, \"bank_id_fill_bl\": 11, \"contract_amount\": 91074, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"bank_name_fill_bl\": \"华夏银行\", \"seller_id_fill_bl\": 40, \"apply_rate_fill_bl\": \"7.02%\", \"bl_contract_status\": 1, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"examination_inst_id\": 12, \"seller_name_fill_bl\": \"兰辉服装有限责任公司\", \"bank_address_fill_bl\": \"深圳市南山区沙河路152号\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"accept_amount_fill_bl\": \"80000\", \"seller_address_fill_bl\": \"深圳市宝安区松岗路521号\", \"bank_corporation_fill_bl\": \"关文洁\", \"seller_corporation_fill_bl\": \"曹武\", \"accept_amount_capital_fill_bl\": \"捌万元整\"}', 3, 80000.00, NULL); +INSERT INTO `contracts_factoring` VALUES (1, '2023-08-13 12:19:45', '2023-08-13 12:20:00', 13, 4, 7, '20230813672801', '2023-08-15 00:00:00', 2, 25, '晶东电子城', 24, '新力电子有限公司', 11, '华夏银行', '0337671496', NULL, 1, 1, 6.60, NULL, '111122223333', '0.5%', '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"3572305127\", \"buyer_id\": 25, \"can_levy\": false, \"accept_no\": \"0337671496\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"send_time\": \"2023-08-13 12:18:01\", \"apply_rate\": 6.6, \"buyer_name\": \"晶东电子城\", \"can_commit\": false, \"created_at\": \"2023-08-13 12:19:45\", \"updated_at\": \"2023-08-13 12:19:48\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"bail_status\": 0, \"contract_id\": \"3\", \"contract_no\": \"2023081300003\", \"instance_id\": 7, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 300, \"apply_amount\": 270, \"apply_status\": 1, \"bank_confirm\": 1, \"accept_amount\": 270, \"commit_status\": 0, \"bl_contract_no\": \"20230813672801\", \"examination_id\": 13, \"financing_type\": 4, \"bank_id_fill_bl\": 11, \"contract_amount\": 320, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"\", \"bl_contract_time\": \"2023-08-15 00:00:00\", \"contract_account\": \"111122223333\", \"financing_months\": 1, \"financing_status\": 0, \"max_apply_amount\": 270, \"repayment_amount\": 0, \"bank_name_fill_bl\": \"华夏银行\", \"seller_id_fill_bl\": 24, \"apply_rate_fill_bl\": \"6.6%\", \"bl_contract_status\": 1, \"financing_end_time\": \"2023-09-15 00:00:00\", \"seller_corporation\": \"张文\", \"apply_poundage_rate\": \"0.5%\", \"examination_inst_id\": 6, \"seller_name_fill_bl\": \"新力电子有限公司\", \"bank_address_fill_bl\": \"深圳市南山区沙河路152号\", \"financing_start_time\": \"2023-08-15 00:00:00\", \"accept_amount_fill_bl\": 270, \"seller_address_fill_bl\": \"广东省深圳市宝安区宝安大道521号\", \"bank_corporation_fill_bl\": \"关文洁\", \"seller_corporation_fill_bl\": \"张文\", \"accept_amount_capital_fill_bl\": \"贰佰柒拾元整\"}', 3, 270.00, NULL); +INSERT INTO `contracts_factoring` VALUES (2, '2023-08-13 12:28:09', '2023-08-13 12:28:41', 14, 5, 8, '20230813142787', '2023-08-17 00:00:00', 2, 25, '晶东电子城', 24, '新力电子有限公司', 15, '平安银行', NULL, NULL, 1, 1, NULL, 8.00, NULL, '0.1', '{\"id\": 2, \"bank_id\": 15, \"flow_id\": 5, \"role_id\": 0, \"buyer_id\": 25, \"pay_time\": \"2023-09-15 12:25:18\", \"bank_name\": \"平安银行\", \"seller_id\": 24, \"bank_id_ok\": 15, \"buyer_name\": \"晶东电子城\", \"yifang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/24\", \"contract_id\": \"4\", \"contract_no\": \"2023081300004\", \"instance_id\": 8, \"jiafang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/15\", \"seller_name\": \"新力电子有限公司\", \"supply_rate\": 8, \"yfzk_amount\": 200, \"bank_address\": \"广东省珠海市斗门区新安路261号\", \"seller_id_ok\": 24, \"accept_amount\": 140, \"protocol_time\": \"2023-08-16 00:00:00\", \"bank_telephone\": \"0756-25103697\", \"bl_contract_no\": \"20230813142787\", \"examination_id\": 14, \"seller_address\": \"广东省深圳市宝安区宝安大道521号\", \"accept_amount_dx\": \"壹佰肆拾元整\", \"bank_corporation\": \"谢林\", \"bl_contract_file\": \"{\\\"bank_id\\\":15,\\\"bank_name\\\":\\\"平安银行\\\",\\\"seller_name\\\":\\\"新力电子有限公司\\\",\\\"accept_amount\\\":140,\\\"bl_contract_time\\\":\\\"2023-08-17 00:00:00\\\",\\\"accept_amount_dx\\\":\\\"壹佰肆拾元整\\\",\\\"bl_contract_no\\\":\\\"20230813142787\\\",\\\"bank_corporation\\\":\\\"谢林\\\",\\\"bank_address\\\":\\\"广东省珠海市斗门区新安路261号\\\",\\\"bank_telephone\\\":\\\"0756-25103697\\\",\\\"seller_corporation\\\":\\\"张文\\\",\\\"seller_address\\\":\\\"广东省深圳市宝安区宝安大道521号\\\",\\\"buyer_name\\\":\\\"晶东电子城\\\",\\\"seller_id\\\":24,\\\"buyer_id\\\":25,\\\"seller_telephone\\\":\\\"0755-20165841\\\",\\\"yfzk_amount\\\":200,\\\"supply_rate\\\":8,\\\"apply_poundage_rate\\\":0.1,\\\"bl_contract_end_time\\\":\\\"2023-09-16 00:00:00\\\",\\\"contract_id\\\":\\\"4\\\",\\\"contract_no\\\":\\\"2023081300004\\\",\\\"protocol_time\\\":\\\"2023-08-16 00:00:00\\\",\\\"pay_time\\\":\\\"2023-09-15 12:25:18\\\",\\\"bank_id_ok\\\":\\\"\\\"}\", \"bl_contract_time\": \"2023-08-17 00:00:00\", \"seller_telephone\": \"0755-20165841\", \"seller_corporation\": \"张文\", \"apply_poundage_rate\": 0.1, \"examination_inst_id\": 7, \"bl_contract_end_time\": \"2023-09-16 00:00:00\", \"bank_bl_contract_file\": \"\"}', 4, 140.00, '2023-09-16 00:00:00'); -- ---------------------------- -- Table structure for contracts_pledge -- ---------------------------- DROP TABLE IF EXISTS `contracts_pledge`; CREATE TABLE `contracts_pledge` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `zy_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '质押合同编号', `zy_contract_time` timestamp NULL DEFAULT NULL COMMENT '到期日', - `zy_contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 ', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '次债务人ID', + `zy_contract_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 ', + `buyer_id` int NULL DEFAULT NULL COMMENT '次债务人ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '次债务人', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '出质人ID', + `seller_id` int NULL DEFAULT NULL COMMENT '出质人ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出质人', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '质权人ID', + `bank_id` int NULL DEFAULT NULL COMMENT '质权人ID', `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '质权人', `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认', `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认', `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认', `yszk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款金额', - `financing_id` int(11) NULL DEFAULT NULL COMMENT '贷款ID', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `financing_id` int NULL DEFAULT NULL COMMENT '贷款ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', `seller_zy_contract_file` json NULL COMMENT '质押合同文件', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '质押合同' ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '质押合同' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of contracts_pledge -- ---------------------------- -INSERT INTO `contracts_pledge` VALUES (1, '2023-08-15 14:52:26', '2023-08-15 15:00:02', 4, 2, 11, '7360758310', '2023-11-24 14:29:44', 5, 63, '大众汽车制造有限公司', 55, '鞍山钢铁有限责任公司', 14, '浦发银行', 1, 1, 1, 300000.00, 3, 2, '{\"id\": 1, \"qrh\": \"OK\", \"page\": 1, \"limit\": 10, \"tails\": {}, \"others\": \"无\", \"bank_id\": 14, \"buyer_id\": 63, \"pay_time\": \"2023-11-24 14:29:44\", \"pay_ways\": \"转账\", \"accept_no\": \"1911454217\", \"bank_name\": \"浦发银行\", \"seller_id\": 55, \"bank_id_ok\": 14, \"buyer_name\": \"大众汽车制造有限公司\", \"other_line\": \"已履行\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/14\", \"accept_time\": \"2023-08-17 00:00:00\", \"buyer_id_ok\": 63, \"contract_id\": 2, \"contract_no\": \"2023081500004\", \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/55\", \"seller_name\": \"鞍山钢铁有限责任公司\", \"yszk_amount\": 300000, \"bingfang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/63\", \"financing_id\": 3, \"seller_id_ok\": 55, \"zy_contract_no\": \"7360758310\", \"zy_bank_fill_zy\": \"浦发银行\", \"zy_bank_fill_qrh\": \"浦发银行\", \"zy_contract_time\": \"2023-11-24 00:00:00\", \"bank_name_fill_zy\": \"浦发银行\", \"bank_name_fill_qrh\": \"浦发银行\", \"invoice_no_fill_zy\": \"12345678\", \"zy_account_fill_zy\": \"622712345678\", \"accept_time_fill_zy\": \"2023-08-20 00:00:00\", \"buyer_name_fill_qrh\": \"大众汽车制造有限公司\", \"contract_no_fill_zy\": \"2023081500004\", \"seller_name_fill_zy\": \"鞍山钢铁有限责任公司\", \"yszk_amount_fill_zy\": \"300000\", \"zy_account_fill_qrh\": \"622712345678\", \"accept_time_fill_qrh\": \"2023-08-21 00:00:00\", \"bank_address_fill_zy\": \"上海市浦东新区花木路59号\", \"contract_no_fill_qrh\": \"2023081500004\", \"financing_start_time\": \"2023-08-24 00:00:00\", \"seller_name_fill_qrh\": \"鞍山钢铁有限责任公司\", \"yszk_amount_fill_qrh\": \"300000\", \"bank_telephone_fill_zy\": \"021-52036971\", \"buyer_address_fill_qrh\": \"上海市嘉定区杭海路28号\", \"seller_address_fill_zy\": \"上海市金山区长宁路31号\", \"zy_seller_name_fill_zy\": \"鞍山钢铁有限责任公司\", \"buyer_name_yszk_fill_zy\": \"大众汽车制造有限公司\", \"zy_seller_name_fill_qrh\": \"鞍山钢铁有限责任公司\", \"bank_corporation_fill_zy\": \"潘卫\", \"buyer_telephone_fill_qrh\": \"021-84120321\", \"seller_telephone_fill_zy\": \"021-20687459\", \"zy_contract_time_fill_zy\": \"2023-11-24 00:00:00\", \"zy_contract_time_fill_qrh\": \"2023-11-24 00:00:00\", \"buyer_corporation_fill_qrh\": \"黄林\", \"seller_corporation_fill_zy\": \"吴林\"}'); +INSERT INTO `contracts_pledge` VALUES (1, '2023-08-13 12:09:00', '2023-08-13 12:09:46', 12, 2, 6, '9669302883', '2023-09-15 12:06:03', 5, 25, '晶东电子城', 24, '新力电子有限公司', 11, '华夏银行', 1, 1, 1, 300.00, 3, 2, '{\"id\": 1, \"qrh\": \"OK\", \"page\": 1, \"limit\": 10, \"tails\": {}, \"others\": \"无\", \"bank_id\": 11, \"buyer_id\": 25, \"pay_time\": \"2023-09-15 12:06:03\", \"pay_ways\": \"转账\", \"accept_no\": \"0262863615\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"bank_id_ok\": 11, \"buyer_name\": \"晶东电子城\", \"other_line\": \"已履行\", \"yifang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/11\", \"accept_time\": \"2023-08-14 00:00:00\", \"buyer_id_ok\": 25, \"contract_id\": 2, \"contract_no\": \"2023081300002\", \"jiafang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/24\", \"seller_name\": \"新力电子有限公司\", \"yszk_amount\": 300, \"bingfang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/25\", \"financing_id\": 3, \"seller_id_ok\": 24, \"zy_contract_no\": \"9669302883\", \"zy_bank_fill_zy\": \"华夏银行\", \"zy_bank_fill_qrh\": \"华夏银行\", \"zy_contract_time\": \"2023-09-15 12:06:03\", \"bank_name_fill_zy\": \"华夏银行\", \"bank_name_fill_qrh\": \"华夏银行\", \"invoice_no_fill_zy\": \"12345678\", \"zy_account_fill_zy\": \"123456789012\", \"accept_time_fill_zy\": \"2023-08-15 00:00:00\", \"buyer_name_fill_qrh\": \"晶东电子城\", \"contract_no_fill_zy\": \"2023081300002\", \"seller_name_fill_zy\": \"新力电子有限公司\", \"yszk_amount_fill_zy\": 300, \"zy_account_fill_qrh\": \"123456789012\", \"accept_time_fill_qrh\": \"2023-08-16 00:00:00\", \"bank_address_fill_zy\": \"深圳市南山区沙河路152号\", \"contract_no_fill_qrh\": \"2023081300002\", \"financing_start_time\": \"2023-08-15 00:00:00\", \"seller_name_fill_qrh\": \"新力电子有限公司\", \"yszk_amount_fill_qrh\": 300, \"bank_telephone_fill_zy\": \"0755-25103214\", \"buyer_address_fill_qrh\": \"广东省深圳市宝安区创业路58号\", \"seller_address_fill_zy\": \"广东省深圳市宝安区宝安大道521号\", \"zy_seller_name_fill_zy\": \"新力电子有限公司\", \"buyer_name_yszk_fill_zy\": \"晶东电子城\", \"zy_seller_name_fill_qrh\": \"新力电子有限公司\", \"bank_corporation_fill_zy\": \"关文洁\", \"buyer_telephone_fill_qrh\": \"0755-50219684\", \"seller_telephone_fill_zy\": \"0755-20165841\", \"zy_contract_time_fill_zy\": \"2023-09-15 12:06:03\", \"zy_contract_time_fill_qrh\": \"2023-09-15 12:06:03\", \"buyer_corporation_fill_qrh\": \"刘强\", \"seller_corporation_fill_zy\": \"张文\"}'); +INSERT INTO `contracts_pledge` VALUES (2, '2023-08-13 16:28:19', '2023-08-13 16:45:11', 16, 2, 14, '8249293821', '2023-09-23 16:23:55', 5, 25, '晶东电子城', 24, '新力电子有限公司', 11, '华夏银行', 1, 1, 1, 300.00, 7, 5, '{\"id\": 2, \"qrh\": \"OK\", \"page\": 1, \"limit\": 10, \"tails\": {}, \"others\": \"无\", \"bank_id\": 11, \"buyer_id\": 25, \"pay_time\": \"2023-09-23 16:23:55\", \"pay_ways\": \"转账\", \"accept_no\": \"1768992617\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"bank_id_ok\": 11, \"buyer_name\": \"晶东电子城\", \"other_line\": \"已履行\", \"yifang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/11\", \"accept_time\": \"2023-08-22 00:00:00\", \"buyer_id_ok\": 25, \"contract_id\": 5, \"contract_no\": \"2023081300005\", \"jiafang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/24\", \"seller_name\": \"新力电子有限公司\", \"yszk_amount\": 300, \"bingfang_png\": \"http://localhost:9090/server/api/materials/downloadSeal/25\", \"financing_id\": 7, \"seller_id_ok\": 24, \"zy_contract_no\": \"8249293821\", \"zy_bank_fill_zy\": \"华夏银行\", \"zy_bank_fill_qrh\": \"华夏银行\", \"zy_contract_time\": \"2023-09-23 16:23:55\", \"bank_name_fill_zy\": \"华夏银行\", \"bank_name_fill_qrh\": \"华夏银行\", \"invoice_no_fill_zy\": \"12345678\", \"zy_account_fill_zy\": \"123456789012\", \"accept_time_fill_zy\": \"2023-08-23 00:00:00\", \"buyer_name_fill_qrh\": \"晶东电子城\", \"contract_no_fill_zy\": \"2023081300005\", \"seller_name_fill_zy\": \"新力电子有限公司\", \"yszk_amount_fill_zy\": 300, \"zy_account_fill_qrh\": \"123456789012\", \"accept_time_fill_qrh\": \"2023-08-24 00:00:00\", \"bank_address_fill_zy\": \"深圳市南山区沙河路152号\", \"contract_no_fill_qrh\": \"2023081300005\", \"financing_start_time\": \"2023-08-23 00:00:00\", \"seller_name_fill_qrh\": \"新力电子有限公司\", \"yszk_amount_fill_qrh\": 300, \"bank_telephone_fill_zy\": \"0755-25103214\", \"buyer_address_fill_qrh\": \"广东省深圳市宝安区创业路58号\", \"seller_address_fill_zy\": \"广东省深圳市宝安区宝安大道521号\", \"zy_seller_name_fill_zy\": \"新力电子有限公司\", \"buyer_name_yszk_fill_zy\": \"晶东电子城\", \"zy_seller_name_fill_qrh\": \"新力电子有限公司\", \"bank_corporation_fill_zy\": \"关文洁\", \"buyer_telephone_fill_qrh\": \"0755-50219684\", \"seller_telephone_fill_zy\": \"0755-20165841\", \"zy_contract_time_fill_zy\": \"2023-09-23 16:23:55\", \"zy_contract_time_fill_qrh\": \"2023-09-23 16:23:55\", \"buyer_corporation_fill_qrh\": \"刘强\", \"seller_corporation_fill_zy\": \"张文\"}'); -- ---------------------------- -- Table structure for contracts_products -- ---------------------------- DROP TABLE IF EXISTS `contracts_products`; CREATE TABLE `contracts_products` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '协议ID', `product_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品编号', - `product_id` int(11) NULL DEFAULT NULL COMMENT '产品ID', - `nums` int(11) NULL DEFAULT NULL COMMENT '数量', - `price` decimal(10, 2) NULL DEFAULT NULL COMMENT '总价格', - `pickup_status` tinyint(4) NULL DEFAULT NULL COMMENT '提货状态 1已提货', - `pickup_product_id` int(11) NULL DEFAULT NULL COMMENT '提货ID', + `product_id` int NULL DEFAULT NULL COMMENT '产品ID', + `nums` int NULL DEFAULT NULL COMMENT '数量', + `price` decimal(10, 2) NULL DEFAULT NULL COMMENT '签订合同时总价格', + `pickup_status` tinyint NULL DEFAULT NULL COMMENT '提货状态 1已提货', + `pickup_product_id` int NULL DEFAULT NULL COMMENT '提货ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '合同产品' ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '合同产品' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of contracts_products -- ---------------------------- -INSERT INTO `contracts_products` VALUES (1, 1, NULL, '100011', 20, 100, 50583.00, 1, 1, '2023-08-15 11:25:54', NULL); -INSERT INTO `contracts_products` VALUES (2, 1, NULL, '100012', 21, 100, 230743.00, 1, 2, '2023-08-15 11:25:54', NULL); -INSERT INTO `contracts_products` VALUES (3, NULL, 2, '000001', 4, 100, 37351.00, 1, 3, '2023-08-15 13:54:33', NULL); -INSERT INTO `contracts_products` VALUES (4, NULL, 2, '100002', 11, 100, 107330.00, 1, 3, '2023-08-15 13:54:33', NULL); -INSERT INTO `contracts_products` VALUES (5, 2, NULL, '100013', 22, 100, 318826.00, 0, NULL, '2023-08-15 14:30:42', NULL); -INSERT INTO `contracts_products` VALUES (6, 3, NULL, '100008', 17, 100, 59675.00, 0, NULL, '2023-08-15 15:05:28', NULL); -INSERT INTO `contracts_products` VALUES (7, 3, NULL, '100009', 18, 100, 31399.00, 0, NULL, '2023-08-15 15:05:28', NULL); -INSERT INTO `contracts_products` VALUES (8, 4, NULL, '100004', 13, 100, 114971.00, 0, NULL, '2023-08-15 15:54:48', NULL); -INSERT INTO `contracts_products` VALUES (9, 4, NULL, '100005', 14, 100, 20033.00, 0, NULL, '2023-08-15 15:54:48', NULL); -INSERT INTO `contracts_products` VALUES (10, 5, NULL, '100002', 11, 100, 107330.00, 0, NULL, '2023-08-15 16:39:46', NULL); -INSERT INTO `contracts_products` VALUES (11, 5, NULL, '000001', 4, 100, 37351.00, 0, NULL, '2023-08-15 16:39:46', NULL); +INSERT INTO `contracts_products` VALUES (1, NULL, 1, '100009', 18, 2, 576.90, 1, 1, '2023-08-13 10:45:26', NULL); +INSERT INTO `contracts_products` VALUES (2, 1, NULL, '100009', 18, 1, 310.00, 1, 2, '2023-08-13 10:55:08', NULL); +INSERT INTO `contracts_products` VALUES (3, 2, NULL, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 12:06:14', NULL); +INSERT INTO `contracts_products` VALUES (4, 3, NULL, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 12:17:34', NULL); +INSERT INTO `contracts_products` VALUES (5, 4, NULL, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 12:25:29', NULL); +INSERT INTO `contracts_products` VALUES (6, NULL, 4, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 12:46:04', NULL); +INSERT INTO `contracts_products` VALUES (7, 5, NULL, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 16:24:25', NULL); +INSERT INTO `contracts_products` VALUES (8, 6, NULL, '100009', 18, 1, 320.00, 0, NULL, '2023-08-13 16:51:44', NULL); -- ---------------------------- -- Table structure for contracts_purchase_sales -- ---------------------------- DROP TABLE IF EXISTS `contracts_purchase_sales`; CREATE TABLE `contracts_purchase_sales` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NULL DEFAULT 0 COMMENT 'examination_instances id', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NULL DEFAULT 0 COMMENT 'examination_instances id', `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号', `contract_time` timestamp NULL DEFAULT NULL COMMENT '签约日期', - `contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 0未确认 1买方确认 2卖方确认', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID', + `contract_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 0未确认 1买方确认 2卖方确认', + `buyer_id` int NULL DEFAULT NULL COMMENT '买方ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID', + `seller_id` int NULL DEFAULT NULL COMMENT '卖方ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID', + `bank_id` int NULL DEFAULT NULL COMMENT '银行ID', `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行', - `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID', + `express_id` int NULL DEFAULT NULL COMMENT '物流ID', `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流', `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认', `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认', @@ -296,210 +310,220 @@ CREATE TABLE `contracts_purchase_sales` ( `pay_time` timestamp NULL DEFAULT NULL COMMENT '付款日期', `total_cost_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物成本总价', `total_sell_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总售价', - `examination_inst_id` int(11) NULL DEFAULT NULL COMMENT 'user_examination id', + `examination_inst_id` int NULL DEFAULT NULL COMMENT 'user_examination id', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方签订购销合同' ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方签订购销合同' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of contracts_purchase_sales -- ---------------------------- -INSERT INTO `contracts_purchase_sales` VALUES (1, '2023-08-15 11:25:54', '2023-08-15 11:26:20', 3, 1, 8, '2023081500003', '2023-08-15 11:25:22', 2, 58, '振友电器销售有限公司', 59, '格力电器集团公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 281326.00, '2023-09-15 11:25:22', 260000.00, 281326.00, 8); -INSERT INTO `contracts_purchase_sales` VALUES (2, '2023-08-15 14:30:42', '2023-08-15 14:31:08', 4, 2, 11, '2023081500004', '2023-08-15 14:29:44', 2, 63, '大众汽车制造有限公司', 55, '鞍山钢铁有限责任公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 318826.00, '2023-11-24 14:29:44', 350000.00, 318826.00, 11); -INSERT INTO `contracts_purchase_sales` VALUES (3, '2023-08-15 15:05:28', '2023-08-15 15:05:55', 5, 4, 12, '2023081500005', '2023-08-15 15:04:50', 2, 41, '太平鸟服饰有限公司', 40, '兰辉服装有限责任公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 91074.00, '2023-11-30 15:04:50', 80000.00, 91074.00, 12); -INSERT INTO `contracts_purchase_sales` VALUES (4, '2023-08-15 15:54:48', '2023-08-15 15:55:19', 8, 5, 15, '2023081500006', '2023-08-15 15:53:59', 2, 27, '恒达集团有限公司', 26, '安科消防有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 135004.00, '2023-11-30 15:53:59', 115000.00, 135004.00, 15); -INSERT INTO `contracts_purchase_sales` VALUES (5, '2023-08-15 16:39:46', '2023-08-15 16:40:08', 8, 5, 18, '2023081500007', '2023-08-15 16:39:15', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 144681.00, '2023-11-25 16:39:15', 130000.00, 144681.00, 18); +INSERT INTO `contracts_purchase_sales` VALUES (1, '2023-08-13 10:55:08', '2023-08-13 10:55:35', 11, 1, 5, '2023081300001', '2023-08-13 10:54:32', 2, 32, '深圳大买方集团', 59, '格力电器集团公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 310.00, '2023-09-13 10:54:32', 300.00, 310.00, 4); +INSERT INTO `contracts_purchase_sales` VALUES (2, '2023-08-13 12:06:14', '2023-08-13 12:06:36', 12, 2, 6, '2023081300002', '2023-08-13 12:06:03', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 320.00, '2023-09-15 12:06:03', 300.00, 320.00, 5); +INSERT INTO `contracts_purchase_sales` VALUES (3, '2023-08-13 12:17:34', '2023-08-13 12:17:54', 13, 4, 7, '2023081300003', '2023-08-13 12:16:33', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 320.00, '2023-09-15 12:16:33', 300.00, 320.00, 6); +INSERT INTO `contracts_purchase_sales` VALUES (4, '2023-08-13 12:25:29', '2023-08-13 12:25:48', 14, 5, 8, '2023081300004', '2023-08-13 12:25:18', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 320.00, '2023-09-15 12:25:18', 300.00, 320.00, 7); +INSERT INTO `contracts_purchase_sales` VALUES (5, '2023-08-13 16:24:25', '2023-08-13 16:25:22', 16, 2, 14, '2023081300005', '2023-08-13 16:23:55', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 320.00, '2023-09-23 16:23:55', 300.00, 320.00, 14); +INSERT INTO `contracts_purchase_sales` VALUES (6, '2023-08-13 16:51:44', '2023-08-13 16:52:05', 16, 2, 15, '2023081300006', '2023-08-13 16:51:30', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 320.00, '2023-09-13 16:51:30', 300.00, 320.00, 16); -- ---------------------------- -- Table structure for examination_classes -- ---------------------------- DROP TABLE IF EXISTS `examination_classes`; CREATE TABLE `examination_classes` ( - `examination_id` bigint(20) NOT NULL COMMENT '实训班级ID', - `class_id` bigint(20) NOT NULL COMMENT '班级ID', - `status` tinyint(3) UNSIGNED NULL DEFAULT 0, + `examination_id` bigint NOT NULL COMMENT '实训班级ID', + `class_id` bigint NOT NULL COMMENT '班级ID', + `status` tinyint UNSIGNED NULL DEFAULT 0, `data` json NULL, PRIMARY KEY (`examination_id`, `class_id`) USING BTREE, - INDEX `fk_classes_has_examinations_examinations1_idx`(`examination_id`) USING BTREE, - INDEX `fk_classes_has_examinations_classes1_idx`(`class_id`) USING BTREE + INDEX `fk_classes_has_examinations_examinations1_idx`(`examination_id` ASC) USING BTREE, + INDEX `fk_classes_has_examinations_classes1_idx`(`class_id` ASC) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of examination_classes -- ---------------------------- -INSERT INTO `examination_classes` VALUES (8, 25, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 20, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 21, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 22, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 23, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 24, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 25, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 38, 0, NULL); +INSERT INTO `examination_classes` VALUES (16, 39, 0, NULL); -- ---------------------------- -- Table structure for examination_instances -- ---------------------------- DROP TABLE IF EXISTS `examination_instances`; CREATE TABLE `examination_instances` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `data` json NULL, - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `finish_step` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '已完成步骤', - `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:已提交实训;', - `team_id` int(11) NULL DEFAULT 0 COMMENT '团队ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `finish_step` int UNSIGNED NULL DEFAULT 0 COMMENT '已完成步骤', + `status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:已提交实训;', + `team_id` int NULL DEFAULT 0 COMMENT '团队ID', `init_balance` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '初始资金', `balance` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '可用资金', `product_assets` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '存货价值', `raise_rate` decimal(12, 2) NULL DEFAULT 0.00 COMMENT '资产增长率', - `raise_orders` int(11) NULL DEFAULT 0 COMMENT '资产增长率排名', + `raise_orders` int NULL DEFAULT 0 COMMENT '资产增长率排名', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of examination_instances -- ---------------------------- -INSERT INTO `examination_instances` VALUES (1, '2023-08-15 11:02:57', '2023-08-15 11:02:57', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (2, '2023-08-15 11:03:04', '2023-08-15 11:03:04', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (3, '2023-08-15 11:03:06', '2023-08-15 11:03:06', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (4, '2023-08-15 11:03:08', '2023-08-15 11:03:08', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (5, '2023-08-15 11:03:10', '2023-08-15 11:03:10', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (6, '2023-08-15 11:06:02', '2023-08-15 11:06:02', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (7, '2023-08-15 11:06:10', '2023-08-15 11:06:10', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (8, '2023-08-15 11:22:09', '2023-08-15 13:48:23', NULL, 3, 1, 24, 0, 0, 1000000.00, 710599.94, 281326.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (9, '2023-08-15 13:51:29', '2023-08-15 14:22:10', NULL, 1, 3, 16, 0, 0, 1000000.00, 868285.00, 144681.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (10, '2023-08-15 14:22:33', '2023-08-15 14:22:33', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (11, '2023-08-15 14:22:36', '2023-08-15 15:02:53', NULL, 4, 2, 14, 0, 0, 1000000.00, 964518.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (12, '2023-08-15 14:22:39', '2023-08-15 15:30:11', NULL, 5, 4, 15, 0, 0, 1000000.00, 1009270.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (13, '2023-08-15 14:22:43', '2023-08-15 14:22:43', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (14, '2023-08-15 15:41:38', '2023-08-15 15:41:38', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (15, '2023-08-15 15:53:07', '2023-08-15 16:52:59', NULL, 8, 5, 7, 0, 0, 1000000.00, 885000.00, 0.00, -12.00, NULL); -INSERT INTO `examination_instances` VALUES (16, '2023-08-15 15:53:17', '2023-08-15 15:53:17', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (17, '2023-08-15 16:08:18', '2023-08-15 16:08:18', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (18, '2023-08-15 16:39:12', '2023-08-15 16:41:07', NULL, 8, 5, 4, 1, 0, 1000000.00, 870000.00, 0.00, -13.00, NULL); -INSERT INTO `examination_instances` VALUES (19, '2023-08-15 16:43:21', NULL, NULL, 8, 5, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); -INSERT INTO `examination_instances` VALUES (20, '2023-08-15 16:43:21', NULL, NULL, 8, 5, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); -INSERT INTO `examination_instances` VALUES (21, '2023-08-15 17:32:25', '2023-08-15 17:32:25', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (22, '2023-08-15 17:33:12', '2023-08-15 17:33:12', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -INSERT INTO `examination_instances` VALUES (23, '2023-08-15 17:33:14', '2023-08-15 17:33:14', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (4, '2023-08-13 10:42:39', '2023-08-13 10:53:53', NULL, 10, 3, 16, 0, 0, 1000000.00, 999397.80, 620.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (5, '2023-08-13 10:54:30', '2023-08-13 11:29:07', NULL, 11, 1, 24, 0, 0, 1000000.00, 999678.75, 320.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (6, '2023-08-13 11:33:55', '2023-08-13 12:14:07', NULL, 12, 2, 14, 0, 0, 1000000.00, 1000018.68, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (7, '2023-08-13 12:16:30', '2023-08-13 12:24:17', NULL, 13, 4, 15, 0, 0, 1000000.00, 1000017.16, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (8, '2023-08-13 12:24:55', '2023-08-13 12:32:59', NULL, 14, 5, 16, 0, 0, 1000000.00, 1000019.84, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (9, '2023-08-13 12:33:33', '2023-08-13 12:33:33', NULL, 10, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (10, '2023-08-13 12:34:42', '2023-08-13 12:52:27', NULL, 15, 3, 9, 0, 1, 1000000.00, 999900.00, 320.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (11, '2023-08-13 12:36:24', '2023-08-13 12:36:24', NULL, 10, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (12, '2023-08-13 12:53:14', '2023-08-13 12:53:14', NULL, 12, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (13, '2023-08-13 12:53:19', '2023-08-13 12:53:19', NULL, 13, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); +INSERT INTO `examination_instances` VALUES (14, '2023-08-13 16:23:35', '2023-08-13 17:11:09', NULL, 16, 2, 14, 1, 2, 1000000.00, 1500458.90, 0.00, 50.00, 1); +INSERT INTO `examination_instances` VALUES (15, '2023-08-13 16:51:22', '2023-08-13 16:52:49', NULL, 16, 2, 4, 1, 3, 1000000.00, 999700.00, 0.00, 0.00, NULL); +INSERT INTO `examination_instances` VALUES (16, '2023-08-13 16:57:07', NULL, NULL, 16, 2, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); +INSERT INTO `examination_instances` VALUES (17, '2023-08-13 16:57:07', NULL, NULL, 16, 2, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); +INSERT INTO `examination_instances` VALUES (18, '2023-08-13 16:57:07', NULL, NULL, 16, 2, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); +INSERT INTO `examination_instances` VALUES (19, '2023-08-13 16:57:07', NULL, NULL, 16, 2, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); +INSERT INTO `examination_instances` VALUES (20, '2023-08-13 16:57:07', NULL, NULL, 16, 2, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0); +INSERT INTO `examination_instances` VALUES (21, '2023-08-13 17:06:41', '2023-08-13 17:06:41', NULL, 10, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL); -- ---------------------------- -- Table structure for examinations -- ---------------------------- DROP TABLE IF EXISTS `examinations`; CREATE TABLE `examinations` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间', `data` json NULL, `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实训名称', - `flow_id` bigint(20) NULL DEFAULT NULL COMMENT '业务流程Id', - `mode` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '实训模式 0 个人 1 团队', + `flow_id` bigint NULL DEFAULT NULL COMMENT '业务流程Id', + `mode` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '实训模式 0 个人 1 团队', `start_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实训开始时间', `end_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实训结束时间', - `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师id', - `status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训状态 0 未开始 1 进行中 2 已结束', - `user_num` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '参加实训人数', - `type` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训类型 0 练习模式 1 实训模式', - `scores_status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训评分 0 待评分 1 已评分', + `teacher_id` bigint NULL DEFAULT NULL COMMENT '教师id', + `status` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '实训状态 0 未开始 1 进行中 2 已结束', + `user_num` int UNSIGNED NULL DEFAULT NULL COMMENT '参加实训人数', + `type` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '实训类型 0 练习模式 1 实训模式', + `scores_status` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '实训评分 0 待评分 1 已评分', `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0 未删除 1删除', PRIMARY KEY (`id`) USING BTREE, - UNIQUE INDEX `name_UNIQUE`(`name`, `deleted_at`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE, - INDEX `users_idx`(`teacher_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + UNIQUE INDEX `name_UNIQUE`(`name` ASC, `deleted_at` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE, + INDEX `users_idx`(`teacher_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of examinations -- ---------------------------- -INSERT INTO `examinations` VALUES (1, NULL, NULL, NULL, NULL, '存货质押融资流程-个人练习', 3, 0, '2023-08-15 11:02:57', '2033-08-12 11:02:57', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (2, '2023-08-15 11:03:00', '2023-08-15 11:03:00', NULL, NULL, '存货质押融资流程-团队练习', 3, 1, '2023-08-15 11:03:00', '2033-08-12 11:03:00', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (3, NULL, NULL, NULL, NULL, '保兑仓融资-个人练习', 1, 0, '2023-08-15 11:03:04', '2033-08-12 11:03:04', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (4, NULL, NULL, NULL, NULL, '应收账款质押融资-个人练习', 2, 0, '2023-08-15 11:03:06', '2033-08-12 11:03:06', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (5, NULL, NULL, NULL, NULL, '正向保理-个人练习', 4, 0, '2023-08-15 11:03:08', '2033-08-12 11:03:08', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (6, NULL, NULL, NULL, NULL, '反向保理-个人练习', 5, 0, '2023-08-15 11:03:10', '2033-08-12 11:03:10', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (7, '2023-08-15 15:32:31', '2023-08-15 15:32:31', NULL, NULL, '保兑仓融资-团队练习', 1, 1, '2023-08-15 15:32:31', '2033-08-12 15:32:31', 0, 1, 0, 0, 0, 0); -INSERT INTO `examinations` VALUES (8, '2023-08-15 15:41:18', '2023-08-15 16:53:00', NULL, NULL, '反向保理', 5, 0, '2023-08-15 15:48:00', '2023-08-15 00:00:00', 36, 2, 0, 1, 1, 0); +INSERT INTO `examinations` VALUES (10, NULL, NULL, NULL, NULL, '存货质押融资流程-个人练习', 3, 0, '2023-08-13 10:42:39', '2033-08-10 10:42:39', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (11, NULL, NULL, NULL, NULL, '保兑仓融资-个人练习', 1, 0, '2023-08-13 10:54:30', '2033-08-10 10:54:30', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (12, NULL, NULL, NULL, NULL, '应收账款质押融资-个人练习', 2, 0, '2023-08-13 11:33:55', '2033-08-10 11:33:55', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (13, NULL, NULL, NULL, NULL, '正向保理-个人练习', 4, 0, '2023-08-13 12:16:30', '2033-08-10 12:16:30', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (14, NULL, NULL, NULL, NULL, '反向保理-个人练习', 5, 0, '2023-08-13 12:24:55', '2033-08-10 12:24:55', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (15, '2023-08-13 12:34:10', '2023-08-13 12:34:10', NULL, NULL, '存货质押融资流程-团队练习', 3, 1, '2023-08-13 12:34:10', '2033-08-10 12:34:10', 0, 1, 0, 0, 0, 0); +INSERT INTO `examinations` VALUES (16, '2023-08-13 16:22:45', '2023-08-13 17:11:09', NULL, NULL, 's01', 2, 1, '2023-08-11 16:23:00', '2023-08-12 00:00:00', 36, 2, 0, 1, 1, 0); -- ---------------------------- -- Table structure for financings -- ---------------------------- DROP TABLE IF EXISTS `financings`; CREATE TABLE `financings` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `apply_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '融资申请编号', - `apply_status` tinyint(4) NULL DEFAULT 0 COMMENT '0:已申请融资;1:银行已受理;2:银行审核通过;-5:银行已驳回;', - `role_id` int(11) NULL DEFAULT NULL COMMENT '角色ID', + `apply_status` tinyint NULL DEFAULT 0 COMMENT '0:已申请融资;1:银行已受理;2:银行审核通过;-5:银行已驳回;', + `role_id` int NULL DEFAULT NULL COMMENT '角色ID', `role_type` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色类型', `financing_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款编号', - `financing_status` tinyint(4) NULL DEFAULT 0 COMMENT '1: 贷款发放; 5:还款中; 9:已结清贷款;', + `financing_status` tinyint NULL DEFAULT 0 COMMENT '1: 贷款发放; 5:还款中; 9:已结清贷款;', `financing_end_time` timestamp NULL DEFAULT NULL COMMENT '贷款到期时间', - `levy_status` tinyint(4) NULL DEFAULT NULL COMMENT '1: 催收成功', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '申请企业ID', + `levy_status` tinyint NULL DEFAULT NULL COMMENT '1: 催收成功', + `seller_id` int NULL DEFAULT NULL COMMENT '申请企业ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请企业名称', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '贷款银行ID', + `bank_id` int NULL DEFAULT NULL COMMENT '贷款银行ID', `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款银行名称', `apply_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '利率(%)', `apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '贷款申请金额', `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应付(应收)账款金额', `interest_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '利息总额', `repayment_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已还金额', - `financing_months` int(11) NULL DEFAULT NULL COMMENT '融资期限(月)', + `financing_months` int NULL DEFAULT NULL COMMENT '融资期限(月)', `financing_start_time` timestamp NULL DEFAULT NULL COMMENT '贷款开始时间', `max_apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '最大融资金额', `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号', `accept_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '受理编号', `bail_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '需缴纳保证金', - `bail_status` tinyint(4) NULL DEFAULT NULL COMMENT '保证金缴纳状态 0未缴纳 1已缴纳', + `bail_status` tinyint NULL DEFAULT NULL COMMENT '保证金缴纳状态 0未缴纳 1已缴纳', `bail_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '保证金比例', `accept_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '核定保理额度', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '合同ID', + `contract_id` int NULL DEFAULT NULL COMMENT '合同ID', `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号', `contract_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '合同金额', `fk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '融资放款金额', `apply_poundage` decimal(10, 2) NULL DEFAULT NULL COMMENT '手续费(至少10元)', - `commit_status` tinyint(4) NULL DEFAULT NULL COMMENT '余款入账状态 0未入账 1已入账', - `financing_type` tinyint(4) NULL DEFAULT NULL COMMENT '融资类型 1存货质押;2保兑仓;3应收账款质押;4正向保理;5反向保理;', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID', + `commit_status` tinyint NULL DEFAULT NULL COMMENT '余款入账状态 0未入账 1已入账', + `financing_type` tinyint NULL DEFAULT NULL COMMENT '融资类型 1存货质押;2保兑仓;3应收账款质押;4正向保理;5反向保理;', + `buyer_id` int NULL DEFAULT NULL COMMENT '买方ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方名称', `audit_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核意见', `financing_audit_time` timestamp NULL DEFAULT NULL COMMENT '审核时间', `financing_audit_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核人', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '协议ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of financings -- ---------------------------- -INSERT INTO `financings` VALUES (1, '2023-08-15 11:31:20', '2023-08-15 11:35:35', 3, 1, 8, '2184327981', 2, 0, NULL, '8731240717', 9, '2024-03-15 00:00:00', NULL, 59, '格力电器集团公司', 15, '平安银行', 7.20, 196928.20, NULL, 7089.42, 144939.16, 6, '2023-09-15 00:00:00', 196928.20, '2023081970184', '7803465931', 59078.46, 1, 0.30, 196928.20, 1, '2023081500003', 281326.00, 196928.20, 0.00, 0, 2, 58, '振友电器销售有限公司', NULL, '2023-08-15 11:35:35', 'tzs009', 1); -INSERT INTO `financings` VALUES (2, '2023-08-15 14:04:16', '2023-08-15 14:04:45', 1, 3, 9, '1738132926', 2, 0, NULL, '5900852920', 9, '2023-11-30 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.86, 100000.00, 144681.00, 1715.00, 101715.00, 3, '2023-08-30 00:00:00', 101276.70, '20230815000003', NULL, NULL, 0, NULL, 100000.00, NULL, NULL, NULL, 100000.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-30 00:00:00', 'tzs006', 2); -INSERT INTO `financings` VALUES (3, '2023-08-15 14:47:32', '2023-08-15 15:00:24', 4, 2, 11, '1938397946', 2, 0, NULL, '2337756229', 9, '2023-11-24 00:00:00', NULL, 55, '鞍山钢铁有限责任公司', 14, '浦发银行', 7.18, 240000.00, 300000.00, 4308.00, 300000.00, 3, '2023-08-24 00:00:00', 240000.00, NULL, '1911454217', NULL, 0, NULL, 240000.00, 2, '2023081500004', 318826.00, 240000.00, 0.00, 1, 3, 63, '大众汽车制造有限公司', NULL, '2023-08-24 00:00:00', 'tzs006', NULL); -INSERT INTO `financings` VALUES (4, '2023-08-15 15:11:36', '2023-08-15 15:25:32', 5, 4, 12, '2082003126', 2, 0, NULL, '1909803615', 9, '2023-11-30 00:00:00', NULL, 40, '兰辉服装有限责任公司', 11, '华夏银行', 7.02, 80000.00, 90000.00, 1404.00, 90000.00, 3, '2023-08-30 00:00:00', 81000.00, NULL, '7232752056', NULL, 0, NULL, 80000.00, 3, '2023081500005', 91074.00, 80000.00, 400.00, 1, 4, 41, '太平鸟服饰有限公司', NULL, NULL, NULL, NULL); +INSERT INTO `financings` VALUES (1, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 10, 3, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); +INSERT INTO `financings` VALUES (2, '2023-08-13 10:57:42', '2023-08-13 10:58:40', 11, 1, 5, '3315145339', 2, 0, NULL, '3598872592', 9, '2023-10-13 00:00:00', NULL, 59, '格力电器集团公司', 11, '华夏银行', 7.50, 200.00, NULL, 1.25, 81.25, 1, '2023-09-13 00:00:00', 217.00, '2023081495352', '9416275574', 120.00, 1, 0.60, 200.00, 1, '2023081300001', 310.00, 200.00, 0.00, 0, 2, 32, '深圳大买方集团', '1', '2023-08-13 10:58:40', 'tzs001', 2); +INSERT INTO `financings` VALUES (3, '2023-08-13 12:08:31', '2023-08-13 12:10:30', 12, 2, 6, '5059526221', 2, 0, NULL, '0803455330', 9, '2023-09-15 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 240.00, 300.00, 1.32, 300.00, 1, '2023-08-15 00:00:00', 240.00, NULL, '0262863615', NULL, 0, NULL, 240.00, 2, '2023081300002', 320.00, 240.00, 0.00, 1, 3, 25, '晶东电子城', '1', '2023-08-15 00:00:00', 'tzs001', NULL); +INSERT INTO `financings` VALUES (4, '2023-08-13 12:19:20', '2023-08-13 12:21:00', 13, 4, 7, '3572305127', 2, 0, NULL, '0482820561', 9, '2023-09-15 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 270.00, 300.00, 1.49, 300.00, 1, '2023-08-15 00:00:00', 270.00, NULL, '0337671496', NULL, 0, NULL, 270.00, 3, '2023081300003', 320.00, 270.00, 1.35, 1, 4, 25, '晶东电子城', NULL, NULL, NULL, NULL); +INSERT INTO `financings` VALUES (5, '2023-08-13 12:29:27', '2023-08-13 12:29:52', 14, 5, 8, '8094140073', 2, 0, NULL, '8081049009', 9, '2023-09-15 12:25:18', NULL, 24, '新力电子有限公司', 15, '平安银行', 8.00, 2.00, 300.00, 0.16, 300.00, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, 140.00, 4, '2023081300004', 320.00, 2.00, 0.00, 1, 5, NULL, '晶东电子城', NULL, NULL, NULL, NULL); +INSERT INTO `financings` VALUES (6, '2023-08-13 12:52:08', '2023-08-13 12:52:28', 15, 3, 10, '3596424202', 2, 2, NULL, '3299981381', 9, '2023-09-24 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 200.00, 320.00, 1.10, 0.00, 1, '2023-08-24 00:00:00', 224.00, '20230813000004', NULL, NULL, 0, NULL, 200.00, NULL, NULL, NULL, 200.00, 0.00, 0, 1, NULL, NULL, '2', '2023-08-24 00:00:00', 'tzs009', 4); +INSERT INTO `financings` VALUES (7, '2023-08-13 16:27:59', '2023-08-13 16:45:27', 16, 2, 14, '8729585336', 2, 2, NULL, '7565483112', 9, '2023-09-23 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 200.00, 300.00, 1.10, 300.00, 1, '2023-08-23 00:00:00', 240.00, NULL, '1768992617', NULL, 0, NULL, 200.00, 5, '2023081300005', 320.00, 200.00, 0.00, 1, 3, 25, '晶东电子城', '1', '2023-08-23 00:00:00', 'tzs009', NULL); +INSERT INTO `financings` VALUES (8, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 15, 1, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); +INSERT INTO `financings` VALUES (9, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 15, 2, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); +INSERT INTO `financings` VALUES (10, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 15, 3, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); +INSERT INTO `financings` VALUES (11, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 15, 4, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); +INSERT INTO `financings` VALUES (12, '2023-08-13 10:50:40', '2023-08-13 10:51:00', 15, 5, 4, '9589116146', 2, 0, NULL, '4600487354', 9, '2023-09-27 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.60, 400.00, 576.90, 2.20, 402.20, 1, '2023-08-27 00:00:00', 403.83, '20230813000001', NULL, NULL, 0, NULL, 400.00, NULL, NULL, NULL, 400.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-27 00:00:00', 'tzs001', 1); -- ---------------------------- -- Table structure for flows -- ---------------------------- DROP TABLE IF EXISTS `flows`; CREATE TABLE `flows` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间', `data` json NULL, `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务名称', `abbr` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程简称', - `step` int(11) NULL DEFAULT NULL COMMENT '流程总步骤', + `step` int NULL DEFAULT NULL COMMENT '流程总步骤', `roles` json NULL COMMENT '流程相关角色', `flow_scores` decimal(10, 2) NULL DEFAULT NULL COMMENT '流程分数', - `apply_role_id` int(11) NULL DEFAULT NULL COMMENT '申请角色Id', + `apply_role_id` int NULL DEFAULT NULL COMMENT '申请角色Id', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 56 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实训业务流程' ROW_FORMAT = DYNAMIC; @@ -517,23 +541,23 @@ INSERT INTO `flows` VALUES (5, NULL, NULL, '{\"abbr\": \"fxbl\", \"step\": 16, \ -- ---------------------------- DROP TABLE IF EXISTS `instance_datas`; CREATE TABLE `instance_datas` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `examination_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `instance_id` int(11) NOT NULL DEFAULT 0, - `parent_id` int(11) NOT NULL DEFAULT 0, + `id` int NOT NULL AUTO_INCREMENT, + `examination_id` int NOT NULL, + `flow_id` int NOT NULL, + `instance_id` int NOT NULL DEFAULT 0, + `parent_id` int NOT NULL DEFAULT 0, `prefix` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号', - `status` tinyint(4) NULL DEFAULT 0, + `status` tinyint NULL DEFAULT 0, `time` timestamp NULL DEFAULT NULL COMMENT '日期', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, - `instance_role_id` int(11) NOT NULL DEFAULT 0, + `instance_role_id` int NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -545,21 +569,21 @@ CREATE TABLE `instance_datas` ( -- ---------------------------- DROP TABLE IF EXISTS `instance_roles`; CREATE TABLE `instance_roles` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `instance_data_id` int(11) NULL DEFAULT NULL, - `buyer_id` int(11) NULL DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `instance_data_id` int NULL DEFAULT NULL, + `buyer_id` int NULL DEFAULT NULL, `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `seller_id` int(11) NULL DEFAULT NULL, + `seller_id` int NULL DEFAULT NULL, `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `bank_id` int(11) NULL DEFAULT NULL, + `bank_id` int NULL DEFAULT NULL, `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `express_id` int(11) NULL DEFAULT NULL, + `express_id` int NULL DEFAULT NULL, `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_data_idx`(`instance_data_id`) USING BTREE + INDEX `instance_data_idx`(`instance_data_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -571,37 +595,38 @@ CREATE TABLE `instance_roles` ( -- ---------------------------- DROP TABLE IF EXISTS `invoice`; CREATE TABLE `invoice` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购销合同编号', `invoice_end_time` timestamp NULL DEFAULT NULL COMMENT '付款到期日', - `invoice_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '发票传递 0未传递,1已传递,2已接收', + `invoice_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '发票传递 0未传递,1已传递,2已接收', `invoice_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '发票金额', `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款金额', `invoice_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发票号码', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', `vat` decimal(10, 2) NULL DEFAULT NULL COMMENT '增值税率', `line_file_data` json NULL COMMENT '发票文件', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票' ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of invoice -- ---------------------------- +INSERT INTO `invoice` VALUES (1, '2023-08-13 12:28:55', '2023-08-13 12:29:06', 14, 5, 8, '2023081300004', '2023-09-15 12:25:18', 2, 320.00, 300.00, '192339952124', 4, 0.17, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"buyer_id\": 25, \"pay_time\": \"2023-09-15 12:25:18\", \"products\": [{\"id\": 5, \"sku\": \"MJK-2021\", \"nums\": 1, \"unit\": \"件\", \"price\": 320, \"title\": \"男士夹克衫\", \"cost_price\": 300, \"product_id\": 18, \"product_no\": \"100009\", \"sell_price\": 320, \"contract_id\": 4, \"pickup_status\": 0}], \"seller_id\": 24, \"invoice_no\": \"192339952124\", \"contract_id\": 4, \"contract_no\": \"2023081300004\", \"yfzk_amount\": \"300\", \"buyer_account\": \"770320795051\", \"buyer_address\": \"广东省深圳市宝安区创业路58号\", \"contract_time\": \"2023-08-13 12:25:18\", \"invoice_amount\": 320, \"seller_account\": \"770320795051\", \"seller_address\": \"广东省深圳市宝安区创业路58号\", \"buyer_telephone\": \"0755-50219684\", \"contract_amount\": 320, \"invoice_end_time\": \"2023-09-15 12:25:18\", \"seller_telephone\": \"0755-50219684\", \"total_sell_price\": 320, \"yfzk_amount_fill\": \"300\", \"buyer_corporation\": \"刘强\", \"protocol_end_time\": \"2023-09-16 12:25:18\", \"seller_corporation\": \"刘强\"}'); -- ---------------------------- -- Table structure for materials -- ---------------------------- DROP TABLE IF EXISTS `materials`; CREATE TABLE `materials` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, @@ -615,9 +640,9 @@ CREATE TABLE `materials` ( `current_assets_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '流动资产比率', `fixed_assets_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '固定资产比率', `liabilities_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '资产负债率', - `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:卖方企业;2:买方企业;3:物流仓储业;4:银行;', + `type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:卖方企业;2:买方企业;3:物流仓储业;4:银行;', `credit_level` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '信用评级', - `user_id` int(10) UNSIGNED NOT NULL DEFAULT 0, + `user_id` int UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 111 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; @@ -674,9 +699,9 @@ INSERT INTO `materials` VALUES (110, NULL, NULL, '{\"bank\": {\"id\": 12, \"name -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( - `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `id` int UNSIGNED NOT NULL AUTO_INCREMENT, `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `batch` int(11) NOT NULL, + `batch` int NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; @@ -689,106 +714,142 @@ CREATE TABLE `migrations` ( -- ---------------------------- DROP TABLE IF EXISTS `notices`; CREATE TABLE `notices` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间', `data` json NULL, `content` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公告内容', - `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师id', + `teacher_id` bigint NULL DEFAULT NULL COMMENT '教师id', PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_notices_users1_idx`(`teacher_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公告表' ROW_FORMAT = DYNAMIC; + INDEX `fk_notices_users1_idx`(`teacher_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公告表' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of notices -- ---------------------------- +INSERT INTO `notices` VALUES (1, '2023-07-24 16:30:47', '2023-07-24 16:30:47', NULL, '测试公告6566', 31); +INSERT INTO `notices` VALUES (2, '2023-08-08 17:48:24', '2023-08-08 17:48:24', NULL, '请大家抓紧时间完成实训,注意实训截止时间!', 36); -- ---------------------------- -- Table structure for operate_scores -- ---------------------------- DROP TABLE IF EXISTS `operate_scores`; CREATE TABLE `operate_scores` ( - `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, - `user_examination_id` int(11) NOT NULL DEFAULT 0, - `instance_id` int(11) NOT NULL DEFAULT 0, - `flow_id` int(11) NOT NULL DEFAULT 0, + `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, + `user_examination_id` int NOT NULL DEFAULT 0, + `instance_id` int NOT NULL DEFAULT 0, + `flow_id` int NOT NULL DEFAULT 0, `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `times` int(11) NOT NULL DEFAULT 0, - `score` int(11) NOT NULL DEFAULT 0, + `times` int NOT NULL DEFAULT 0, + `score` int NOT NULL DEFAULT 0, `data` json NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 54 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of operate_scores -- ---------------------------- -INSERT INTO `operate_scores` VALUES (1, 8, 8, 1, 'bdc_jrcccd_2', 3, 2, NULL, '2023-08-15 13:26:20', '2023-08-15 13:26:23'); -INSERT INTO `operate_scores` VALUES (2, 8, 8, 1, 'bdc_jrcccd_4', 3, 1, NULL, '2023-08-15 13:26:20', '2023-08-15 13:26:23'); -INSERT INTO `operate_scores` VALUES (3, 8, 8, 1, 'bdc_thsqs_zck_7', 5, 1, NULL, '2023-08-15 13:35:44', '2023-08-15 13:42:18'); -INSERT INTO `operate_scores` VALUES (4, 8, 8, 1, 'bdc_thtzs_zck_7', 3, 1, NULL, '2023-08-15 13:37:09', '2023-08-15 13:37:11'); -INSERT INTO `operate_scores` VALUES (5, 8, 8, 1, 'bdc_thsqs_zck_6', 2, 1, NULL, '2023-08-15 13:42:17', '2023-08-15 13:42:18'); -INSERT INTO `operate_scores` VALUES (6, 8, 8, 1, 'bdc_thsqs_zck_9', 2, 1, NULL, '2023-08-15 13:42:17', '2023-08-15 13:42:18'); -INSERT INTO `operate_scores` VALUES (7, 9, 9, 3, 'chzy_zwqd_6', 3, 3, NULL, '2023-08-15 14:03:30', '2023-08-15 14:03:31'); -INSERT INTO `operate_scores` VALUES (8, 9, 9, 3, 'chzy_thtzs_2', 3, 3, NULL, '2023-08-15 14:20:27', '2023-08-15 14:20:28'); -INSERT INTO `operate_scores` VALUES (9, 9, 9, 3, 'chzy_thtzs_6', 3, 2, NULL, '2023-08-15 14:20:27', '2023-08-15 14:20:28'); -INSERT INTO `operate_scores` VALUES (10, 9, 9, 3, 'chzy_thtzshz_3', 3, 3, NULL, '2023-08-15 14:21:36', '2023-08-15 14:21:37'); -INSERT INTO `operate_scores` VALUES (11, 11, 11, 2, 'yszk_normal_8', 4, 3, NULL, '2023-08-15 14:47:10', '2023-08-15 14:47:24'); -INSERT INTO `operate_scores` VALUES (12, 11, 11, 2, 'yszk_yyht_2', 3, 4, NULL, '2023-08-15 14:51:36', '2023-08-15 14:51:43'); -INSERT INTO `operate_scores` VALUES (13, 11, 11, 2, 'yszk_yyht_8', 4, 3, NULL, '2023-08-15 14:51:36', '2023-08-15 14:52:16'); -INSERT INTO `operate_scores` VALUES (14, 11, 11, 2, 'yszk_zwrqrh_10', 3, 3, NULL, '2023-08-15 14:59:49', '2023-08-15 14:59:50'); -INSERT INTO `operate_scores` VALUES (15, 12, 12, 4, 'zxbl_normal_7', 3, 1, NULL, '2023-08-15 15:11:23', '2023-08-15 15:11:26'); -INSERT INTO `operate_scores` VALUES (16, 12, 12, 4, 'zxbl_yszkzrs_hz_7', 3, 1, NULL, '2023-08-15 15:24:17', '2023-08-15 15:24:18'); -INSERT INTO `operate_scores` VALUES (17, 12, 12, 4, 'zxbl_yszkzrs_hz_8', 3, 1, NULL, '2023-08-15 15:24:17', '2023-08-15 15:24:18'); -INSERT INTO `operate_scores` VALUES (18, 12, 12, 4, 'zxbl_normal_8', 1, 0, NULL, '2023-08-15 15:28:56', NULL); +INSERT INTO `operate_scores` VALUES (1, 3, 4, 3, 'chzy_normal_6', 4, 3, NULL, '2023-08-13 10:50:07', '2023-08-13 10:50:28'); +INSERT INTO `operate_scores` VALUES (2, 4, 5, 1, 'bdc_normal_3', 1, 0, NULL, '2023-08-13 10:54:48', NULL); +INSERT INTO `operate_scores` VALUES (3, 4, 5, 1, 'bdc_normal_4', 1, 0, NULL, '2023-08-13 10:54:48', NULL); +INSERT INTO `operate_scores` VALUES (4, 4, 5, 1, 'bdc_normal_6', 3, 1, NULL, '2023-08-13 10:57:30', '2023-08-13 10:57:32'); +INSERT INTO `operate_scores` VALUES (5, 4, 5, 1, 'bdc_normal_8', 1, 0, NULL, '2023-08-13 10:57:58', NULL); +INSERT INTO `operate_scores` VALUES (6, 5, 6, 2, 'yszk_normal_8', 3, 3, NULL, '2023-08-13 12:07:36', '2023-08-13 12:07:37'); +INSERT INTO `operate_scores` VALUES (7, 6, 7, 4, 'zxbl_normal_7', 3, 1, NULL, '2023-08-13 12:18:54', '2023-08-13 12:18:57'); +INSERT INTO `operate_scores` VALUES (8, 6, 7, 4, 'zxbl_normal_8', 1, 0, NULL, '2023-08-13 12:23:43', NULL); +INSERT INTO `operate_scores` VALUES (9, 7, 8, 5, 'fxbl_normal_7', 2, 1, NULL, '2023-08-13 12:29:17', '2023-08-13 12:29:24'); +INSERT INTO `operate_scores` VALUES (10, 15, 14, 2, 'yszk_normal_8', 3, 3, NULL, '2023-08-13 16:27:16', '2023-08-13 16:27:17'); +INSERT INTO `operate_scores` VALUES (11, 4, 5, 1, 'bdc_yhcdhpsxqrh_1', 3, 2, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (12, 4, 5, 1, 'bdc_yhcdhpsxqrh_2', 3, 2, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (13, 4, 5, 1, 'bdc_yhcdhpsxqrh_3', 3, 2, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (14, 4, 5, 1, 'bdc_yhcdhpsxqrh_4', 3, 2, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (15, 4, 5, 1, 'bdc_yhcdhpsxqrh_5', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (16, 4, 5, 1, 'bdc_yhcdhpsxqrh_6', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (17, 4, 5, 1, 'bdc_yhcdhpsxqrh_7', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (18, 4, 5, 1, 'bdc_yhcdhpsxqrh_8', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (19, 4, 5, 1, 'bdc_yhcdhpsxqrh_9', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (20, 4, 5, 1, 'bdc_yhcdhpsxqrh_10', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (21, 4, 5, 1, 'bdc_yhcdhpsxqrh_11', 3, 2, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (22, 4, 5, 1, 'bdc_yhcdhpsxqrh_12', 3, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:58:18'); +INSERT INTO `operate_scores` VALUES (23, 4, 5, 1, 'bdc_yhcdhpsxqrh_13', 4, 1, NULL, '2023-08-15 16:58:16', '2023-08-15 16:59:36'); +INSERT INTO `operate_scores` VALUES (24, 6, 7, 4, 'zxbl_yszkzrs_tz_1', 3, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (25, 6, 7, 4, 'zxbl_yszkzrs_tz_2', 3, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (26, 6, 7, 4, 'zxbl_yszkzrs_tz_3', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (27, 6, 7, 4, 'zxbl_yszkzrs_tz_4', 4, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:18:48'); +INSERT INTO `operate_scores` VALUES (28, 6, 7, 4, 'zxbl_yszkzrs_tz_5', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (29, 6, 7, 4, 'zxbl_yszkzrs_tz_6', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (30, 6, 7, 4, 'zxbl_yszkzrs_tz_7', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (31, 6, 7, 4, 'zxbl_yszkzrs_tz_8', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (32, 6, 7, 4, 'zxbl_yszkzrs_tz_9', 4, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:19:47'); +INSERT INTO `operate_scores` VALUES (33, 6, 7, 4, 'zxbl_yszkzrs_tz_10', 5, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:20:03'); +INSERT INTO `operate_scores` VALUES (34, 6, 7, 4, 'zxbl_yszkzrs_tz_11', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (35, 6, 7, 4, 'zxbl_yszkzrs_tz_12', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (36, 6, 7, 4, 'zxbl_yszkzrs_tz_13', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (37, 6, 7, 4, 'zxbl_yszkzrs_tz_14', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (38, 6, 7, 4, 'zxbl_yszkzrs_tz_15', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (39, 6, 7, 4, 'zxbl_yszkzrs_tz_16', 3, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (40, 6, 7, 4, 'zxbl_yszkzrs_tz_17', 18, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:20:18'); +INSERT INTO `operate_scores` VALUES (41, 6, 7, 4, 'zxbl_yszkzrs_tz_18', 8, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:17:28'); +INSERT INTO `operate_scores` VALUES (42, 6, 7, 4, 'zxbl_yszkzrs_tz_19', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (43, 6, 7, 4, 'zxbl_yszkzrs_tz_20', 10, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:18:01'); +INSERT INTO `operate_scores` VALUES (44, 6, 7, 4, 'zxbl_yszkzrs_tz_21', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (45, 6, 7, 4, 'zxbl_yszkzrs_tz_22', 9, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:17:45'); +INSERT INTO `operate_scores` VALUES (46, 6, 7, 4, 'zxbl_yszkzrs_tz_23', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (47, 6, 7, 4, 'zxbl_yszkzrs_tz_24', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (48, 6, 7, 4, 'zxbl_yszkzrs_tz_25', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (49, 6, 7, 4, 'zxbl_yszkzrs_tz_26', 12, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:18:26'); +INSERT INTO `operate_scores` VALUES (50, 6, 7, 4, 'zxbl_yszkzrs_tz_27', 3, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (51, 6, 7, 4, 'zxbl_yszkzrs_tz_28', 3, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (52, 6, 7, 4, 'zxbl_yszkzrs_tz_29', 3, 2, NULL, '2023-08-15 17:14:32', '2023-08-15 17:14:33'); +INSERT INTO `operate_scores` VALUES (53, 6, 7, 4, 'zxbl_yszkzrs_tz_31', 4, 1, NULL, '2023-08-15 17:14:32', '2023-08-15 17:16:44'); -- ---------------------------- -- Table structure for pickup_products -- ---------------------------- DROP TABLE IF EXISTS `pickup_products`; CREATE TABLE `pickup_products` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, - `examination_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `instance_id` int(11) NOT NULL DEFAULT 0, + `examination_id` int NOT NULL, + `flow_id` int NOT NULL, + `instance_id` int NOT NULL DEFAULT 0, `pickup_apply_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货申请单号', `pickup_apply_file` json NULL COMMENT '提货申请单', - `pickup_apply_status` tinyint(4) NULL DEFAULT 0 COMMENT '1:已上传提货申请单;2: 申请方已提交;', + `pickup_apply_status` tinyint NULL DEFAULT 0 COMMENT '1:已上传提货申请单;2: 申请方已提交;', `pickup_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货单号', - `pickup_status` tinyint(4) NULL DEFAULT 0 COMMENT '1: 待确认;2: 银行出具提货通知书;3: 银行确认签发, 待物流银行确认;5: 物流出具提货通知书回执;9: 提货完成;', - `apply_user_id` int(11) NULL DEFAULT NULL COMMENT '提货申请人', + `pickup_status` tinyint NULL DEFAULT 0 COMMENT '1: 待确认;2: 银行出具提货通知书;3: 银行确认签发, 待物流银行确认;5: 物流出具提货通知书回执;9: 提货完成;', + `apply_user_id` int NULL DEFAULT NULL COMMENT '提货申请人', `apply_user_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货申请人姓名', `pickup_time` timestamp NULL DEFAULT NULL COMMENT '提货日期', `pickup_apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '提货货物总价值', - `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '存货质押协议ID', + `financing_id` int NULL DEFAULT NULL COMMENT '融资ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '存货质押协议ID', `pickup_bank_file` json NULL COMMENT '提货通知书', `pickup_express_file` json NULL COMMENT '提货通知书回执', `shouxin_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '授信敞口', `had_pickup_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已提货物金额', `bail_repayment_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已缴纳保证金及还款总额', PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提货申请' ROW_FORMAT = DYNAMIC; + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提货申请' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of pickup_products -- ---------------------------- -INSERT INTO `pickup_products` VALUES (1, '2023-08-15 13:35:54', '2023-08-15 13:38:31', 3, 1, 8, '74889415', '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"buyer_id\": 58, \"products\": [{\"id\": 1, \"sku\": \"DFS-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 50583, \"title\": \"电风扇\", \"cost_price\": 600, \"product_id\": 20, \"product_no\": \"100011\", \"sell_price\": 505.83, \"contract_id\": 1, \"pickup_status\": 0}, {\"id\": 2, \"sku\": \"KT-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 230743, \"title\": \"空调\", \"cost_price\": 2000, \"product_id\": 21, \"product_no\": \"100012\", \"sell_price\": 2307.43, \"contract_id\": 1, \"pickup_status\": 0}], \"bank_name\": \"平安银行\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": \"28265\", \"repayment_time\": \"2023-11-16 00:00:00\", \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"repayment_amount\": 100000, \"had_pickup_amount\": 0, \"pending_repayment\": 44939.16, \"pickup_apply_time\": \"2023-11-17 00:00:00\", \"buyer_id_fill_thsq\": 58, \"bank_name_fill_thsq\": \"平安银行\", \"pickup_apply_amount\": 0, \"buyer_name_fill_thsq\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 159078.46, \"last_repayment_amount\": 100000, \"protocol_no_fill_thsq\": \"2023081970184\", \"seller_name_fill_thsq\": \"格力电器集团公司\", \"express_name_fill_thsq\": \"中邮物流\", \"pickup_products_amount\": 50583, \"repayment_time_fill_thsq\": \"2023-11-16 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-11-17 00:00:00\", \"last_repayment_amount_fill_thsq\": \"100000\", \"pickup_products_amount_fill_thsq\": \"\\t 50583\"}', 1, '26552309', 9, 28265, 'tzs009', '2023-11-19 00:00:00', 50583.00, 1, 1, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"bank_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:35:54\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:35:56\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"pickup_status\": 0, \"examination_id\": 3, \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"pickup_products\": null, \"bank_id_fill_thtz\": 15, \"had_pickup_amount\": 50583, \"pending_repayment\": 104017.62, \"pickup_apply_file\": null, \"surplus_fill_thtz\": \"\\t 230743\", \"allTotal_fill_thtz\": \"50583\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_corporation\": \"董明竹\", \"bank_name_fill_thtz\": \"平安银行\", \"pickup_apply_amount\": 50583, \"pickup_apply_status\": 1, \"buyer_name_fill_thtz\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 159078.46, \"pending_pickup_amount\": 230743, \"protocol_no_fill_thtz\": \"2023081970184\", \"express_name_fill_thtz\": \"中邮物流\", \"bank_apply_time_fill_thsq\": \"2023-11-18 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-11-17 00:00:00\", \"pickup_apply_amount_fill_thtz\": \"50583\", \"pickup_apply_amount_fh_fill_thtz\": \"50583\"}', '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"pickup_no\": \"26552309\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:35:54\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:37:26\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"pickup_status\": 3, \"examination_id\": 3, \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"pickup_products\": null, \"pickup_bank_file\": null, \"bank_name_fill_hz\": \"平安银行\", \"had_pickup_amount\": 50583, \"pending_repayment\": 104017.62, \"pickup_apply_file\": null, \"buyer_name_fill_hz\": \"振友电器销售有限公司\", \"express_id_fill_hz\": 21, \"financing_end_time\": \"2024-03-15 00:00:00\", \"pickup_apply_no_hz\": \"99889415\", \"seller_corporation\": \"董明竹\", \"pickup_apply_amount\": 50583, \"pickup_apply_status\": 1, \"protocol_no_fill_hz\": \"2023081970184\", \"express_name_fill_hz\": \"中邮物流\", \"bail_repayment_amount\": 159078.46, \"pending_pickup_amount\": 230743, \"pickup_apply_no_fill_hz\": \"74889415\", \"bank_apply_time_fill_thsq\": \"2023-11-18 00:00:00\", \"pickup_apply_time_fill_hz\": \"2023-11-19 00:00:00\", \"express_apply_time_fill_hz\": \"2023-11-19 00:00:00\", \"pickup_apply_amount_fill_hz\": \"50583\"}', 37849.74, 50583.00, 159078.46); -INSERT INTO `pickup_products` VALUES (2, '2023-08-15 13:42:42', '2023-08-15 13:47:57', 3, 1, 8, '43788768', '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"buyer_id\": 58, \"products\": [{\"id\": 2, \"sku\": \"KT-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 230743, \"title\": \"空调\", \"cost_price\": 2000, \"product_id\": 21, \"product_no\": \"100012\", \"sell_price\": 2307.43, \"contract_id\": 1, \"pickup_status\": 0}], \"bank_name\": \"平安银行\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": \"28265\", \"repayment_time\": \"2024-03-12 00:00:00\", \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"repayment_amount\": 144939.16, \"had_pickup_amount\": 50583, \"pending_repayment\": 0, \"pickup_apply_time\": \"2024-03-13 00:00:00\", \"buyer_id_fill_thsq\": 58, \"bank_name_fill_thsq\": \"平安银行\", \"pickup_apply_amount\": 0, \"buyer_name_fill_thsq\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 204017.62, \"last_repayment_amount\": 44939.16, \"protocol_no_fill_thsq\": \"2023081970184\", \"seller_name_fill_thsq\": \"格力电器集团公司\", \"express_name_fill_thsq\": \"中邮物流\", \"pickup_products_amount\": 230743, \"repayment_time_fill_thsq\": \"2024-03-12 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2024-03-13 00:00:00\", \"last_repayment_amount_fill_thsq\": \"44939.16\", \"pickup_products_amount_fill_thsq\": \"230743\"}', 1, '37251943', 9, 28265, 'tzs009', '2024-03-14 00:00:00', 230743.00, 1, 1, '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"bank_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:42:42\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:42:44\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"pickup_status\": 0, \"examination_id\": 3, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"pickup_products\": null, \"bank_id_fill_thtz\": 15, \"had_pickup_amount\": 281326, \"pending_repayment\": 59078.46, \"pickup_apply_file\": null, \"surplus_fill_thtz\": \"0\", \"allTotal_fill_thtz\": \"281326\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_corporation\": \"董明竹\", \"bank_name_fill_thtz\": \"平安银行\", \"pickup_apply_amount\": 230743, \"pickup_apply_status\": 1, \"buyer_name_fill_thtz\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 204017.62, \"pending_pickup_amount\": 0, \"protocol_no_fill_thtz\": \"2023081970184\", \"express_name_fill_thtz\": \"中邮物流\", \"bank_apply_time_fill_thsq\": \"2024-03-14 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2024-03-13 00:00:00\", \"pickup_apply_amount_fill_thtz\": \"230743\", \"pickup_apply_amount_fh_fill_thtz\": \"230743\"}', '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"pickup_no\": \"37251943\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:42:42\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:45:39\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"pickup_status\": 3, \"examination_id\": 3, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"pickup_products\": null, \"pickup_bank_file\": null, \"bank_name_fill_hz\": \"平安银行\", \"had_pickup_amount\": 281326, \"pending_repayment\": 59078.46, \"pickup_apply_file\": null, \"buyer_name_fill_hz\": \"振友电器销售有限公司\", \"express_id_fill_hz\": 21, \"financing_end_time\": \"2024-03-15 00:00:00\", \"pickup_apply_no_hz\": \"99788768\", \"seller_corporation\": \"董明竹\", \"pickup_apply_amount\": 230743, \"pickup_apply_status\": 1, \"protocol_no_fill_hz\": \"2023081970184\", \"express_name_fill_hz\": \"中邮物流\", \"bail_repayment_amount\": 204017.62, \"pending_pickup_amount\": 0, \"pickup_apply_no_fill_hz\": \"43788768\", \"bank_apply_time_fill_thsq\": \"2024-03-14 00:00:00\", \"pickup_apply_time_fill_hz\": \"2024-03-14 00:00:00\", \"express_apply_time_fill_hz\": \"2024-03-14 00:00:00\", \"pickup_apply_amount_fill_hz\": \"230743\"}', 0.00, 281326.00, 204017.62); -INSERT INTO `pickup_products` VALUES (3, '2023-08-15 14:18:14', '2023-08-15 14:21:50', 1, 3, 9, '80105211', '{\"pickup_all\": 1, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"pickup_time\": \"2023-11-27 00:00:00\", \"protocol_no\": \"20230815000003\", \"getName_fill\": \"tzs006\", \"nameCard_fill\": \"412822199001164829\", \"accept_address\": \"深圳\", \"bank_name_fill\": \"华夏银行\", \"seller_id_fill\": 24, \"pickup_apply_no\": \"80105211\", \"pickup_time_fill\": \"2023-11-27 00:00:00\", \"seller_name_fill\": \"新力电子有限公司\", \"express_name_fill\": \"海格物流\", \"pickup_products_amount\": \"144681.00\"}', 2, '94962466', 9, 28259, 'tzs006', '2023-12-01 00:00:00', 144681.00, 2, 2, '{\"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"financing_no\": \"5900852920\", \"getName_fill\": \"tzs006\", \"bank_id_fill_\": 11, \"pickup_status\": 0, \"accept_address\": \"深圳\", \"nameCard_fill_\": \"412822199001164829\", \"bank_name_fill_\": \"华夏银行\", \"pickup_apply_no\": \"80105211\", \"pending_repayment\": 0, \"pickup_time_fill_\": \"2023-11-28 00:00:00\", \"protocol_no_fill_\": \"20230815000003\", \"express_name_fill_\": \"海格物流\", \"seller_name_fill_tzs\": \"新力电子有限公司\"}', '{\"pickup_no\": \"94962466\", \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/22\", \"pickup_status\": 5, \"pickup_apply_no\": \"80105211\", \"bank_name_fill_hz\": \"华夏银行\", \"pending_repayment\": 0, \"express_id_fill_hz\": 22, \"pickup_time_fill_hz\": \"2023-11-29 00:00:00\", \"protocol_no_fill_hz\": \"20230815000003\", \"seller_name_fill_hz\": \"新力电子有限公司\", \"express_name_fill_hz\": \"海格物流\", \"pickup_time_lk_fill_hz\": \"2023-11-29 00:00:00\", \"pickup_apply_no_fill_hz\": \"80105266\"}', NULL, 144681.00, NULL); +INSERT INTO `pickup_products` VALUES (1, '2023-08-13 10:52:20', '2023-08-13 10:52:39', 10, 3, 4, '91397818', '{\"pickup_all\": 1, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"pickup_time\": \"2023-09-01 00:00:00\", \"protocol_no\": \"20230813000001\", \"getName_fill\": \"tzs001\", \"nameCard_fill\": \"123456789012345678\", \"accept_address\": \"2\", \"bank_name_fill\": \"华夏银行\", \"seller_id_fill\": 24, \"pickup_apply_no\": \"91397818\", \"pickup_time_fill\": \"2023-09-01 00:00:00\", \"seller_name_fill\": \"新力电子有限公司\", \"express_name_fill\": \"华贸物流\", \"pickup_products_amount\": \"576.90\", \"repayment_amount_fill_bzj\": 402.2}', 2, '14769550', 9, 28258, 'tzs001', '2023-09-28 00:00:00', 576.90, 1, 1, '{\"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"financing_no\": \"4600487354\", \"getName_fill\": \"tzs001\", \"bank_id_fill_\": 11, \"pickup_status\": 0, \"accept_address\": \"2\", \"nameCard_fill_\": \"123456789012345678\", \"bank_name_fill_\": \"华夏银行\", \"pickup_apply_no\": \"91397818\", \"pending_repayment\": 0, \"pickup_time_fill_\": \"2023-09-02 00:00:00\", \"protocol_no_fill_\": \"20230813000001\", \"express_name_fill_\": \"华贸物流\", \"seller_name_fill_tzs\": \"新力电子有限公司\"}', '{\"pickup_no\": \"14769550\", \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"pickup_status\": 5, \"pickup_apply_no\": \"91397818\", \"bank_name_fill_hz\": \"华夏银行\", \"pending_repayment\": 0, \"express_id_fill_hz\": 18, \"pickup_time_fill_hz\": \"2023-09-02 00:00:00\", \"protocol_no_fill_hz\": \"20230813000001\", \"seller_name_fill_hz\": \"新力电子有限公司\", \"express_name_fill_hz\": \"华贸物流\", \"pickup_time_lk_fill_hz\": \"2023-09-02 00:00:00\", \"pickup_apply_no_fill_hz\": 91397873}', NULL, 576.90, NULL); +INSERT INTO `pickup_products` VALUES (2, '2023-08-13 11:04:20', '2023-08-13 11:04:40', 11, 1, 5, '41436523', '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"buyer_id\": 32, \"products\": [{\"id\": 2, \"sku\": \"MJK-2021\", \"nums\": 1, \"unit\": \"件\", \"price\": 310, \"title\": \"男士夹克衫\", \"cost_price\": 300, \"created_at\": \"2023-08-13 10:55:08\", \"product_id\": 18, \"product_no\": \"100009\", \"sell_price\": 310, \"contract_id\": 1, \"pickup_status\": 0}], \"bank_name\": \"华夏银行\", \"seller_id\": 59, \"buyer_name\": \"深圳大买方集团\", \"express_id\": 18, \"protocol_id\": 2, \"protocol_no\": \"2023081495352\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 200, \"express_name\": \"华贸物流\", \"financing_id\": 2, \"financing_no\": \"3598872592\", \"apply_user_id\": \"28258\", \"repayment_time\": \"2023-09-21 00:00:00\", \"shouxin_amount\": 0, \"apply_user_name\": \"tzs001\", \"contract_amount\": 310, \"pickup_apply_no\": \"41436523\", \"repayment_amount\": 81.25, \"had_pickup_amount\": 0, \"pending_repayment\": 0, \"pickup_apply_time\": \"2023-09-22 00:00:00\", \"buyer_id_fill_thsq\": 32, \"bank_name_fill_thsq\": \"华夏银行\", \"pickup_apply_amount\": 0, \"buyer_name_fill_thsq\": \"深圳大买方集团\", \"bail_repayment_amount\": 201.25, \"last_repayment_amount\": 81.25, \"protocol_no_fill_thsq\": \"2023081495352\", \"seller_name_fill_thsq\": \"格力电器集团公司\", \"express_name_fill_thsq\": \"华贸物流\", \"pickup_products_amount\": 310, \"repayment_time_fill_thsq\": \"2023-09-21 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-09-22 00:00:00\", \"last_repayment_amount_fill_thsq\": 81.25, \"pickup_products_amount_fill_thsq\": 310}', 1, '44646639', 9, 28258, 'tzs001', '2023-09-24 00:00:00', 310.00, 2, 2, '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 1, \"bank_name\": \"华夏银行\", \"seller_id\": 59, \"bank_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"buyer_name\": \"深圳大买方集团\", \"created_at\": \"2023-08-13 11:04:20\", \"express_id\": 18, \"updated_at\": \"2023-08-13 11:04:21\", \"instance_id\": 5, \"protocol_id\": 2, \"protocol_no\": \"2023081495352\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 200, \"express_name\": \"华贸物流\", \"financing_id\": 2, \"financing_no\": \"3598872592\", \"apply_user_id\": 28258, \"pickup_status\": 0, \"examination_id\": 11, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs001\", \"contract_amount\": 310, \"pickup_apply_no\": \"41436523\", \"pickup_products\": null, \"bank_id_fill_thtz\": 11, \"had_pickup_amount\": 310, \"pending_repayment\": 120, \"pickup_apply_file\": null, \"surplus_fill_thtz\": 0, \"allTotal_fill_thtz\": 310, \"financing_end_time\": \"2023-10-13 00:00:00\", \"seller_corporation\": \"董明竹\", \"bank_name_fill_thtz\": \"华夏银行\", \"pickup_apply_amount\": 310, \"pickup_apply_status\": 1, \"buyer_name_fill_thtz\": \"深圳大买方集团\", \"bail_repayment_amount\": 201.25, \"pending_pickup_amount\": 0, \"protocol_no_fill_thtz\": \"2023081495352\", \"express_name_fill_thtz\": \"华贸物流\", \"bank_apply_time_fill_thsq\": \"2023-09-23 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-09-22 00:00:00\", \"pickup_apply_amount_fill_thtz\": 310, \"pickup_apply_amount_fh_fill_thtz\": 310}', '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 1, \"bank_name\": \"华夏银行\", \"pickup_no\": \"44646639\", \"seller_id\": 59, \"buyer_name\": \"深圳大买方集团\", \"created_at\": \"2023-08-13 11:04:20\", \"express_id\": 18, \"updated_at\": \"2023-08-13 11:04:32\", \"instance_id\": 5, \"protocol_id\": 2, \"protocol_no\": \"2023081495352\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 200, \"express_name\": \"华贸物流\", \"financing_id\": 2, \"financing_no\": \"3598872592\", \"apply_user_id\": 28258, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"pickup_status\": 3, \"examination_id\": 11, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs001\", \"contract_amount\": 310, \"pickup_apply_no\": \"41436523\", \"pickup_products\": null, \"pickup_bank_file\": null, \"bank_name_fill_hz\": \"华夏银行\", \"had_pickup_amount\": 310, \"pending_repayment\": 120, \"pickup_apply_file\": null, \"buyer_name_fill_hz\": \"深圳大买方集团\", \"express_id_fill_hz\": 18, \"financing_end_time\": \"2023-10-13 00:00:00\", \"pickup_apply_no_hz\": \"99436523\", \"seller_corporation\": \"董明竹\", \"pickup_apply_amount\": 310, \"pickup_apply_status\": 1, \"protocol_no_fill_hz\": \"2023081495352\", \"express_name_fill_hz\": \"华贸物流\", \"bail_repayment_amount\": 201.25, \"pending_pickup_amount\": 0, \"pickup_apply_no_fill_hz\": \"41436523\", \"bank_apply_time_fill_thsq\": \"2023-09-23 00:00:00\", \"pickup_apply_time_fill_hz\": \"2023-09-24 00:00:00\", \"express_apply_time_fill_hz\": \"2023-09-24 00:00:00\", \"pickup_apply_amount_fill_hz\": 310}', 0.00, 310.00, 201.25); -- ---------------------------- -- Table structure for products -- ---------------------------- DROP TABLE IF EXISTS `products`; CREATE TABLE `products` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, @@ -798,50 +859,50 @@ CREATE TABLE `products` ( `sku` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `cost_price` decimal(11, 2) UNSIGNED NOT NULL COMMENT '成本价格', `sell_price` decimal(11, 2) UNSIGNED NOT NULL COMMENT '售价', - `user_id` int(10) UNSIGNED NOT NULL DEFAULT 0, + `user_id` int UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of products -- ---------------------------- -INSERT INTO `products` VALUES (4, '2022-01-04 07:37:35', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '000001', '摄像头', '个', 'SXT-2020', 300.00, 373.51, 0); -INSERT INTO `products` VALUES (5, '2022-01-05 05:45:10', '2023-08-15 03:00:00', NULL, '21312', '12313', '1231', '12312', 1.00, 0.98, 490); -INSERT INTO `products` VALUES (6, '2022-01-05 05:47:40', '2023-08-15 03:00:00', NULL, '6767', '6767', '6767', '67676', 676.00, 741.37, 490); -INSERT INTO `products` VALUES (7, '2022-01-05 05:48:18', '2023-08-15 03:00:00', NULL, '89898', '8989', '8989', '8989', 898.00, 1095.26, 490); -INSERT INTO `products` VALUES (8, '2022-01-05 05:49:40', '2023-08-15 03:00:00', NULL, '45623', '笔记本电脑', '台', '206', 8986.00, 10183.56, 490); -INSERT INTO `products` VALUES (9, '2022-01-05 05:50:18', '2023-08-15 03:00:00', NULL, '00023', '台式电脑', '台', '206', 8986.00, 10662.09, 490); -INSERT INTO `products` VALUES (10, '2022-01-05 05:52:44', '2023-08-15 03:00:00', NULL, '000002', '笔记本', '本', '101', 1.00, 1.22, 0); -INSERT INTO `products` VALUES (11, '2022-01-06 15:00:02', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100002', '电子表', '箱', 'DZB-2021', 1000.00, 1073.30, 0); -INSERT INTO `products` VALUES (12, '2022-01-06 15:13:21', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100003', '蓝牙耳机', '箱', 'LYEJ-2021', 2000.00, 2351.62, 0); -INSERT INTO `products` VALUES (13, '2022-01-06 15:16:19', '2023-08-15 03:00:00', NULL, '100004', '消火栓箱', '个', 'XHS-2020', 1000.00, 1149.71, 0); -INSERT INTO `products` VALUES (14, '2022-01-06 15:17:17', '2023-08-15 03:00:00', NULL, '100005', '灭火器箱', '个', 'MYQ-2020', 150.00, 200.33, 0); -INSERT INTO `products` VALUES (15, '2022-01-06 15:18:04', '2023-08-15 03:00:00', NULL, '100006', '手提式干粉灭火器', '个', 'STMYQ-2020', 15.00, 19.26, 0); -INSERT INTO `products` VALUES (16, '2022-01-06 15:19:44', '2023-08-15 03:00:00', '{\"seller_ids\": [42]}', '100007', '大豆', '袋', 'YZDA-2021', 200.00, 199.77, 0); -INSERT INTO `products` VALUES (17, '2022-01-06 15:20:37', '2023-08-15 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100008', '羽绒服', '件', 'YRF-2021', 500.00, 596.75, 0); -INSERT INTO `products` VALUES (18, '2022-01-06 15:21:32', '2023-08-15 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100009', '男士夹克衫', '件', 'MJK-2021', 300.00, 313.99, 0); -INSERT INTO `products` VALUES (19, '2022-01-06 15:22:38', '2023-08-15 03:00:00', '{\"seller_ids\": [44]}', '100010', '白糖', '袋', 'YZBT-2021', 150.00, 155.48, 0); -INSERT INTO `products` VALUES (20, '2022-01-06 15:23:35', '2023-08-15 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100011', '电风扇', '台', 'DFS-2021', 600.00, 505.83, 0); -INSERT INTO `products` VALUES (21, '2022-01-06 15:24:11', '2023-08-15 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100012', '空调', '台', 'KT-2021', 2000.00, 2307.43, 0); -INSERT INTO `products` VALUES (22, '2022-01-06 15:26:08', '2023-08-15 03:00:00', '{\"seller_ids\": [55]}', '100013', '螺纹钢', '吨', 'LWGA-2021', 3500.00, 3188.26, 0); -INSERT INTO `products` VALUES (23, '2022-01-06 15:35:23', '2023-08-15 03:00:00', '{\"buyer_ids\": [62], \"seller_ids\": [60]}', '100014', '新能源汽车', '辆', 'BYD-2021', 200000.00, 146660.50, 0); -INSERT INTO `products` VALUES (24, '2022-01-06 15:38:45', '2023-08-15 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100015', '气缸体', '个', 'QGT-2021', 1000.00, 1411.25, 0); -INSERT INTO `products` VALUES (25, '2022-01-06 15:40:30', '2023-08-15 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100016', '减速器', '个', 'JSQ-2021', 2000.00, 2200.06, 0); -INSERT INTO `products` VALUES (26, '2022-07-24 00:33:57', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '888888', '大西瓜', '个', '1', 50.00, 59.34, 1829); -INSERT INTO `products` VALUES (27, '2022-07-24 00:42:26', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"27\", \"32\", \"41\"], \"seller_ids\": [\"26\", \"31\", \"40\"]}', '1', '2', '4', '3', 5.00, 5.29, 1829); -INSERT INTO `products` VALUES (28, '2022-07-24 00:43:59', '2023-08-15 03:00:00', '{\"buyer_ids\": [[\"25\", \"27\", \"32\"]], \"seller_ids\": [[\"24\", \"26\", \"31\"]]}', '123', '123', '231', '123', 321.00, 330.19, 1829); -INSERT INTO `products` VALUES (29, '2022-07-24 00:54:30', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '999999', '毛衣', '件', 'AAADDD', 500.00, 604.06, 1829); -INSERT INTO `products` VALUES (30, '2022-07-25 10:06:05', '2023-08-15 03:00:00', '{\"buyer_ids\": \"[25, 27, 32]\", \"seller_ids\": \"[24, 26, 31]\"}', '999888787', '保温杯', '个', 'BWB888', 50.00, 53.54, 1829); -INSERT INTO `products` VALUES (31, '2022-07-25 10:38:54', '2023-08-15 03:00:00', '{\"buyer_ids\": [27, 25, 32, 41, 58], \"seller_ids\": [24, 26, 31, 40, 42]}', '88556565655', '洗衣机', '台', 'XYJ002', 2000.00, 2096.46, 12626); -INSERT INTO `products` VALUES (32, '2022-07-25 10:50:20', '2023-08-15 03:00:00', NULL, '123456789000', '花生', '斤', 'HS001', 30.00, 33.56, 12626); -INSERT INTO `products` VALUES (33, '2022-07-25 10:55:14', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32], \"seller_ids\": [24, 26, 31]}', 'DJ20020', '光碟', '个', 'GD5252', 50.00, 57.31, 12626); -INSERT INTO `products` VALUES (34, '2022-08-04 20:24:49', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', 'HW0002', '西瓜', '斤', 'XG00222', 10.00, 12.31, 12622); -INSERT INTO `products` VALUES (35, '2022-08-04 20:25:51', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 58, 41, 62, 63], \"seller_ids\": [24, 26, 31, 42, 40, 43, 44, 55, 59, 60, 61]}', 'HY001', '火药', '斤', 'HY00000', 500.00, 543.63, 12622); -INSERT INTO `products` VALUES (36, '2022-09-04 22:27:43', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 62, 58, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100017', '煤气罐', '个', 'MQG', 6000.00, 6210.67, 12624); -INSERT INTO `products` VALUES (37, '2022-09-04 22:28:23', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '1000018', '钓鱼竿', '棵', 'DYG002', 3000.00, 2903.01, 12624); -INSERT INTO `products` VALUES (38, '2022-09-04 22:29:14', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100019', '老干妈', '瓶', 'LGM', 30.00, 34.82, 12624); -INSERT INTO `products` VALUES (40, NULL, '2023-08-15 03:00:00', NULL, '111111', '豆浆粉', '袋', '111-111', 15.00, 15.72, 28258); -INSERT INTO `products` VALUES (41, NULL, '2023-08-15 03:00:00', NULL, '0000012', '手机', '台', 'Xiaomi', 2000.00, 2328.42, 28264); +INSERT INTO `products` VALUES (4, '2022-01-04 07:37:35', '2023-08-13 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '000001', '摄像头', '个', 'SXT-2020', 300.00, 395.66, 0); +INSERT INTO `products` VALUES (5, '2022-01-05 05:45:10', '2023-08-13 03:00:00', NULL, '21312', '12313', '1231', '12312', 1.00, 1.09, 490); +INSERT INTO `products` VALUES (6, '2022-01-05 05:47:40', '2023-08-13 03:00:00', NULL, '6767', '6767', '6767', '67676', 676.00, 778.62, 490); +INSERT INTO `products` VALUES (7, '2022-01-05 05:48:18', '2023-08-13 03:00:00', NULL, '89898', '8989', '8989', '8989', 898.00, 1080.77, 490); +INSERT INTO `products` VALUES (8, '2022-01-05 05:49:40', '2023-08-13 03:00:00', NULL, '45623', '笔记本电脑', '台', '206', 8986.00, 10764.02, 490); +INSERT INTO `products` VALUES (9, '2022-01-05 05:50:18', '2023-08-13 03:00:00', NULL, '00023', '台式电脑', '台', '206', 8986.00, 10903.81, 490); +INSERT INTO `products` VALUES (10, '2022-01-05 05:52:44', '2023-08-13 03:00:00', NULL, '000002', '笔记本', '本', '101', 1.00, 1.14, 0); +INSERT INTO `products` VALUES (11, '2022-01-06 15:00:02', '2023-08-13 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100002', '电子表', '箱', 'DZB-2021', 1000.00, 1021.26, 0); +INSERT INTO `products` VALUES (12, '2022-01-06 15:13:21', '2023-08-13 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100003', '蓝牙耳机', '箱', 'LYEJ-2021', 2000.00, 2294.33, 0); +INSERT INTO `products` VALUES (13, '2022-01-06 15:16:19', '2023-08-13 03:00:00', NULL, '100004', '消火栓箱', '个', 'XHS-2020', 1000.00, 1172.29, 0); +INSERT INTO `products` VALUES (14, '2022-01-06 15:17:17', '2023-08-13 03:00:00', NULL, '100005', '灭火器箱', '个', 'MYQ-2020', 150.00, 180.55, 0); +INSERT INTO `products` VALUES (15, '2022-01-06 15:18:04', '2023-08-13 03:00:00', NULL, '100006', '手提式干粉灭火器', '个', 'STMYQ-2020', 15.00, 16.63, 0); +INSERT INTO `products` VALUES (16, '2022-01-06 15:19:44', '2023-08-13 03:00:00', '{\"seller_ids\": [42]}', '100007', '大豆', '袋', 'YZDA-2021', 200.00, 204.34, 0); +INSERT INTO `products` VALUES (17, '2022-01-06 15:20:37', '2023-08-13 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100008', '羽绒服', '件', 'YRF-2021', 500.00, 585.03, 0); +INSERT INTO `products` VALUES (18, '2022-01-06 15:21:32', '2023-08-13 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100009', '男士夹克衫', '件', 'MJK-2021', 300.00, 320.00, 0); +INSERT INTO `products` VALUES (19, '2022-01-06 15:22:38', '2023-08-13 03:00:00', '{\"seller_ids\": [44]}', '100010', '白糖', '袋', 'YZBT-2021', 150.00, 145.26, 0); +INSERT INTO `products` VALUES (20, '2022-01-06 15:23:35', '2023-08-13 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100011', '电风扇', '台', 'DFS-2021', 600.00, 524.03, 0); +INSERT INTO `products` VALUES (21, '2022-01-06 15:24:11', '2023-08-13 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100012', '空调', '台', 'KT-2021', 2000.00, 1994.70, 0); +INSERT INTO `products` VALUES (22, '2022-01-06 15:26:08', '2023-08-13 03:00:00', '{\"seller_ids\": [55]}', '100013', '螺纹钢', '吨', 'LWGA-2021', 3500.00, 3278.35, 0); +INSERT INTO `products` VALUES (23, '2022-01-06 15:35:23', '2023-08-13 03:00:00', '{\"buyer_ids\": [62], \"seller_ids\": [60]}', '100014', '新能源汽车', '辆', 'BYD-2021', 200000.00, 173165.25, 0); +INSERT INTO `products` VALUES (24, '2022-01-06 15:38:45', '2023-08-13 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100015', '气缸体', '个', 'QGT-2021', 1000.00, 1339.11, 0); +INSERT INTO `products` VALUES (25, '2022-01-06 15:40:30', '2023-08-13 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100016', '减速器', '个', 'JSQ-2021', 2000.00, 2074.68, 0); +INSERT INTO `products` VALUES (26, '2022-07-24 00:33:57', '2023-08-13 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '888888', '大西瓜', '个', '1', 50.00, 52.65, 1829); +INSERT INTO `products` VALUES (27, '2022-07-24 00:42:26', '2023-08-13 03:00:00', '{\"buyer_ids\": [\"27\", \"32\", \"41\"], \"seller_ids\": [\"26\", \"31\", \"40\"]}', '1', '2', '4', '3', 5.00, 5.25, 1829); +INSERT INTO `products` VALUES (28, '2022-07-24 00:43:59', '2023-08-13 03:00:00', '{\"buyer_ids\": [[\"25\", \"27\", \"32\"]], \"seller_ids\": [[\"24\", \"26\", \"31\"]]}', '123', '123', '231', '123', 321.00, 324.35, 1829); +INSERT INTO `products` VALUES (29, '2022-07-24 00:54:30', '2023-08-13 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '999999', '毛衣', '件', 'AAADDD', 500.00, 588.71, 1829); +INSERT INTO `products` VALUES (30, '2022-07-25 10:06:05', '2023-08-13 03:00:00', '{\"buyer_ids\": \"[25, 27, 32]\", \"seller_ids\": \"[24, 26, 31]\"}', '999888787', '保温杯', '个', 'BWB888', 50.00, 53.92, 1829); +INSERT INTO `products` VALUES (31, '2022-07-25 10:38:54', '2023-08-13 03:00:00', '{\"buyer_ids\": [27, 25, 32, 41, 58], \"seller_ids\": [24, 26, 31, 40, 42]}', '88556565655', '洗衣机', '台', 'XYJ002', 2000.00, 2150.83, 12626); +INSERT INTO `products` VALUES (32, '2022-07-25 10:50:20', '2023-08-13 03:00:00', NULL, '123456789000', '花生', '斤', 'HS001', 30.00, 35.16, 12626); +INSERT INTO `products` VALUES (33, '2022-07-25 10:55:14', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32], \"seller_ids\": [24, 26, 31]}', 'DJ20020', '光碟', '个', 'GD5252', 50.00, 50.14, 12626); +INSERT INTO `products` VALUES (34, '2022-08-04 20:24:49', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', 'HW0002', '西瓜', '斤', 'XG00222', 10.00, 12.72, 12622); +INSERT INTO `products` VALUES (35, '2022-08-04 20:25:51', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32, 58, 41, 62, 63], \"seller_ids\": [24, 26, 31, 42, 40, 43, 44, 55, 59, 60, 61]}', 'HY001', '火药', '斤', 'HY00000', 500.00, 570.06, 12622); +INSERT INTO `products` VALUES (36, '2022-09-04 22:27:43', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 62, 58, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100017', '煤气罐', '个', 'MQG', 6000.00, 5583.44, 12624); +INSERT INTO `products` VALUES (37, '2022-09-04 22:28:23', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '1000018', '钓鱼竿', '棵', 'DYG002', 3000.00, 3176.94, 12624); +INSERT INTO `products` VALUES (38, '2022-09-04 22:29:14', '2023-08-13 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100019', '老干妈', '瓶', 'LGM', 30.00, 33.77, 12624); +INSERT INTO `products` VALUES (40, NULL, '2023-08-13 03:00:00', NULL, '111111', '豆浆粉', '袋', '111-111', 15.00, 15.09, 28258); +INSERT INTO `products` VALUES (41, NULL, '2023-08-13 03:00:00', NULL, '0000012', '手机', '台', 'Xiaomi', 2000.00, 2294.45, 28264); -- ---------------------------- -- Table structure for protocols @@ -851,20 +912,20 @@ CREATE TABLE `protocols` ( `id` int(11) UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号', `protocol_time` timestamp NULL DEFAULT NULL COMMENT '签约日期', - `protocol_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '协议状态 0未确认,1、2、3、4四方分别确认', + `protocol_status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '协议状态 0未确认,1、2、3、4四方分别确认', `product_data` json NULL COMMENT '协议文件', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID', + `buyer_id` int NULL DEFAULT NULL COMMENT '买方ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID', + `seller_id` int NULL DEFAULT NULL COMMENT '卖方ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方', - `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID', + `bank_id` int NULL DEFAULT NULL COMMENT '银行ID', `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行', - `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID', + `express_id` int NULL DEFAULT NULL COMMENT '物流ID', `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流', `type` tinyint(1) NULL DEFAULT 0 COMMENT '类型', `protocol_data` json NULL COMMENT '此字段待删除', @@ -876,94 +937,96 @@ CREATE TABLE `protocols` ( `protocol_start_time` timestamp NULL DEFAULT NULL COMMENT '协议开始时间', `protocol_end_time` timestamp NULL DEFAULT NULL COMMENT '协议到期时间', `protocol_fxbl_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '反向保理授信额度', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方、银行、物流签订协议' ROW_FORMAT = DYNAMIC; + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方、银行、物流签订协议' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of protocols -- ---------------------------- -INSERT INTO `protocols` VALUES (00000000001, '2023-08-15 11:29:59', '2023-08-15 11:30:48', 3, 1, 8, '2023081970184', '2023-08-19 00:00:00', 4, NULL, 58, '振友电器销售有限公司', 59, '格力电器集团公司', 15, '平安银行', 21, '中邮物流', 2, '{\"bank_list\": {\"address\": \"广东省珠海市斗门区新安路261号\", \"bank_id\": 15, \"bank_name\": \"平安银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"telephone\": \"0756-25103697\", \"can_deleted\": false, \"corporation\": \"谢林\"}, \"buyer_list\": {\"bank\": \"平安银行\", \"account\": \"731003195840\", \"address\": \"广东省珠海市香洲区北岭路75号\", \"balance\": 1000000, \"bank_id\": 15, \"buyer_id\": 58, \"industry\": \"批发与零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/58\", \"telephone\": \"0756-85210367\", \"buyer_name\": \"振友电器销售有限公司\", \"can_deleted\": false, \"corporation\": \"章东\", \"credit_level\": \"A\", \"liabilities_ratio\": 75, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 42}, \"seller_list\": {\"bank\": \"平安银行\", \"account\": \"711800098541\", \"address\": \"广东省珠海市金湾区平沙路29号\", \"balance\": 1000000, \"bank_id\": 15, \"industry\": \"制造业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"seller_id\": 59, \"telephone\": \"0756-85413690\", \"can_deleted\": false, \"corporation\": \"董明竹\", \"seller_name\": \"格力电器集团公司\", \"credit_level\": \"AAA\", \"liabilities_ratio\": 41, \"fixed_assets_ratio\": 23, \"current_assets_ratio\": 58}, \"express_list\": {\"bank\": \"平安银行\", \"account\": \"771869695061\", \"address\": \"广东省珠海市金湾区平沙路63号\", \"bank_id\": 15, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"telephone\": \"0756-52036487\", \"express_id\": 21, \"can_deleted\": false, \"corporation\": \"马晓\", \"credit_level\": \"AAA\", \"express_name\": \"中邮物流\", \"express_id_ok\": 21}, \"contract_time\": \"2023-08-15 11:25:22\", \"contract_amount\": 281326}', 1, 1, 1, 1, '2023081500003', NULL, NULL, NULL, 1); -INSERT INTO `protocols` VALUES (00000000002, '2023-08-15 13:53:29', '2023-08-15 13:54:00', 1, 3, 9, '20230815000003', '2023-08-15 13:53:07', 3, NULL, NULL, NULL, 24, '新力电子有限公司', 11, '华夏银行', 22, '海格物流', 0, '{\"bank_info\": {\"address\": \"深圳市南山区沙河路152号\", \"bank_id\": 11, \"bank_name\": \"华夏银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"telephone\": \"0755-25103214\", \"bank_id_ok\": 11, \"can_deleted\": false, \"corporation\": \"关文洁\"}, \"wuliu_info\": {\"bank\": \"光大银行\", \"account\": \"771865203697\", \"address\": \"广东省深圳市坪山新区宝梓北路128号\", \"bank_id\": 16, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/22\", \"telephone\": \"0755-52036971\", \"express_id\": 22, \"can_deleted\": false, \"corporation\": \"梅春雷\", \"credit_level\": \"AAA\", \"express_name\": \"海格物流\", \"express_id_ok\": 22}, \"seller_info\": {\"bank\": \"华夏银行\", \"account\": \"785210395061\", \"address\": \"广东省深圳市宝安区宝安大道521号\", \"balance\": 1000000, \"bank_id\": 11, \"industry\": \"批发和零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"seller_id\": 24, \"telephone\": \"0755-20165841\", \"can_deleted\": false, \"corporation\": \"张文\", \"seller_name\": \"新力电子有限公司\", \"credit_level\": \"AA\", \"seller_id_ok\": 24, \"liabilities_ratio\": 70, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 50}}', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL); -INSERT INTO `protocols` VALUES (00000000003, '2023-08-15 15:59:14', '2023-08-15 15:59:42', 8, 5, 15, '20230815000004', '2023-08-19 00:00:00', 2, NULL, 27, '恒达集团有限公司', NULL, NULL, 11, '华夏银行', NULL, NULL, NULL, '{\"bank_id\": 11, \"buyer_id\": 27, \"bank_name\": \"华夏银行\", \"bank_id_ok\": 11, \"buyer_name\": \"恒达集团有限公司\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/27\", \"buyer_id_ok\": 27, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"protocol_no\": \"20230815000004\", \"bank_address\": \"深圳市南山区沙河路152号\", \"buyer_account\": \"770023695032\", \"buyer_address\": \"深圳市南山区莲花路32号\", \"buyer_name_lk\": \"恒达集团有限公司\", \"protocol_desc\": \"解决乙方上游供应商资金问题\", \"protocol_time\": \"2023-08-19 00:00:00\", \"bank_telephone\": \"0755-25103214\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103021\", \"bank_corporation\": \"关文洁\", \"buyer_corporation\": \"徐寅\", \"protocol_end_time\": \"2024-02-19 00:00:00\", \"bank_corporation_lk\": \"关文洁\", \"protocol_start_time\": \"2023-08-19 00:00:00\", \"bank_name_hm_fill_fx\": \"华夏银行\", \"bank_name_lk_fill_fx\": \"华夏银行\", \"buyer_corporation_lk\": \"徐寅\", \"protocol_fxbl_amount\": \"200000\", \"bank_name_khh_fill_fx\": \"华夏银行\", \"buyer_account_fill_fx\": \"622712345678\", \"protocol_fxbl_dx_amount\": \"贰拾万元整\"}', 1, NULL, 1, NULL, '2023081500006', '2023-08-19 00:00:00', '2024-02-19 00:00:00', 200000.00, 4); +INSERT INTO `protocols` VALUES (00000000001, '2023-08-13 10:44:01', '2023-08-13 10:44:26', 10, 3, 4, '20230813000001', '2023-08-13 10:43:46', 3, NULL, NULL, NULL, 24, '新力电子有限公司', 11, '华夏银行', 18, '华贸物流', 0, '{\"bank_info\": {\"address\": \"深圳市南山区沙河路152号\", \"bank_id\": 11, \"bank_name\": \"华夏银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"telephone\": \"0755-25103214\", \"bank_id_ok\": 11, \"can_deleted\": false, \"corporation\": \"关文洁\"}, \"wuliu_info\": {\"bank\": \"中信银行\", \"account\": \"771800095098\", \"address\": \"河北省石家庄市藁城区庄河路65号\", \"bank_id\": 12, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"telephone\": \"0311-26520147\", \"express_id\": 18, \"can_deleted\": false, \"corporation\": \"陈裕\", \"credit_level\": \"A\", \"express_name\": \"华贸物流\", \"express_id_ok\": 18}, \"seller_info\": {\"bank\": \"华夏银行\", \"account\": \"785210395061\", \"address\": \"广东省深圳市宝安区宝安大道521号\", \"balance\": 1000000, \"bank_id\": 11, \"industry\": \"批发和零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"seller_id\": 24, \"telephone\": \"0755-20165841\", \"can_deleted\": false, \"corporation\": \"张文\", \"seller_name\": \"新力电子有限公司\", \"credit_level\": \"AA\", \"seller_id_ok\": 24, \"liabilities_ratio\": 70, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 50}}', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL); +INSERT INTO `protocols` VALUES (00000000002, '2023-08-13 10:55:56', '2023-08-13 10:56:36', 11, 1, 5, '2023081495352', '2023-08-14 00:00:00', 4, NULL, 32, '深圳大买方集团', 59, '格力电器集团公司', 11, '华夏银行', 18, '华贸物流', 2, '{\"bank_list\": {\"address\": \"深圳市南山区沙河路152号\", \"bank_id\": 11, \"bank_name\": \"华夏银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"telephone\": \"0755-25103214\", \"can_deleted\": false, \"corporation\": \"关文洁\"}, \"buyer_list\": {\"bank\": \"招商银行\", \"account\": \"60000998123847891\", \"address\": \"深圳市深圳大买街道办事处\", \"balance\": 20000, \"bank_id\": 13, \"buyer_id\": 32, \"industry\": \"批发和零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/32\", \"telephone\": \"021-87652234\", \"buyer_name\": \"深圳大买方集团\", \"can_deleted\": false, \"corporation\": \"李大麦\", \"credit_level\": \"B\", \"liabilities_ratio\": 30, \"fixed_assets_ratio\": 40, \"current_assets_ratio\": 30}, \"seller_list\": {\"bank\": \"平安银行\", \"account\": \"711800098541\", \"address\": \"广东省珠海市金湾区平沙路29号\", \"balance\": 1000000, \"bank_id\": 15, \"industry\": \"制造业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"seller_id\": 59, \"telephone\": \"0756-85413690\", \"can_deleted\": false, \"corporation\": \"董明竹\", \"seller_name\": \"格力电器集团公司\", \"credit_level\": \"AAA\", \"liabilities_ratio\": 41, \"fixed_assets_ratio\": 23, \"current_assets_ratio\": 58}, \"express_list\": {\"bank\": \"中信银行\", \"account\": \"771800095098\", \"address\": \"河北省石家庄市藁城区庄河路65号\", \"bank_id\": 12, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"telephone\": \"0311-26520147\", \"express_id\": 18, \"can_deleted\": false, \"corporation\": \"陈裕\", \"credit_level\": \"A\", \"express_name\": \"华贸物流\", \"express_id_ok\": 18}, \"contract_time\": \"2023-08-13 10:54:32\", \"contract_amount\": 310}', 1, 1, 1, 1, '2023081300001', NULL, NULL, NULL, 1); +INSERT INTO `protocols` VALUES (00000000003, '2023-08-13 12:27:01', '2023-08-13 12:27:16', 14, 5, 8, '20230813000003', '2023-08-16 00:00:00', 2, NULL, 25, '晶东电子城', NULL, NULL, 15, '平安银行', NULL, NULL, NULL, '{\"bank_id\": 15, \"buyer_id\": 25, \"bank_name\": \"平安银行\", \"bank_id_ok\": 15, \"buyer_name\": \"晶东电子城\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/25\", \"buyer_id_ok\": 25, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"protocol_no\": \"20230813000003\", \"bank_address\": \"广东省珠海市斗门区新安路261号\", \"buyer_account\": \"770320795051\", \"buyer_address\": \"广东省深圳市宝安区创业路58号\", \"buyer_name_lk\": \"晶东电子城\", \"protocol_desc\": \"解决乙方上游供应商资金问题\", \"protocol_time\": \"2023-08-16 00:00:00\", \"bank_telephone\": \"0756-25103697\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-50219684\", \"bank_corporation\": \"谢林\", \"contract_account\": \"111122223333\", \"buyer_corporation\": \"刘强\", \"protocol_end_time\": \"2023-09-16 12:25:18\", \"protocol_start_time\": \"2023-08-16 00:00:00\", \"bank_name_hm_fill_fx\": \"平安银行\", \"bank_name_lk_fill_fx\": \"平安银行\", \"protocol_fxbl_amount\": 321, \"bank_name_khh_fill_fx\": \"平安银行\", \"buyer_account_fill_fx\": \"123456789012\", \"protocol_fxbl_dx_amount\": \"叁佰贰拾壹元整\", \"accept_amount_capital_fill_bl\": \"\"}', 1, NULL, 1, NULL, '2023081300004', '2023-08-16 00:00:00', '2023-09-16 12:25:18', 321.00, 4); +INSERT INTO `protocols` VALUES (00000000004, '2023-08-13 12:35:46', '2023-08-13 12:38:06', 15, 3, 10, '20230813000004', '2023-08-13 12:35:32', 3, NULL, NULL, NULL, 24, '新力电子有限公司', 11, '华夏银行', 18, '华贸物流', 0, '{\"bank_info\": {\"address\": \"深圳市南山区沙河路152号\", \"bank_id\": 11, \"bank_name\": \"华夏银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"telephone\": \"0755-25103214\", \"bank_id_ok\": 11, \"can_deleted\": false, \"corporation\": \"关文洁\"}, \"wuliu_info\": {\"bank\": \"中信银行\", \"account\": \"771800095098\", \"address\": \"河北省石家庄市藁城区庄河路65号\", \"bank_id\": 12, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"telephone\": \"0311-26520147\", \"express_id\": 18, \"can_deleted\": false, \"corporation\": \"陈裕\", \"credit_level\": \"A\", \"express_name\": \"华贸物流\", \"express_id_ok\": 18}, \"seller_info\": {\"bank\": \"华夏银行\", \"account\": \"785210395061\", \"address\": \"广东省深圳市宝安区宝安大道521号\", \"balance\": 1000000, \"bank_id\": 11, \"industry\": \"批发和零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"seller_id\": 24, \"telephone\": \"0755-20165841\", \"can_deleted\": false, \"corporation\": \"张文\", \"seller_name\": \"新力电子有限公司\", \"credit_level\": \"AA\", \"seller_id_ok\": 24, \"liabilities_ratio\": 70, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 50}}', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL); -- ---------------------------- -- Table structure for recommend_supplier -- ---------------------------- DROP TABLE IF EXISTS `recommend_supplier`; CREATE TABLE `recommend_supplier` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购销合同编号', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '供应商ID', + `seller_id` int NULL DEFAULT NULL COMMENT '供应商ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商名称', `supply_level` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商评级', `supply_status` tinyint(1) NULL DEFAULT NULL COMMENT '是否推荐 0否,1是', `supply_year` tinyint(1) NULL DEFAULT NULL COMMENT '合作年限', `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款均值', `supply_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '供应商利率: 一级供应商利率为8%,二级供应商利率8.5%,三级供应商利率为9%', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID', + `contract_id` int NULL DEFAULT NULL COMMENT '购销合同ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '推荐供应商' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of recommend_supplier -- ---------------------------- -INSERT INTO `recommend_supplier` VALUES (1, '2023-08-15 15:59:58', '2023-08-15 16:00:01', 8, 5, 15, '2023081500006', 26, '安科消防有限公司', '1', 1, 5, 150000.00, 8.00, 4); +INSERT INTO `recommend_supplier` VALUES (1, '2023-08-13 12:27:28', '2023-08-13 12:27:31', 14, 5, 8, '2023081300004', 24, '新力电子有限公司', '1', 1, 10, 200.00, 8.00, 4); -- ---------------------------- -- Table structure for repayments -- ---------------------------- DROP TABLE IF EXISTS `repayments`; CREATE TABLE `repayments` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `repayment_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '还款编号', - `repayment_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:催收;1:还款中;9: 已结清贷款;', + `repayment_status` tinyint NULL DEFAULT NULL COMMENT '0:催收;1:还款中;9: 已结清贷款;', `financing_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款编号', `repayment_time` datetime NULL DEFAULT NULL COMMENT '还款时间', `repayment_amount` decimal(10, 2) NOT NULL COMMENT '还款金额', - `repayment_count` int(11) NULL DEFAULT NULL COMMENT '还款次数', + `repayment_count` int NULL DEFAULT NULL COMMENT '还款次数', `financing_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应付账款金额', - `repayment_type` tinyint(4) NULL DEFAULT NULL COMMENT '还款类型:1买方还款 2卖方还款', - `repayment_user_id` int(11) NULL DEFAULT NULL COMMENT '还款人ID', + `repayment_type` tinyint NULL DEFAULT NULL COMMENT '还款类型:1买方还款 2卖方还款', + `repayment_user_id` int NULL DEFAULT NULL COMMENT '还款人ID', `repayment_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '还款人', - `financing_id` int(11) NULL DEFAULT NULL COMMENT '贷款ID', + `financing_id` int NULL DEFAULT NULL COMMENT '贷款ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '还贷管理' ROW_FORMAT = DYNAMIC; + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '还贷管理' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of repayments -- ---------------------------- -INSERT INTO `repayments` VALUES (1, '2023-08-15 13:28:34', '2023-08-15 11:35:35', 3, 1, 8, '202308150001', 1, '8731240717', '2023-11-16 00:00:00', 100000.00, 1, 44939.16, 1, 28265, 'tzs009', 1); -INSERT INTO `repayments` VALUES (2, '2023-08-15 13:40:27', '2023-08-15 11:35:35', 3, 1, 8, '202308150002', 9, '8731240717', '2024-03-12 00:00:00', 44939.16, 2, 0.00, 1, 28265, 'tzs009', 1); -INSERT INTO `repayments` VALUES (3, '2023-08-15 14:06:13', '2023-08-15 14:04:45', 1, 3, 9, '202308150003', 9, '5900852920', '2023-11-24 00:00:00', 101715.00, 1, 0.00, 2, 28259, 'tzs006', 2); -INSERT INTO `repayments` VALUES (4, '2023-08-15 15:02:21', '2023-08-15 15:00:24', 4, 2, 11, '202308150004', 9, '2337756229', '2023-11-21 00:00:00', 300000.00, 1, 0.00, 1, 28259, 'tzs006', 3); -INSERT INTO `repayments` VALUES (5, '2023-08-15 15:29:04', '2023-08-15 15:25:32', 5, 4, 12, '202308150006', 9, '1909803615', '2023-11-28 15:28:47', 90000.00, 1, 0.00, 1, 28259, 'tzs006', 4); +INSERT INTO `repayments` VALUES (1, '2023-08-13 10:51:32', '2023-08-13 10:51:00', 10, 3, 4, '202308130001', 9, '4600487354', '2023-08-31 00:00:00', 402.20, 1, 0.00, 2, 28258, 'tzs001', 1); +INSERT INTO `repayments` VALUES (2, '2023-08-13 11:03:28', '2023-08-13 10:58:40', 11, 1, 5, '202308130002', 9, '3598872592', '2023-09-21 00:00:00', 81.25, 1, 0.00, 1, 28258, 'tzs001', 2); +INSERT INTO `repayments` VALUES (3, '2023-08-13 12:13:30', '2023-08-13 12:10:30', 12, 2, 6, '202308130003', 9, '0803455330', '2023-08-31 00:00:00', 300.00, 1, 0.00, 1, 28258, 'tzs001', 3); +INSERT INTO `repayments` VALUES (4, '2023-08-13 12:23:46', '2023-08-13 12:21:00', 13, 4, 7, '202308130005', 9, '0482820561', '2023-08-31 12:23:38', 300.00, 1, 0.00, 1, 28258, 'tzs001', 4); +INSERT INTO `repayments` VALUES (5, '2023-08-13 12:32:06', '2023-08-13 12:29:52', 14, 5, 8, '202308130007', 9, '8081049009', '2023-09-30 00:00:00', 300.00, 1, 0.00, 1, 28258, 'tzs001', 5); +INSERT INTO `repayments` VALUES (6, '2023-08-13 16:46:11', '2023-08-13 16:45:27', 16, 2, 14, '202308130008', 9, '7565483112', '2023-08-31 00:00:00', 300.00, 1, 0.00, 1, 28264, 'tzs007', 7); -- ---------------------------- -- Table structure for roles -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE @@ -982,7 +1045,7 @@ INSERT INTO `roles` VALUES (4, '银行', NULL); -- ---------------------------- DROP TABLE IF EXISTS `schools`; CREATE TABLE `schools` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, @@ -992,9 +1055,9 @@ CREATE TABLE `schools` ( `code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `college` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `major` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `core_org_id` int(11) NOT NULL, + `core_org_id` int NOT NULL, PRIMARY KEY (`id`) USING BTREE, - UNIQUE INDEX `name_UNIQUE`(`name`) USING BTREE + UNIQUE INDEX `name_UNIQUE`(`name` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -1006,69 +1069,71 @@ CREATE TABLE `schools` ( -- ---------------------------- DROP TABLE IF EXISTS `send_products`; CREATE TABLE `send_products` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `data` json NULL, - `examination_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `instance_id` int(11) NOT NULL DEFAULT 0, + `examination_id` int NOT NULL, + `flow_id` int NOT NULL, + `instance_id` int NOT NULL DEFAULT 0, `send_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货单号', `send_data` json NULL, - `send_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:待发货;1:待接收;2: 已接收;', + `send_status` tinyint NULL DEFAULT NULL COMMENT '0:待发货;1:待接收;2: 已接收;', `product_data` json NULL, `accept_data` json NULL COMMENT '收货信息', `in_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库编号', `in_warehouse_data` json NULL, - `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定;2:已核定;', - `entity_id` int(11) NULL DEFAULT NULL, + `in_warehouse_status` tinyint NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定;2:已核定;', + `entity_id` int NULL DEFAULT NULL, `entity_type` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `seller_id` int(11) NULL DEFAULT NULL COMMENT '发货人ID', + `seller_id` int NULL DEFAULT NULL COMMENT '发货人ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货人姓名', - `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID', + `buyer_id` int NULL DEFAULT NULL COMMENT '买方ID', `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方名称', `send_time` timestamp NULL DEFAULT NULL COMMENT '发货时间', `send_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货地点', `accept_time` timestamp NULL DEFAULT NULL COMMENT '收货时间', `accept_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收货地点', `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号', - `contract_id` int(11) NULL DEFAULT NULL COMMENT '合同ID', - `examination_inst_id` int(11) NULL DEFAULT NULL COMMENT 'user_examination id', - `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID', + `contract_id` int NULL DEFAULT NULL COMMENT '合同ID', + `examination_inst_id` int NULL DEFAULT NULL COMMENT 'user_examination id', + `express_id` int NULL DEFAULT NULL COMMENT '物流ID', `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流名称', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '协议ID', `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号', `total_cost_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物成本总价', `total_sell_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总售价', `send_invoice_file` json NULL COMMENT '银行承兑汇票收悉确认函', PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发货管理' ROW_FORMAT = DYNAMIC; + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发货管理' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of send_products -- ---------------------------- -INSERT INTO `send_products` VALUES (1, '2023-08-15 11:45:11', NULL, NULL, 3, 1, 8, '210391991172', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 59, '格力电器集团公司', NULL, '振友电器销售有限公司', '2023-09-15 00:00:00', '深圳', '2023-09-16 00:00:00', '深圳', '2023081500003', 1, 8, 21, '中邮物流', 1, '2023081970184', NULL, NULL, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"send_no\": \"210391991172\", \"buyer_id\": 58, \"products\": null, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"send_time\": \"2023-09-15 00:00:00\", \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"invoice_no\": \"19988295\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"contract_id\": 1, \"contract_no\": \"2023081500003\", \"protocol_id\": \"1\", \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"中邮物流\", \"invoice_time\": \"2023-09-15 00:00:00\", \"send_address\": \"深圳\", \"invoice_amount\": 196928.2, \"contract_amount\": 281326, \"bank_name_fill_hp\": \"平安银行\", \"invoice_no_return\": \"10988295\", \"seller_id_fill_hp\": 59, \"buyer_name_fill_hp\": \"振友电器销售有限公司\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"invoice_no_fill_hp\": \"19988295\", \"seller_corporation\": \"董明竹\", \"contract_no_fill_hp\": \"2023081500003\", \"protocol_no_fill_hp\": \"2023081970184\", \"seller_name_fill_hp\": \"格力电器集团公司\", \"invoice_time_fill_hp\": \"2023-09-15 00:00:00\", \"invoice_amount_fill_hp\": 196928.2, \"invoice_amount_cap_fill\": \"壹拾玖万陆仟玖佰贰拾捌元贰角\", \"invoice_time_fill_hp_qy\": \"2023-09-15 00:00:00\", \"invoice_amount_fill_hp_xx\": 196928.2, \"financing_end_time_fill_hp\": \"2024-03-15 00:00:00\"}'); -INSERT INTO `send_products` VALUES (2, '2023-08-15 13:54:33', '2023-08-15 13:54:36', NULL, 1, 3, 9, '022662657825', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, NULL, '2023-08-17 00:00:00', '深圳', '2023-08-18 00:00:00', '深圳', NULL, NULL, 9, 22, '海格物流', 2, '20230815000003', 130000.00, 144681.00, NULL); -INSERT INTO `send_products` VALUES (3, '2023-08-15 14:33:01', NULL, NULL, 4, 2, 11, '195722560525', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 55, '鞍山钢铁有限责任公司', NULL, '大众汽车制造有限公司', '2023-08-15 14:32:55', '深圳', '2023-08-17 00:00:00', '所示', '2023081500004', 2, 11, NULL, NULL, NULL, NULL, 350000.00, 318826.00, NULL); -INSERT INTO `send_products` VALUES (4, '2023-08-15 15:06:07', NULL, NULL, 5, 4, 12, '962106009825', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 40, '兰辉服装有限责任公司', NULL, '太平鸟服饰有限公司', '2023-08-15 15:06:02', '大的', '2023-08-17 00:00:00', '大的', '2023081500005', 3, 12, NULL, NULL, NULL, NULL, 80000.00, 91074.00, NULL); -INSERT INTO `send_products` VALUES (5, '2023-08-15 15:55:38', NULL, NULL, 8, 5, 15, '390464158143', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 26, '安科消防有限公司', NULL, '恒达集团有限公司', '2023-08-15 15:55:32', '22', '2023-08-17 00:00:00', '22', '2023081500006', 4, 15, NULL, NULL, NULL, NULL, 115000.00, 135004.00, NULL); -INSERT INTO `send_products` VALUES (6, '2023-08-15 16:40:19', NULL, NULL, 8, 5, 18, '288569410465', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-15 16:40:14', '22', '2023-08-17 00:00:00', '22', '2023081500007', 5, 18, NULL, NULL, NULL, NULL, 130000.00, 144681.00, NULL); +INSERT INTO `send_products` VALUES (1, '2023-08-13 10:45:26', '2023-08-13 10:45:30', NULL, 10, 3, 4, '416124279790', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, NULL, '2023-08-25 00:00:00', '1', '2023-08-26 00:01:00', '2', NULL, NULL, 3, 18, '华贸物流', 1, '20230813000001', 600.00, 576.90, NULL); +INSERT INTO `send_products` VALUES (2, '2023-08-13 11:02:27', NULL, NULL, 11, 1, 5, '995745580469', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 59, '格力电器集团公司', NULL, '深圳大买方集团', '2023-09-13 00:00:00', '1', '2023-09-14 00:00:00', '2', '2023081300001', 1, 4, 18, '华贸物流', 2, '2023081495352', NULL, NULL, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"send_no\": \"995745580469\", \"buyer_id\": 32, \"products\": null, \"bank_name\": \"华夏银行\", \"seller_id\": 59, \"send_time\": \"2023-09-13 00:00:00\", \"buyer_name\": \"深圳大买方集团\", \"express_id\": 18, \"invoice_no\": \"71436712\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"contract_id\": 1, \"contract_no\": \"2023081300001\", \"protocol_id\": \"2\", \"protocol_no\": \"2023081495352\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"华贸物流\", \"invoice_time\": \"2023-09-13 00:00:00\", \"send_address\": \"1\", \"invoice_amount\": 200, \"contract_amount\": 310, \"bank_name_fill_hp\": \"华夏银行\", \"seller_id_fill_hp\": 59, \"buyer_name_fill_hp\": \"深圳大买方集团\", \"financing_end_time\": \"2023-10-13 00:00:00\", \"invoice_no_fill_hp\": \"71436712\", \"seller_corporation\": \"董明竹\", \"contract_no_fill_hp\": \"2023081300001\", \"protocol_no_fill_hp\": \"2023081495352\", \"seller_name_fill_hp\": \"格力电器集团公司\", \"invoice_time_fill_hp\": \"2023-09-13 00:00:00\", \"invoice_amount_fill_hp\": 200, \"invoice_amount_cap_fill\": \"贰佰元整\", \"invoice_time_fill_hp_qy\": \"2023-09-14 00:00:00\", \"invoice_amount_fill_hp_xx\": 200, \"financing_end_time_fill_hp\": \"2023-10-13 00:00:00\"}'); +INSERT INTO `send_products` VALUES (3, '2023-08-13 12:06:51', NULL, NULL, 12, 2, 6, '197609625996', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-13 12:06:45', '1', '2023-08-14 00:00:00', '2', '2023081300002', 2, 5, NULL, NULL, NULL, NULL, 300.00, 320.00, NULL); +INSERT INTO `send_products` VALUES (4, '2023-08-13 12:18:04', NULL, NULL, 13, 4, 7, '300607100549', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-13 12:18:01', '1', '2023-08-14 00:00:00', '2', '2023081300003', 3, 6, NULL, NULL, NULL, NULL, 300.00, 320.00, NULL); +INSERT INTO `send_products` VALUES (5, '2023-08-13 12:26:21', NULL, NULL, 14, 5, 8, '688093479590', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-13 12:26:18', '1', '2023-08-15 00:00:00', '2', '2023081300004', 4, 7, NULL, NULL, NULL, NULL, 300.00, 320.00, NULL); +INSERT INTO `send_products` VALUES (6, '2023-08-13 12:46:04', '2023-08-13 12:46:06', NULL, 15, 3, 10, '480143250598', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, NULL, '2023-08-13 00:00:00', '1', '2023-08-14 00:00:00', '2', NULL, NULL, 9, 18, '华贸物流', 4, '20230813000004', 300.00, 320.00, NULL); +INSERT INTO `send_products` VALUES (7, '2023-08-13 16:26:21', NULL, NULL, 16, 2, 14, '541418514465', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-13 16:26:18', '1', '2023-08-22 00:00:00', '2', '2023081300005', 5, 15, NULL, NULL, NULL, NULL, 300.00, 320.00, NULL); +INSERT INTO `send_products` VALUES (8, '2023-08-13 16:52:31', NULL, NULL, 16, 2, 15, '582247715851', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-16 16:52:00', '1', '2023-08-24 00:00:00', '1', '2023081300006', 6, 16, NULL, NULL, NULL, NULL, 300.00, 320.00, NULL); -- ---------------------------- -- Table structure for student -- ---------------------------- DROP TABLE IF EXISTS `student`; CREATE TABLE `student` ( - `student_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '学生ID', + `student_id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '学生ID', `student_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学号', `student_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名', `student_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话号码', `student_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学生账号', `student_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码', - `student_sex` int(11) NULL DEFAULT NULL COMMENT '性别(1男 2女)', + `student_sex` int NULL DEFAULT NULL COMMENT '性别(1男 2女)', `student_id_cart_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '证件类型', `student_id_card` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '证件号', `max_education` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最高学历', @@ -1081,12 +1146,12 @@ CREATE TABLE `student` ( `postal_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮政编码', `student_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱', `student_job_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工作单位', - `target_university_id` bigint(20) NULL DEFAULT NULL COMMENT '报考学校ID', + `target_university_id` bigint NULL DEFAULT NULL COMMENT '报考学校ID', `student_remark` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', - `student_status` int(11) NULL DEFAULT NULL COMMENT '状态(1正常 2删除)', + `student_status` int NULL DEFAULT NULL COMMENT '状态(1正常 2删除)', `student_add_time` datetime NULL DEFAULT NULL COMMENT '添加时间', - `org_id` bigint(20) NULL DEFAULT NULL COMMENT '组织机构ID', - `user_id` bigint(20) NULL DEFAULT NULL COMMENT '后台用户ID', + `org_id` bigint NULL DEFAULT NULL COMMENT '组织机构ID', + `user_id` bigint NULL DEFAULT NULL COMMENT '后台用户ID', PRIMARY KEY (`student_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '学生' ROW_FORMAT = DYNAMIC; @@ -1099,7 +1164,7 @@ CREATE TABLE `student` ( -- ---------------------------- DROP TABLE IF EXISTS `sys_log`; CREATE TABLE `sys_log` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键', `method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求方法', `request_url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求URI', `params` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求参数', @@ -1109,12 +1174,12 @@ CREATE TABLE `sys_log` ( `result_time` datetime(6) NULL DEFAULT NULL COMMENT '响应时间', `token` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `session` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'session', - `user_id` bigint(20) NULL DEFAULT NULL COMMENT '管理员或教师ID', + `user_id` bigint NULL DEFAULT NULL COMMENT '管理员或教师ID', `open_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `token`(`token`) USING BTREE, - INDEX `create_time`(`create_time`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '行为日志' ROW_FORMAT = DYNAMIC; + INDEX `token`(`token` ASC) USING BTREE, + INDEX `create_time`(`create_time` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2824 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '行为日志' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of sys_log @@ -1125,12 +1190,12 @@ CREATE TABLE `sys_log` ( -- ---------------------------- DROP TABLE IF EXISTS `sys_log_text`; CREATE TABLE `sys_log_text` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `sys_id` bigint(20) NULL DEFAULT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `sys_id` bigint NULL DEFAULT NULL, `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数', `result` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '结果', PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; +) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of sys_log_text @@ -1141,44 +1206,46 @@ CREATE TABLE `sys_log_text` ( -- ---------------------------- DROP TABLE IF EXISTS `teams`; CREATE TABLE `teams` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `deleted_at` timestamp NULL DEFAULT NULL, `data` json NULL, `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `creator_id` int(11) NOT NULL COMMENT '创建团队的用户id', - `leader_id` int(11) NOT NULL COMMENT '队长id', + `creator_id` int NOT NULL COMMENT '创建团队的用户id', + `leader_id` int NOT NULL COMMENT '队长id', `end_time` timestamp NULL DEFAULT NULL COMMENT '实训结束时间', - `class_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `status` tinyint(4) NOT NULL DEFAULT 0, - `examination_id` int(10) UNSIGNED NOT NULL DEFAULT 0, + `class_id` int NOT NULL, + `flow_id` int NOT NULL, + `status` tinyint NOT NULL DEFAULT 0, + `examination_id` int UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_teams_users1_idx`(`creator_id`) USING BTREE, - INDEX `fk_teams_users2_idx`(`leader_id`) USING BTREE, - INDEX `fk_teams_classes1_idx`(`class_id`) USING BTREE, - INDEX `fk_teams_flows1_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组' ROW_FORMAT = DYNAMIC; + INDEX `fk_teams_users1_idx`(`creator_id` ASC) USING BTREE, + INDEX `fk_teams_users2_idx`(`leader_id` ASC) USING BTREE, + INDEX `fk_teams_classes1_idx`(`class_id` ASC) USING BTREE, + INDEX `fk_teams_flows1_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of teams -- ---------------------------- -INSERT INTO `teams` VALUES (1, '2023-08-15 15:33:04', '2023-08-15 15:33:04', NULL, NULL, '必胜', 28259, 28259, '2023-08-18 00:00:00', 25, 1, 0, 7); +INSERT INTO `teams` VALUES (1, '2023-08-13 12:34:39', '2023-08-13 12:34:39', NULL, NULL, 'T01', 28264, 28264, '2024-08-31 00:00:00', 25, 3, 0, 15); +INSERT INTO `teams` VALUES (2, '2023-08-13 16:23:33', '2023-08-13 16:23:33', NULL, NULL, 'T01', 28264, 28264, '2023-08-31 00:00:00', 25, 2, 0, 16); +INSERT INTO `teams` VALUES (3, '2023-08-13 16:51:21', '2023-08-13 16:51:21', NULL, NULL, 'T02', 28259, 28259, '2023-08-31 00:00:00', 25, 2, 0, 16); -- ---------------------------- -- Table structure for user_examinations -- ---------------------------- DROP TABLE IF EXISTS `user_examinations`; CREATE TABLE `user_examinations` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `flow_id` int(11) NOT NULL, - `examination_id` int(11) NOT NULL, - `user_id` int(11) NOT NULL, - `team_id` int(11) NOT NULL, - `financial_id` int(11) NULL DEFAULT NULL, - `instance_id` int(11) NOT NULL, - `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:已提交实训;2:已评分;', + `id` int NOT NULL AUTO_INCREMENT, + `flow_id` int NOT NULL, + `examination_id` int NOT NULL, + `user_id` int NOT NULL, + `team_id` int NOT NULL, + `financial_id` int NULL DEFAULT NULL, + `instance_id` int NOT NULL, + `status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:已提交实训;2:已评分;', `finish_time` timestamp NULL DEFAULT NULL, `report_file` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `report_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, @@ -1187,85 +1254,86 @@ CREATE TABLE `user_examinations` ( `raise_scores` decimal(11, 2) NULL DEFAULT NULL, `duration_scores` decimal(11, 2) NULL DEFAULT NULL, `total_scores` decimal(11, 2) NULL DEFAULT NULL, - `class_id` int(11) NOT NULL, - `class_orders` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '个人排名', - `team_orders` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '团队排名', + `class_id` int NOT NULL, + `class_orders` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '个人排名', + `team_orders` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '团队排名', `data` json NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `operator_scores` tinyint(4) NULL DEFAULT NULL, + `operator_scores` tinyint NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, - INDEX `user_idx`(`user_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `class_idx`(`class_id`) USING BTREE, - INDEX `financial_idx`(`financial_id`) USING BTREE, - INDEX `team_idx`(`team_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户考试表' ROW_FORMAT = DYNAMIC; + INDEX `user_idx`(`user_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `class_idx`(`class_id` ASC) USING BTREE, + INDEX `financial_idx`(`financial_id` ASC) USING BTREE, + INDEX `team_idx`(`team_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户考试表' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of user_examinations -- ---------------------------- -INSERT INTO `user_examinations` VALUES (1, 3, 1, 28258, 0, NULL, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:02:57', NULL, NULL); -INSERT INTO `user_examinations` VALUES (2, 1, 3, 28258, 0, NULL, 2, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 11:03:04', NULL, NULL); -INSERT INTO `user_examinations` VALUES (3, 2, 4, 28258, 0, NULL, 3, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 11:03:06', NULL, NULL); -INSERT INTO `user_examinations` VALUES (4, 4, 5, 28258, 0, NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 11:03:08', NULL, NULL); -INSERT INTO `user_examinations` VALUES (5, 5, 6, 28258, 0, NULL, 5, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:03:10', NULL, NULL); -INSERT INTO `user_examinations` VALUES (6, 3, 1, 28265, 0, NULL, 6, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:06:02', NULL, NULL); -INSERT INTO `user_examinations` VALUES (7, 2, 4, 28265, 0, NULL, 7, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 11:06:10', NULL, NULL); -INSERT INTO `user_examinations` VALUES (8, 1, 3, 28265, 0, NULL, 8, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 11:22:09', NULL, NULL); -INSERT INTO `user_examinations` VALUES (9, 3, 1, 28259, 0, NULL, 9, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 13:51:29', NULL, NULL); -INSERT INTO `user_examinations` VALUES (10, 1, 3, 28259, 0, NULL, 10, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 14:22:33', NULL, NULL); -INSERT INTO `user_examinations` VALUES (11, 2, 4, 28259, 0, NULL, 11, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 14:22:36', NULL, NULL); -INSERT INTO `user_examinations` VALUES (12, 4, 5, 28259, 0, NULL, 12, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 14:22:39', NULL, NULL); -INSERT INTO `user_examinations` VALUES (13, 5, 6, 28259, 0, NULL, 13, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 14:22:43', NULL, NULL); -INSERT INTO `user_examinations` VALUES (14, 3, 1, 28264, 0, NULL, 14, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 15:41:38', NULL, NULL); -INSERT INTO `user_examinations` VALUES (15, 5, 8, 28264, 0, NULL, 15, 2, NULL, '2023_08_15/4de5cbd1-67b2-4b6b-9de6-8ba85607c97d_2023全国金融与证券投资模拟实训大赛.pdf', '2023全国金融与证券投资模拟实训大赛.pdf', 43.75, 90.00, 60.00, 0.00, 53.90, 25, 1, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 15:53:07', '2023-08-15 16:52:59.659', 61); -INSERT INTO `user_examinations` VALUES (16, 2, 4, 28264, 0, NULL, 16, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 15:53:17', NULL, NULL); -INSERT INTO `user_examinations` VALUES (17, 4, 5, 28265, 0, NULL, 17, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 16:08:18', NULL, NULL); -INSERT INTO `user_examinations` VALUES (18, 5, 8, 28259, 0, NULL, 18, 2, '2023-08-15 16:41:07', NULL, NULL, 25.00, 0.00, 60.00, 0.00, 19.40, 25, 2, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 16:39:12', '2023-08-15 16:52:59.688', 16); -INSERT INTO `user_examinations` VALUES (19, 5, 8, 28265, 0, NULL, 19, 2, '2023-08-15 16:43:21', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 25, 0, 0, NULL, '2023-08-15 16:43:21', '2023-08-15 16:52:59.697', 0); -INSERT INTO `user_examinations` VALUES (20, 5, 8, 28272, 0, NULL, 20, 2, '2023-08-15 16:43:21', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 25, 0, 0, NULL, '2023-08-15 16:43:21', '2023-08-15 16:52:59.711', 0); -INSERT INTO `user_examinations` VALUES (21, 1, 3, 28264, 0, NULL, 21, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 17:32:25', NULL, NULL); -INSERT INTO `user_examinations` VALUES (22, 4, 5, 28264, 0, NULL, 22, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 17:33:12', NULL, NULL); -INSERT INTO `user_examinations` VALUES (23, 5, 6, 28264, 0, NULL, 23, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 17:33:14', NULL, NULL); +INSERT INTO `user_examinations` VALUES (3, 3, 15, 28258, 0, NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 10:42:39', NULL, NULL); +INSERT INTO `user_examinations` VALUES (4, 1, 11, 28258, 0, NULL, 5, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-13 10:54:30', NULL, NULL); +INSERT INTO `user_examinations` VALUES (5, 2, 12, 28258, 0, NULL, 6, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-13 11:33:55', NULL, NULL); +INSERT INTO `user_examinations` VALUES (6, 4, 13, 28258, 0, NULL, 7, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-13 12:16:30', NULL, NULL); +INSERT INTO `user_examinations` VALUES (7, 5, 14, 28258, 0, NULL, 8, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 12:24:55', NULL, NULL); +INSERT INTO `user_examinations` VALUES (8, 3, 10, 28264, 0, NULL, 9, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 12:33:33', NULL, NULL); +INSERT INTO `user_examinations` VALUES (9, 3, 15, 28264, 1, NULL, 10, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"roles\": [2]}', '2023-08-13 12:34:42', NULL, NULL); +INSERT INTO `user_examinations` VALUES (10, 3, 10, 28265, 0, NULL, 11, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 12:36:24', NULL, NULL); +INSERT INTO `user_examinations` VALUES (11, 3, 15, 28265, 1, NULL, 10, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"roles\": [3, 4]}', '2023-08-13 12:37:04', NULL, NULL); +INSERT INTO `user_examinations` VALUES (12, 2, 12, 28264, 0, NULL, 12, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-13 12:53:14', NULL, NULL); +INSERT INTO `user_examinations` VALUES (13, 4, 13, 28264, 0, NULL, 13, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-13 12:53:19', NULL, NULL); +INSERT INTO `user_examinations` VALUES (14, 2, 16, 28264, 2, NULL, 14, 2, '2023-08-13 16:55:29', '2023_08_13/03cfb96b-1ef5-4226-b2be-2b9f8583f851_sxbg.docx', 'sxbg.docx', 99.96, 100.00, 100.00, 0.00, 94.98, 25, 1, 1, '{\"roles\": [1]}', '2023-08-13 16:23:35', '2023-08-13 17:11:09.353', 100); +INSERT INTO `user_examinations` VALUES (15, 2, 16, 28265, 2, NULL, 14, 2, NULL, NULL, NULL, 99.96, 20.00, 100.00, 0.00, 85.78, 25, 2, 2, '{\"roles\": [2, 4]}', '2023-08-13 16:25:11', '2023-08-13 17:11:09.381', 97); +INSERT INTO `user_examinations` VALUES (16, 2, 16, 28259, 3, NULL, 15, 2, '2023-08-13 16:52:49', NULL, NULL, 28.56, 20.00, 70.00, 0.00, 22.52, 25, 3, 1, '{\"roles\": [1, 2, 4]}', '2023-08-13 16:51:22', '2023-08-13 17:11:09.409', 14); +INSERT INTO `user_examinations` VALUES (17, 2, 16, 28258, 0, NULL, 16, 2, '2023-08-13 16:57:07', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 20, 0, 0, NULL, '2023-08-13 16:57:07', '2023-08-13 17:11:09.42', 0); +INSERT INTO `user_examinations` VALUES (18, 2, 16, 28261, 0, NULL, 17, 2, '2023-08-13 16:57:07', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 21, 0, 0, NULL, '2023-08-13 16:57:07', '2023-08-13 17:11:09.431', 0); +INSERT INTO `user_examinations` VALUES (19, 2, 16, 28262, 0, NULL, 18, 2, '2023-08-13 16:57:07', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 22, 0, 0, NULL, '2023-08-13 16:57:07', '2023-08-13 17:11:09.442', 0); +INSERT INTO `user_examinations` VALUES (20, 2, 16, 28263, 0, NULL, 19, 2, '2023-08-13 16:57:07', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 23, 0, 0, NULL, '2023-08-13 16:57:07', '2023-08-13 17:11:09.452', 0); +INSERT INTO `user_examinations` VALUES (21, 2, 16, 28272, 0, NULL, 20, 2, '2023-08-13 16:57:07', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 25, 0, 0, NULL, '2023-08-13 16:57:07', '2023-08-13 17:11:09.462', 0); +INSERT INTO `user_examinations` VALUES (22, 3, 10, 28259, 0, NULL, 21, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 17:06:41', NULL, NULL); +INSERT INTO `user_examinations` VALUES (23, 3, 15, 28258, 1, NULL, 10, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"roles\": [3, 4]}', '2023-08-13 12:37:04', NULL, NULL); +INSERT INTO `user_examinations` VALUES (24, 3, 10, 28258, 0, NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-13 10:42:39', NULL, NULL); -- ---------------------------- -- Table structure for user_teams -- ---------------------------- DROP TABLE IF EXISTS `user_teams`; CREATE TABLE `user_teams` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `team_id` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL, + `team_id` int NOT NULL, `roles` json NULL, PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_user_team_users1_idx`(`user_id`) USING BTREE, - INDEX `fk_user_team_teams1_idx`(`team_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组' ROW_FORMAT = DYNAMIC; + INDEX `fk_user_team_users1_idx`(`user_id` ASC) USING BTREE, + INDEX `fk_user_team_teams1_idx`(`team_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of user_teams -- ---------------------------- -INSERT INTO `user_teams` VALUES (1, 28259, 1, '[1]'); -INSERT INTO `user_teams` VALUES (2, 28264, 1, '[2, 4]'); -INSERT INTO `user_teams` VALUES (3, 28265, 1, '[3]'); +INSERT INTO `user_teams` VALUES (1, 28264, 1, '[2]'); +INSERT INTO `user_teams` VALUES (2, 28265, 1, '[3, 4]'); +INSERT INTO `user_teams` VALUES (3, 28264, 2, '[1]'); +INSERT INTO `user_teams` VALUES (4, 28265, 2, '[2, 4]'); +INSERT INTO `user_teams` VALUES (5, 28259, 3, '[1, 2, 4]'); -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, + `id` bigint NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间', `data` json NULL COMMENT '智云获取用户数据', - `ex_user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '智云用户ID', - `class_id` bigint(20) NULL DEFAULT 0 COMMENT '班级ID', - `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '用户类型,4是学生 ; 3是教师', - `sex` tinyint(4) NULL DEFAULT NULL COMMENT '性别', + `ex_user_id` bigint NOT NULL DEFAULT 0 COMMENT '智云用户ID', + `class_id` bigint NULL DEFAULT 0 COMMENT '班级ID', + `type` tinyint NOT NULL DEFAULT 0 COMMENT '用户类型,4是学生 ; 3是教师', + `sex` tinyint NULL DEFAULT NULL COMMENT '性别', `username` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名', `password` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码', `student_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学生姓名', @@ -1274,15 +1342,15 @@ CREATE TABLE `users` ( `balance` decimal(65, 2) NULL DEFAULT NULL COMMENT '可用资金', `product_assets` decimal(65, 2) NULL DEFAULT NULL COMMENT '存货价值', `total_assets` decimal(65, 2) NULL DEFAULT NULL COMMENT '总资产', - `core_user_id` int(11) NOT NULL COMMENT '关联core_user表的id', - `core_org_id` int(11) NOT NULL, + `core_user_id` int NOT NULL COMMENT '关联core_user表的id', + `core_org_id` int NOT NULL, `flow_integral` json NULL COMMENT '完成业务流程积分', - `school_id` bigint(20) NULL DEFAULT NULL COMMENT '学校ID', - `college_id` bigint(20) NULL DEFAULT NULL COMMENT '学院ID', - `student_id` bigint(20) NULL DEFAULT NULL COMMENT '学生ID', - `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师ID', + `school_id` bigint NULL DEFAULT NULL COMMENT '学校ID', + `college_id` bigint NULL DEFAULT NULL COMMENT '学院ID', + `student_id` bigint NULL DEFAULT NULL COMMENT '学生ID', + `teacher_id` bigint NULL DEFAULT NULL COMMENT '教师ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `fk_users_classes_idx`(`class_id`) USING BTREE + INDEX `fk_users_classes_idx`(`class_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 28273 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC; -- ---------------------------- @@ -1310,85 +1378,85 @@ INSERT INTO `users` VALUES (28272, '2023-07-05 17:54:16', NULL, NULL, '{\"id\": -- ---------------------------- DROP TABLE IF EXISTS `warehouse_receipt`; CREATE TABLE `warehouse_receipt` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, - `examination_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `instance_id` int(11) NOT NULL DEFAULT 0, + `examination_id` int NOT NULL, + `flow_id` int NOT NULL, + `instance_id` int NOT NULL DEFAULT 0, `send_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货单号', - `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 出具清单;2:已核定;', + `in_warehouse_status` tinyint NULL DEFAULT NULL COMMENT '0:已入库;1: 出具清单;2:已核定;', `in_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库编号', `in_warehouse_start_time` timestamp NULL DEFAULT NULL COMMENT '存货开始时间', `in_warehouse_end_time` timestamp NULL DEFAULT NULL COMMENT '存货结束时间', - `seller_id` int(11) NULL DEFAULT NULL COMMENT '存货人ID', + `seller_id` int NULL DEFAULT NULL COMMENT '存货人ID', `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '存货人姓名', `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总价值', `in_warehouse_time` timestamp NULL DEFAULT NULL COMMENT '入库时间', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '协议ID', `in_warehouse_file_data` json NULL COMMENT '质物清单', PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库管理' ROW_FORMAT = DYNAMIC; + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库管理' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of warehouse_receipt -- ---------------------------- -INSERT INTO `warehouse_receipt` VALUES (1, '2023-08-15 13:26:45', '2023-08-15 13:27:41', 3, 1, 8, '210391991172', 2, '686063394496', '2023-09-15 00:00:00', '2024-03-15 00:00:00', 59, '格力电器集团公司', NULL, '2023-09-16 00:00:00', 1, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"send_no\": \"210391991172\", \"products\": null, \"seller_id\": 59, \"express_id\": 21, \"accept_time\": \"2023-09-16 00:00:00\", \"contract_id\": 1, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"中邮物流\", \"express_id_ok\": 21, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"seller_account\": \"711800098541\", \"express_address\": \"广东省珠海市金湾区平沙路63号\", \"in_warehouse_no\": \"686063394496\", \"total_sell_price\": 281326, \"in_warehouse_time\": \"2023-09-16 00:00:00\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_name_fill_cd\": \"格力电器集团公司\", \"express_name_fill_cd\": \"中邮物流\", \"financing_start_time\": \"2023-09-15 00:00:00\", \"seller_account_fill_cd\": \"711800098541\", \"express_address_fill_cd\": \"广东省珠海市金湾区平沙路63号\", \"seller_name_fill_chr_cd\": \"格力电器集团公司\", \"total_sell_price_fill_cd\": \"281326\", \"financing_end_time_fill_cd\": \"2024-03-15 00:00:00\", \"express_corporation_fill_cd\": \"马晓\", \"financing_start_time_fill_cd\": \"2023-09-16 00:00:00\", \"total_sell_price_cap_fill_cd\": \"贰拾捌万壹仟叁佰贰拾陆元整\", \"in_warehouse_time_cap_fill_cd\": \"贰零贰叁年零玖月壹拾陆日\"}'); -INSERT INTO `warehouse_receipt` VALUES (2, '2023-08-15 14:02:09', '2023-08-15 14:03:40', 1, 3, 9, '022662657825', 2, '628471652220', '2023-08-19 00:00:00', '2023-11-30 00:00:00', 24, '新力电子有限公司', 144681.00, '2023-08-19 00:00:00', 2, '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"flow_id\": 3, \"send_no\": \"022662657825\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"created_at\": \"2023-08-15 14:02:09\", \"express_id\": 22, \"instance_id\": 9, \"protocol_id\": 2, \"protocol_no\": \"20230815000003\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 144681, \"express_name\": \"海格物流\", \"bank_name_fill\": \"华夏银行\", \"examination_id\": 1, \"in_warehouse_no\": \"628471652220\", \"seller_name_fill\": \"新力电子有限公司\", \"yfzk_amount_fill\": \"144681\", \"express_name_fill\": \"海格物流\", \"in_warehouse_time\": \"2023-08-19 00:00:00\", \"express_id_ok_fill\": 22, \"in_warehouse_status\": 0, \"yfzk_amount_cap_fill\": \"壹拾肆万肆仟陆佰捌拾壹元整\", \"in_warehouse_end_time\": \"2023-11-30 00:00:00\", \"in_warehouse_start_time\": \"2023-08-19 00:00:00\", \"in_warehouse_start_time_fill\": \"2023-08-20 00:00:00\"}'); +INSERT INTO `warehouse_receipt` VALUES (1, '2023-08-13 10:49:35', '2023-08-13 10:49:40', 10, 3, 4, '416124279790', 2, '055846048898', '2023-08-26 00:00:00', '2023-09-30 00:00:00', 24, '新力电子有限公司', 576.90, '2023-08-26 00:00:00', 1, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"flow_id\": 3, \"send_no\": \"416124279790\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"created_at\": \"2023-08-13 10:49:35\", \"express_id\": 18, \"instance_id\": 4, \"protocol_id\": 1, \"protocol_no\": \"20230813000001\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 576.9, \"express_name\": \"华贸物流\", \"bank_name_fill\": \"华夏银行\", \"examination_id\": 10, \"in_warehouse_no\": \"055846048898\", \"seller_name_fill\": \"新力电子有限公司\", \"yfzk_amount_fill\": 576.9, \"express_name_fill\": \"华贸物流\", \"in_warehouse_time\": \"2023-08-26 00:00:00\", \"express_id_ok_fill\": 18, \"in_warehouse_status\": 0, \"yfzk_amount_cap_fill\": \"伍佰柒拾陆元玖角\", \"in_warehouse_end_time\": \"2023-09-30 00:00:00\", \"in_warehouse_start_time\": \"2023-08-26 00:00:00\", \"in_warehouse_start_time_fill\": \"2023-08-28 00:00:00\"}'); +INSERT INTO `warehouse_receipt` VALUES (2, '2023-08-13 11:03:00', '2023-08-13 11:03:11', 11, 1, 5, '995745580469', 2, '076474483666', '2023-09-13 00:00:00', '2023-10-13 00:00:00', 59, '格力电器集团公司', NULL, '2023-09-14 00:00:00', 2, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"send_no\": \"995745580469\", \"products\": null, \"seller_id\": 59, \"express_id\": 18, \"accept_time\": \"2023-09-14 00:00:00\", \"contract_id\": 1, \"protocol_id\": 2, \"protocol_no\": \"2023081495352\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"华贸物流\", \"express_id_ok\": 18, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/18\", \"seller_account\": \"711800098541\", \"express_address\": \"河北省石家庄市藁城区庄河路65号\", \"in_warehouse_no\": \"076474483666\", \"total_sell_price\": 310, \"in_warehouse_time\": \"2023-09-14 00:00:00\", \"financing_end_time\": \"2023-10-13 00:00:00\", \"seller_name_fill_cd\": \"格力电器集团公司\", \"express_name_fill_cd\": \"华贸物流\", \"financing_start_time\": \"2023-09-13 00:00:00\", \"seller_name_fill_chr_cd\": \"格力电器集团公司\", \"total_sell_price_fill_cd\": 310, \"financing_end_time_fill_cd\": \"2023-10-13 00:00:00\", \"express_corporation_fill_cd\": \"陈裕\", \"financing_start_time_fill_cd\": \"2023-09-14 00:00:00\", \"total_sell_price_cap_fill_cd\": \"叁佰壹拾元整\", \"in_warehouse_time_cap_fill_cd\": \"贰零贰叁年零玖月壹拾肆日\"}'); +INSERT INTO `warehouse_receipt` VALUES (3, '2023-08-13 12:51:38', '2023-08-13 12:51:43', 15, 3, 10, '480143250598', 2, '227206976881', '2023-08-15 00:00:00', '2023-09-30 00:00:00', 24, '新力电子有限公司', 320.00, '2023-08-15 00:00:00', 4, '{\"id\": 3, \"page\": 1, \"limit\": 10, \"tails\": {}, \"flow_id\": 3, \"send_no\": \"480143250598\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"created_at\": \"2023-08-13 12:51:38\", \"express_id\": 18, \"updated_at\": \"2023-08-13 12:34:10\", \"instance_id\": 10, \"protocol_id\": 4, \"protocol_no\": \"20230813000004\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 320, \"express_name\": \"华贸物流\", \"bank_name_fill\": \"华夏银行\", \"examination_id\": 15, \"in_warehouse_no\": \"227206976881\", \"seller_name_fill\": \"新力电子有限公司\", \"yfzk_amount_fill\": 320, \"express_name_fill\": \"华贸物流\", \"in_warehouse_time\": \"2023-08-15 00:00:00\", \"express_id_ok_fill\": 18, \"in_warehouse_status\": 0, \"yfzk_amount_cap_fill\": \"叁佰贰拾元整\", \"in_warehouse_end_time\": \"2023-09-30 00:00:00\", \"in_warehouse_start_time\": \"2023-08-15 00:00:00\", \"in_warehouse_start_time_fill\": \"2023-08-17 00:00:00\"}'); -- ---------------------------- -- Table structure for warehouse_shipment -- ---------------------------- DROP TABLE IF EXISTS `warehouse_shipment`; CREATE TABLE `warehouse_shipment` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, - `examination_id` int(11) NOT NULL, - `flow_id` int(11) NOT NULL, - `instance_id` int(11) NOT NULL DEFAULT 0, + `examination_id` int NOT NULL, + `flow_id` int NOT NULL, + `instance_id` int NOT NULL DEFAULT 0, `express_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '送货单号', - `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定;2:已核定;', + `in_warehouse_status` tinyint NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定;2:已核定;', `pickup_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货单号', `out_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库单号', `out_warehouse_user` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库确认人', `out_warehouse_time` timestamp NULL DEFAULT NULL COMMENT '出库日期', `out_warehouse_status` tinyint(1) NULL DEFAULT NULL COMMENT '出库状态 2已配送', - `receipt_no` int(11) NULL DEFAULT NULL COMMENT '入库单号', + `receipt_no` int NULL DEFAULT NULL COMMENT '入库单号', `receipt_status` tinyint(1) NULL DEFAULT NULL COMMENT '入库状态 1待收货,2待入库,3已入库', `receipt_time` timestamp NULL DEFAULT NULL COMMENT '入库数据', `receipt_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库确认人', - `receipt_user_id` int(11) NULL DEFAULT NULL COMMENT '入库确认人ID', - `out_warehouse_user_id` int(11) NULL DEFAULT NULL COMMENT '出库确认人ID', - `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID', - `pickup_product_id` int(11) NULL DEFAULT NULL COMMENT '提货ID', + `receipt_user_id` int NULL DEFAULT NULL COMMENT '入库确认人ID', + `out_warehouse_user_id` int NULL DEFAULT NULL COMMENT '出库确认人ID', + `protocol_id` int NULL DEFAULT NULL COMMENT '协议ID', + `pickup_product_id` int NULL DEFAULT NULL COMMENT '提货ID', PRIMARY KEY (`id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库及配送' ROW_FORMAT = DYNAMIC; + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库及配送' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of warehouse_shipment -- ---------------------------- -INSERT INTO `warehouse_shipment` VALUES (1, '2023-08-15 13:38:43', '2023-08-15 13:39:16', 3, 1, 8, '97918604', 0, '26552309', '20529789', 'tzs009', '2023-11-19 00:00:00', 2, 85110152, 3, '2023-11-20 00:00:00', 'tzs009', 28265, 28265, 1, 1); -INSERT INTO `warehouse_shipment` VALUES (2, '2023-08-15 13:48:06', '2023-08-15 13:48:23', 3, 1, 8, '57820803', 0, '37251943', '65113524', 'tzs009', '2024-03-14 00:00:00', 2, 81683130, 3, '2024-03-15 00:00:00', 'tzs009', 28265, 28265, 1, 2); -INSERT INTO `warehouse_shipment` VALUES (3, '2023-08-15 14:22:00', '2023-08-15 14:22:10', 1, 3, 9, '37162425', 0, '94962466', '29340931', 'tzs006', '2023-11-29 00:00:00', 2, 54529625, 3, '2023-11-30 00:00:00', 'tzs006', 28259, 28259, 2, 3); +INSERT INTO `warehouse_shipment` VALUES (1, '2023-08-13 10:52:46', '2023-08-13 10:53:53', 10, 3, 4, '22772023', 0, '14769550', '71371192', 'tzs001', '2023-09-02 00:00:00', 2, 98515597, 3, '2023-09-03 00:00:00', 'tzs001', 28258, 28258, 1, 1); +INSERT INTO `warehouse_shipment` VALUES (2, '2023-08-13 11:04:48', '2023-08-13 11:28:58', 11, 1, 5, '92070472', 0, '44646639', '45086816', 'tzs001', '2023-09-24 00:00:00', 2, 76265717, 3, '2023-09-25 00:00:00', 'tzs001', 28258, 28258, 2, 2); -- ---------------------------- -- Table structure for yszk_transfer -- ---------------------------- DROP TABLE IF EXISTS `yszk_transfer`; CREATE TABLE `yszk_transfer` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', + `id` int NOT NULL AUTO_INCREMENT COMMENT 'ID', `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间', `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间', - `examination_id` int(11) NOT NULL COMMENT '考核ID', - `flow_id` int(11) NOT NULL COMMENT '流程ID', - `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID', + `examination_id` int NOT NULL COMMENT '考核ID', + `flow_id` int NOT NULL COMMENT '流程ID', + `instance_id` int NOT NULL DEFAULT 0 COMMENT '流程实例ID', `bl_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '保理合同编号', `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认', `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认', @@ -1401,14 +1469,20 @@ CREATE TABLE `yszk_transfer` ( `transfer_status` tinyint(1) NULL DEFAULT NULL COMMENT '转移状态 0新增数据 1卖方确认 2银行确认 3买方确认', `buyer_transfer_file` json NULL COMMENT '应收账款转让通知书回执', PRIMARY KEY (`id`) USING BTREE, - INDEX `examination_idx`(`examination_id`) USING BTREE, - INDEX `instance_idx`(`instance_id`) USING BTREE, - INDEX `flow_idx`(`flow_id`) USING BTREE + INDEX `examination_idx`(`examination_id` ASC) USING BTREE, + INDEX `instance_idx`(`instance_id` ASC) USING BTREE, + INDEX `flow_idx`(`flow_id` ASC) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应收账款转让' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of yszk_transfer -- ---------------------------- -INSERT INTO `yszk_transfer` VALUES (1, '2023-08-15 15:20:26', '2023-08-15 15:24:53', 5, 4, 12, '20230815731146', 1, 1, 1, NULL, NULL, '{\"id\": 4, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"accept_amount\": 80000, \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:04:50\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230815731146\", \"examination_id\": 5, \"financing_type\": 4, \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": 91074, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_telephone\": \"0755-62031541\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"invoice_no_fill_sqs\": \"12345678\", \"contract_no_fill_sqs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"seller_name_fill_sqs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_sqs\": \"90000\", \"seller_id_ok_fill_sqs\": 40, \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"contract_time_fill_sqs\": \"2023-08-15 15:15:27\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"contract_amount_fill_sqs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"financing_end_time_fill_sqs\": \"2023-11-30 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\"}', NULL, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"notify_time\": \"2023-08-22 00:00:00\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": \"90000\", \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"兰辉服装有限责任公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 40, \"accept_amount\": 80000, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"7718002531025\", \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1\": \"太平鸟服饰有限公司\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:17:44\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230815731146\", \"contract_no_f1\": \"2023081500005\", \"examination_id\": 5, \"financing_type\": 4, \"seller_account\": \"770023695021\", \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"兰辉服装有限责任公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": \"91074\", \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"contract_time_f1\": \"2023-08-15 15:18:39\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-62031541\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"buyer_name_fill_tzs\": \"太平鸟服饰有限公司\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"contract_no_fill_tzs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-22 00:00:00\", \"seller_name_fill_tzs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_tzs\": \"90000\", \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"兰辉服装有限责任公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"seller_id_ok_fill_tzs\": 40, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"buyer_address_fill_tzs\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_time_fill_tzs\": \"2023-08-15 15:17:44\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"bl_contract_no_fill_tzs\": \"20230815731146\", \"contract_no_f1_fill_tzs\": \"2023081500005\", \"contract_no_fill_tzs_02\": \"2023081500005\", \"seller_name_f1_fill_tzs\": \"兰辉服装有限责任公司\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"buyer_telephone_fill_tzs\": \"0755-25103621\", \"contract_amount_fill_tzs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"bl_contract_time_fill_tzs\": \"2023-08-18 00:00:00\", \"contract_account_fill_tzs\": \"622712345678\", \"contract_time_f1_fill_tzs\": \"2023-08-15 15:18:39\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"buyer_corporation_fill_tzs\": \"张江萍\", \"financing_end_time_fill_tzs\": \"2023-11-30 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\", \"financing_start_time_fill_tzs\": \"2023-08-30 00:00:00\"}', 3, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"notify_time\": \"2023-08-22 00:00:00\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"兰辉服装有限责任公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 40, \"accept_amount\": 80000, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"7718002531025\", \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1\": \"太平鸟服饰有限公司\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:17:44\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": 20230815731146, \"contract_no_f1\": \"2023081500005\", \"examination_id\": 5, \"financing_type\": 4, \"seller_account\": \"770023695021\", \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"兰辉服装有限责任公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": 91074, \"transfer_status\": 2, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"contract_time_f1\": \"2023-08-15 15:18:39\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-62031541\", \"bank_name_fill_hz\": \"华夏银行\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"buyer_name_fill_hz\": \"太平鸟服饰有限公司\", \"financing_end_time\": \"2023-11-30 00:00:00\", \"reply_time_fill_hz\": \"2023-08-22 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_id_ok_fill_hz\": 41, \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"buyer_name_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_no_fill_hz\": \"2023081500005\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"seller_name_fill_hz\": \"兰辉服装有限责任公司\", \"bank_name_f2_fill_hz\": \"华夏银行\", \"bank_name_f3_fill_hz\": \"华夏银行\", \"bank_name_f4_fill_hz\": \"华夏银行\", \"bank_name_f5_fill_hz\": \"华夏银行\", \"bank_name_fs_fill_hz\": \"华夏银行\", \"contract_no_fill_tzs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-22 00:00:00\", \"seller_name_fill_tzs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_tzs\": \"90000\", \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"兰辉服装有限责任公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"bank_name_khh_fill_hz\": \"华夏银行\", \"buyer_address_fill_hz\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f3_fill_hz\": \"太平鸟服饰有限公司\", \"contract_time_fill_hz\": \"2023-08-15 15:22:28\", \"seller_id_ok_fill_tzs\": 40, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"bl_contract_no_fill_hz\": \"\\t 20230815731146\", \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"buyer_address_fill_tzs\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_time_fill_tzs\": \"2023-08-15 15:17:44\", \"seller_account_fill_hz\": \"622712345678\", \"seller_name_f2_fill_hz\": \"兰辉服装有限责任公司\", \"seller_name_fs_fill_hz\": \"兰辉服装有限责任公司\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"bl_contract_no_fill_tzs\": \"20230815731146\", \"buyer_telephone_fill_hz\": \"0755-25103621\", \"contract_no_f1_fill_tzs\": \"2023081500005\", \"contract_no_fill_tzs_02\": \"2023081500005\", \"seller_name_f1_fill_tzs\": \"兰辉服装有限责任公司\", \"bl_contract_time_fill_hz\": \"2023-08-22 00:00:00\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"buyer_telephone_fill_tzs\": \"0755-25103621\", \"contract_amount_fill_tzs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"bl_contract_time_fill_tzs\": \"2023-08-18 00:00:00\", \"buyer_corporation_fill_hz\": \"张江萍\", \"contract_account_fill_tzs\": \"622712345678\", \"contract_time_f1_fill_tzs\": \"2023-08-15 15:18:39\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"buyer_corporation_fill_tzs\": \"张江萍\", \"seller_corporation_fill_hz\": \"兰辉服装有限责任公司\", \"financing_end_time_fill_tzs\": \"2023-11-30 00:00:00\", \"seller_transfer_notice_file\": \"\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\", \"buyer_corporation_fs_fill_hz\": \"张江萍\", \"financing_start_time_fill_tzs\": \"2023-08-30 00:00:00\"}'); +INSERT INTO `yszk_transfer` VALUES (1, '2023-08-13 12:20:27', '2023-08-13 12:20:53', 13, 4, 7, '202308136728011', 1, 1, 1, NULL, NULL, '{\"id\": 4, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"3572305127\", \"buyer_id\": 25, \"can_levy\": false, \"accept_no\": \"0337671496\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"apply_rate\": 6.6, \"buyer_name\": \"晶东电子城\", \"can_commit\": false, \"created_at\": \"2023-08-13 12:19:20\", \"updated_at\": \"2023-08-13 12:19:36\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081300003\", \"instance_id\": 7, \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 300, \"apply_amount\": 270, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"accept_amount\": 270, \"buyer_account\": \"770320795051\", \"buyer_address\": \"广东省深圳市宝安区创业路58号\", \"commit_status\": 0, \"contract_time\": \"2023-08-13 12:16:33\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230813672801\", \"examination_id\": 13, \"financing_type\": 4, \"seller_account\": \"785210395061\", \"seller_address\": \"广东省深圳市宝安区宝安大道521号\", \"seller_confirm\": 1, \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-50219684\", \"contract_amount\": 320, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"3572305127\\\", \\\"buyer_id\\\": 25, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"0337671496\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 24, \\\"send_time\\\": \\\"2023-08-13 12:18:01\\\", \\\"apply_rate\\\": 6.6, \\\"buyer_name\\\": \\\"晶东电子城\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-13 12:19:45\\\", \\\"updated_at\\\": \\\"2023-08-13 12:19:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081300003\\\", \\\"instance_id\\\": 7, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"新力电子有限公司\\\", \\\"yfzk_amount\\\": 300, \\\"apply_amount\\\": 270, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 270, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230813672801\\\", \\\"examination_id\\\": 13, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 320, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"contract_account\\\": \\\"111122223333\\\", \\\"financing_months\\\": 1, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 270, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 24, \\\"apply_rate_fill_bl\\\": \\\"6.6%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-09-15 00:00:00\\\", \\\"seller_corporation\\\": \\\"张文\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 6, \\\"seller_name_fill_bl\\\": \\\"新力电子有限公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"accept_amount_fill_bl\\\": 270, \\\"seller_address_fill_bl\\\": \\\"广东省深圳市宝安区宝安大道521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"张文\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"贰佰柒拾元整\\\"}\", \"bl_contract_time\": \"2023-08-15 00:00:00\", \"contract_account\": \"111122223333\", \"financing_months\": 1, \"financing_status\": 0, \"max_apply_amount\": 270, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-20165841\", \"buyer_corporation\": \"刘强\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-09-15 00:00:00\", \"seller_corporation\": \"张文\", \"apply_poundage_rate\": \"0.5%\", \"buyer_name_fill_sqs\": \"晶东电子城\", \"buyer_name_fill_tzs\": \"晶东电子城\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"contract_no_fill_sqs\": \"2023081300003\", \"contract_no_fill_tzs\": \"2023081300003\", \"financing_start_time\": \"2023-08-15 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-15 00:00:00\", \"seller_name_fill_sqs\": \"新力电子有限公司\", \"seller_name_fill_tzs\": \"新力电子有限公司\", \"yfzk_amount_fill_sqs\": 300, \"yfzk_amount_fill_tzs\": 300, \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"新力电子有限公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"seller_id_ok_fill_sqs\": 24, \"seller_id_ok_fill_tzs\": 24, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"buyer_name_f1_fill_tzs\": \"晶东电子城\", \"contract_time_fill_sqs\": \"2023-08-13 12:16:33\", \"contract_time_fill_tzs\": \"2023-08-13 12:16:33\", \"bl_contract_no_fill_sqs\": \"20230813672801\", \"bl_contract_no_fill_tzs\": \"20230813672801\", \"contract_no_f1_fill_tzs\": \"2023081300003\", \"contract_no_fill_tzs_02\": \"2023081300003\", \"seller_name_f1_fill_tzs\": \"新力电子有限公司\", \"contract_amount_fill_sqs\": 320, \"contract_amount_fill_tzs\": 320, \"bl_contract_time_fill_sqs\": \"2023-08-15 00:00:00\", \"bl_contract_time_fill_tzs\": \"2023-08-15 00:00:00\", \"contract_account_fill_tzs\": \"111122223333\", \"contract_time_f1_fill_tzs\": \"2023-08-13 12:16:33\", \"financing_end_time_fill_sqs\": \"2023-09-15 00:00:00\", \"financing_end_time_fill_tzs\": \"2023-09-15 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-15 00:00:00\", \"financing_start_time_fill_tzs\": \"2023-08-15 00:00:00\"}', NULL, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"3572305127\", \"buyer_id\": 25, \"can_levy\": false, \"accept_no\": \"0337671496\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"apply_rate\": 6.6, \"buyer_name\": \"晶东电子城\", \"can_commit\": false, \"created_at\": \"2023-08-13 12:19:20\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-13 12:19:36\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081300003\", \"instance_id\": 7, \"notify_time\": \"2023-08-15 00:00:00\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 300, \"apply_amount\": 270, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"新力电子有限公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 24, \"accept_amount\": 270, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"770320795051\", \"buyer_address\": \"广东省深圳市宝安区创业路58号\", \"buyer_name_f1\": \"晶东电子城\", \"commit_status\": 0, \"contract_time\": \"2023-08-13 12:16:33\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230813672801\", \"contract_no_f1\": \"2023081300003\", \"examination_id\": 13, \"financing_type\": 4, \"seller_account\": \"785210395061\", \"seller_address\": \"广东省深圳市宝安区宝安大道521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"新力电子有限公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-50219684\", \"contract_amount\": 320, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"3572305127\\\", \\\"buyer_id\\\": 25, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"0337671496\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 24, \\\"send_time\\\": \\\"2023-08-13 12:18:01\\\", \\\"apply_rate\\\": 6.6, \\\"buyer_name\\\": \\\"晶东电子城\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-13 12:19:45\\\", \\\"updated_at\\\": \\\"2023-08-13 12:19:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081300003\\\", \\\"instance_id\\\": 7, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"新力电子有限公司\\\", \\\"yfzk_amount\\\": 300, \\\"apply_amount\\\": 270, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 270, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230813672801\\\", \\\"examination_id\\\": 13, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 320, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"contract_account\\\": \\\"111122223333\\\", \\\"financing_months\\\": 1, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 270, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 24, \\\"apply_rate_fill_bl\\\": \\\"6.6%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-09-15 00:00:00\\\", \\\"seller_corporation\\\": \\\"张文\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 6, \\\"seller_name_fill_bl\\\": \\\"新力电子有限公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"accept_amount_fill_bl\\\": 270, \\\"seller_address_fill_bl\\\": \\\"广东省深圳市宝安区宝安大道521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"张文\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"贰佰柒拾元整\\\"}\", \"bl_contract_time\": \"2023-08-15 00:00:00\", \"contract_account\": \"111122223333\", \"contract_time_f1\": \"2023-08-13 12:16:33\", \"financing_months\": 1, \"financing_status\": 0, \"max_apply_amount\": 270, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-20165841\", \"buyer_corporation\": \"刘强\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-09-15 00:00:00\", \"seller_corporation\": \"张文\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_name_fill_sqs\": \"晶东电子城\", \"buyer_name_fill_tzs\": \"晶东电子城\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"contract_no_fill_sqs\": \"2023081300003\", \"contract_no_fill_tzs\": \"2023081300003\", \"financing_start_time\": \"2023-08-15 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-15 00:00:00\", \"seller_name_fill_sqs\": \"新力电子有限公司\", \"seller_name_fill_tzs\": \"新力电子有限公司\", \"yfzk_amount_fill_sqs\": 300, \"yfzk_amount_fill_tzs\": 300, \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"新力电子有限公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"seller_id_ok_fill_sqs\": 24, \"seller_id_ok_fill_tzs\": 24, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"buyer_name_f1_fill_tzs\": \"晶东电子城\", \"contract_time_fill_sqs\": \"2023-08-13 12:16:33\", \"contract_time_fill_tzs\": \"2023-08-13 12:16:33\", \"bl_contract_no_fill_sqs\": \"20230813672801\", \"bl_contract_no_fill_tzs\": \"20230813672801\", \"contract_no_f1_fill_tzs\": \"2023081300003\", \"contract_no_fill_tzs_02\": \"2023081300003\", \"seller_name_f1_fill_tzs\": \"新力电子有限公司\", \"contract_amount_fill_sqs\": 320, \"contract_amount_fill_tzs\": 320, \"bl_contract_time_fill_sqs\": \"2023-08-15 00:00:00\", \"bl_contract_time_fill_tzs\": \"2023-08-15 00:00:00\", \"contract_account_fill_tzs\": \"111122223333\", \"contract_time_f1_fill_tzs\": \"2023-08-13 12:16:33\", \"financing_end_time_fill_sqs\": \"2023-09-15 00:00:00\", \"financing_end_time_fill_tzs\": \"2023-09-15 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-15 00:00:00\", \"financing_start_time_fill_tzs\": \"2023-08-15 00:00:00\"}', 3, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"3572305127\", \"buyer_id\": 25, \"can_levy\": false, \"accept_no\": \"0337671496\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"apply_rate\": 6.6, \"buyer_name\": \"晶东电子城\", \"can_commit\": false, \"created_at\": \"2023-08-13 12:19:20\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-13 12:19:36\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081300003\", \"instance_id\": 7, \"notify_time\": \"2023-08-15 00:00:00\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 300, \"apply_amount\": 270, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"新力电子有限公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 24, \"accept_amount\": 270, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"770320795051\", \"buyer_address\": \"广东省深圳市宝安区创业路58号\", \"buyer_name_f1\": \"晶东电子城\", \"commit_status\": 0, \"contract_time\": \"2023-08-13 12:16:33\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": 20230813672801, \"contract_no_f1\": \"2023081300003\", \"examination_id\": 13, \"financing_type\": 4, \"seller_account\": \"785210395061\", \"seller_address\": \"广东省深圳市宝安区宝安大道521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"新力电子有限公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-50219684\", \"contract_amount\": 320, \"transfer_status\": 2, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"3572305127\\\", \\\"buyer_id\\\": 25, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"0337671496\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 24, \\\"send_time\\\": \\\"2023-08-13 12:18:01\\\", \\\"apply_rate\\\": 6.6, \\\"buyer_name\\\": \\\"晶东电子城\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-13 12:19:45\\\", \\\"updated_at\\\": \\\"2023-08-13 12:19:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081300003\\\", \\\"instance_id\\\": 7, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"新力电子有限公司\\\", \\\"yfzk_amount\\\": 300, \\\"apply_amount\\\": 270, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 270, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230813672801\\\", \\\"examination_id\\\": 13, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 320, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"contract_account\\\": \\\"111122223333\\\", \\\"financing_months\\\": 1, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 270, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 24, \\\"apply_rate_fill_bl\\\": \\\"6.6%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-09-15 00:00:00\\\", \\\"seller_corporation\\\": \\\"张文\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 6, \\\"seller_name_fill_bl\\\": \\\"新力电子有限公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-15 00:00:00\\\", \\\"accept_amount_fill_bl\\\": 270, \\\"seller_address_fill_bl\\\": \\\"广东省深圳市宝安区宝安大道521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"张文\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"贰佰柒拾元整\\\"}\", \"bl_contract_time\": \"2023-08-15 00:00:00\", \"contract_account\": \"111122223333\", \"contract_time_f1\": \"2023-08-13 12:16:33\", \"financing_months\": 1, \"financing_status\": 0, \"max_apply_amount\": 270, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-20165841\", \"bank_name_fill_hz\": \"华夏银行\", \"buyer_corporation\": \"刘强\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"buyer_name_fill_hz\": \"晶东电子城\", \"financing_end_time\": \"2023-09-15 00:00:00\", \"reply_time_fill_hz\": \"2023-08-15 00:00:00\", \"seller_corporation\": \"张文\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_id_ok_fill_hz\": 25, \"buyer_name_fill_sqs\": \"晶东电子城\", \"buyer_name_fill_tzs\": \"晶东电子城\", \"contract_no_fill_hz\": \"2023081300003\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"seller_name_fill_hz\": \"新力电子有限公司\", \"bank_name_f2_fill_hz\": \"华夏银行\", \"bank_name_f3_fill_hz\": \"华夏银行\", \"bank_name_f4_fill_hz\": \"华夏银行\", \"bank_name_f5_fill_hz\": \"华夏银行\", \"bank_name_fs_fill_hz\": \"华夏银行\", \"contract_no_fill_sqs\": \"2023081300003\", \"contract_no_fill_tzs\": \"2023081300003\", \"financing_start_time\": \"2023-08-15 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-15 00:00:00\", \"seller_name_fill_sqs\": \"新力电子有限公司\", \"seller_name_fill_tzs\": \"新力电子有限公司\", \"yfzk_amount_fill_sqs\": 300, \"yfzk_amount_fill_tzs\": 300, \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"新力电子有限公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"bank_name_khh_fill_hz\": \"华夏银行\", \"buyer_address_fill_hz\": \"广东省深圳市宝安区创业路58号\", \"buyer_name_f3_fill_hz\": \"晶东电子城\", \"contract_time_fill_hz\": \"2023-08-13 12:16:33\", \"seller_id_ok_fill_sqs\": 24, \"seller_id_ok_fill_tzs\": 24, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"bl_contract_no_fill_hz\": 20230813672801, \"buyer_name_f1_fill_tzs\": \"晶东电子城\", \"contract_time_fill_sqs\": \"2023-08-13 12:16:33\", \"contract_time_fill_tzs\": \"2023-08-13 12:16:33\", \"seller_account_fill_hz\": \"111122223333\", \"seller_name_f2_fill_hz\": \"新力电子有限公司\", \"seller_name_fs_fill_hz\": \"新力电子有限公司\", \"bl_contract_no_fill_sqs\": \"20230813672801\", \"bl_contract_no_fill_tzs\": \"20230813672801\", \"buyer_telephone_fill_hz\": \"0755-50219684\", \"contract_no_f1_fill_tzs\": \"2023081300003\", \"contract_no_fill_tzs_02\": \"2023081300003\", \"seller_name_f1_fill_tzs\": \"新力电子有限公司\", \"bl_contract_time_fill_hz\": \"2023-08-15 00:00:00\", \"contract_amount_fill_sqs\": 320, \"contract_amount_fill_tzs\": 320, \"bl_contract_time_fill_sqs\": \"2023-08-15 00:00:00\", \"bl_contract_time_fill_tzs\": \"2023-08-15 00:00:00\", \"buyer_corporation_fill_hz\": \"刘强\", \"contract_account_fill_tzs\": \"111122223333\", \"contract_time_f1_fill_tzs\": \"2023-08-13 12:16:33\", \"seller_corporation_fill_hz\": \"新力电子有限公司\", \"financing_end_time_fill_sqs\": \"2023-09-15 00:00:00\", \"financing_end_time_fill_tzs\": \"2023-09-15 00:00:00\", \"seller_transfer_notice_file\": \"\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-15 00:00:00\", \"buyer_corporation_fs_fill_hz\": \"刘强\", \"financing_start_time_fill_tzs\": \"2023-08-15 00:00:00\"}'); + +-- ---------------------------- +-- View structure for user_integral +-- ---------------------------- +DROP VIEW IF EXISTS `user_integral`; +CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `user_integral` AS select `t10`.`user_id` AS `user_id`,`t10`.`class_id` AS `class_id`,`t10`.`total_integral` AS `integral`,row_number() OVER (ORDER BY `t10`.`total_integral` desc ) AS `integral_order` from (select `t9`.`user_id` AS `user_id`,sum((`t9`.`integral` + `t9`.`ext_integral`)) AS `total_integral`,`t9`.`class_id` AS `class_id` from (select `t2`.`user_id` AS `user_id`,`t3`.`mode` AS `MODE`,`t2`.`class_id` AS `class_id`,sum((50 - (30 * (1 - `t3`.`mode`)))) AS `integral`,sum(distinct `t1`.`flow_id`) AS `flow_id_sum`,(case when (sum(distinct `t1`.`flow_id`) > 14) then (100 * (`t3`.`mode` + 1)) else 0 end) AS `ext_integral` from ((`financings` `t1` join `user_examinations` `t2` on((`t1`.`instance_id` = `t2`.`instance_id`))) join `examinations` `t3` on((`t2`.`examination_id` = `t3`.`id`))) where ((`t1`.`financing_status` = 9) and (`t3`.`mode` is not null) and (`t3`.`type` = 0)) group by `t2`.`user_id`,`t3`.`mode`) `t9` group by `t9`.`user_id`) `t10`; SET FOREIGN_KEY_CHECKS = 1;