jeecgboot / JimuReport

「可视化报表、仪表盘、大屏」积木报表是一款类Excel操作风格,在线拖拽设计的报表工具。功能涵盖: 报表设计、打印设计、图形报表、仪表盘门户设计、大屏设计等,完全免费!秉承“简单、易用、专业”的产品理念,极大的降低报表开发难度、缩短开发周期、解决各类报表难题。
http://jimureport.com
GNU General Public License v3.0
6.47k stars 1.65k forks source link

新建数据大屏,保存时报错 #3139

Open brantzzu opened 5 hours ago

brantzzu commented 5 hours ago
版本号:

1.9.0

问题描述:

新建数据大屏,点击保存按钮提示操作失败。

错误日志&截图:

54ca70d61b36ef932d4bd01d92f3226b_720

`package org.jeecg.modules.drag.b;

import java.text.MessageFormat; import java.util.Base64; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.SynchronousQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringUtils; import org.jeecg.modules.drag.config.common.Result; import org.jeecg.modules.drag.config.page.DragPage; import org.jeecg.modules.drag.e.a; import org.jeecg.modules.drag.e.i; import org.jeecg.modules.drag.e.m; import org.jeecg.modules.drag.entity.OnlDragPage; import org.jeecg.modules.drag.service.IOnlDragDataSourceService; import org.jeecg.modules.drag.service.IOnlDragPageService; import org.jeecg.modules.jmreport.config.JmReportBaseConfig; import org.jeecg.modules.jmreport.config.client.JmReportTokenClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController;

@RestController("onlDragPageController") @RequestMapping({"/drag/page"}) PostMapping({"/add"}) public Result a(@RequestBody OnlDragPage var1, HttpServletRequest var2) { Result var3 = new Result();

    try {
        var3 = this.a(var2, var3);
        if (!var3.isSuccess()) {
            return var3;
        }

        String var4 = m.c(var2);
        String var5 = m.b(var2);
        if (StringUtils.isNotBlank(var4)) {
            var1.setLowAppId(var4);
        }

        if (StringUtils.isNotBlank(var5)) {
            var1.setTenantId(Integer.parseInt(var5));
        }`

经查是变量var5返回值为undefined 导致StringUtils.isNotBlank(var5) 这行代码报错

重现步骤:

友情提示(为了提高issue处理效率):

zhangdaiscott commented 5 hours ago

贴错误

jeecgos commented 53 minutes ago

sq