|
@@ -13,6 +13,7 @@ import com.ims.eval.entity.dto.response.IndicatorResDTO;
|
|
|
import com.ims.eval.entity.dto.response.OrganizationEvaluationInfoResDTO;
|
|
|
import com.ims.eval.service.*;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.ims.eval.service.custom.WorkflowService;
|
|
|
import com.ims.eval.util.MathCalculatorUtil;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.commons.io.output.ByteArrayOutputStream;
|
|
@@ -25,6 +26,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
@@ -62,7 +64,7 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
private IEvaluationScoreCountService iEvaluatioinScoreCountService;
|
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private CalculateIndicatorItemInfoMapper calculateIndicatorItemInfoMapper;
|
|
|
|
|
|
@Autowired
|
|
@@ -75,6 +77,9 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
@Autowired
|
|
|
private IOrganizationEvaluationRuleService organizationEvaluationRuleService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private WorkflowService workflowService;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -384,6 +389,15 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
public Map getEvaluationInfoList(String organizationEvaluationId, String indicatorId, String binSection, String binStage, HttpServletRequest request) {
|
|
|
|
|
|
Map data = new HashMap();
|
|
|
+
|
|
|
+ OrganizationEvaluation evaluation = organizationEvaluationService.getById(organizationEvaluationId);
|
|
|
+ boolean instFlag = false;
|
|
|
+ if(StringUtils.isNotEmpty(evaluation.getInstId())){
|
|
|
+ instFlag = workflowService.todoTaskList2(evaluation.getInstId(),request);
|
|
|
+ }
|
|
|
+
|
|
|
+ data.put("instFlag",instFlag);
|
|
|
+
|
|
|
boolean titlemark = true;//标记生成标题
|
|
|
List<OrganizationEvaluationInfoResDTO> infoResDTOList = baseMapper.selectEvaluationInfoList(organizationEvaluationId, indicatorId,binSection,binStage,"");
|
|
|
List<IndicatorDictionary> dictionaryList = indicatorDictionaryService.list("", indicatorId, "", "");
|
|
@@ -449,7 +463,6 @@ public class OrganizationEvaluationInfoServiceImpl extends ServiceImpl<Organizat
|
|
|
mark = false;
|
|
|
}
|
|
|
|
|
|
- System.out.println(resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getId());
|
|
|
//指标属性
|
|
|
indicatormap.put(d.getChildCode() + "_" + d.getOptionCode(), null == resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getNonQuantifiedValue() ? "" : resultMap.get(d.getChildCode()+"_"+d.getOptionCode()).getNonQuantifiedValue());
|
|
|
//指标id
|