| | |
| | | FROM t_user |
| | | <where> |
| | | and deleted=0 |
| | | <if test="userName != null and userName != ''"> |
| | | and user_name like concat('%',#{userName},'%') |
| | | <if test="realName != null and realName != ''"> |
| | | and real_name like concat('%',#{realName},'%') |
| | | </if> |
| | | <if test="role != null "> |
| | | and role= #{role} |
| | |
| | | <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} |