|
|
@@ -183,7 +183,16 @@ public class ConsumeBusiness {
|
|
|
*/
|
|
|
@Async
|
|
|
public void postOrderAsync(ConsumptionBo bo, String mac, String xfPwd) {
|
|
|
- R<ErrorInfo> result = SpringUtils.getAopProxy(this).postOrder(bo, mac, xfPwd);
|
|
|
+ R<ErrorInfo> result=null;
|
|
|
+ for (int i = 0; i < 3; i++) {
|
|
|
+ result = SpringUtils.getAopProxy(this).postOrder(bo, mac, xfPwd);
|
|
|
+ if (R.isSuccess(result)) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (R.isError(result)) {
|
|
|
+ log.info("[上传交易异步处理尝试3次失败,需要手工处理]-[{}]", JSONUtil.toJsonStr(bo));
|
|
|
+ }
|
|
|
log.info("[上传交易异步处理完成]");
|
|
|
}
|
|
|
|