1,时间判断不能判断为空字段,否则报错: invalid comparison: java.util.Date and java.lang.String
<if test="beginDate !=null" > AND pr.report_time >=#{beginDate,jdbcType=TIMESTAMP} </if> <if test="endDate !=null" > AND pr.report_time <=#{endDate,jdbcType=TIMESTAMP} </if>