|
|
|
@ -1,9 +1,11 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.management.clearing.core.impl;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.PaymentApi;
|
|
|
|
|
import au.com.royalpay.payment.core.beans.OrderValidationResult;
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.InvalidShortIdException;
|
|
|
|
|
import au.com.royalpay.payment.core.tasksupport.SettlementSupport;
|
|
|
|
|
import au.com.royalpay.payment.core.utils.ExtParamsUtils;
|
|
|
|
|
import au.com.royalpay.payment.core.validation.domain.ChannelValidationTask;
|
|
|
|
|
import au.com.royalpay.payment.manage.management.clearing.core.CleanService;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.*;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.TaskManualSettleMapper;
|
|
|
|
@ -147,6 +149,8 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
private Locker locker;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientIncrementalMapper clientIncrementalMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private ChannelValidationTask channelValidationTask;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientDeviceMapper clientDeviceMapper;
|
|
|
|
@ -1528,14 +1532,14 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
|
return JSON.parseObject(reportItem.getString("result"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
JSONObject report = paymentApi.validTransactions(dt, fix);
|
|
|
|
|
OrderValidationResult report = channelValidationTask.validTransactions(dt);
|
|
|
|
|
JSONObject log = new JSONObject();
|
|
|
|
|
log.put("valid_date", dt);
|
|
|
|
|
log.put("create_time", new Date());
|
|
|
|
|
log.put("result", report.toJSONString());
|
|
|
|
|
log.put("result", report.getReport().toJSONString());
|
|
|
|
|
validationLogMapper.removeByDate(dt);
|
|
|
|
|
validationLogMapper.save(log);
|
|
|
|
|
return report;
|
|
|
|
|
return JSON.parseObject(log.getString("result"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|