|
@ -5,6 +5,7 @@ import com.yihu.wlyy.util.HttpClientUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
@ -13,6 +14,7 @@ import java.util.Map;
|
|
|
* Created by humingfen on 2018/09/29.
|
|
|
*/
|
|
|
@Service
|
|
|
@Transactional
|
|
|
public class ScreenResultManageService {
|
|
|
|
|
|
@Value("${wlyy.url}")
|
|
@ -20,6 +22,11 @@ public class ScreenResultManageService {
|
|
|
@Autowired
|
|
|
private HttpClientUtil httpClientUtil;
|
|
|
|
|
|
/**
|
|
|
* 获取筛查结果详情
|
|
|
* @param code
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getScreenResultDetail(String code) {
|
|
|
String url = wlyyUrl + "doctor/screen/getScreenResultDetail";
|
|
|
String response = "";
|
|
@ -32,4 +39,22 @@ public class ScreenResultManageService {
|
|
|
}
|
|
|
return JSONObject.parseObject(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取筛查问卷详情
|
|
|
* @param templateCode
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONObject getScreenDetail(String templateCode) {
|
|
|
String url = wlyyUrl + "/doctor/questionnaire/getAllQuestions";
|
|
|
String response = "";
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("surveyTemplateCode", templateCode);
|
|
|
try {
|
|
|
response = httpClientUtil.httpPost(url, params);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return JSONObject.parseObject(response);
|
|
|
}
|
|
|
}
|