需要在insert方法中添加

<insert >

 加上上面红色部分,keyProperty中的id,是MDActivity对象的中的Id

 使用时直接从MDActivity对象中获取到ID

相关文章: