mybatis-plus多个主键

首先maven引入


        com.github.jeffreyning
        mybatisplus-plus
        1.2.0-RELEASE
    

然后实体类的注解如下


    @TableId(value = "doctor_id", type = IdType.INPUT)
    @MppMultiId
    private Integer doctorId;


    @TableId(value = "team_id", type = IdType.INPUT)
    @MppMultiId
    private Integer teamId;

 

你可能感兴趣的:(mybatis-plus,mybatis-plus)