From cba05be256b5b59646a3900879f039a62ccf8ae4 Mon Sep 17 00:00:00 2001 From: "wei.zhang2" Date: Mon, 16 Oct 2017 10:05:41 +0800 Subject: [PATCH] 1 --- src/main/java/com/boot/security/server/dao/UserDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/boot/security/server/dao/UserDao.java b/src/main/java/com/boot/security/server/dao/UserDao.java index 4a28657..c0db4a6 100644 --- a/src/main/java/com/boot/security/server/dao/UserDao.java +++ b/src/main/java/com/boot/security/server/dao/UserDao.java @@ -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}")