//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.luozhihui.project.mapper;

import com.luozhihui.project.entity.User;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

public interface UserShowMapper {
    @Select({"select * from  `user`"})
    List<User> FindAllUser();

    @Select({"select * from  `user` where `UserId`=#{UserId}"})
    List<User> FindUserById(String UserId);

    @Select({"select * from  `user` where `userName`=#{userName}"})
    List<User> FindUserByuserName(String userName);

    @Delete({"delete  from  `user` where `UserId`=#{UserId}"})
    boolean DeleteUserById(String phone);

    @Insert({"insert into `user`(`Phone`,`UserName`,`PassWord`,`IdCard`,`DriverLicense`) VALUES(#{Phone},#{UserName},#{PassWord},#{IdCard},#{DriverLicense})"})
    @Transactional
    void adduser(User user);
}
