package com.example.demo.Dao; import com.example.demo.bean.User; import org.apache.ibatis.annotations.*; import java.util.List; @Mapper public interface userMapper { @Select("select * from user where userNum = #{userNum}") public User selectUserByuserNum(long userNum); @Select("select * from user") public List select(); @Insert("insert into user(userNum, userName, userPwd, userRight," + " tureName, idNum, telephoneNum, address, isIdentify, registerTime)" + " values (#{userNum},#{userName},#{userPwd},#{userRight},#{tureName}," + "#{idNum},#{telephoneNum},#{address},#{isIdentify},#{registerTime})") public void addUser(User users); @Update("update user set userNum=#{userNum},userName=#{userName}" + ",userPwd=#{userPwd},userRight=#{userRight},tureName=#{tureName}," + "idNum=#{idNum},telephoneNum=#{telephoneNum},address=#{address}," + "isIdentify=#{isIdentify},registerTime=#{registerTime}where userNum=#{userNum}") public void updateUser(User users); @Delete("delete from user where userNum=#{userNum}") public void deleteUser(long userNum); }