Просмотр исходного кода

解决禁用角色功能异常

v_HuilingDeng 4 лет назад
Родитель
Сommit
05617dd866

+ 0 - 1
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/dto/req/CreateUserReq.java

@@ -29,7 +29,6 @@ public class CreateUserReq implements Serializable {
   @ApiModelProperty(value = "登录密码")
   private String password;
 
-//  @NotEmpty(message = "请选择是否ABI")
   @ApiModelProperty(value = "是否ABI")
   private Integer isAbi;
 

+ 1 - 1
abi-cloud-qr-platform-server/src/main/resources/dao/mapper/UserRoleMapper.xml

@@ -151,7 +151,7 @@
     <select id="subordinateRoleEnable" resultMap="BaseResultMap">
         select <include refid="Base_Column_List"/>
         from user_role
-        where
+        where 1=1
             <!-- 仅可以查看当前角色树下的角色 -->
             <if test="roleLevel==1">
                 and l1_role_code=#{roleCode}