无关风月
2024-12-31 52461f1688e83970d4aa3aa6b835bdf7719f5769
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -97,31 +97,31 @@
   </select>
    <insert id="insertRole" parameterType="com.ruoyi.system.api.domain.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>
          <if test="roleKey != null and roleKey != ''">role_key,</if>
          <if test="roleSort != null">role_sort,</if>
          <if test="dataScope != null and dataScope != ''">data_scope,</if>
          <if test="menuCheckStrictly != null">menu_check_strictly,</if>
          <if test="deptCheckStrictly != null">dept_check_strictly,</if>
          <if test="status != null and status != ''">status,</if>
          <if test="remark != null and remark != ''">remark,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
          create_time
       )values(
          <if test="roleId != null and roleId != 0">#{roleId},</if>
          <if test="roleName != null and roleName != ''">#{roleName},</if>
          <if test="roleKey != null and roleKey != ''">#{roleKey},</if>
          <if test="roleSort != null">#{roleSort},</if>
          <if test="dataScope != null and dataScope != ''">#{dataScope},</if>
          <if test="menuCheckStrictly != null">#{menuCheckStrictly},</if>
          <if test="deptCheckStrictly != null">#{deptCheckStrictly},</if>
          <if test="status != null and status != ''">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          sysdate()
       )
      insert into sys_role(
      <if test="roleId != null and roleId != 0">role_id,</if>
      <if test="roleName != null and roleName != ''">role_name,</if>
      <if test="roleKey != null and roleKey != ''">role_key,</if>
      <if test="roleSort != null">role_sort,</if>
      <if test="dataScope != null and dataScope != ''">data_scope,</if>
      <if test="menuCheckStrictly != null">menu_check_strictly,</if>
      <if test="deptCheckStrictly != null">dept_check_strictly,</if>
      <if test="status != null and status != ''">status,</if>
      <if test="remark != null and remark != ''">remark,</if>
      <if test="createBy != null and createBy != ''">create_by,</if>
      create_time
      )values(
      <if test="roleId != null and roleId != 0">#{roleId},</if>
      <if test="roleName != null and roleName != ''">#{roleName},</if>
      <if test="roleKey != null and roleKey != ''">#{roleKey},</if>
      <if test="roleSort != null">#{roleSort},</if>
      <if test="dataScope != null and dataScope != ''">#{dataScope},</if>
      <if test="menuCheckStrictly != null">#{menuCheckStrictly},</if>
      <if test="deptCheckStrictly != null">#{deptCheckStrictly},</if>
      <if test="status != null and status != ''">#{status},</if>
      <if test="remark != null and remark != ''">#{remark},</if>
      <if test="createBy != null and createBy != ''">#{createBy},</if>
      sysdate()
      )
   </insert>
   
   <update id="updateRole" parameterType="com.ruoyi.system.api.domain.SysRole">