人员中处理同步专家库优化

This commit is contained in:
yuxueliang0813 2024-12-20 18:01:48 +08:00
parent e75ce1af72
commit 2f5cd7d8d1
2 changed files with 21 additions and 19 deletions

View File

@ -191,6 +191,7 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin {
}
}
//处理新增 评标专家库
if(deptOrg != null){
proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName);
proficientInfo.set("billno",number);//专家编号
proficientInfo.set("name",name);//专家姓名
@ -209,6 +210,7 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin {
proficientInfo.set("entitytypeid",proficientName); //实体类型ID
//保存数据直接保存入库不走操作校验
SaveServiceHelper.save(new DynamicObject[]{proficientInfo});
}
//处理新增人员收款银行账户
if(DobeDWUtils.isEmpty(bank_account)){

View File

@ -171,7 +171,7 @@ public class DobeDWpersonUpdateTask extends AbstractTask implements Plugin {
}
//处理新增 评标专家库
proficientInfo = BusinessDataServiceHelper.loadSingle(proficientName,new QFilter[]{new QFilter("billno","=",number)});
if(proficientInfo == null){
if(proficientInfo == null && deptOrg != null){
proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName);
proficientInfo.set("billno",number);//专家编号
proficientInfo.set("name",name);//专家姓名