|
|
|
@ -74,7 +74,11 @@ public class YbClient {
|
|
|
|
|
req.setInput(data);
|
|
|
|
|
req.setSignNo(thrYbSetup.getSignNo());
|
|
|
|
|
reqStr =JSONObject.toJSONString(req);
|
|
|
|
|
// 如果是纯无码类型
|
|
|
|
|
if(!reqStr.contains("drug_trac_codg") ){
|
|
|
|
|
return ResultVOUtils.error(500,"【" + apiNo + "】当前单据是纯无码类型单据无法上传");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
log.error("【" + apiNo + "】医保接口请求参数:" + reqStr);
|
|
|
|
|
ChsMedicalResponse resp = client.execute(req);
|
|
|
|
|
respStr = JSONObject.toJSONString(resp);
|
|
|
|
@ -125,6 +129,7 @@ public class YbClient {
|
|
|
|
|
{
|
|
|
|
|
throw new RuntimeException("未配置医保接口");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 组装访问数据
|
|
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
|
|
// 获取当前日期和时间
|
|
|
|
|