diff --git a/main/java/shkd/bamp/base/task/DobeDWpersonTask.java b/main/java/shkd/bamp/base/task/DobeDWpersonTask.java index 2fd7110..2e8f161 100644 --- a/main/java/shkd/bamp/base/task/DobeDWpersonTask.java +++ b/main/java/shkd/bamp/base/task/DobeDWpersonTask.java @@ -191,7 +191,7 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin { } } //处理新增 评标专家库 - if(deptOrg != null){ + if(deptOrg != null && ptinfo != null){ proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName); proficientInfo.set("billno",number);//专家编号 proficientInfo.set("name",name);//专家姓名 diff --git a/main/java/shkd/bamp/base/task/DobeDWpersonUpdateTask.java b/main/java/shkd/bamp/base/task/DobeDWpersonUpdateTask.java index 2671640..ab6b0bc 100644 --- a/main/java/shkd/bamp/base/task/DobeDWpersonUpdateTask.java +++ b/main/java/shkd/bamp/base/task/DobeDWpersonUpdateTask.java @@ -171,7 +171,7 @@ public class DobeDWpersonUpdateTask extends AbstractTask implements Plugin { } //处理新增 评标专家库 proficientInfo = BusinessDataServiceHelper.loadSingle(proficientName,new QFilter[]{new QFilter("billno","=",number)}); - if(proficientInfo == null && deptOrg != null){ + if(proficientInfo == null && deptOrg != null && ptinfo != null){ proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName); proficientInfo.set("billno",number);//专家编号 proficientInfo.set("name",name);//专家姓名