Files
eip4-platform/tools/s3_rewriter/output/rewritten/e5a03e54-37b2-4122-971f-7f0ac57c2650/6.FULL_AUTO.groovy
zhengwr b453dde65f F2-4: 全量批量回归 harness + 报告 + Notification import 修复
- 新增 tools/s3_rewriter/run_batch_regression.py:1,322 条(FULL_AUTO 507 + NO_S3 815)
  全量批量回归 harness;并发 6,写路径安全排除,失败自动归因分桶
- rewrite.py F2-4 修复:新增 _NOTIF_IMPORT_RE,在 _apply_dynamic_button 和
  rewrite_script 末尾统一剥离 com.vaadin.ui.Notification import,下次重跑改写器自动生效
- 磁盘产物 patch:17 条 FULL_AUTO groovy 批量剥离 Notification import
- 结果 JSON:batch_regression_20260612_024512.json(0.46MB)
- 报告:docs/P1/F2-4批量回归报告.md

回归结论:FULL_AUTO 90.7%(459/506),闭包动词专项 3/4 通过,
e2e 50 基线 46/50(4 条均在已知缺口桶,无新增回归),真缺口 42 条

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 02:47:23 +08:00

59 lines
2.7 KiB
Groovy

// === EIP4 P4 脚本迁移产出 ===
// template_id : e5a03e54-37b2-4122-971f-7f0ac57c2650
// template_name: 进项税发票(批量调整抵扣日期)-五建定制
// seq : 6
// label : FULL_AUTO
// 处置 : 全自动改写完成,直接入 P4 转换流水线
//将自定义的按钮添加至
//addSubTableButton("TASKS", "SELECT", 0);
addFieldButton("TASKS", "查询", {
def thisuser = GetDefaultValueFunction.getCurrentUserId();
def newlist = [];
def returncol = ["VIEW_ACT_RU_TASK_ID","PROCESSID","TITLE","TASKNAME","INITUSERID","STARTTIME","ASSIGNEE","DUEDATE","COMMENTTEXT","PROCESSNAME","INITUSERORGID"];
def csql = "select VIEW_ACT_RU_TASK_ID,PROCESSID,TITLE,TASKNAME,INITUSERID,STARTTIME,ASSIGNEE,DUEDATE,COMMENTTEXT,PROCESSNAME,INITUSERORGID,PROCESSID as PROCESSID_DISPLAY__,TITLE as TITLE_DISPLAY__,";
csql += " TASKNAME as TASKNAME_DISPLAY__,VIEW_ACT_RU_TASK_ID as VIEW_ACT_RU_TASK_ID_DISPLAY__,INITUSERID as INITUSERID_DISPLAY__,STARTTIME as STARTTIME_DISPLAY__,";
csql += " ASSIGNEE as ASSIGNEE_DISPLAY__,DUEDATE as DUEDATE_DISPLAY__,COMMENTTEXT as COMMENTTEXT_DISPLAY__,PROCESSNAME as PROCESSNAME_DISPLAY__,INITUSERORGID as INITUSERORGID_DISPLAY__ from";
csql += " VIEW_ACT_RU_TASK where processname = '进项税发票' and (assignee = '"+thisuser+"' or commenttext = '"+thisuser+"')";
if(getFieldValue("ORGID") != null){
csql += " and INITUSERORGID = '"+getFieldValue("ORGID")+"'";
}
csql += " order by starttime desc";
def list = GetServicesFunction.listSelectResultBySql([:],"VIEW_ACT_RU_TASK",csql,returncol);
if(list!=null && list.size()>0){
for(ilist in list){
def imap = ilist?.toMap();
imap["ISSIGN"] = false;
newlist.add(imap);
}
bindField("TASKS",null);
bindField("TASKS",newlist);
}else{
bindField("TASKS",null);
bindField("TASKS",newlist);
}
}, 0)
addFieldButton("TASKS", "全选", {
def details = getFieldValue("TASKS");
if(details != null){
details.each{
it.put("ISSIGN",true);
}
bindField("TASKS",null);
bindField("TASKS",details);
}
}, 1)
addFieldButton("TASKS", "取消全选", {
def details = getFieldValue("TASKS");
if(details != null){
details.each{
it.put("ISSIGN",false);
}
bindField("TASKS",null);
bindField("TASKS",details);
}
}, 2)