林火综合应急信息管理系统cloud后端
guoshilong
2023-03-10 fade7d9f3651ea1a46e74d65c336e7f10669ca43
blade-service/blade-user/src/main/java/org/springblade/system/user/mapper/UserMapper.xml
@@ -36,10 +36,10 @@
            and tenant_id = #{user.tenantId}
        </if>
        <if test="user.account!=null and user.account != ''">
            and account = #{user.account}
            and account LIKE CONCAT('%', #{user.account},'%')
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and real_name = #{user.realName}
            and real_name LIKE CONCAT('%', #{user.realName},'%')
        </if>
        <if test="user.userType!=null and user.userType != ''">
            and user_type = #{user.userType}
@@ -57,6 +57,15 @@
            </foreach>
            )
        </if>
        <if test="user.phone !=null and user.phone !='' ">
            AND phone LIKE CONCAT('%',#{user.phone},'%')
        </if>
        <if test="user.roleId !=null and user.roleId !=''">
            AND FIND_IN_SET(role_id,#{user.roleId})
        </if>
        <if test="user.deptId !=null and user.deptId !=''">
            AND dept_id = #{user.deptId}
        </if>
        ORDER BY id
    </select>