|
|
@@ -1,10 +1,7 @@
|
|
|
package com.uas.platform.b2c.common.account.dao;
|
|
|
|
|
|
import com.uas.platform.b2c.common.account.model.User;
|
|
|
-import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
-import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
-import org.springframework.data.jpa.repository.Query;
|
|
|
-import org.springframework.data.jpa.repository.QueryHints;
|
|
|
+import org.springframework.data.jpa.repository.*;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
@@ -138,4 +135,13 @@ public interface UserDao extends JpaSpecificationExecutor<User>, JpaRepository<U
|
|
|
* @return
|
|
|
*/
|
|
|
public User findUsersByOpenId(String openId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改个人的头像
|
|
|
+ * @param userUU
|
|
|
+ * @param imageUrl
|
|
|
+ */
|
|
|
+ @Modifying
|
|
|
+ @Query("update User u set u.imageUrl = :imageUrl where u.userUU = :userUU")
|
|
|
+ public void updateUserImageUrl(Long userUU, String imageUrl);
|
|
|
}
|