Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

3.0版本Online表单开发表单问题 #3354

Closed
lulusoft opened this issue Jan 6, 2022 · 9 comments
Closed

3.0版本Online表单开发表单问题 #3354

lulusoft opened this issue Jan 6, 2022 · 9 comments

Comments

@lulusoft
Copy link

lulusoft commented Jan 6, 2022

版本号:

jeecg-boot-master3.0

问题描述:

1、数据是mysql,Online表单开发-导入导入数据库表,提示
java.sql.SQLSyntaxErrorException: Table 'jeecg-boot.user_tab_cols' doesn't exist
2、切换oracle,修改表单,提示保存失败,后台日志org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ew.paramNameValuePairs.MPGENVAL1', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #35 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111

截图&代码:

image

image

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

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@zhangdaiscott
Copy link
Member

详细说明操作步骤

@lulusoft
Copy link
Author

lulusoft commented Jan 6, 2022

详细说明操作步骤:
1、数据源配置使用mysql,在Online表单开发模块点击“导入数据库表”,数据表加载不出来,后台提示“Table 'jeecg-boot.user_tab_cols' doesn't exist”,但使用了oracle是没这个问题的,应该是代码里写死了这个表名
2、数据源配置使用oracle,在Online表单开发模块,编辑某条表单,点击保存是报“保存失败”,后台提示“无效的列类型: 1111”,但第一次新增保存不报错,只修改时有这个问题。mysql环境下编辑保存不存在这个问题

@zhangdaiscott
Copy link
Member

你代码生成器的数据库配置与平台不一致?

@yangzhiwei666
Copy link

请问解决了吗,我也遇到这样的问题

@yangzhiwei666
Copy link

yangzhiwei666 commented Feb 15, 2022

最终看了源码发现在判断数据库类型的时候,判断如图
image
然后正好我的数据库名里包含dm,就给我报这个问题了

@alisa-yang
Copy link

image
你的jdbc url中同时是匹配上了mysql和oracle,user_tab_cols是oracle的。
我的url里有一个参数&transformedbitisboolean=true&结果匹配上了"edb"导致判断oracle的结果也为true

@zhangdaiscott
Copy link
Member

明白了

@zhangdaiscott zhangdaiscott reopened this Jun 9, 2022
@zhangdaiscott
Copy link
Member

给你点个赞

@zhangdaiscott
Copy link
Member

升级依赖,需要配置私服

<dependency>
  <groupId>org.jeecgframework.boot</groupId>
  <artifactId>codegenerate</artifactId>
  <version>1.3.9</version>
</dependency>

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants