...
|
...
|
@@ -1106,6 +1106,13 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
tradeBills.setTradeStatus(100);
|
|
|
tradeBills.setCreateTime(now);
|
|
|
addTradeBills(tradeBills);
|
|
|
|
|
|
OrdersPayTransfer transferSuccess = new OrdersPayTransfer();
|
|
|
transferSuccess.setId(transfer.getId());
|
|
|
transferSuccess.setAlipayTradeId(orderId);
|
|
|
transferSuccess.setStatus(1);
|
|
|
transferSuccess.setUpdateTime(now);
|
|
|
ordersPayTransferMapper.updateByPrimaryKeySelective(transferSuccess);
|
|
|
} else if(exceedMillion(jsonObject)) {
|
|
|
Map<String, String> mapResult = transferWhenExceedMillion(transfer.getId(), tradeBills, orderCode, account, amount, now);
|
|
|
String resultStr = JSON.toJSONString(mapResult);
|
...
|
...
|
@@ -1178,13 +1185,14 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
@Autowired
|
|
|
private ConfigReader configReader;
|
|
|
|
|
|
private void checkTransferExist(long orderCode) {
|
|
|
private OrdersPayTransfer checkTransferExist(long orderCode) {
|
|
|
// 查看是否已经有转账记录
|
|
|
OrdersPayTransfer exist = ordersPayTransferMapper.selectByBuyerOrderCode(orderCode);
|
|
|
if (exist != null) {
|
|
|
logger.warn("OrdersPayTransfer has exist, orderCode is {}", orderCode);
|
|
|
throw new ServiceException(400, "订单已经处理过");
|
|
|
}
|
|
|
return exist;
|
|
|
}
|
|
|
|
|
|
private OrdersPayTransfer createTransfer(long buyerOrderCode, long sellerOrderCode, Integer transferType, String alipayAccount,
|
...
|
...
|
|