成本中心同步插件添加直接上级

This commit is contained in:
zengweihai 2024-07-01 17:47:24 +08:00
parent 0fdc863d0b
commit 35089d0383
1 changed files with 3 additions and 0 deletions

View File

@ -142,8 +142,11 @@ public class CostCenterTaskImpl extends AbstractTask {
DynamicObject newObject = entryentity.addNew(); DynamicObject newObject = entryentity.addNew();
newObject.set("dpt",bos_adminorg);//部门 newObject.set("dpt",bos_adminorg);//部门
newObject.set("position", valueMap.get("position"));//职位 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("isincharge",false);
newObject.set("ispartjob",false); newObject.set("ispartjob",false);
newObject.set("superior",supUser);
newObject.set("shkd_deptsource","2"); newObject.set("shkd_deptsource","2");
changeFlag = true; changeFlag = true;
} }