IBatis Map时间参数文字格式不匹配!

CS.

ht.Add("start_time", startTime);

  

Map

<isNotNull prepend="and" property="start_time">
        ( date_time <![CDATA[>=]]>  to_date(#start_time#,'yyyy-mm-dd hh24:mi:ss'))
</isNotNull>

 

报错:“文字格式不匹配”之类的

解决方案

CS.

ht.Add("start_time", startTime.ToShortDateString());

  

原文地址:https://www.cnblogs.com/wdw31210/p/4045238.html