网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 生活百科 知识问答 更多知识

MyBatis Plus分页怎么做

时间:2026-02-27 03:23:18

1、Question

// import 省略

@TableName("t_question")

public class Question implements Serializable {

private static final long serialVersionUID = 1L;

@ApiModelProperty(value = "问答主键id")

@TableId(value = "id", type = IdType.AUTO)

private Integer id;

MyBatis Plus分页怎么做

MyBatis Plus分页怎么做

2、@ApiModelProperty(value = "学生外键id")

   @TableField("student_id")

   private Integer studentId;

   @ApiModelProperty(value = "问题内容")

   private String content;

MyBatis Plus分页怎么做

3、   @ApiModelProperty(value = "问题发布时间,发布的时候后台自动生成")

   private Date date;

   @ApiModelProperty(value = "问题悬赏的积分")

   private Integer value;

   // getter、setter 省略

}

MyBatis Plus分页怎么做

4、Student

// import 省略

@TableName("t_student")

public class Student implements Serializable {

   private static final long serialVersionUID = 1L;

   @ApiModelProperty(value = "学生主键id")

   @TableId(value = "id", type = IdType.AUTO)

   private Integer id;

MyBatis Plus分页怎么做

MyBatis Plus分页怎么做

5、   @ApiModelProperty(value = "学生名称")

   private String name;

   @ApiModelProperty(value = "学生密码")

   private String password;

   @ApiModelProperty(value = "学生积分数")

   private Integer points;

   @ApiModelProperty(value = "学生邮件地址")

   private String email;

MyBatis Plus分页怎么做

6、   @ApiModelProperty(value = "学生手机号码")

   private String phone;

   @ApiModelProperty(value = "学生学号")

   private String num;

   @ApiModelProperty(value = "学生真实姓名")

   @TableField("true_name")

   private String trueName;

   // getter、setter 省略

}

MyBatis Plus分页怎么做

© 2026 一点资料
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com