fix dashboard今日数据

master
taylor.dang 6 years ago
parent fd4cd788d9
commit e430d7804d

@ -36,6 +36,7 @@ public class AnalysisBean {
private String amount_from;
private String amount_to;
private String bd_name;
private String timezone;
public JSONObject toParams(String timezone) {
JSONObject params = new JSONObject();
if (timezone != null) {
@ -229,4 +230,12 @@ public class AnalysisBean {
public void setBd_name(String bd_name) {
this.bd_name = bd_name;
}
public String getTimezone() {
return timezone;
}
public void setTimezone(String timezone) {
this.timezone = timezone;
}
}

@ -31,7 +31,7 @@ public class DashboardController {
@ManagerMapping("/common_analysis_1")
public JSONObject commonAnalysis1(AnalysisBean analysis, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
JSONObject params = analysis.toParams(null);
JSONObject params = analysis.toParams(analysis.getTimezone());
orgManager.checkOrg(manager,params);
return dashboardService.getCommonAnalysis1(params);
}

@ -28,7 +28,8 @@ require.config({
dragdrop: 'static/lib/angular-plugins/angular-drag-and-drop-lists.min',
echarts: 'static/lib/echarts/echarts.common.min',
angularEcharts: 'static/commons/angular-echarts',
decimal:'static/lib/decimal/decimal.min'
decimal:'static/lib/decimal/decimal.min',
jstz: 'static/lib/timezone/jstz-1.0.4.min'
},
shim: {
'angular': {deps: ['jquery'], exports: 'angular'},

@ -28,7 +28,8 @@ require.config({
dragdrop: 'static/lib/angular-plugins/angular-drag-and-drop-lists.min',
echarts: 'static/lib/echarts/echarts.common.min',
angularEcharts: 'static/commons/angular-echarts',
decimal:'static/lib/decimal/decimal.min'
decimal:'static/lib/decimal/decimal.min',
jstz: 'static/lib/timezone/jstz-1.0.4.min'
},
shim: {
'angular': {deps: ['jquery','decimal'], exports: 'angular'},

@ -30,7 +30,8 @@ require.config({
ueditor: 'static/lib/ueditor/ueditor.all.min',
ueditorConfig: 'static/lib/ueditor/ueditor.config',
angularEcharts: 'static/commons/angular-echarts',
decimal: 'static/lib/decimal/decimal.min'
decimal: 'static/lib/decimal/decimal.min',
jstz: 'static/lib/timezone/jstz-1.0.4.min'
},
shim: {
'angular': {deps: ['jquery', 'decimal'], exports: 'angular'},

@ -2,7 +2,7 @@
* Created by davep on 2016-07-27.
*/
define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angular) {
define(['angular', 'uiRouter', 'jstz', 'uiBootstrap', 'angularEcharts'], function (angular) {
'use strict';
var colors = ['#00c0ef', '#00a65a', '#ff851b', '#f39c12', '#d81b60', '#605ca8', '#dd4b39', '#008080', '#8B008B', '#D2691E', '#708090'];
var app = angular.module('dashboardApp', ['ui.router', 'ui.bootstrap', 'ngEcharts']);
@ -25,7 +25,8 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul
params: function () {
return {
begin: $filter('date')(new Date(), 'yyyyMMdd'),
end: $filter('date')(new Date(), 'yyyyMMdd')
end: $filter('date')(new Date(), 'yyyyMMdd'),
timezone: jstz.determine().name()
}
}
},

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save