这是我的 batis 生成器文件:
<table tableName="jxc_stock_journal" enableCountByExample="true"
enableSelectByPrimaryKey="true" enableSelectByExample="true"
enableUpdateByPrimaryKey="true" enableDeleteByPrimaryKey="true"
enableInsert="true" domainObjectName="JxcStockJournal">
<generatedKey column="id" sqlStatement="MySql"
identity="true" />
</table>
因此它将生成映射器 xml 文件。使用 null 签入updateByPrimaryKeySelective
方法:
我需要将一些字段设置为 null updateByPrimaryKeySelective
,该怎么做?