ycl-server/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -93,6 +93,10 @@ where r.role_key=#{roleKey} and r.del_flag = '0' limit 1 </select> <select id="selectRoleByKey" resultType="com.ycl.system.entity.SysRole"> select * from sys_role where role_key = #{roleKey} and del_flag = '0' limit 1 </select> <insert id="insertRole" parameterType="com.ycl.system.entity.SysRole" useGeneratedKeys="true" keyProperty="roleId"> insert into sys_role( <if test="roleId != null and roleId != 0">role_id,</if>