eason.qian 7 years ago
parent 16282c0cab
commit 6e9c1bbc4c

@ -284,7 +284,7 @@
<select id="tradeAnalysisInDay" resultType="com.alibaba.fastjson.JSONObject">
<![CDATA[
SELECT
date_format(#{end}, '%Y-%m-%d') date_str,
date_format(#{begin}, '%Y-%m-%d') date_str,
ifnull(sum(if(l.transaction_type = 'Credit', l.clearing_amount,0)), 0) aud_fee,
ifnull(sum(if(l.transaction_type='Credit' and l.refund_id is null,1,0)),0) order_count
FROM pmt_transactions l

@ -455,14 +455,8 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul
}
]
};
params.end = new Date();
var day = new Date();
day.setDate(day.getDate() - 7);
params.begin = day;
params.begin = $filter('date')(params.begin, 'yyyyMMdd');
params.end = $filter('date')(params.end, 'yyyyMMdd');
$http.get('/dashboard/system/fee_analysis', {params: params}).then(function (resp) {
$scope.analysis.trade_line = chartParser.parse(analysisConfig, resp.data);
$scope.analysis.trade_line = chartParser.parse(analysisConfig, resp.data.reverse());
})
}

Loading…
Cancel
Save