|
|
@@ -805,7 +805,7 @@ public class AnnualAdjustmentService {
|
|
|
DynamicObject empPosOrgRel = ac.positionAppointment.getEmpPosOrgRel();
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_PERSON, ac.personInfo);
|
|
|
|
|
|
- //管理组织
|
|
|
+ /* //管理组织
|
|
|
newPersonPosFile.set(PositionStructureConstant.ORG_KEY, UserServiceHelper.getUserMainOrgId(UserServiceHelper.getCurrentUserId()));
|
|
|
|
|
|
DynamicObject company = BusinessDataServiceHelper.newDynamicObject(FormConstant.ADMINORGHR_ENTITYID);
|
|
|
@@ -818,7 +818,10 @@ public class AnnualAdjustmentService {
|
|
|
//使用组织
|
|
|
DynamicObject dep = BusinessDataServiceHelper.newDynamicObject(FormConstant.ADMINORGHR_ENTITYID);
|
|
|
dep.set(FormConstant.ID_KEY, empPosOrgRel.getLong(String.join(".",FormConstant.ADMINORG,FormConstant.ID_KEY)));
|
|
|
- newPersonPosFile.set(PositionStructureConstant.USEORG_KEY, dep);
|
|
|
+ newPersonPosFile.set(PositionStructureConstant.USEORG_KEY, dep);*/
|
|
|
+ DynamicObject dep = BusinessDataServiceHelper.newDynamicObject(FormConstant.ADMINORGHR_ENTITYID);
|
|
|
+ dep.set(FormConstant.ID_KEY, empPosOrgRel.getLong(String.join(".",FormConstant.ADMINORG,FormConstant.ID_KEY)));
|
|
|
+ newPersonPosFile.set(PositionStructureConstant.NCKD_DEP, dep);
|
|
|
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_TYPESTATE, "3");
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_EXECUTEYEAR, ac.executeYear);
|