|
|
@@ -4,6 +4,7 @@ import com.uas.platform.b2c.common.account.model.User;
|
|
|
import org.springframework.data.jpa.repository.*;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.persistence.QueryHint;
|
|
|
import java.util.List;
|
|
|
@@ -141,7 +142,8 @@ public interface UserDao extends JpaSpecificationExecutor<User>, JpaRepository<U
|
|
|
* @param userUU
|
|
|
* @param imageUrl
|
|
|
*/
|
|
|
+ @Transactional
|
|
|
@Modifying
|
|
|
@Query("update User u set u.imageUrl = :imageUrl where u.userUU = :userUU")
|
|
|
- public void updateUserImageUrl(Long userUU, String imageUrl);
|
|
|
+ public void updateUserImageUrl(@Param("userUU") Long userUU, @Param("imageUrl") String imageUrl);
|
|
|
}
|