Ver código fonte

绩效评价-项目指标模版新增修改

master
CMM 1 ano atrás
pai
commit
551453792a
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/IndicatorConfigManage.java

+ 3
- 3
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/IndicatorConfigManage.java Ver arquivo

@@ -140,8 +140,6 @@ public class IndicatorConfigManage {
//先删除
indicatorProjectTemplateDetailService.remove(Wrappers.lambdaQuery(PerformanceIndicatorProjectTemplateDetail.class)
.eq(PerformanceIndicatorProjectTemplateDetail::getTemplateId,dto.getId()));
analysisTemplateDetails(dto.getTemplateDetails(),template.getId());

//校检 所有3级指标(不包括附加指标) 总分是不是100
List<PerformanceIndicatorProjectTemplateDetail> indexList = indicatorProjectTemplateDetailService.list(Wrappers.lambdaQuery(PerformanceIndicatorProjectTemplateDetail.class)
.eq(PerformanceIndicatorProjectTemplateDetail::getTemplateId, template.getId())
@@ -151,8 +149,10 @@ public class IndicatorConfigManage {
.map(PerformanceIndicatorProjectTemplateDetail::getIndexScore)
.filter(Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add);
VUtils.isTrue((BigDecimal.valueOf(100)).equals(sum)).throwMessage("总分不是100 操作失败!");
boolean score = (BigDecimal.valueOf(100)).equals(sum);
VUtils.isTrue(Boolean.FALSE.equals(score)).throwMessage("总分不是100 操作失败!");
}
analysisTemplateDetails(dto.getTemplateDetails(),template.getId());
}
// 保存 模版附加指标详情
if (CollUtil.isNotEmpty(dto.getAdditionalIndexDetails())){


Carregando…
Cancelar
Salvar