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

camel后使用column不行 #83

Open
dhjz opened this issue Aug 23, 2023 · 1 comment
Open

camel后使用column不行 #83

dhjz opened this issue Aug 23, 2023 · 1 comment

Comments

@dhjz
Copy link

dhjz commented Aug 23, 2023

单表查询db.camel() 后, 使用column("DATE_FORMAT(create_time, '%Y-%m-%d %H:%i:%S') AS create_time1")后台无法执行, 被转义成了,d_a_t_e__f_o_r_m_a_t(create_time, "%_y-%m-%d %_h:%i:%_s") as create_time1

@tomchen314
Copy link

camel会把column中所有的字符,从大写转为"_"+小写。
改成:column("date_format(create_time, '%Y-%m-%d %H:%i:%S') as create_time1")
但是'%Y-%m-%d %H:%i:%S'这一段就没办法了,可以考虑检索出来后在格式化日期。

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

2 participants