Files
eip4-platform/tools/s3_rewriter/output/rewritten/e7670207-9cf7-4db9-a452-884b58408b96/4.HARD.groovy
zhengwr a711ecd8f0 F2-4(一): 修 XML 实体污染并重批重入库,固化标准入库器
- run_eval: PG xpath(...)::text 保留实体转义(< → &lt;),抽取后补 XML 预定义实体反转义
  (等价手册 §5.3 dom4j getText() 语义);293 个污染产物清零,Groovy 编译失败根因消除
- 缓存重建(源=eip4dev,1428 条:1 模板改名+1 新增脚本属数据演进);全量重跑
  497/30/86/815,自动化率 81.1% 守住 ≥80%
- 重大发现:同模板内脚本顺序在两次抽取间会交换((templateId,seq) 非稳定键,
  welfare 模板 seq1↔seq2 实锤)——重批后 onEvent seq 已与磁盘对齐,长期需内容哈希键(登记 F2-4)
- tools/page-schema-loader/load_page_schema.py:幂等标准入库器(etag=sha256,version 递增,
  仅允许 localhost 双库);本次双库各更新 756/幂等跳过 733,e2e 28/28 保持全绿
- 坑:mvn exec:java 的 -Dexec.args 引号空参会被吞导致参数错位(密码用占位符代替空串)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 21:27:38 +08:00

39 lines
1.1 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 4
// label : HARD
// 硬 S3 原因 : 动态创建 Vaadin 组件
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
import com.vaadin.ui.Label;
def label4 = new Label("<font style=\"float:right\">入库金额(元)</font>");
label4.setContentMode(Label.CONTENT_XHTML);
def formLayout4 =group.getField("LBLIMPORTMONEY").parent;
if(formLayout4.getComponentCount()>1){
formLayout4.removeComponent(formLayout4.getComponent(1));
}
formLayout4.addComponent(label4);
def txt4 = group.getField("IMPORTMONEY");
def controlmode = GetDefaultValueFunction.getConfigValue("com.dsasp.pm.projectsubpayment.CONTROLMODE");
switch(controlmode){
case "1":
label4?.setVisible(false);
txt4?.setVisible(false);
break;
case "2":
label4?.setVisible(true);
txt4?.setVisible(true);
break;
case "3":
label4?.setVisible(false);
txt4?.setVisible(false);
break;
default:
break;
}