人员中处理同步专家库优化
This commit is contained in:
parent
e75ce1af72
commit
2f5cd7d8d1
|
@ -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)){
|
||||
|
|
|
@ -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);//专家姓名
|
||||
|
|
Loading…
Reference in New Issue