批量下发时不打印json数据日志
This commit is contained in:
@@ -429,7 +429,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
configCompileList.add(maatCfg);
|
configCompileList.add(maatCfg);
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -441,7 +441,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -600,7 +600,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
configCompileList.add(maatCfg);
|
configCompileList.add(maatCfg);
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -612,7 +612,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -789,7 +789,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
configCompileList.add(maatCfg);
|
configCompileList.add(maatCfg);
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -801,7 +801,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -959,7 +959,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
configCompileList.add(maatCfg);
|
configCompileList.add(maatCfg);
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -971,7 +971,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -1188,7 +1188,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -1200,7 +1200,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -1396,7 +1396,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -1408,7 +1408,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
String json=gsonToJson(maatBean);
|
String json=gsonToJson(maatBean);
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -1571,7 +1571,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmpty(configCompileList.size())){
|
if(!StringUtil.isEmpty(configCompileList.size())){
|
||||||
@@ -1598,7 +1598,7 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {//未下发过的compile直接走正常maat配置接口
|
}else {//未下发过的compile直接走正常maat配置接口
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
@@ -1741,14 +1741,14 @@ public class ConfigSynchronizationService extends BaseService{
|
|||||||
}
|
}
|
||||||
|
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
if(page.isLastPage()){
|
if(page.getLast()==page.getPageNo()){
|
||||||
hasData = false;
|
hasData = false;
|
||||||
}
|
}
|
||||||
if(newList.size()>0){
|
if(newList.size()>0){
|
||||||
//调用服务接口下发配置数据
|
//调用服务接口下发配置数据
|
||||||
String json=gsonToJson(newList);
|
String json=gsonToJson(newList);
|
||||||
if(isUpdateCfg) {
|
if(isUpdateCfg) {
|
||||||
logger.info("配置批量下发:"+json);
|
// logger.info("配置批量下发:"+json);
|
||||||
//调用服务接口同步回调类配置
|
//调用服务接口同步回调类配置
|
||||||
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
ToMaatResult result = ConfigServiceUtil.postMaatCfg(json);
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
|
|||||||
@@ -34,7 +34,16 @@
|
|||||||
// });
|
// });
|
||||||
// ajaxConnPercent();
|
// ajaxConnPercent();
|
||||||
});
|
});
|
||||||
|
/** 打印预览,弹出新页面 **/
|
||||||
|
function printPreview(path, title, content){
|
||||||
|
var options = {
|
||||||
|
popTitle : title+'打印预览',
|
||||||
|
mode : 'popup',
|
||||||
|
popClose : false,
|
||||||
|
extraCss : path+'/css/table.css'
|
||||||
|
};
|
||||||
|
$("div#"+content+"").printArea(options);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user