Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

树开表单列的字段如果带着下划线会导致生成的 *mapper.xml 中 SQL语句出错 #4649

Closed
chzhm159 opened this issue Mar 7, 2023 · 2 comments

Comments

@chzhm159
Copy link

chzhm159 commented Mar 7, 2023

版本号:

3.4.4

前端版本:vue3版?还是 vue2版?

vue3

问题描述:

使用Online表单开发
表类型: 单表
是否树: 是
树开表单列: 字段中带有下划线 例如: test_field 在生成 代码后 *mapper.xml 中会被转换为驼峰命名的字段 testField
会导致此条SQL报错.

截图&代码:

生成代码后 *mapper.xml

省略...
  	<!-- 【vue3专用】 -->
	<select id="queryListByPid" parameterType="java.lang.Object" resultType="org.jeecg.common.system.vo.SelectTreeModel">
		select
		  id as "key",
		  testField as "title", <<<<<<<<<<<<<<<<< 此处应该为 test_field 
省略... 

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

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

收到

@lsqGitHub716
Copy link

已修改

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

No branches or pull requests

3 participants