MyBatis in the XM file is less than or equal to time, can not directly write "=, to be written
and Reg_time <! [cdata[<=]]> #{params.endtime}
The following refers to processing http://blog.csdn.net/u022812849/article/details/42123007 that are less than greater than the MyBatis configuration file
Background: Writing the SQL where statement in the MyBatis mapping file often uses greater than or less than, and if you use a greater-than-less number, the solution 1:xml special characters can be used in place of escape characters
< |
< |
Less than sign |
> |
> |
Greater-than sign |
& |
& |
And |
' |
’ |
Single quotation mark |
" |
" |
Double quotes
|
Solution 2: Applicable <! [cdata[]]> section, which includes SQL to embed the original data between the two, which does not want to be parsed by the parser, the parser does not parse the content in the CDATA area, but instead gives the data to the downstream program to process it intact.