|
|
@@ -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);
|
|
|
@@ -863,10 +866,16 @@ public class AnnualAdjustmentService {
|
|
|
if(ac.data.getRankingResultInfo() != null) {
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_TOPRANK, ac.data.getRankingResultInfo().topRank);
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_ALLOWANCERANK, ac.data.getRankingResultInfo().allowanceRank);
|
|
|
- newPersonPosFile.set(PositionStructureConstant.NCKD_TOPRANKPERCENT, new BigDecimal(ac.data.getRankingResultInfo().topRankPercent.toString()));
|
|
|
+ BigDecimal topRankPercent = Optional.ofNullable(ac.data.getRankingResultInfo().topRankPercent)
|
|
|
+ .map(BigDecimal::new)
|
|
|
+ .orElse(BigDecimal.ZERO);
|
|
|
+ newPersonPosFile.set(PositionStructureConstant.NCKD_TOPRANKPERCENT, topRankPercent);
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_ALLOWANCERANKMARK, ac.data.getRankingResultInfo().allowanceRankMark);
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_ALLOWANCERANKSEL, ac.data.getRankingResultInfo().allowanceRankSel);
|
|
|
- newPersonPosFile.set(PositionStructureConstant.NCKD_ALLOWANCERANKPCT, new BigDecimal(ac.data.getRankingResultInfo().allowanceRankPercent.toString()));
|
|
|
+ BigDecimal allowanceRankPercent = Optional.ofNullable(ac.data.getRankingResultInfo().allowanceRankPercent)
|
|
|
+ .map(BigDecimal::new)
|
|
|
+ .orElse(BigDecimal.ZERO);
|
|
|
+ newPersonPosFile.set(PositionStructureConstant.NCKD_ALLOWANCERANKPCT, allowanceRankPercent);
|
|
|
}
|
|
|
//上年度考核结果
|
|
|
newPersonPosFile.set(PositionStructureConstant.NCKD_APPRAISALRESULT, ac.data.getAppraisalResult());
|