mybatis中时间处理 常见的时间处理方式 String类型 startTime ,endTime 一: 使用<![CDATA[]]> 把 大于号或者小于号包起来 <if test="req.startTime != null and req.startTime != ''"> AND <![CDATA[ pay_time >= #{req.startTime} ]]> </if>