記事一覧クエリが多くを使用しています
<このresultMapのID = "articleResultMap"タイプ= "com.hq.advert.web.article.vo.ArticleMappingVo"> <id列= "のarticle_id"プロパティ= "情報でarticleID" /> <結果カラム= "article_title"プロパティ= "articleTitle "/> <resultプロパティ=" articleAuther "欄= "article_auther"/> <結果プロパティ= "articleContent"欄= "article_contentの"/> <結果プロパティ= "articleCreateTime"欄= "article_create_time"/> <resultプロパティ=" articleDealerId」欄= "article_dealer_id" /> <resultプロパティ= "articleLalbel"欄= "article_lalbel" /> <結果プロパティ= "articleIssueTime"欄= "article_issue_time" /> <resultプロパティ= "articlePageViews"欄= "article_page_views" /> <resultプロパティ= "articleStatus"欄= "article_status" /> <結果プロパティ= "articleModifyTime"欄= "article_modify_time" /> <resultプロパティ= "articleChannelPageViews"欄= "article_channel_page_views" /> <関連プロパティ= "businessVo"欄= "のarticle_id" のJavaType = "com.hq.advert.web .article.vo.ArticleBusinessMappingVo " を選択= "com.hq.advert.mapper.BusinessArticleMapper.selectByArticleId" > </関連> <コレクションプロパティ= "channelVo" ofType =" com.hq.advert.web.article.vo.ArticleChannelMappingVo " 列="情報でarticleID "> <idプロパティ= "ID"列= "ID" /> <resultプロパティ= "channelId" 欄= "CHANNEL_ID" /> <結果プロパティ= "channelPageViews"欄= "channel_page_views" /> <関連プロパティ= "articleChannelVo"欄= "CHANNEL_ID" のJavaType = "com.hq.advert.web.article.vo.ArticleChannelChangnelMappingVo" = "com.hqを選択します。 advert.mapper.ChannelVoMapper.selectChannelById "/> </コレクション> </このresultMap>
番号の後に多くのにつながる書き込みコードがページ上にありません
<コレクションプロパティ= "channelVo" ofType = "com.hq.advert.web.article.vo.ArticleChannelMappingVo" カラム= "情報でarticleID"> <idプロパティ= "ID"列= "ID" /> <resultプロパティ= "channelId "列=" CHANNEL_ID "/> <結果プロパティ=" channelPageViews "欄= "channel_page_views"/> <関連プロパティ= "articleChannelVo"欄= "CHANNEL_ID" のJavaType =" com.hq.advert.web.article.vo.ArticleChannelChangnelMappingVo " 選択=" com.hq.advert.mapper.ChannelVoMapper.selectChannelById "/> </コレクション>
ソリューション
<このresultMapのID = "articleResultMap"タイプ= "com.hq.advert.web.article.vo.ArticleMappingVo"> <id列= "のarticle_id"プロパティ= "情報でarticleID" /> <結果カラム= "article_title"プロパティ= "articleTitle "/> <resultプロパティ=" articleAuther "欄= "article_auther"/> <結果プロパティ= "articleContent"欄= "article_contentの"/> <結果プロパティ= "articleCreateTime"欄= "article_create_time"/> <resultプロパティ=" articleDealerId」欄= "article_dealer_id" /> <resultプロパティ= "articleLalbel"欄= "article_lalbel" /> <結果プロパティ= "articleIssueTime"欄= "article_issue_time" /> <resultプロパティ= "articlePageViews"欄= "article_page_views" /> <resultプロパティ= "articleStatus"欄= "article_status" /> <結果プロパティ= "articleModifyTime"欄= "article_modify_time" /> <resultプロパティ= "articleChannelPageViews"欄= "article_channel_page_views" /> <関連プロパティ= "businessVo"欄= "のarticle_id" のJavaType = "com.hq.advert.web .article.vo.ArticleBusinessMappingVo " を選択= "com.hq.advert.mapper.BusinessArticleMapper.selectByArticleId" > </関連> <コレクションプロパティ= "channelVo" ofType =" com.hq.advert.web.article.vo.ArticleChannelMappingVo " 列="のarticle_id "を選択=" com.hq.advert.mapper。 </このresultMap>