F2-4(一): 修 XML 实体污染并重批重入库,固化标准入库器
- 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>
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
// seq : 1
|
||||
// label : FULL_AUTO
|
||||
// 处置 : 全自动改写完成,直接入 P4 转换流水线
|
||||
def searchMap=[:];
|
||||
searchMap["SYS_ENUMERATETYPE_ID"] = 'HR_EMPLOYEE_STATUS';
|
||||
setFieldFilter("JOBSTATUSS", searchMap);
|
||||
//读取组件
|
||||
|
||||
|
||||
|
||||
|
||||
//为组件赋值
|
||||
setFieldConvertedValue("ISAPPROVAL", 1);
|
||||
setFieldConvertedValue("ISMAINITEMS", 0);
|
||||
setFieldConvertedValue("VALIDDATE", GetDefaultValueFunction.currentDate());
|
||||
@@ -1,7 +1,7 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 3
|
||||
// seq : 2
|
||||
// label : NO_S3
|
||||
// 处置 : 无 S3 模式,原样进 P4
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 4
|
||||
// seq : 3
|
||||
// label : HARD
|
||||
// 硬 S3 原因 : 动态创建 Vaadin 组件
|
||||
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
|
||||
@@ -1,7 +1,7 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 5
|
||||
// seq : 4
|
||||
// label : NO_S3
|
||||
// 处置 : 无 S3 模式,原样进 P4
|
||||
//证书ID
|
||||
@@ -24,8 +24,8 @@ def result=[];
|
||||
def sql="select BORROWUSE,BORROWDATE,PREDICTRETURNDATE,RETURNDATE,DEPOSITPLACE,BORROWREASON from HR_CARDBORROWREGISTER ";
|
||||
sql+="where CARDID='"+CARDID+"'";
|
||||
def list=GetServicesFunction.listSelectResultBySql(Map,"HR_CARDBORROWREGISTER",sql,con);
|
||||
if(list!=null&&list.size()>0){
|
||||
for(i in 0..<list.size()){
|
||||
if(list!=null&&list.size()>0){
|
||||
for(i in 0..<list.size()){
|
||||
result.add(list[i].toMap());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 5
|
||||
// label : HARD
|
||||
// 硬 S3 原因 : 动态创建 Vaadin 组件
|
||||
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
|
||||
import com.vaadin.ui.Link;
|
||||
import com.vaadin.server.ExternalResource;
|
||||
import com.vaadin.ui.Label;
|
||||
|
||||
def url = group.getField("CARDURL");
|
||||
if(url.getValue()!= null){
|
||||
Link link = new Link("信息链接", new ExternalResource(url.getValue()));
|
||||
link.setTargetName("_blank");
|
||||
url.setVisible(false);
|
||||
url.parent?.addComponent(link);
|
||||
}
|
||||
@@ -5,6 +5,16 @@
|
||||
// label : HARD
|
||||
// 硬 S3 原因 : 动态创建 Vaadin 组件
|
||||
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
|
||||
|
||||
import com.vaadin.ui.Button;
|
||||
import com.vaadin.ui.Button.ClickEvent;
|
||||
import com.vaadin.ui.Button.ClickListener;
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
import com.dsasp.client.viewframework.listener.ConfirmDialogListener;
|
||||
|
||||
import com.vaadin.ui.Link;
|
||||
import com.vaadin.server.ExternalResource;
|
||||
import com.vaadin.ui.Label;
|
||||
@@ -13,6 +23,61 @@ def url = group.getField("CARDURL");
|
||||
if(url.getValue()!= null){
|
||||
Link link = new Link("信息链接", new ExternalResource(url.getValue()));
|
||||
link.setTargetName("_blank");
|
||||
|
||||
url.setVisible(false);
|
||||
url.parent?.addComponent(link);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
final def professionals = group.getField("PROFESSIONALS");
|
||||
final Button but = new Button("注销");
|
||||
|
||||
final Object table = professionals?.table;
|
||||
table?.setImmediate(true);
|
||||
|
||||
|
||||
final group1 = group;
|
||||
but?.addClickListener(new ClickListener() {
|
||||
public void buttonClick(ClickEvent event) {
|
||||
def id = table?.getValue();
|
||||
if (id == null){
|
||||
Notification.show("请选择一条记录!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
def hr_con_id = id?.getField("HR_CONSTRUCTORREGISTERED_ID")?.getValue();
|
||||
def islogout = id?.getField("ISLOGOUT")?.getValue();
|
||||
if(islogout){
|
||||
Notification.show("已经注销!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
final pojo = GetServicesFunction.loadPOJO(hr_con_id,"HR_CONSTRUCTORREGISTERED",false);
|
||||
if(pojo!=null){
|
||||
if(pojo.get_Value("ISMAINITEMS")){
|
||||
Notification.show("如要注销主项注册专业,请注销建造师注册证!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
def updateMap=[:];
|
||||
updateMap["HR_CONSTRUCTORREGISTERED_ID"] = hr_con_id;
|
||||
updateMap["ISLOGOUT"] = 1;
|
||||
GetServicesFunction.excuteFlow(updateMap,"HR_CONSTRUCTORREGISTERED_LOGOUT");
|
||||
|
||||
|
||||
id?.getField("ISLOGOUT")?.setImmediate(true);
|
||||
setFieldReadOnly(id,"ISLOGOUT",false);
|
||||
|
||||
id?.getField("ISLOGOUT")?.setValue(true);
|
||||
|
||||
setFieldReadOnly(id,"ISLOGOUT",true);
|
||||
professionals.setValue(new ArrayList(professionals.getValue()));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
professionals?.addButton(but,0);
|
||||
|
||||
professionals?.showAddButton(false);
|
||||
professionals?.showDeleteButton(false);
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 7
|
||||
// label : HARD
|
||||
// 硬 S3 原因 : 动态创建 Vaadin 组件
|
||||
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
|
||||
|
||||
import com.vaadin.ui.Button;
|
||||
import com.vaadin.ui.Button.ClickEvent;
|
||||
import com.vaadin.ui.Button.ClickListener;
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
import com.dsasp.client.viewframework.listener.ConfirmDialogListener;
|
||||
|
||||
import com.vaadin.ui.Link;
|
||||
import com.vaadin.server.ExternalResource;
|
||||
import com.vaadin.ui.Label;
|
||||
|
||||
def url = group.getField("CARDURL");
|
||||
if(url.getValue()!= null){
|
||||
Link link = new Link("信息链接", new ExternalResource(url.getValue()));
|
||||
link.setTargetName("_blank");
|
||||
|
||||
url.setVisible(false);
|
||||
url.parent?.addComponent(link);
|
||||
|
||||
}
|
||||
|
||||
|
||||
final def professionals = group.getField("PROFESSIONALS");
|
||||
final Button but = new Button("注销");
|
||||
|
||||
final Object table = professionals?.table;
|
||||
table?.setImmediate(true);
|
||||
|
||||
|
||||
final group1 = group;
|
||||
but?.addClickListener(new ClickListener() {
|
||||
public void buttonClick(ClickEvent event) {
|
||||
def id = table?.getValue();
|
||||
if (id == null){
|
||||
Notification.show("请选择一条记录!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
def hr_con_id = id?.getField("HR_CONSTRUCTORREGISTERED_ID")?.getValue();
|
||||
def islogout = id?.getField("ISLOGOUT")?.getValue();
|
||||
if(islogout){
|
||||
Notification.show("已经注销!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
final pojo = GetServicesFunction.loadPOJO(hr_con_id,"HR_CONSTRUCTORREGISTERED",false);
|
||||
if(pojo!=null){
|
||||
if(pojo.get_Value("ISMAINITEMS")){
|
||||
Notification.show("如要注销主项注册专业,请注销建造师注册证!", Type.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
|
||||
def updateMap=[:];
|
||||
updateMap["HR_CONSTRUCTORREGISTERED_ID"] = hr_con_id;
|
||||
updateMap["ISLOGOUT"] = 1;
|
||||
GetServicesFunction.excuteFlow(updateMap,"HR_CONSTRUCTORREGISTERED_LOGOUT");
|
||||
|
||||
|
||||
id?.getField("ISLOGOUT")?.setImmediate(true);
|
||||
setFieldReadOnly(id,"ISLOGOUT",false);
|
||||
|
||||
id?.getField("ISLOGOUT")?.setValue(true);
|
||||
|
||||
setFieldReadOnly(id,"ISLOGOUT",true);
|
||||
professionals.setValue(new ArrayList(professionals.getValue()));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
professionals?.addButton(but,0);
|
||||
|
||||
professionals?.showAddButton(false);
|
||||
professionals?.showDeleteButton(false);
|
||||
@@ -1,7 +1,7 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 8
|
||||
// seq : 7
|
||||
// label : NO_S3
|
||||
// 处置 : 无 S3 模式,原样进 P4
|
||||
page.setDataFilter(["HR_CONSTRUCTORCARD_ID":HR_CONSTRUCTORCARD_ID]);
|
||||
@@ -1,15 +1,9 @@
|
||||
// === EIP4 P4 脚本迁移产出 ===
|
||||
// template_id : 2cceb83c-4079-43e4-b7b7-c395fd68cbbc
|
||||
// template_name: 建造师注册证
|
||||
// seq : 2
|
||||
// seq : 8
|
||||
// label : FULL_AUTO
|
||||
// 处置 : 全自动改写完成,直接入 P4 转换流水线
|
||||
//读取组件
|
||||
|
||||
|
||||
|
||||
|
||||
//为组件赋值
|
||||
setFieldConvertedValue("ISAPPROVAL", 1);
|
||||
setFieldConvertedValue("ISMAINITEMS", 0);
|
||||
setFieldConvertedValue("VALIDDATE", GetDefaultValueFunction.currentDate());
|
||||
def searchMap=[:];
|
||||
searchMap["SYS_ENUMERATETYPE_ID"] = 'HR_EMPLOYEE_STATUS';
|
||||
setFieldFilter("JOBSTATUSS", searchMap);
|
||||
@@ -10,7 +10,7 @@ searchMap["SYS_ENUMERATETYPE_ID"] = 'HR_EMPLOYEE_STATUS';
|
||||
//searchMap["CODEDES"]=["处理中","已派工"];
|
||||
searchMap["CODEVALUE"]=[1,4,5];
|
||||
def list = GetServicesFunction.listSelectResult(searchMap,"SYS_ENUMERATE");
|
||||
if(list!=null && list.size()>0){
|
||||
if(list!=null && list.size()>0){
|
||||
list.each{
|
||||
solvelist.add(it.get_ID());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user