Selaa lähdekoodia

增加角色关系删除标识

hym 4 vuotta sitten
vanhempi
commit
d223209c50

+ 1 - 1
user_center/src/main/resources/mapper/RoleMapper.xml

@@ -246,7 +246,7 @@
         select 	<include refid="userColumns"/>
          from uims_user_role b join uims_user a on b.USER_ID=a.ID
         <include refid="sysAreaJoins"/>
-        where b.ROLE_ID=#{id} and b.status!=0
+        where b.ROLE_ID=#{id} and b.status!=0 and userrole.status!=0
     </select>
     <update id="deleteRoleUser">
         update uims_user_role set status=0 where ROLE_ID=#{id}

+ 1 - 1
user_center/src/main/resources/mapper/UserGroupMapper.xml

@@ -224,7 +224,7 @@
            and  b.GROUP_ID=#{id} and b.status!=0 and userrole.status!=0
         </if>
         <if test="id == 0 ">
-          and  b.GROUP_ID is null
+          and  b.GROUP_ID is null and userrole.status!=0
         </if>
         <if test="tenantId != null and tenantId != ''">
             and a.TENANT_ID = #{tenantId}