Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
242593aa
authored
Mar 10, 2020
by
zhangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload face
parent
ee321df9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/dao/basic/EntityImageDao.java
src/main/java/com/ctrip/fun/golf/dao/basic/EntityImageDao.java
View file @
242593aa
...
...
@@ -99,6 +99,21 @@ public class EntityImageDao extends GenericHibernateDao<EntityImage, Integer> {
query
.
executeUpdate
();
}
/**
* 根据实体类型Id和更新用户人脸图片
*
* @param entityId
* @param entityType
*/
public
void
updateUserFaceImage
(
Integer
entityId
,
String
entityType
)
{
String
sql
=
"update UserExt set faceImage=:faceImage"
+
" where ExtID=:ExtID"
;
Query
query
=
getSession
().
createQuery
(
sql
);
query
.
setParameter
(
"ExtID"
,
entityId
);
query
.
setParameter
(
"faceImage"
,
entityType
);
query
.
executeUpdate
();
}
public
String
getImageServer
()
{
return
imageServer
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment