龚焕茏
2024-04-11 db0b87b36c44a5a9bc32a915769024f0c9db7c05
ycl-server/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -92,8 +92,12 @@
      <include refid="selectRoleVo"/>
       where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
   </select>
    <insert id="insertRole" parameterType="com.ycl.system.entity.SysRole" useGeneratedKeys="true" keyProperty="roleId">
    <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>
          <if test="roleName != null and roleName != ''">role_name,</if>