提交 c7440cee 作者: 沈振路

mapper.xml

上级 915437ff
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yaoyaozw.customer.mapper.MaterialAopCommonMapper">
<select id="getAccountFromTable" resultType="java.lang.String">
select
${columnName}
from ${tableName}
where id = ${primaryId}
</select>
<select id="getUserRoleLevel" resultType="java.lang.Integer">
select
max(role.role_level)
from acl_user_role aur
left join acl_role role
on aur.role_id = role.id
where aur.user_id = #{userId}
</select>
</mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论