master
parent
8fe6c49355
commit
cba05be256
|
|
@ -17,7 +17,7 @@ import com.boot.security.server.model.SysUser;
|
|||
public interface UserDao {
|
||||
|
||||
@Options(useGeneratedKeys = true, keyProperty = "id")
|
||||
@Insert("insert into sys_user(username, password, salt, nickname, headImgUrl, phone, telephone, email, birthday, sex, status, createTime, updateTime) values(#{username}, #{password}, #{salt}, #{nickname}, #{headImgUrl}, #{phone}, #{telephone}, #{email}, #{birthday}, #{sex}, #{status}, now(), now())")
|
||||
@Insert("insert into sys_user(username, password, nickname, headImgUrl, phone, telephone, email, birthday, sex, status, createTime, updateTime) values(#{username}, #{password}, #{nickname}, #{headImgUrl}, #{phone}, #{telephone}, #{email}, #{birthday}, #{sex}, #{status}, now(), now())")
|
||||
int save(SysUser user);
|
||||
|
||||
@Select("select * from sys_user t where t.id = #{id}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue