Commit 242593aa by zhangchen

upload face

parent ee321df9
......@@ -98,6 +98,21 @@ public class EntityImageDao extends GenericHibernateDao<EntityImage, Integer> {
query.setParameter("entityType", entityType);
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment