mapper文件:
<if test="startDate != null and startDate != ''">
<![CDATA[ AND inputDate >= #{startDate}]]>
</if>
<if test="endDate != null and endDate != ''">
<![CDATA[ AND inputDate <= #{endDate}]]>
</if>
请求参数时间格式:
mapper文件:
<if test="startDate != null and startDate != ''">
<![CDATA[ AND inputDate >= #{startDate}]]>
</if>
<if test="endDate != null and endDate != ''">
<![CDATA[ AND inputDate <= #{endDate}]]>
</if>
请求参数时间格式: