|
|
@@ -403,8 +403,8 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
expenseFlowDao.save(entity);
|
|
|
return ResultContent.buildSuccess(entity);
|
|
|
}
|
|
|
- expenseFlowDao.save(entity);
|
|
|
|
|
|
+ expenseFlowDao.save(entity);
|
|
|
if (entity.getOrderModeType() == OrderModeType.Consume) {
|
|
|
// 支付
|
|
|
payCallService.payOrder(entity);
|
|
|
@@ -885,11 +885,11 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
OrderState orderState = entity.getOrderState();
|
|
|
// 订单参数验证成功,并且 未支付
|
|
|
if (entity.getVerifyParamIsSuccess() != null && entity.getVerifyParamIsSuccess() && orderState == OrderState.WAIT_PAYMENT) {
|
|
|
- if (entity.getExpirationTime() <= System.currentTimeMillis()) {
|
|
|
+ if (entity.getExpirationTime() >= System.currentTimeMillis()) {
|
|
|
isCanPay = Boolean.TRUE;
|
|
|
} else {
|
|
|
payMsg = "支付超时";
|
|
|
-
|
|
|
+ markOrderTimeOut(entity);
|
|
|
}
|
|
|
} else {
|
|
|
payMsg = entity.getVerifyParamMsg();
|
|
|
@@ -909,6 +909,7 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
if (entity != null) {
|
|
|
Map<String, Object> standardData = new HashMap<>();
|
|
|
standardData.put("orderState", OrderState.CLOSED);
|
|
|
+ standardData.put("payRemark", "超时关闭");
|
|
|
commonService.updateData(entity.getId(), standardData, ExpenseFlow.class.getSimpleName());
|
|
|
}
|
|
|
}
|