From 3f3c0ffbd44eeadab5b8f82639ae34a387f8ab9f Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 8 Jan 2025 20:23:11 +0800 Subject: [PATCH] =?UTF-8?q?change(hwmom-mes):=E4=B8=BA=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20ID=20=E6=B7=BB=E5=8A=A0=E4=B8=BB=E9=94=AE?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 BaseMaterialType 类中的 matrialTypeId 字段上添加了 @TableId 注解,指定主键生成策略为 AUTO,即自动增长 --- .../src/main/java/org/dromara/mes/domain/BaseMaterialType.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-modules/hwmom-mes/src/main/java/org/dromara/mes/domain/BaseMaterialType.java b/ruoyi-modules/hwmom-mes/src/main/java/org/dromara/mes/domain/BaseMaterialType.java index 1594d0ec..1c92f151 100644 --- a/ruoyi-modules/hwmom-mes/src/main/java/org/dromara/mes/domain/BaseMaterialType.java +++ b/ruoyi-modules/hwmom-mes/src/main/java/org/dromara/mes/domain/BaseMaterialType.java @@ -24,6 +24,7 @@ public class BaseMaterialType extends TenantEntity { /** * 物料类型ID */ + @TableId(value = "matrial_type_id", type = IdType.AUTO) private Long matrialTypeId; /**