1:实体类对应的数据库表的字段,实体类必须使用对象类,类似用Integer,不可以用int,不然插入不正确
@Data
@TableName("sys_study_test_file")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="练习试卷对象", description="练习试卷对象")
public class SysStudyTestFile {
/**练习文件id*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "练习文件id")
private Integer testFileId;
/**学习类型*/
@ApiModelProperty(value = "学习类型")
private String studyType;
/**学习类型id*/
@ApiModelProperty(value = "学习类型id")
private Integer studyTypeId;
}
版权声明:本文为qq_19891197原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。