...
|
...
|
@@ -25,6 +25,9 @@ public class ReportTest { |
|
|
token = loginAndGetToken("user1","pass1");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告列表查询接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testList(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
...
|
...
|
@@ -35,10 +38,13 @@ public class ReportTest { |
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告详情查询接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testDetail(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("report_id","1");
|
|
|
params.put("report_id","77");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("sign",HttpTools.getSign(params));
|
...
|
...
|
@@ -46,10 +52,13 @@ public class ReportTest { |
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 健康评分接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testScore(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("report_id","1");
|
|
|
params.put("report_id","77");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("sign",HttpTools.getSign(params));
|
...
|
...
|
@@ -57,6 +66,9 @@ public class ReportTest { |
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告指标解释查询接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testItemInfo(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
...
|
...
|
@@ -70,6 +82,9 @@ public class ReportTest { |
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告指标解释查询接口(过滤html标签)
|
|
|
*/
|
|
|
@Test
|
|
|
public void testItemInfoPureHtml(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
...
|
...
|
@@ -83,12 +98,15 @@ public class ReportTest { |
|
|
System.out.println(response);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 体检报告指标曲线查询接口
|
|
|
*/
|
|
|
@Test
|
|
|
public void testItemGraph(){
|
|
|
Map<String,String> params = new HashMap<String, String>();
|
|
|
params.put("itemId","10");
|
|
|
params.put("stime","2016-01-01 10:32:00");
|
|
|
params.put("etime","2016-12-22 10:32:00");
|
|
|
params.put("stime","2010-01-01 10:32:00");
|
|
|
params.put("etime","2019-12-22 10:32:00");
|
|
|
params.put("t",HttpTools.getNow());
|
|
|
params.put("type","1");
|
|
|
params.put("sign",HttpTools.getSign(params));
|
...
|
...
|
|