实体类
@Data
public class DeptVO implements Serializable {
private static final long serialVersionUID = -7763442841172048580L;
private String code;
private String name;
/**
* 一对多映射的字段
*/
private List<Integer> tid;
}
xml文件
<resultMap id="vo" type="com.lgy.entity.DeptVO">
<