Mybatis ResultMap多表映射DTO
步骤: 1:构建DT package com.steak.system.pojo.dto; public class ApplyDTO { private Integer applyId; //申请书的ID 属于申请表(sys_apply) private String selfIntroduction; //自我介绍 属于申请表(sys_apply) private String applyTime; //申请时间 属于申请表(sys_apply) private String userName; //申请人,属于用户表(sys_user) private String collegeName; //二级学院名称,属于二级学院表(sys_college) private String recruitName; //招聘书标题 , 属于招聘表(sys_recruit) private String status; //申请状态 属于申请表(sys_apply } 2:创建mybatis Mapper.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3