src/main/resources/mapper/ArticleMapper.xml
@@ -47,4 +47,10 @@ </if> limit 1 </select> <select id="selectArticleById" resultType="com.xcong.farmer.cms.modules.system.entity.ArticleEntity"> select a.*, b.column_code, b.column_name from t_article a, t_column b where a.column_id=b.id and a.id=#{id} </select> </mapper>