|
|
|
@ -70,7 +70,7 @@ public class AlihealthYljgUtils {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public BaseResponse<AlihealthYljgUploadinoutbillReqeust> relCodeInsert(AlihealthRelCodeInsertYljgReqeust reqeust) {
|
|
|
|
|
AlihealthLsydListupoutDetailResponse alihealthLsydListupoutDetailResponse = null;
|
|
|
|
|
AlihealthYljgListupoutDetailResponse alihealthYljgListupoutDetailResponse = null;
|
|
|
|
|
AlihealthYljgUploadinoutbillReqeust alihealthYljgUploadinoutbillReqeust = reqeust.getAlihealthYljgUploadinoutbillReqeust();
|
|
|
|
|
if (reqeust != null
|
|
|
|
|
&& org.apache.commons.lang3.StringUtils.isNotEmpty(alihealthYljgUploadinoutbillReqeust.getApp_key())
|
|
|
|
@ -80,7 +80,7 @@ public class AlihealthYljgUtils {
|
|
|
|
|
|
|
|
|
|
Map map = alihealthUtils.disposeSign(alihealthYljgUploadinoutbillReqeust, reqeust.getAppSecret());
|
|
|
|
|
String json = HttpUtil.get(alihealthUrl, map);
|
|
|
|
|
alihealthLsydListupoutDetailResponse = new AlihealthLsydListupoutDetailResponse(json);
|
|
|
|
|
alihealthYljgListupoutDetailResponse = new AlihealthYljgListupoutDetailResponse(json);
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ResultVOUtils.error("阿里健康接口调用失败===" + e.getMessage());
|
|
|
|
@ -89,11 +89,11 @@ public class AlihealthYljgUtils {
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error("阿里健康接口调用失败===用户找不到或者key和秘钥为空");
|
|
|
|
|
}
|
|
|
|
|
if (alihealthLsydListupoutDetailResponse.judgeCall()) {
|
|
|
|
|
if (alihealthYljgListupoutDetailResponse.judgeCall()) {
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(alihealthLsydListupoutDetailResponse);
|
|
|
|
|
return ResultVOUtils.success(alihealthYljgListupoutDetailResponse);
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error("阿里健康接口调用失败===" + alihealthLsydListupoutDetailResponse.getMsg_info());
|
|
|
|
|
return ResultVOUtils.error("阿里健康接口调用失败===" + alihealthYljgListupoutDetailResponse.getMsg_info());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|