1、mybatis xml文件处理时间筛选条件, 参数是数组 recipeDates
<if test="query.recipeDates != null">
<bind name="startTime" value="query.recipeDates[0]" />
<bind name="endTime" value="query.recipeDates[1]" />
AND preparation_collocate.`recipe_date` between #{startTime} and #{endTime}
</if>
2、如果前端传上来的数据有"[" "]" 会导致参数被urlcode转义,进行有中文等数据库查询时,会出现数据查不到的问题。