lohir
2024-10-18 1a00df812740751806e6d17a7b5a184fe97157d4
src/main/resources/mapper/UserMapper.xml
@@ -135,6 +135,9 @@
        <set>
            <if test="realName != null">real_name = #{realName},</if>
            <if test="age != null">age = #{age},</if>
            <if test="sex != null">sex = #{sex},</if>
            <if test="phone != null and phone !='' ">phone = #{phone},</if>
            <if test="birthDay != null ">birth_day = #{birthDay},</if>
            <if test="lastActiveTime != null">last_active_time = #{lastActiveTime},</if>
        </set>
        where id = #{id}