From 7db54d336936c466569b324ac0d2d30b23978f43 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Mon, 18 Nov 2024 11:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8E=A5=E5=8F=A3=E8=81=94?= =?UTF-8?q?=E8=B0=83=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/java/shkd/repc/task/DobeDWprojectTask.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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");