Create AccessRoleMapper.xml

WongBin 3 years ago
parent 667efb802a
commit c070969e64

@ -0,0 +1,26 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.anjiplus.template.gaea.business.modules.accessrole.dao.AccessRoleMapper">
<resultMap type="com.anjiplus.template.gaea.business.modules.accessrole.dao.entity.AccessRole" id="AccessRoleMap">
<!--jdbcType="{column.columnType}"-->
<result property="id" column="id" />
<result property="roleCode" column="role_code" />
<result property="roleName" column="role_name" />
<result property="deleteFlag" column="delete_flag" />
<result property="enableFlag" column="enable_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="version" column="version" />
</resultMap>
<sql id="Base_Column_List">
id,role_code,role_name,delete_flag,enable_flag,create_by,create_time,update_by,update_time,version
</sql>
<select id="checkedAuthoritys" parameterType="java.lang.String" resultType="java.lang.String">
select CONCAT(target,'_',action) from access_role_authority where role_code=#{roleCode}
</select>
</mapper>
Loading…
Cancel
Save