林火综合应急信息管理系统后端
guoshilong
2023-03-04 548f9cf603460e1d23124b92e625f32f36730a6e
src/main/java/org/springblade/modules/system/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,9 @@
                </foreach>
            )
        </if>
        <if test="user.phone !=null and user.phone !='' ">
            AND phone LIKE CONCAT('%',#{user.phone},'%')
        </if>
        ORDER BY id
    </select>