修改密码

This commit is contained in:
wenyann 2020-05-11 14:22:56 +08:00
parent 4a958d6f44
commit c76a0ba941
2 changed files with 9 additions and 0 deletions

View File

@ -8,4 +8,5 @@ import java.util.List;
public interface ExtUserMapper { public interface ExtUserMapper {
List<User> getUserList(@Param("userRequest") UserRequest request); List<User> getUserList(@Param("userRequest") UserRequest request);
int updatePassword(@Param("User")User record);
} }

View File

@ -32,5 +32,13 @@
</if> </if>
</where> </where>
</select> </select>
<!--修改密码-->
<update id="updatePassword" parameterType="io.metersphere.base.domain.User">
update user
set
password=#{password,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=BIGINT}
where id=#{id,jdbcType=VARCHAR}
</update>
</mapper> </mapper>