|
@@ -3,17 +3,12 @@ package com.ims.eval.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ims.common.utils.DateUtils;
|
|
|
-import com.ims.eval.config.CustomException;
|
|
|
-import com.ims.eval.dao.BinSectionMapper;
|
|
|
+import com.ims.common.utils.StringUtils;
|
|
|
import com.ims.eval.dao.EvaluationScoreCountMapper;
|
|
|
-import com.ims.eval.entity.BinSection;
|
|
|
import com.ims.eval.entity.EvaluationScoreCount;
|
|
|
-import com.ims.eval.service.IBinSectionService;
|
|
|
import com.ims.eval.service.IEvaluationScoreCountService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -85,4 +80,26 @@ public class EvaluatioinScoreCountServiceImpl extends ServiceImpl<EvaluationScor
|
|
|
result.put("value", value);
|
|
|
return result;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<EvaluationScoreCount> getEvaluationScoreCountList(String organizationEvaluationId, String organizationEvaluationRuleId, String indicatorId) {
|
|
|
+
|
|
|
+
|
|
|
+ QueryWrapper<EvaluationScoreCount> qw = new QueryWrapper();
|
|
|
+
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(organizationEvaluationId)) {
|
|
|
+ qw.lambda().eq(EvaluationScoreCount::getOrganizationEvaluationId,organizationEvaluationId);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(organizationEvaluationRuleId)) {
|
|
|
+ qw.lambda().eq(EvaluationScoreCount::getOrganizationEvaluationRuleId,organizationEvaluationRuleId);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(indicatorId)) {
|
|
|
+ qw.lambda().eq(EvaluationScoreCount::getIndicatorId,indicatorId);
|
|
|
+ }
|
|
|
+
|
|
|
+ List<EvaluationScoreCount> list = baseMapper.selectList(qw);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
}
|