📅  最后修改于: 2022-03-11 14:55:09.606000             🧑  作者: Mango
@Mapper
public interface MyMapper {
@Mapping(target = "targetId", source = "sourceId")
@Mapping(target = "subjectName", source = "course.courseName")
@Mapping(target = "members", source = "course.students")
Target map(Source source);
@Mapping(target = "memberName", source = "studentName")
Member toMember(Student student);
}