|
|
|
@ -79,18 +79,25 @@ public class YbClient {
|
|
|
|
|
ChsMedicalResponse resp = client.execute(req);
|
|
|
|
|
log.error("【" + apiNo + "】医保接口返回结果:" + JSONObject.toJSONString(resp));
|
|
|
|
|
// ChsMedicalResponse resp = new ChsMedicalResponse();
|
|
|
|
|
log.error("aaaa");
|
|
|
|
|
|
|
|
|
|
if(resp.getIsSuccess() == true
|
|
|
|
|
&& org.apache.commons.lang3.StringUtils.isNotEmpty(resp.getAppid())
|
|
|
|
|
&& "0".equals(resp.getInfCode())
|
|
|
|
|
&& org.apache.commons.lang3.StringUtils.isEmpty(resp.getErrMsg())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
){
|
|
|
|
|
if(apiNo.equals("3505A") && "成功".equals(resp.getErrMsg())){
|
|
|
|
|
return ResultVOUtils.success("【" + apiNo + "】上传医保成功");
|
|
|
|
|
|
|
|
|
|
}else if(apiNo.equals("3502A") && org.apache.commons.lang3.StringUtils.isEmpty(resp.getErrMsg())){
|
|
|
|
|
return ResultVOUtils.success("【" + apiNo + "】上传医保成功");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.error(500,"【" + apiNo + "】上传医保失败==="+resp.getErrMsg());
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|