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