|
|
@ -23,6 +23,7 @@ import au.com.royalpay.payment.tools.defines.TradeType;
|
|
|
|
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
|
|
|
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.ServerErrorException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.ServerErrorException;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.tools.merchants.core.MerchantInfoProvider;
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.PartnerRole;
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.PartnerRole;
|
|
|
|
import au.com.royalpay.payment.tools.utils.CurrencyAmountUtils;
|
|
|
|
import au.com.royalpay.payment.tools.utils.CurrencyAmountUtils;
|
|
|
@ -127,6 +128,8 @@ public class TradeLogServiceImpl implements TradeLogService {
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ClientDeviceMapper clientDeviceMapper;
|
|
|
|
private ClientDeviceMapper clientDeviceMapper;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private MerchantInfoProvider merchantInfoProvider;
|
|
|
|
|
|
|
|
|
|
|
|
// @Value("classpath:/jasper/trans_flow.jasper")
|
|
|
|
// @Value("classpath:/jasper/trans_flow.jasper")
|
|
|
|
// @Value("classpath:/jasper/trans_flow_new.jasper")
|
|
|
|
// @Value("classpath:/jasper/trans_flow_new.jasper")
|
|
|
@ -522,7 +525,8 @@ public class TradeLogServiceImpl implements TradeLogService {
|
|
|
|
JSONObject params = query.toParams(timezone);
|
|
|
|
JSONObject params = query.toParams(timezone);
|
|
|
|
clientManager.validateClients(client_id, params);
|
|
|
|
clientManager.validateClients(client_id, params);
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
params.put("client_id", client_id);
|
|
|
|
|
|
|
|
JSONObject mchConfig = merchantInfoProvider.getMchExtParams(partner.getIntValue("client_id"));
|
|
|
|
|
|
|
|
params.put("hide_sub_mch", mchConfig.getBooleanValue("hide_sub_mch"));
|
|
|
|
List<JSONObject> logs = transactionMapper.listTransFlow(params);
|
|
|
|
List<JSONObject> logs = transactionMapper.listTransFlow(params);
|
|
|
|
TimeZoneUtils.switchTimeZone(logs, timezone, "create_time", "confirm_time", "transaction_time");
|
|
|
|
TimeZoneUtils.switchTimeZone(logs, timezone, "create_time", "confirm_time", "transaction_time");
|
|
|
|
Paginator paginator = new Paginator(query.getPage(), query.getLimit(), logs.size());
|
|
|
|
Paginator paginator = new Paginator(query.getPage(), query.getLimit(), logs.size());
|
|
|
|