报表编码:example_member_realtime_visits
1. sql配置中的时间字段为sj,而字段属性中字段编码为date,解析生成字段时报错
Cannot read properties of undefined (reading 'forEach') at Object.formattingInitData
此错误仅在演示系统中存在,2.2.4版本中无此错误
2. 时间格式化错误
将字段编码改为sj后测试,报错系统开小差了,后台报错:
cn.hutool.core.date.DateException: Parse [2025-03-05T10:00] with format [yyyy-MM-dd HH:mm:ss] error!
原因为JeeLowCodeUtils.java中方法getMap2DateTime使用了DateUtil.parseDateTime(value,"yyyy-MM-dd HH:mm:ss"),修改为DateUtil.parse(value)后正常,修改后暂未发现有BUG
项目:JeeLowCode
1.应该是脚本旧数据引起的,你点击一下数据源SQL配置,然后返回点击解析配置生成字段就可以了。
可能查询回来数据为空,因为lowcode_zexample_开头的库不在master里面,如果要数据的话,需要调整一下
2.改为DateUtil.parse确实好点,后续,统一改为这个