mybatis-plus多个主键
作者:互联网
首先maven引入
<dependency>
<groupId>com.github.jeffreyning</groupId>
<artifactId>mybatisplus-plus</artifactId>
<version>1.2.0-RELEASE</version>
</dependency>
然后实体类的注解如下
@TableId(value = "doctor_id", type = IdType.INPUT)
@MppMultiId
private Integer doctorId;
@TableId(value = "team_id", type = IdType.INPUT)
@MppMultiId
private Integer teamId;
标签:IdType,Integer,private,id,plus,INPUT,mybatis,TableId,主键 来源: https://blog.csdn.net/qq_29278623/article/details/115050533