Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yoho-message-sender
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Amos_sdy
8 years ago
Commit
ebf371e5eae411b26d5844c4b4b989afb733ec4b
1 parent
aa775b40
根据userid获取openid
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
0 deletions
dal/src/main/java/com/yoho/message/dal/IUserOpenidDAO.java
dal/src/main/java/com/yoho/message/dal/model/UserOpenid.java
web/src/main/resources/databases.yml
web/src/main/webapp/META-INF/autoconf/databases.yml
dal/src/main/java/com/yoho/message/dal/IUserOpenidDAO.java
0 → 100644
View file @
ebf371e
package
com
.
yoho
.
message
.
dal
;
import
java.util.List
;
import
com.yoho.message.dal.model.UserOpenid
;
public
interface
IUserOpenidDAO
{
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
UserOpenid
record
);
int
insertSelective
(
UserOpenid
record
);
UserOpenid
selectByPrimaryKey
(
Integer
id
);
List
<
UserOpenid
>
selectByUid
(
Integer
uid
);
UserOpenid
selectOpenUserByOpenAndRefer
(
String
openId
,
String
referId
);
UserOpenid
selectOpenUserByUidAndRefer
(
int
uid
,
int
referId
);
int
updateUserOpenID
(
String
newOpenID
,
String
oldOpenID
);
int
updateByPrimaryKeySelective
(
UserOpenid
record
);
int
updateByPrimaryKey
(
UserOpenid
record
);
int
updateUserOpenIDByUid
(
UserOpenid
record
);
}
\ No newline at end of file
...
...
dal/src/main/java/com/yoho/message/dal/model/UserOpenid.java
0 → 100644
View file @
ebf371e
package
com
.
yoho
.
message
.
dal
.
model
;
public
class
UserOpenid
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
3834001209768731678L
;
private
Integer
id
;
private
Integer
uid
;
private
String
openId
;
private
Short
referId
;
private
Integer
bindTime
;
private
String
shareBind
;
private
String
nickname
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getUid
()
{
return
uid
;
}
public
void
setUid
(
Integer
uid
)
{
this
.
uid
=
uid
;
}
public
String
getOpenId
()
{
return
openId
;
}
public
void
setOpenId
(
String
openId
)
{
this
.
openId
=
openId
==
null
?
null
:
openId
.
trim
();
}
public
Short
getReferId
()
{
return
referId
;
}
public
void
setReferId
(
Short
referId
)
{
this
.
referId
=
referId
;
}
public
Integer
getBindTime
()
{
return
bindTime
;
}
public
void
setBindTime
(
Integer
bindTime
)
{
this
.
bindTime
=
bindTime
;
}
public
String
getShareBind
()
{
return
shareBind
;
}
public
void
setShareBind
(
String
shareBind
)
{
this
.
shareBind
=
shareBind
==
null
?
null
:
shareBind
.
trim
();
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
==
null
?
null
:
nickname
.
trim
();
}
}
\ No newline at end of file
...
...
web/src/main/resources/databases.yml
View file @
ebf371e
...
...
@@ -38,4 +38,5 @@ datasources:
daos
:
-
com.yoho.message.dal.IUserProfileDao
-
com.yoho.message.dal.IWechatTemplateDao
-
com.yoho.message.dal.IUserOpenidDAO
readOnlyInSlave
:
true
\ No newline at end of file
...
...
web/src/main/webapp/META-INF/autoconf/databases.yml
View file @
ebf371e
...
...
@@ -48,4 +48,5 @@ datasources:
daos
:
-
com.yoho.message.dal.IUserProfileDao
-
com.yoho.message.dal.IWechatTemplateDao
-
com.yoho.message.dal.IUserOpenidDAO
readOnlyInSlave
:
${readOnlyInSlave}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment