- 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>
229 lines
5.3 KiB
Groovy
229 lines
5.3 KiB
Groovy
// === EIP4 P4 脚本迁移产出 ===
|
|
// template_id : e17c11a2-4a1f-47b0-8d8e-e1083d744d49
|
|
// template_name: 班次管理
|
|
// seq : 1
|
|
// label : FULL_AUTO
|
|
// 处置 : 全自动改写完成,直接入 P4 转换流水线
|
|
|
|
/*************上班时间******************/
|
|
def recordstarttimehour = getFieldValue("STARTTIMEHOUR");
|
|
if(recordstarttimehour==null){
|
|
recordstarttimehour = 8;
|
|
}
|
|
def recordstarttimeminutes = getFieldValue("STARTTIMEMINUTE");
|
|
if(recordstarttimeminutes==null){
|
|
recordstarttimeminutes = 8;
|
|
}
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("STARTTIMEHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("STARTTIMEMINUTE", i, desshow);
|
|
}
|
|
}
|
|
bindField("STARTTIMEHOUR",null);
|
|
bindField("STARTTIMEMINUTE",null);
|
|
bindField("STARTTIMEHOUR",recordstarttimehour);
|
|
bindField("STARTTIMEMINUTE",recordstarttimeminutes);
|
|
|
|
/*************下班时间******************/
|
|
def recordendtimehour = getFieldValue("ENDTIMEHOUR");
|
|
if(recordendtimehour==null){
|
|
recordendtimehour = 17;
|
|
}
|
|
def recordendtimeminutes = getFieldValue("ENDTIMEMINUTE");
|
|
if(recordendtimeminutes==null){
|
|
recordendtimeminutes = 0;
|
|
}
|
|
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("ENDTIMEHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("ENDTIMEMINUTE", i, desshow);
|
|
}
|
|
}
|
|
bindField("ENDTIMEHOUR",null);
|
|
bindField("ENDTIMEMINUTE",null);
|
|
|
|
bindField("ENDTIMEHOUR",recordendtimehour);
|
|
bindField("ENDTIMEMINUTE",recordendtimeminutes);
|
|
|
|
/*************开始签到时间******************/
|
|
def recordcheckinbeginhour = getFieldValue("CHECKINBEGINHOUR");
|
|
if(recordcheckinbeginhour==null){
|
|
recordcheckinbeginhour = 7;
|
|
}
|
|
def recordcheckinbeginminutes = getFieldValue("CHECKINBEGINMINUTE");
|
|
if(recordcheckinbeginminutes==null){
|
|
recordcheckinbeginminutes = 0;
|
|
}
|
|
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKINBEGINHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKINBEGINMINUTE", i, desshow);
|
|
}
|
|
}
|
|
bindField("CHECKINBEGINHOUR",null);
|
|
bindField("CHECKINBEGINMINUTE",null);
|
|
|
|
bindField("CHECKINBEGINHOUR",recordcheckinbeginhour);
|
|
bindField("CHECKINBEGINMINUTE",recordcheckinbeginminutes);
|
|
|
|
/*************结束签到时间******************/
|
|
def recordcheckinendhour = getFieldValue("CHECKINENDHOUR");
|
|
if(recordcheckinendhour==null){
|
|
recordcheckinendhour = 11;
|
|
}
|
|
def recordcheckinendminutes = getFieldValue("CHECKINENDMINUTE");
|
|
if(recordcheckinendminutes==null){
|
|
recordcheckinendminutes = 0;
|
|
}
|
|
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKINENDHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKINENDMINUTE", i, desshow);
|
|
}
|
|
}
|
|
bindField("CHECKINENDHOUR",null);
|
|
bindField("CHECKINENDMINUTE",null);
|
|
|
|
bindField("CHECKINENDHOUR",recordcheckinendhour);
|
|
bindField("CHECKINENDMINUTE",recordcheckinendminutes);
|
|
|
|
/*************开始签退时间******************/
|
|
def recordcheckoutbeginhour = getFieldValue("CHECKOUTBEGINHOUR");
|
|
if(recordcheckoutbeginhour==null){
|
|
recordcheckoutbeginhour = 17;
|
|
}
|
|
def recordcheckoutbeginminutes = getFieldValue("CHECKOUTBEGINMINUTE");
|
|
if(recordcheckoutbeginminutes==null){
|
|
recordcheckoutbeginminutes = 0;
|
|
}
|
|
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKOUTBEGINHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKOUTBEGINMINUTE", i, desshow);
|
|
}
|
|
}
|
|
bindField("CHECKOUTBEGINHOUR",null);
|
|
bindField("CHECKOUTBEGINMINUTE",null);
|
|
|
|
bindField("CHECKOUTBEGINHOUR",recordcheckoutbeginhour);
|
|
bindField("CHECKOUTBEGINMINUTE",recordcheckoutbeginminutes);
|
|
|
|
/*************结束签退时间******************/
|
|
def recordcheckoutendhour = getFieldValue("CHECKOUTENDHOUR");
|
|
if(recordcheckoutendhour==null){
|
|
recordcheckoutendhour = 20;
|
|
}
|
|
def recordcheckoutendminutes = getFieldValue("CHECKOUTENDMINUTE");
|
|
if(recordcheckoutendminutes==null){
|
|
recordcheckoutendminutes = 0;
|
|
}
|
|
|
|
//小时
|
|
|
|
for(i in 1..<25){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKOUTENDHOUR", i, desshow);
|
|
}
|
|
|
|
//分
|
|
|
|
for(i in 0..<60){
|
|
if(i%10==0){
|
|
def desshow = i.toString();
|
|
if(i<10){
|
|
desshow = "0"+i.toString();
|
|
}
|
|
addFieldOption("CHECKOUTENDMINUTE", i, desshow);
|
|
}
|
|
}
|
|
|
|
bindField("CHECKOUTENDHOUR",null);
|
|
bindField("CHECKOUTENDMINUTE",null);
|
|
|
|
bindField("CHECKOUTENDHOUR",recordcheckoutendhour);
|
|
bindField("CHECKOUTENDMINUTE",recordcheckoutendminutes);
|
|
|