From de0202274ed147e89fdbba0a953936a3b9997ec7 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 22 九月 2026 17:37:50 +0800
Subject: [PATCH] feat(mes): 更新IPQC过程检验功能

---
 yudao-module-mes/src/test/resources/sql/create_tables.sql |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/yudao-module-mes/src/test/resources/sql/create_tables.sql b/yudao-module-mes/src/test/resources/sql/create_tables.sql
index fd73613..08ce82c 100644
--- a/yudao-module-mes/src/test/resources/sql/create_tables.sql
+++ b/yudao-module-mes/src/test/resources/sql/create_tables.sql
@@ -242,10 +242,7 @@
     "source_doc_id" bigint DEFAULT NULL,
     "source_line_id" bigint DEFAULT NULL,
     "source_doc_code" varchar(64) DEFAULT NULL,
-    "work_order_id" bigint DEFAULT NULL,
-    "task_id" bigint DEFAULT NULL,
-    "workstation_id" bigint DEFAULT NULL,
-    "process_id" bigint DEFAULT NULL,
+    "batch_code" varchar(100) DEFAULT NULL,
     "item_id" bigint DEFAULT NULL,
     "check_quantity" decimal(14,2) DEFAULT NULL,
     "qualified_quantity" decimal(14,2) DEFAULT NULL,
@@ -830,3 +827,29 @@
     "tenant_id" bigint NOT NULL DEFAULT 0,
     PRIMARY KEY ("id")
 );
+
+-- ----------------------------
+-- MES 璐ㄦ鎸囨爣
+-- ----------------------------
+CREATE TABLE IF NOT EXISTS "mes_qc_indicator" (
+    "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
+    "code" varchar(100) DEFAULT NULL,
+    "name" varchar(100) DEFAULT NULL,
+    "parent_id" bigint NOT NULL DEFAULT 0,
+    "item_type" tinyint NOT NULL DEFAULT 1,
+    "formula_text" varchar(500) DEFAULT NULL,
+    "unit_text" varchar(50) DEFAULT NULL,
+    "sort_order" int NOT NULL DEFAULT 0,
+    "type" int DEFAULT NULL,
+    "tool" varchar(255) DEFAULT NULL,
+    "result_type" int DEFAULT NULL,
+    "result_specification" varchar(255) DEFAULT NULL,
+    "remark" varchar(255) DEFAULT NULL,
+    "creator" varchar(64) DEFAULT '',
+    "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+    "updater" varchar(64) DEFAULT '',
+    "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+    "deleted" bit NOT NULL DEFAULT FALSE,
+    "tenant_id" bigint NOT NULL DEFAULT 0,
+    PRIMARY KEY ("id")
+);

--
Gitblit v1.9.3