hotfix: 优化用户数查询

master
Yixian 3 years ago
parent ed58aae8ec
commit 400084bbaa

@ -114,7 +114,6 @@ public class DashboardServiceImpl implements DashboardService, DashboardAnalysis
if (params.getDate("end").after(new Date())) {
if (params.getDate("begin").compareTo(DateUtils.addDays(params.getDate("end"), -1)) == 0) {
res.put("total_customers", transactionAnalysisMapper.countCustomers(params));
res.put("old_customers", transactionAnalysisMapper.countOldCustomers(params));
res.put("traded_partners", clientAnalysisMapper.countTradedPartners(params));
} else {
res = getYesOrLasMonth(params);

@ -139,8 +139,6 @@ define(['angular', 'uiRouter', 'jstz', 'uiBootstrap', 'angularEcharts'], functio
$scope.analysis.traded_partners = resp.data.traded_partners;
$scope.analysis.total_customers = resp.data.total_customers;
$scope.analysis.new_customers = resp.data.total_customers - resp.data.old_customers;
$scope.analysis.old_customers = resp.data.old_customers;
});
$http.get('/dashboard/system/common_analysis_4', {params: $scope.currentScale.params()}).then(function (resp) {

@ -233,11 +233,9 @@
<!--ng-bind="analysis.top_amount_order.aud_fee|currency:'AUD '" ng-if="analysis.top_amount_order"></p>-->
<!--<p class="description-text" ng-bind="analysis.top_amount_order.short_name" ng-if="analysis.top_amount_order"></p>-->
<p class="description-header text-green">
<label>{{analysis.total_customers}}</label> /
<label>{{analysis.new_customers}}</label> /
<label>{{analysis.old_customers}}</label>
<label>{{analysis.total_customers}}</label>
</p>
<p class="description-text">总消费人数/新客户/老客户</p>
<p class="description-text">总消费人数</p>
</div>
</div>
<div class="col-sm-3 col-xs-6">

Loading…
Cancel
Save