1.修复新增用户没有pushkey的问题

2.将重置pushkey改为修改pushkey
This commit is contained in:
jiang
2022-07-19 18:13:19 +08:00
parent 7f5a18d6b5
commit fc0ad32f81
6 changed files with 142 additions and 37 deletions

View File

@@ -60,6 +60,6 @@ public interface UserMapper {
@ResultMap(value="roleMap")
List<User> getUsers();
@Delete("update user set pushKey=MD5(NOW()+#{id}) where id=#{id}")
int resetPushKey(int id);
@Update("update user set pushKey=#{pushKey} where id=#{id}")
int changePushKey(int id, String pushKey);
}