|
@@ -279,6 +279,7 @@ public class SettlementServiceImpl extends BaseSettlementServiceImpl implements
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
table.setCallbackMerchantCount(table.getCallbackMerchantCount() + 1);
|
|
table.setCallbackMerchantCount(table.getCallbackMerchantCount() + 1);
|
|
|
|
|
+ table.setCallbackMerchantTime(new Date());
|
|
|
settlementDepositRecordRepository.save(table);
|
|
settlementDepositRecordRepository.save(table);
|
|
|
if (table.getCallbackMerchantStatus().equals(2) && table.getCallbackMerchantCount() < table.getCallbackMerchantMaxRetryCount()){
|
|
if (table.getCallbackMerchantStatus().equals(2) && table.getCallbackMerchantCount() < table.getCallbackMerchantMaxRetryCount()){
|
|
|
mqSendService.send(ConfigConstants.DEPOSIT_RETRY_CALLBACK, table , 3 * 60 * 1000);
|
|
mqSendService.send(ConfigConstants.DEPOSIT_RETRY_CALLBACK, table , 3 * 60 * 1000);
|
|
@@ -335,6 +336,7 @@ public class SettlementServiceImpl extends BaseSettlementServiceImpl implements
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
table.setCallbackMerchantCount(table.getCallbackMerchantCount() + 1);
|
|
table.setCallbackMerchantCount(table.getCallbackMerchantCount() + 1);
|
|
|
|
|
+ table.setCallbackMerchantTime(new Date());
|
|
|
settlementWithdrawRecordRepository.save(table);
|
|
settlementWithdrawRecordRepository.save(table);
|
|
|
if (table.getCallbackMerchantStatus().equals(2) && table.getCallbackMerchantCount() < table.getCallbackMerchantMaxRetryCount()){
|
|
if (table.getCallbackMerchantStatus().equals(2) && table.getCallbackMerchantCount() < table.getCallbackMerchantMaxRetryCount()){
|
|
|
mqSendService.send(ConfigConstants.WITHDRAW_RETRY_CALLBACK, table , 3 * 60 * 1000);
|
|
mqSendService.send(ConfigConstants.WITHDRAW_RETRY_CALLBACK, table , 3 * 60 * 1000);
|
|
@@ -347,7 +349,6 @@ public class SettlementServiceImpl extends BaseSettlementServiceImpl implements
|
|
|
*/
|
|
*/
|
|
|
@Scheduled(cron = "0 23 0 * * ?")
|
|
@Scheduled(cron = "0 23 0 * * ?")
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- @Override
|
|
|
|
|
public void scheduleCallback() throws ServiceException {
|
|
public void scheduleCallback() throws ServiceException {
|
|
|
log.info("scheduleCallback start");
|
|
log.info("scheduleCallback start");
|
|
|
List<SettlementDepositRecordTable> depositRecordTables = settlementDepositRecordMapper.getAllCallback();
|
|
List<SettlementDepositRecordTable> depositRecordTables = settlementDepositRecordMapper.getAllCallback();
|