|
@@ -34,6 +34,7 @@ public class YibaoHttpUtil {
|
|
|
Overview singleParam, String responce) {
|
|
|
ResultVo resultVo = null;
|
|
|
String[] links = YbLinksUtil.uploadLinks.get(linkKey);
|
|
|
+ int count = 0;
|
|
|
for (String link : links) {
|
|
|
if (null == listParam) {
|
|
|
resultVo = httpPost(link + mode, singleParam, responce);
|
|
@@ -43,6 +44,7 @@ public class YibaoHttpUtil {
|
|
|
if (resultVo.getCode() != 10) {
|
|
|
break;
|
|
|
} else {
|
|
|
+ count += 1;
|
|
|
if (null != resultVo.getData()) {
|
|
|
if (null == listParam) {
|
|
|
if (resultVo.getData().toString().equals(singleParam.getInpatientNo())) {
|
|
@@ -67,6 +69,9 @@ public class YibaoHttpUtil {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (count == 3) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "所有上传进程均被占用,请稍后再试。");
|
|
|
+ }
|
|
|
return resultVo;
|
|
|
}
|
|
|
}
|