这是mybatis 3.3.0中对于时间参数进行比较时的一个bug. 如果拿传入的时间类型参数与空字符串’'进行对比判断则会引发异常. 所以在上面的代码中去该该判断, 只保留非空判断就正常了
<update id="updateExpress" parameterType="com.cd.express_cd.pojo.Express">
update express_list
<set>
<if test="company!=null and company.id!=null">company_id=#{company.id},</if>
<if test="phone!=null and phone!=''">phone=#{phone},</if>
<if test="status!=null">status=#{status},</if>
<if test="linkman!=null and linkman!=''">linkman=#{linkman},</if>
<if test="address!=null and address!=''">address=#{address},</if>
<if test="receiveTime!=null and receiveTime!=''">receive_time=#{receiveTime}</if>
</set>
where id=#{id}
</update>