我看了一下, 我这里默认就会生成deleteByPrimaryKey这个元素节点的, 而且自动生成 如果你没有, table标签有enableDeleteByPrimaryKey这个属性, 设置为true试试