gt: greater than 大於
gte: greater than or equal 大於等於
lt: less than 小於
lte: less than or equal 小於等於
示例
tn>2 and tn <=9
<if test="request.tn gt 2 and request.tn lte 9"> AND ***** </if>
如上代碼 代表如果 tn > 2 同時 <=9 時會執行標簽內的語句
gt: greater than 大於
gte: greater than or equal 大於等於
lt: less than 小於
lte: less than or equal 小於等於
示例
tn>2 and tn <=9
<if test="request.tn gt 2 and request.tn lte 9"> AND ***** </if>
如上代碼 代表如果 tn > 2 同時 <=9 時會執行標簽內的語句
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。