成本中心同步插件添加直接上级
This commit is contained in:
parent
0fdc863d0b
commit
35089d0383
|
@ -142,8 +142,11 @@ public class CostCenterTaskImpl extends AbstractTask {
|
|||
DynamicObject newObject = entryentity.addNew();
|
||||
newObject.set("dpt",bos_adminorg);//部门
|
||||
newObject.set("position", valueMap.get("position"));//职位
|
||||
QFilter qFilter = new QFilter("shkd_oaid", QCP.equals, valueMap.get("superior"));
|
||||
DynamicObject supUser = BusinessDataServiceHelper.loadSingle("bos_user", "id", qFilter.toArray());
|
||||
newObject.set("isincharge",false);
|
||||
newObject.set("ispartjob",false);
|
||||
newObject.set("superior",supUser);
|
||||
newObject.set("shkd_deptsource","2");
|
||||
changeFlag = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue