kira 6 years ago
commit 4639d1b530

@ -36,6 +36,7 @@ public class AnalysisBean {
private String amount_from; private String amount_from;
private String amount_to; private String amount_to;
private String bd_name; private String bd_name;
private String timezone;
public JSONObject toParams(String timezone) { public JSONObject toParams(String timezone) {
JSONObject params = new JSONObject(); JSONObject params = new JSONObject();
if (timezone != null) { if (timezone != null) {
@ -229,4 +230,12 @@ public class AnalysisBean {
public void setBd_name(String bd_name) { public void setBd_name(String bd_name) {
this.bd_name = 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") @ManagerMapping("/common_analysis_1")
public JSONObject commonAnalysis1(AnalysisBean analysis, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) { 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); orgManager.checkOrg(manager,params);
return dashboardService.getCommonAnalysis1(params); return dashboardService.getCommonAnalysis1(params);
} }

@ -1,5 +1,6 @@
package au.com.royalpay.payment.manage.mappers.risk; package au.com.royalpay.payment.manage.mappers.risk;
import cn.yixblog.support.mybatis.autosql.annotations.AdvanceSelect;
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper; import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql; import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
import cn.yixblog.support.mybatis.autosql.annotations.SqlType; import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
@ -26,6 +27,7 @@ public interface RiskAttentionMerchantsAMapper {
JSONObject findByClientMoniker(@Param("client_moniker") String client_moniker); JSONObject findByClientMoniker(@Param("client_moniker") String client_moniker);
@AutoSql(type = SqlType.SELECT) @AutoSql(type = SqlType.SELECT)
@AdvanceSelect(addonWhereClause = "is_valid=1")
PageList<JSONObject> query(JSONObject params, PageBounds pagination); PageList<JSONObject> query(JSONObject params, PageBounds pagination);
} }

@ -28,7 +28,8 @@ require.config({
dragdrop: 'static/lib/angular-plugins/angular-drag-and-drop-lists.min', dragdrop: 'static/lib/angular-plugins/angular-drag-and-drop-lists.min',
echarts: 'static/lib/echarts/echarts.common.min', echarts: 'static/lib/echarts/echarts.common.min',
angularEcharts: 'static/commons/angular-echarts', 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: { shim: {
'angular': {deps: ['jquery'], exports: 'angular'}, 'angular': {deps: ['jquery'], exports: 'angular'},

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

@ -30,7 +30,8 @@ require.config({
ueditor: 'static/lib/ueditor/ueditor.all.min', ueditor: 'static/lib/ueditor/ueditor.all.min',
ueditorConfig: 'static/lib/ueditor/ueditor.config', ueditorConfig: 'static/lib/ueditor/ueditor.config',
angularEcharts: 'static/commons/angular-echarts', 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: { shim: {
'angular': {deps: ['jquery', 'decimal'], exports: 'angular'}, 'angular': {deps: ['jquery', 'decimal'], exports: 'angular'},

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