提交 869cc0d7 authored 作者: luzhangjian's avatar luzhangjian

feat:测试

上级 bb98241e
......@@ -16,14 +16,7 @@ public class ICDSearchNameReqVO {
@ApiModelProperty(value = "诊断名称【必填】")
@NotBlank(message = "关键字不能为空")
@NotBlank(message = "诊断名称不能为空")
private String keyword;
@ApiModelProperty(value = "页数【必填】")
@NotNull(message = "页数不能为空")
private Integer pageNum;
@ApiModelProperty(value = "记录数【必填】")
@NotNull(message = "记录数不能为空")
private Integer pageSize;
}
......@@ -138,10 +138,7 @@ public class PatientMedicalRecordServiceImpl implements PatientMedicalRecordServ
if (baseResponse.getData() == null) {
return null;
}
// 将body转成json
JSONObject jsonObject = JSON.parseObject(body);
String content = jsonObject.getString("content");
icdNames = JSON.parseObject(JSONObject.toJSONString(content), new TypeReference<List<ICDSearchNameResVO>>(){});
icdNames = JSON.parseObject(JSONObject.toJSONString(baseResponse.getData()), new TypeReference<List<ICDSearchNameResVO>>(){});
log.info("查询诊断名称返回值:{} ",icdNames);
return icdNames;
} catch (Exception e) {
......@@ -181,9 +178,7 @@ public class PatientMedicalRecordServiceImpl implements PatientMedicalRecordServ
List<DiagnosticDetailReqDTO> detailReqDTOList = new ArrayList<DiagnosticDetailReqDTO>(primaryDiagno.length());
for (String diagno : primaryDiagnoArray) {
ICDSearchNameReqVO reVo = new ICDSearchNameReqVO();
reVo.setKeyword(diagno);
reVo.setPageNum(1);
reVo.setPageSize(999999);
reVo.setKeyword(primaryDiagno);
List<ICDSearchNameResVO> icdNames = icdSearchName(reVo);
if (CollectionUtils.isEmpty(icdNames)) {
continue;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论