|
@@ -7,11 +7,13 @@ import com.diagbot.client.AIServiceClient;
|
|
|
import com.diagbot.client.bean.CalculateData;
|
|
|
import com.diagbot.client.bean.Response;
|
|
|
import com.diagbot.client.bean.SearchData;
|
|
|
+import com.diagbot.config.CryptConfiguer;
|
|
|
import com.diagbot.entity.ScaleContent;
|
|
|
import com.diagbot.enums.ScaleTypeEnum;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.ScaleContentService;
|
|
|
+import com.diagbot.util.CryptUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -36,6 +38,8 @@ public class ClinicalFacade {
|
|
|
private ScaleContentService scaleContentService;
|
|
|
@Autowired
|
|
|
private AssembleFacade assembleFacade;
|
|
|
+ @Autowired
|
|
|
+ private CryptConfiguer cryptConfiguer;
|
|
|
|
|
|
/**
|
|
|
* 处理临床数据
|
|
@@ -64,6 +68,10 @@ public class ClinicalFacade {
|
|
|
if (null == response) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "量表没有返回结果");
|
|
|
}
|
|
|
+ //加密
|
|
|
+ if (cryptConfiguer.cryptFlag){
|
|
|
+ CryptUtil.encrypt_char(searchData.getScaleName());
|
|
|
+ }
|
|
|
List<ScaleContent> list = getContent(searchData.getScaleName(), JSON.toJSONString(response));
|
|
|
return list;
|
|
|
}
|