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>
This commit is contained in:
2026-06-11 21:27:20 +08:00
parent 8e02c0149b
commit a711ecd8f0
1000 changed files with 7612 additions and 7128 deletions

View File

@@ -1,7 +1,7 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 2
// seq : 1
// label : FULL_AUTO
// 处置 : 全自动改写完成,直接入 P4 转换流水线
setSubTableAddButtonVisible("PAIDS", false);

View File

@@ -0,0 +1,14 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 2
// label : NO_S3
// 处置 : 无 S3 模式,原样进 P4
if(item["ISPAID"]=="是"){//所选记录已经是确认状态!
enableButton("付款确认",false);//确认不可用
}else{//所选记录已经是未确认状态!
enableButton("付款确认",true);//确认可用
}

View File

@@ -4,11 +4,4 @@
// seq : 3
// label : NO_S3
// 处置 : 无 S3 模式,原样进 P4
if(item["ISPAID"]=="是"){//所选记录已经是确认状态!
enableButton("付款确认",false);//确认不可用
}else{//所选记录已经是未确认状态!
enableButton("付款确认",true);//确认可用
}
page.setDataFilter(["PM_PAYMENTAPPLY_ID":PM_PAYMENTAPPLY_ID,"COMPANY":GetDefaultValueFunction.getConfigValue("com.dsasp.server.organize.COMPANY")]);

View File

@@ -1,18 +1,18 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 5
// seq : 4
// label : HARD
// 硬 S3 原因 : 动态创建 Vaadin 组件
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
import com.vaadin.ui.Label;
def label4 = new Label("&lt;font style=\"float:right\"&gt;入库金额(元)&lt;/font&gt;");
def label4 = new Label("<font style=\"float:right\">入库金额(元)</font>");
label4.setContentMode(Label.CONTENT_XHTML);
def formLayout4 =group.getField("LBLIMPORTMONEY").parent;
if(formLayout4.getComponentCount()&gt;1){
if(formLayout4.getComponentCount()>1){
formLayout4.removeComponent(formLayout4.getComponent(1));
}
formLayout4.addComponent(label4);

View File

@@ -1,7 +0,0 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 4
// label : NO_S3
// 处置 : 无 S3 模式,原样进 P4
page.setDataFilter(["PM_PAYMENTAPPLY_ID":PM_PAYMENTAPPLY_ID,"COMPANY":GetDefaultValueFunction.getConfigValue("com.dsasp.server.organize.COMPANY")]);

View File

@@ -1,8 +1,12 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 7
// seq : 5
// label : FULL_AUTO
// 处置 : 全自动改写完成,直接入 P4 转换流水线
//选择付款申请按钮
addSubTableButton("TRANSFERDTLS", "SELECT", 0);
def list = getFieldValue("ORGIDLIST");
Console.debug(list);
def searchMap = [:];
searchMap["FILIALE"] = list;//分公司
setFieldFilter("PROJECTID", searchMap);

View File

@@ -4,9 +4,5 @@
// seq : 6
// label : FULL_AUTO
// 处置 : 全自动改写完成,直接入 P4 转换流水线
def list = getFieldValue("ORGIDLIST");
Console.debug(list);
def searchMap = [:];
searchMap["FILIALE"] = list;//分公司
setFieldFilter("PROJECTID", searchMap);
//选择付款申请按钮
addSubTableButton("TRANSFERDTLS", "SELECT", 0);

View File

@@ -1,7 +1,7 @@
// === EIP4 P4 脚本迁移产出 ===
// template_id : e7670207-9cf7-4db9-a452-884b58408b96
// template_name: 付款确认(五建定制)
// seq : 1
// seq : 7
// label : HARD
// 硬 S3 原因 : 动态创建 Vaadin 组件
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
@@ -51,7 +51,7 @@ search?.addClickListener(new ClickListener() {
if(draftType==null){
content += "票据种类不能为空!\n";
}
if(content !=null &amp;&amp; content !=""){
if(content !=null && content !=""){
//throw new ValidationException(content);
Notification.show(content,Type.ERROR_MESSAGE);
return;
@@ -93,7 +93,7 @@ search?.addClickListener(new ClickListener() {
}
//得到付款结果
def tempretCode = tempreturnlist.get("retCode");
if(tempretCode &amp;&amp; tempretCode != "0000" &amp;&amp; tempreturnlist.get("retMsg")){
if(tempretCode && tempretCode != "0000" && tempreturnlist.get("retMsg")){
Notification.show(tempreturnlist.get("retMsg"),Type.ERROR_MESSAGE);
return;
}
@@ -120,16 +120,16 @@ search?.addClickListener(new ClickListener() {
}
//得到付款结果
def retCode = returnlist.get("retCode");
if(retCode &amp;&amp; retCode != "0000" &amp;&amp; returnlist.get("retMsg")){
if(retCode && retCode != "0000" && returnlist.get("retMsg")){
//throw new ValidationException(returnlist.get("retMsg"));
Notification.show(returnlist.get("retMsg"),Type.ERROR_MESSAGE);
return;
}else if(retCode &amp;&amp; retCode == "0000"){
}else if(retCode && retCode == "0000"){
//查询票据查询明细表中是否存在该信息,存在则删除后再新增,不存在则新增
def PROJECTIDAPIBATCHNO = getFieldValue("PROJECTID")+"-"+getFieldValue("APIBATCHNO");
def sql = " SELECT PM_ENDORSEAPPLY_ENDORSEDETAILS_ID FROM PM_ENDORSEAPPLY_ENDORSEDETAILS WHERE PROJECTIDAPIBATCHNO = '"+PROJECTIDAPIBATCHNO+"'";
def list = GetServicesFunction.listSelectResultBySql([:],"PM_ENDORSEAPPLY_ENDORSEDETAILS",sql,["PM_ENDORSEAPPLY_ENDORSEDETAILS_ID"]);
if(list &amp;&amp; list.size()&gt;0){
if(list && list.size()>0){
list.each{
def tempmap = [:];
tempmap["PM_ENDORSEAPPLY_ENDORSEDETAILS_ID"] = it.get_Value("PM_ENDORSEAPPLY_ENDORSEDETAILS_ID");//主键
@@ -138,7 +138,7 @@ search?.addClickListener(new ClickListener() {
};
Console.debug(returnlist.get("draftList"));
def rows = returnlist.get("draftList");
for (int i = 0; i &lt; rows?.size(); i++) {
for (int i = 0; i < rows?.size(); i++) {
def it = rows.get(i);
def itemMap = [:];
itemMap["DRAFTCODE"] = it.get("draftCode");//票据(包)号