mybatisplus-plus笔记
作者:互联网
1. 多主键@MppMultiId下新增后返回主键
qrcode_id
设置为主键,但是没设置数据库自增
@MppMultiId
@InsertFill("select IFNULL(max(qrcode_id), 1) from t_rdr_qrcode_template")
@TableField(value = "qrcode_id",fill= FieldFill.INSERT)
@ApiModelProperty(value = "主键ID", name = "intQRCodeId")
private Integer intQRCodeId;
标签:mybatisplus,MppMultiId,笔记,id,plus,value,qrcode,主键 来源: https://blog.csdn.net/Robin_hc/article/details/123627966