The writing method of greater than or equal to less than or equal to in mybatis

1 The first writing method (1 ):
 2  
3 Original symbol < <= > >= & ' "
 4 Replacement symbol < <= > >= & ' & quot;
 5  For example: sql is as follows:
 6 create_date_time >= #{startTime} and create_date_time <= #{endTime}
 7  
8 The second way of writing (2 ):
 9  is greater than or equal to
 10 <![CDATA[ >= ]]>
 11  is less than or equal to
 12 <![CDATA[ < = ]]>
 13  For example: sql is as follows:
 14 create_date_time <![CDATA[ >= ]]> #{startTime} and create_date_time <![CDATA[ <= ]]>#{endTime}

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325857003&siteId=291194637