2021
10-15
10-15
mybatis如何使用注解实现一对多关联查询
mybatis注解实现一对多关联查询@Select("selectid,mockexam_sectionassection,idassectionId"+"fromt_p_qb_mockexam_section"+"wheremockexam_charpter_id=#{charpterId}andis_delete=0"+"orderbymockexam_section_idxasc")@Results({@Result(property="questionList",column="sectionId",many=@Many(select="com.zikaoshu.baseinfo.mapper.BaseinfoQuestionMapper.listQuestionResDto"))...
继续阅读 >