|
@@ -4,9 +4,11 @@ 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.common.utils.StringUtils;
|
|
|
+import com.ims.eval.cache.CacheContext;
|
|
|
import com.ims.eval.dao.EvaluationScoreCountMapper;
|
|
|
import com.ims.eval.entity.EvaluationScoreCount;
|
|
|
import com.ims.eval.service.IEvaluationScoreCountService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.*;
|
|
@@ -24,6 +26,8 @@ import java.util.stream.Collectors;
|
|
|
public class EvaluatioinScoreCountServiceImpl extends ServiceImpl<EvaluationScoreCountMapper, EvaluationScoreCount> implements IEvaluationScoreCountService {
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public List<EvaluationScoreCount> getListByEvaluationRuleId(String organizationEvaluationId, String organizationEvaluationRuleId, String binStage) {
|
|
|
List<EvaluationScoreCount> list = baseMapper.selelctListByEvaluationRuleId(organizationEvaluationId, organizationEvaluationRuleId, binStage);
|
|
@@ -33,6 +37,7 @@ public class EvaluatioinScoreCountServiceImpl extends ServiceImpl<EvaluationScor
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> evaluationList(String binSection, String binStage, String type, String condition, String date) {
|
|
|
+ String binSectionId = CacheContext.bsnCodeObject.get(binSection).getId();
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
String month = null;
|
|
@@ -46,7 +51,7 @@ public class EvaluatioinScoreCountServiceImpl extends ServiceImpl<EvaluationScor
|
|
|
month = String.valueOf(cal.get(Calendar.MONTH) + 1);
|
|
|
}
|
|
|
try {
|
|
|
- list.addAll(baseMapper.selectEvaluationList(binSection, binStage, type, condition, year, month));
|
|
|
+ list.addAll(baseMapper.selectEvaluationList(binSectionId, binStage, type, condition, year, month));
|
|
|
} catch (Exception e) {
|
|
|
return result;
|
|
|
}
|