el-form inline=true model=formInline class=demo-form-inline el-date-picker v-model=value2 type=datetimerange picker-options=pickerOptions
根据上述代码,可以将判断条件写成以下形式:
<if test="startTime != null and endTime != null">
and createtime between #{startTime} and #{endTime}
</if>
<if test="startTime != null and endTime == null">
and createtime > #{startTime}
</if>
<if test="startTime == null and endTime != null">
and createtime < #{endTime}
</if>
原文地址: http://www.cveoy.top/t/topic/jdE8 著作权归作者所有。请勿转载和采集!