摘要: 在MyBatis中,如果你希望在插入数据时返回主键值,可以通过在<insert>标签中使用useGeneratedKeys="true"属性和keyProperty属性来实现。useGeneratedKeys属性表示使用数据库生成的主键,而keyProperty属性则指定用来接收这个生成主键的属性名 阅读全文
posted @ 2024-07-19 14:51 del88 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 场景: 一个 pluginSdk表,其中有 sdk_id MySQL 自增字段,create_time服务端写入的字段,除了这2个字段外,其余字段需要终端 Request传入: public class PluginSdkAddRequest extends ZxBaseRequest { @Not 阅读全文
posted @ 2024-07-19 14:30 del88 阅读(40) 评论(0) 推荐(0) 编辑