diff --git a/main/java/shkd/repc/task/DobeDWprojectTask.java b/main/java/shkd/repc/task/DobeDWprojectTask.java index eb69a60..4e60509 100644 --- a/main/java/shkd/repc/task/DobeDWprojectTask.java +++ b/main/java/shkd/repc/task/DobeDWprojectTask.java @@ -104,7 +104,7 @@ public class DobeDWprojectTask extends AbstractTask implements Plugin { project_getdate = json_body.getDate("project_getdate"); project_stage = json_body.getString("project_stage"); fdwid = json_body.getString("project_id"); - if(DobeDWUtils.isEmpty(fbillno) || DobeDWUtils.isEmpty(fbillname) || DobeDWUtils.isEmpty(forgid) || DobeDWUtils.isEmpty(fdwid)){ + if(DobeDWUtils.isEmpty(fbillno) || DobeDWUtils.isEmpty(fbillname) || DobeDWUtils.isEmpty(fdwid)){ log.info(String.format("项目接口入参为空异常:%s", json_body.toJSONString())); continue; } @@ -118,6 +118,8 @@ public class DobeDWprojectTask extends AbstractTask implements Plugin { continue; } //已存在,做更新 名称 阶段 版本号等信息;组织、编号、是否叶子节点不能更新;需要前台操作 + projectinfo.set("billno", fbillno); + projectinfo.set("longnumber", fbillno);//长编码 projectinfo.set("billname", fbillname); projectinfo.set("fullname", fbillname);//项目全称 // if(projectstageinfo != null){ @@ -126,9 +128,9 @@ public class DobeDWprojectTask extends AbstractTask implements Plugin { projectinfo.set("address", faddress); projectinfo.set("acquiredate", project_getdate); // projectinfo.set("billstatus", "A");//单据状态 A保存 B已提交 C已审核 - projectinfo.set("showflag", true);//是否列表显示 - projectinfo.set("enable", 1);//是否启用 - projectinfo.set("islatestversion", true);//是否最新版 +// projectinfo.set("showflag", true);//是否列表显示 +// projectinfo.set("enable", 1);//是否启用 +// projectinfo.set("islatestversion", true);//是否最新版 projectinfo.set("mainprojectid", projectinfo.getLong("id"));//主项目ID if("新拓园区".equals(project_stage)){ projectinfo.set("qeug_combofield", "xintuo"); @@ -168,7 +170,9 @@ public class DobeDWprojectTask extends AbstractTask implements Plugin { } projectinfo.set("isleaf", true); projectinfo.set("enable", 1);//是否启用 +// projectinfo.set("islatestversion", true);//是否最新版-审核之后系统控制的,不需要在此处设置 projectinfo.set("billstatus", "A");//单据状态 A保存 B已提交 C已审核 + projectinfo.set("versionnum", "V1.0");//版本号 默认值 projectinfo.set("creator", 43007523L);//创建人默认指定为金小蝶 if("新拓园区".equals(project_stage)){ projectinfo.set("qeug_combofield", "xintuo");