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;

 

上一篇:Web-[HCTF 2018]WarmUp


下一篇:bootstrap-table前端修改后台传来的数据重新进行渲染