ソースを参照

--add updatePasswdWithMobile().

zzy.zhiyuan.foxmail 8 年 前
コミット
c50cedb33b
共有1 個のファイルを変更した19 個の追加1 個の削除を含む
  1. 19 1
      src/main/java/com/ekexiu/portal/dao/UserDao.java

+ 19 - 1
src/main/java/com/ekexiu/portal/dao/UserDao.java

@ -40,6 +40,10 @@ public interface UserDao {
40 40
	@Insert
41 41
	int insert(Connection con,User user)throws SQLException;
42 42
	
43
	@UpdateWith
44
	@From(User.class)
45
	int updateActiveTime(Connection con,@Set String activeTime,String id)throws SQLException;
46
	
43 47
	@UpdateWith
44 48
	@From(User.class)
45 49
	int updateSendMailStatus(Connection con,@Set Integer sendMailStatus,String id)throws SQLException;
@ -48,6 +52,15 @@ public interface UserDao {
48 52
	@From(User.class)
49 53
	int updateInviteCode(Connection con,@Set String inviteCode,String id)throws SQLException;
50 54
	
55
	@UpdateWith
56
	@From(User.class)
57
	@Where("ACTIVE_TIME IS NULL AND PASSWD = '11111111111111111111111111111111'")
58
	int updatePasswdAndActive(Connection con,@Set String passwd,@Set String activeTime,String id) throws SQLException;
59
	
60
	@UpdateWith
61
	@From(User.class)
62
	int updatePasswd(Connection con,@Set String passwd,String id,@Alias("passwd")String key) throws SQLException;
63
	
51 64
	@UpdateWith
52 65
	@From(User.class)
53 66
	int updateEmail(Connection con,@Set String email,String id)throws SQLException;
@ -59,10 +72,15 @@ public interface UserDao {
59 72
	@From(User.class)
60 73
	int updatePassword(Connection con,@Set String passwd,String id)throws SQLException;
61 74
	
75
	@UpdateWith
76
	@From(User.class)
77
	@Where("ACTIVE_TIME IS NULL")
78
	int updatePasswdWithMobile(Connection con,@Set String passwd,@Set String activeTime,@Alias("mobilePhone") String key)throws SQLException;
79
	
62 80
	@Or
63 81
	@UpdateWith
64 82
	@From(User.class)
65
	int updatePasswordWithMobileOrEmail(Connection con,@Set String passwd,@Alias({"email","mobilePhone"})  String key)throws SQLException;
83
	int updatePasswordWithMobileOrEmail(Connection con,@Set String passwd,@Alias({"email","mobilePhone"}) String key)throws SQLException;
66 84
	
67 85
	@QueryVal
68 86
	@Column(handlerClass=IntHandler.class, value = { "COUNT(1)" })