diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java index 1c7edd376..59229c3d2 100644 --- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java @@ -407,7 +407,7 @@ public class RetailAppServiceImp implements RetailAppService { params.put("client_id", client_id); PageList orders = orderMapper.listTransactionsForApp(params, - new PageBounds(query.getPage(), query.getLimit(), Order.formString("create_time.desc"))); + new PageBounds(query.getPage(), query.getLimit(), Order.formString("transaction_time.desc"))); TimeZoneUtils.switchTimeZone(orders, query.getTimezone(), "create_time", "transaction_time", "confirm_time"); ArrayList date_contains = new ArrayList<>(); for (JSONObject order : orders) { @@ -445,7 +445,7 @@ public class RetailAppServiceImp implements RetailAppService { } JSONObject date_params = date_query.toParams(query.getTimezone()); date_params.put("client_id", device.getIntValue("client_id")); - JSONObject analysis = orderMapper.analysisOrders(date_params); + JSONObject analysis = transactionAnalysisMapper.getClientTransaction(date_params); order.put("date_total", analysis); date_contains.add(trade_date); } diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml index 6e85a145e..bf82b0927 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml @@ -455,6 +455,8 @@ o.notify_url, t.transaction_time, t.system_transaction_id, + t.total_surcharge, + t.tax_amount, o.status, o.order_description, o.order_detail, @@ -667,9 +669,9 @@ and o.client_id=#{client_id} - and o.create_time >= #{from} - and o.create_time < #{to} - and date(o.create_time)=date(#{date}) + and t.transaciton_time >= #{from} + and t.transaction_time < #{to} + and date(t.transaction_time)=date(#{date}) and o.gateway in #{gateway}