实体里面是String,但是表里是date,临时转化

<update id="updateInventory" parameterType="com.docc.model.Inventory">

update BUS_INVENTORY

set orgcode = #{orgcode,jdbcType=VARCHAR},

    reportdate = #{reportdate,jdbcType=CHAR},

    checkname = '${checkname}',

    archivetime = to_date(#{archivetime,jdbcType=DATE},'yyyy-mm-dd')      

where id = #{id,jdbcType=DECIMAL}

</update>

相关文章:

  • 2018-10-11
  • 2022-12-23
  • 2022-01-15
  • 2021-05-16
  • 2021-09-12
  • 2021-07-21
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案