用to_timestamp
如:
insert into P2P_COUPON (BANK_ID,USERNAME,NAME,KIND,MONEY,STATUS,BEGIN_DATE,END_DATE,GET_DATE,CREAT_DATE,CREAT_NAME,JOIN_ACTIVITY,PUT_NAME,COUPON_TALK,COUPON_URL ) values (#{bankId,jdbcType=VARCHAR},#{userName,#{name,#{kind,#{money,jdbcType=DECIMAL},#{status,to_timestamp(#{beginDate},'yyyy-mm-dd hh24:mi:ss'),to_timestamp(#{endDate},to_timestamp(#{getDate},to_timestamp(#{creatDate},#{creatName},#{joinActivity,#{putName,#{couponTalk,#{couponUrl,jdbcType=VARCHAR} )
<insert id="insert" parameterType="com.zbxsoft.p2p.entity.P2pCoupon" > insert into P2P_COUPON (BANK_ID,to_date(#{beginDate},to_date(#{endDate},to_date(#{getDate},to_date(#{creatDate},jdbcType=VARCHAR} ) </insert>