Browse Source

补充上次提交

feature/dangjian
yujintao 6 years ago
parent
commit
47403ca38b
  1. 7
      esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/java/com/elink/esua/epdc/service/impl/KpiRuleServiceImpl.java

7
esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/src/main/java/com/elink/esua/epdc/service/impl/KpiRuleServiceImpl.java

@ -321,7 +321,7 @@ public class KpiRuleServiceImpl extends BaseServiceImpl<KpiRuleDao, KpiRuleEntit
Date endDate = LocalDateUtils.localDateToDate(YearMonth.now().minusMonths(NumConstant.ONE).atEndOfMonth());
// 根据 考核规则表-外键(公式id),查询绩效考核公式表,待运行公式方法
KpiFormulaDTO kpiFormula = kpiFormulaDao.queryFormula(kpiRule.getReferenceId());
// 初始化JavaScript引擎
// 初始化JavaScriptEngine引擎
Invocable invocable = this.initInvocable(kpiFormula.getFormula(), ruleCode);
// 公式所有参数对应的元数据编码、升序排列
List<String> metaDateCodeList = this.getRuleParmOfMetaDateCodeList(kpiRule.getId());
@ -331,7 +331,9 @@ public class KpiRuleServiceImpl extends BaseServiceImpl<KpiRuleDao, KpiRuleEntit
String functionName = kpiFormula.getFunctionName();
// 部门类别
String[] deptTypeKeyArray = kpiRule.getDeptTypeKey().split(StrConstant.COMMA);
if (deptTypeKeyArray.length > NumConstant.ZERO) {
if (null == deptTypeKeyArray || deptTypeKeyArray.length == NumConstant.ZERO) {
return;
}
for (String deptTypeKey : deptTypeKeyArray) {
int pageIndex = NumConstant.ONE;
List<Long> deptIdList = deptUtils.getDeptIdList(deptTypeKey, NumConstant.TWENTY, pageIndex);
@ -350,7 +352,6 @@ public class KpiRuleServiceImpl extends BaseServiceImpl<KpiRuleDao, KpiRuleEntit
} while (CollUtil.isNotEmpty(deptIdList));
}
}
}
/**
* 执行保存得分操作

Loading…
Cancel
Save