|
|
@ -112,23 +112,25 @@ public class AlihealthBusController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<ThirdAliDrug> thirdAliDrugsListGjk = null;
|
|
|
|
List<ThirdAliDrug> thirdAliDrugsListGjk = null;
|
|
|
|
|
|
|
|
if(alihealthThirdAliDrugInsertReqeust.getGjkSwitch()){
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
String response = HttpUtil.get(udiUrl + "/udiwms/aliDrug/getDrugLevelList", map);
|
|
|
|
|
|
|
|
BaseResponse<PageSimpleResponse<ThirdAliDrug>> udiDlDeviceResponse =
|
|
|
|
|
|
|
|
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThirdAliDrug>>>() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if (udiDlDeviceResponse != null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
// 查询国家库是否有值 有值直接返回没值查询阿里接口
|
|
|
|
|
|
|
|
thirdAliDrugsListGjk = udiDlDeviceResponse.getData().getList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
log.error("国家库查询阿里产品访问出现错误===" + e.getMessage());
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
String response = HttpUtil.get(udiUrl + "/udiwms/aliDrug/getDrugLevelList", map);
|
|
|
|
|
|
|
|
BaseResponse<PageSimpleResponse<ThirdAliDrug>> udiDlDeviceResponse =
|
|
|
|
|
|
|
|
JSONObject.parseObject(response, new TypeReference<BaseResponse<PageSimpleResponse<ThirdAliDrug>>>() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if (udiDlDeviceResponse != null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
// 查询国家库是否有值 有值直接返回没值查询阿里接口
|
|
|
|
|
|
|
|
thirdAliDrugsListGjk = udiDlDeviceResponse.getData().getList();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
log.error("国家库查询阿里产品访问出现错误===" + e.getMessage());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (thirdAliDrugsListGjk != null && thirdAliDrugsListGjk.size() > 0) {
|
|
|
|
if (thirdAliDrugsListGjk != null && thirdAliDrugsListGjk.size() > 0) {
|
|
|
|
return ResultVOUtils.success(thirdAliDrugsListGjk);
|
|
|
|
return ResultVOUtils.success(thirdAliDrugsListGjk);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|