|
@@ -2,9 +2,11 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.diagbot.biz.push.vo.SearchVO;
|
|
|
+import com.diagbot.config.CryptConfiguer;
|
|
|
import com.diagbot.dto.EvaluationDTO;
|
|
|
import com.diagbot.service.impl.EvaluationServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
+import com.diagbot.util.CryptUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.EvaluationDiseaseNameVO;
|
|
|
import com.google.common.collect.Lists;
|
|
@@ -19,6 +21,8 @@ public class EvaluationFacade extends EvaluationServiceImpl {
|
|
|
|
|
|
@Autowired
|
|
|
PushFacade pushFacade;
|
|
|
+ @Autowired
|
|
|
+ private CryptConfiguer cryptConfiguer;
|
|
|
|
|
|
/**
|
|
|
* 获取管理与评估模板接口
|
|
@@ -31,11 +35,15 @@ public class EvaluationFacade extends EvaluationServiceImpl {
|
|
|
return Lists.newArrayList();
|
|
|
}
|
|
|
|
|
|
+ Map<String, JSONObject> jsonobject = pushFacade.getManagementEvaluationContent(searchVO);
|
|
|
EvaluationDiseaseNameVO evaluationdiseaseNameVO = new EvaluationDiseaseNameVO();
|
|
|
BeanUtil.copyProperties(searchVO, evaluationdiseaseNameVO);
|
|
|
- List<EvaluationDTO> evaluationList = this.getEvaluationModule(evaluationdiseaseNameVO);
|
|
|
|
|
|
- Map<String, JSONObject> jsonobject = pushFacade.getManagementEvaluationContent(searchVO);
|
|
|
+ if (cryptConfiguer.cryptFlag) {
|
|
|
+ evaluationdiseaseNameVO.getDiseaseName().setUniqueName(CryptUtil.encrypt_char(evaluationdiseaseNameVO.getDiseaseName().getUniqueName()));
|
|
|
+ }
|
|
|
+
|
|
|
+ List<EvaluationDTO> evaluationList = this.getEvaluationModule(evaluationdiseaseNameVO);
|
|
|
if (jsonobject == null) {
|
|
|
return evaluationList;
|
|
|
}
|