1
zj
2024-10-08 6fb4fda8659d6202b34d2347fb0d481446e28ee3
src/main/resources/mapper/UserMapper.xml
@@ -84,7 +84,7 @@
    <select id="listByAdmin" resultMap="BaseResultMap" parameterType="map">
        SELECT
        <include refid="Base_Column_List"/>
        *
        FROM user
        <where>
            <if test="searchId != null ">
@@ -99,6 +99,18 @@
            <if test="accountType != null ">
                and account_type = #{accountType}
            </if>
            <if test="isLock != null ">
                and is_lock = #{isLock}
            </if>
            <if test="isLogin != null ">
                and is_login = #{isLogin}
            </if>
            <if test="regTime != null and regTime != ''">
                and  DATE_FORMAT(reg_time, '%Y-%m-%d') = #{regTime}
            </if>
            <if test="isActive != null ">
                and is_active = #{isActive}
            </if>
        </where>
        ORDER BY id DESC
    </select>