package com.luozhihui.project.mapper;
import com.luozhihui.project.entity.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserInfoMapper {
    @Select("SELECT * FROM `user` WHERE UserId = #{user_id}")
    User findById(Integer id);
    @Update("UPDATE user SET UserName = #{UserName},Phone = #{Phone}, PassWord = #{PassWord}, IdCard = #{IdCard},DriverLicense=#{DriverLicense} where UserId = #{UserId}")
    void update(User user);
    //实名认证
    @Update("UPDATE user SET UserName = #{UserName},Phone = #{Phone},  IdCard = #{IdCard},DriverLicense=#{DriverLicense} where UserId = #{UserId}")
    void shiming(User user);
}
