fix(metadata): MasterDetailLinker 主 LIST 属性 INSERT 补 createtime/updatetime/createby/updateby

live e2e 揪出:SYS_ENTITYATTRIBUTE 这4列 NOT NULL 无默认值,原 INSERT 漏列 → 接线失败。
补齐后 master-detail compile→ensureLink→级联保存 端到端通(子行外键自动回填)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-20 15:29:40 +08:00
parent c9be9bc125
commit 6e096dce1d

View File

@@ -87,11 +87,11 @@ public class MasterDetailLinker {
"INSERT INTO SYS_ENTITYATTRIBUTE" "INSERT INTO SYS_ENTITYATTRIBUTE"
+ "(sys_entityattribute_id,entityid,columnname,displayname,referenceid,referencevalue," + "(sys_entityattribute_id,entityid,columnname,displayname,referenceid,referencevalue,"
+ "ismandatory,iskey,isidentifier,iscombidentifier,isreadonly,isentitydisplay," + "ismandatory,iskey,isidentifier,iscombidentifier,isreadonly,isentitydisplay,"
+ "isactive,version)" + "isactive,version,createtime,updatetime,createby,updateby)"
+ " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", + " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
listAttrId, masterEntityId, listColumn.toUpperCase(), listLabel, "LIST", referenceValueId, listAttrId, masterEntityId, listColumn.toUpperCase(), listLabel, "LIST", referenceValueId,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0); 1, 0, now, now, "ADMIN", "ADMIN");
cacheInvalidator.evictByTable(masterTable); cacheInvalidator.evictByTable(masterTable);
return referenceValueId; return referenceValueId;