Просмотр исходного кода

--add updatePasswdWithMobile().

zzy.zhiyuan.foxmail лет назад: 8
Родитель
Сommit
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
	@Insert
40
	@Insert
41
	int insert(Connection con,User user)throws SQLException;
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
	@UpdateWith
47
	@UpdateWith
44
	@From(User.class)
48
	@From(User.class)
45
	int updateSendMailStatus(Connection con,@Set Integer sendMailStatus,String id)throws SQLException;
49
	int updateSendMailStatus(Connection con,@Set Integer sendMailStatus,String id)throws SQLException;
48
	@From(User.class)
52
	@From(User.class)
49
	int updateInviteCode(Connection con,@Set String inviteCode,String id)throws SQLException;
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
	@UpdateWith
64
	@UpdateWith
52
	@From(User.class)
65
	@From(User.class)
53
	int updateEmail(Connection con,@Set String email,String id)throws SQLException;
66
	int updateEmail(Connection con,@Set String email,String id)throws SQLException;
59
	@From(User.class)
72
	@From(User.class)
60
	int updatePassword(Connection con,@Set String passwd,String id)throws SQLException;
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
	@Or
80
	@Or
63
	@UpdateWith
81
	@UpdateWith
64
	@From(User.class)
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
	@QueryVal
85
	@QueryVal
68
	@Column(handlerClass=IntHandler.class, value = { "COUNT(1)" })
86
	@Column(handlerClass=IntHandler.class, value = { "COUNT(1)" })