时间:2021-07-01 10:21:17 帮助过:241人阅读
/** * 自定义sql查询 * @param sqlContent * @return */ public List<LinkedHashMap<String, Object>> customQueryItem(String sqlContent);
mapper.xml
<select id="customQueryItem" parameterType="String" resultType="java.util.LinkedHashMap"> <![CDATA[ SELECT * FROM (${value}) obj ]]> </select>
mybatis 执行传入的任意sql语句
标签:ash sql div color lin map hashmap 自定义 span