|
@@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
-import javax.print.attribute.standard.MediaSize;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -119,15 +118,15 @@ public class ClinicalFacade {
|
|
|
|
|
|
/**
|
|
|
* 计算接口
|
|
|
+ *
|
|
|
* @param calculateData
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String, Object> scaleCalc(CalculateData calculateData) {
|
|
|
- Response<Map<String, Object>> response = aiServiceClient.scaleCalc(calculateData);
|
|
|
- if (response == null || response.getData() == null) {
|
|
|
+ Map<String, Object> response = aiServiceClient.scaleCalc(calculateData);
|
|
|
+ if (response == null) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "计算没有返回结构");
|
|
|
}
|
|
|
-
|
|
|
- return response.getData();
|
|
|
+ return response;
|
|
|
}
|
|
|
}
|