人员中处理同步专家库优化
This commit is contained in:
parent
e75ce1af72
commit
2f5cd7d8d1
|
@ -191,24 +191,26 @@ public class DobeDWpersonTask extends AbstractTask implements Plugin {
|
|||
}
|
||||
}
|
||||
//处理新增 评标专家库
|
||||
proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName);
|
||||
proficientInfo.set("billno",number);//专家编号
|
||||
proficientInfo.set("name",name);//专家姓名
|
||||
proficientInfo.set("type","internalExperts");//专家来源--默认内部专家
|
||||
proficientInfo.set("telephone",phone);//手机号
|
||||
ptcoll = proficientInfo.getDynamicObjectCollection("majortype");
|
||||
DynamicObject newptinfo = new DynamicObject(ptcoll.getDynamicObjectType());
|
||||
newptinfo.set("fbasedataId", ptinfo);
|
||||
ptcoll.add(newptinfo);
|
||||
proficientInfo.set("majortype",ptcoll);//专业分类
|
||||
proficientInfo.set("org",deptOrg.getLong("id"));//采购组织
|
||||
proficientInfo.set("userdstatus","Enable"); //使用状态--默认可用
|
||||
proficientInfo.set("billstatus","C"); //使用状态--默认已审核
|
||||
proficientInfo.set("politicalstatus","other"); //政治面貌--默认其他
|
||||
proficientInfo.set("majortypenames",ptinfo.getString("name")); //专业分类名称字符串
|
||||
proficientInfo.set("entitytypeid",proficientName); //实体类型ID
|
||||
//保存数据:直接保存入库,不走操作校验
|
||||
SaveServiceHelper.save(new DynamicObject[]{proficientInfo});
|
||||
if(deptOrg != null){
|
||||
proficientInfo = BusinessDataServiceHelper.newDynamicObject(proficientName);
|
||||
proficientInfo.set("billno",number);//专家编号
|
||||
proficientInfo.set("name",name);//专家姓名
|
||||
proficientInfo.set("type","internalExperts");//专家来源--默认内部专家
|
||||
proficientInfo.set("telephone",phone);//手机号
|
||||
ptcoll = proficientInfo.getDynamicObjectCollection("majortype");
|
||||
DynamicObject newptinfo = new DynamicObject(ptcoll.getDynamicObjectType());
|
||||
newptinfo.set("fbasedataId", ptinfo);
|
||||
ptcoll.add(newptinfo);
|
||||
proficientInfo.set("majortype",ptcoll);//专业分类
|
||||
proficientInfo.set("org",deptOrg.getLong("id"));//采购组织
|
||||
proficientInfo.set("userdstatus","Enable"); //使用状态--默认可用
|
||||
proficientInfo.set("billstatus","C"); //使用状态--默认已审核
|
||||
proficientInfo.set("politicalstatus","other"); //政治面貌--默认其他
|
||||
proficientInfo.set("majortypenames",ptinfo.getString("name")); //专业分类名称字符串
|
||||
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