- run_eval: PG xpath(...)::text 保留实体转义(< → <),抽取后补 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>
34 lines
993 B
Groovy
34 lines
993 B
Groovy
// === EIP4 P4 脚本迁移产出 ===
|
|
// template_id : 17a7176a-0003-4e85-a7b2-003d1c03acae
|
|
// template_name: 新APP应用管理(更新包)
|
|
// seq : 1
|
|
// label : NO_S3
|
|
// 处置 : 无 S3 模式,原样进 P4
|
|
def x;
|
|
def y;
|
|
def z;
|
|
def id = "";
|
|
def company = getFieldValue("COMPANY");
|
|
def method = getFieldValue("METHOD");
|
|
def sql = "select * from NEWAPP_UPDATE where COMPANY = "+company+" order by CREATETIME DESC";
|
|
def po = GetServicesFunction.listSelectResultBySql([:],"NEWAPP_UPDATE",sql,["ID"]);
|
|
if(po&&po.size()>0){
|
|
id = po.get(0).get_Value("ID");
|
|
|
|
x = id.substring(0,id.indexOf("."));
|
|
y = id.substring(id.indexOf(".")+1,id.lastIndexOf("."));
|
|
z = id.substring(id.lastIndexOf(".")+1,id.size());
|
|
if(method == 1){
|
|
z = z.toInteger()+1;//GetValueFunction.toInteger(z)+1;
|
|
}else if(method == 2){
|
|
y = y.toInteger()+1;
|
|
};
|
|
|
|
id = x+"."+y+"."+z;
|
|
}else{
|
|
x=1;
|
|
y=0;
|
|
z=1;
|
|
id = x+"."+y+"."+z;
|
|
}
|
|
bindField("ID",id) |