chuntungho / mybatis-builder

An IDEA plugin integrated with MyBatis Generator, compatible with IntelliJ IDEA CE

Home Page:https://mybatis.chuntung.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

‘Copy as Executable SQL’ have a bug

CNAHYZ opened this issue · comments

2020-06-23 10 : 39 : 21.367 [ DEBUG ] nm.examResult.listExamResultExport - ==> Preparing : SELECT * FROM (SELECT * FROM exam_result_data a WHERE op_orgnz_id LIKE concat(?, '%' ) AND date_format( exam_date, '%Y-%m-%d' ) >= ? AND ? >= date_format( exam_date, '%Y-%m-%d' ) ) erd LEFT JOIN student_info si ON erd.stu_id = si.stu_id WHERE si.stu_id IS NOT NULL GROUP BY erd.stu_id, erd.SUBJECT, erd.exam_date ORDER BY erd.exam_date DESC, CONVERT ( erd.stu_name USING gbk ) ASC 2020-06-23 10:39:21.367 [DEBUG] nm.examResult.listExamResultExport - ==> Parameters: xxxxjx(String), 2020-06-23(String), 2020-06-23(String) 2020-06-23 10:39:21.387 [DEBUG] nm.examResult.listExamResultExport - <== Total: 0

this will copy as :

图片

the second 2020-06-23 not a String

The above SQL statement is simplified

fixed for Windows