分表存储,并且查询数据

mapper一对多简单写法笔记_第1张图片mapper一对多简单写法笔记_第2张图片




    
        
        
        
        
        
        
        
            
            
            
            
            
            
        
    

    
    

实体

public class DivOptingsConten implements Serializable {
    private Integer num;

    private String content;

    private String options;

    private String strengthIndex;

    private String openIndex;

    private Integer titleNumber;

    List divOptingsTitles;

标题:

public class DivOptingsTitle implements Serializable {
    private Integer id;

    private String titleName;

    private String titleType;

    private String titleDescribe;

    private Integer titleNum;

    private String titltMark;